PUT
/
TokenStorage
/
{methodId}
curl --request PUT \
  --url https://api-sandbox.payabli.com/api/TokenStorage/{methodId} \
  --header 'Content-Type: application/json' \
  --header 'requestToken: <api-key>' \
  --data '{
  "paymentMethod": {
    "method": "card",
    "cardnumber": "4111111111111111",
    "cardexp": "02/25",
    "cardcvv": "123",
    "cardzip": "12345",
    "cardHolder": "John Doe"
  },
  "customerData": {
    "customerId": 4440
  },
  "entryPoint": "f743aed24a",
  "fallbackAuth": true
}'
{
  "responseText": "Success",
  "isSuccess": true,
  "responseData": {
    "referenceId": "1b502b79-e319-4159-8c29-a9f8d9f105c8-1323",
    "resultCode": 1,
    "resultText": "Updated"
  }
}

Authorizations

requestToken
string
header
required

Most endpoints require an organization token. Some endpoints require an application token, and those endpoints are noted.

Path Parameters

methodId
string
required

The saved payment method ID.

Query Parameters

achValidation
boolean
default:false

When true, enables real-time validation of ACH account and routing numbers. This is an add-on feature, contact Payabli for more information.

Example:

"true"

Body

Response

200
application/json

Success

Response body for payment method deletion.