PaymentDetails#Validate

Validate a Payment Detail

This endpoint can determine whether the provided payment detail will pass Pay.so 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

Request Body

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

Last updated