API Documentation
Offramps API
Offramps API
  • Guides
    • Getting Started
  • API Reference
    • Authentication
    • Agreements
      • Agreements#Show
    • Users
      • Users#Create
      • Users#Show
      • Users#Index
    • KYC Sessions
      • KYC#Create
    • Payment Details
      • PaymentDetails#Create
      • PaymentDetails#Index
      • PaymentDetails#Show
      • PaymentDetails#Validate
      • PaymentDetails#Deactivate
      • Rail Availability
      • Required Fields For Local Currency Payouts
      • Required Fields For Swift Currency Payouts
    • Quotes
      • How to make a payment
      • Quotes#Create
      • Quotes#Show
      • Quotes#Execute
      • Quote#Rate
    • Offramps
      • Offramps#Index
      • Offramps#Create
      • Offramps#Update
      • Offramps#Show
      • Limitations
    • Webhooks
      • KYC Webhook
      • Offramp Webhook
      • Payment Detail Webhook
      • Webhook Signatures
    • Errors
    • Conversions
      • Conversions#Create
  • Sandbox Only
    • Sandbox Special Moves
Powered by GitBook
On this page
  • Validate a Payment Detail
  • Validate Payment Detail Parameters
  1. API Reference
  2. Payment Details

PaymentDetails#Validate

Validate a Payment Detail

This endpoint can determine whether the provided payment detail will pass regex checks.

NB: It does not guarantee it will be accepted by our payment partners. Nor does it guarantee it will be the recipients intended account.

Example Request

curl https://{{base_url}}/users/USER_ID/payment_details/validate
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-type: application/json" \
-d '{
    "payment_detail": {
        "bank_name": "Chase",
        "account_name": "Gordon's Chase Business Account",
        "account_number": "253009233489",
        "routing_number": "026013356",
        "beneficiary_type": "business",
        "company_number": "12-3456789",
        "currency": "usd",
        "address_line1": "24 Theatre St.",
        "city": "Paramount",
        "state": "CA",
        "country": "US",
        "postal_code": "90723",
        "rails": null
    }
}'

Endpoint Information

Validate Payment Detail Parameters

POST https://{{base_url}}/users/:user_id/payment_details/validate

Path Parameters

Name
Type
Description

user_id*

UUID

ID of the User which the Payment Detail belongs to.

Request Body

Name
Type
Description

account_name

String

A name to identify the bank account, e.g. 'Chris's Revolut'.

account_number

String

currency

String

The currency that the bank account accepts. E.g. 'usd', 'eur'.

address_line1

String

The first line of the address of the person or organisation that controls the bank account.

address_line2

String

The second line of the address of the person or organisation that controls the bank account.

city

String

The city where the person or organisation that controls the bank account is located.

state

String

The state/district where the person or organisation that controls the bank account is located.

postal_code

String

The postal/zip code where the person or organisation that controls the bank account is located.

country

String

The country where the person or organisation that controls the bank account is located. Given in ISO 3166-1 alpha-2 format.

beneficiary_type

String

individual or business

routing_number

String

bank_name

String

The name of the bank associated with the account. e.g. 'Revolut'

sort_code

String

iban

String

swift_bic

String

document_number

String

account_type

String

rib_number

String

purpose_of_transfer

String

purpose_of_payment_code

String

bsb_number

String

rails

String

{
    "payment_detail": {
        "valid": true,
        "errors": []
    }
}

PreviousPaymentDetails#ShowNextPaymentDetails#Deactivate

Last updated 4 months ago

The account number of the bank account. See what currencies require it.

The ACH routing number of the bank account. See what currencies require it.

The sort code of the bank account. See what currencies require it.

The IBAN of the bank account. See what currencies require it.

The swift/bic of the bank account. See what currencies require it.

The recipient's CUIT (tax number). See what currencies require it.

checking or savings. See what currencies require it.

The recipient's Relevé d'Identité Bancaire number. See what currencies require it.

Explanation of what the purpose of the transfer is. See what currencies require it.

Code describing the purpose of the payment. See what currencies require it.

The recipient's BSB number. See what currencies require it.

If the account is on the SWIFT network, put the value of this attribute toswift. Otherwise if it is SEPA/ACH or other local rails you can leave it as null. Please see to understand what is supported.

here
here
here
here
here
here
here
here
here
here
here
SWIFT Support