Payment Methods
Customer ID
Card ID
CVV registration information
Created
Create card CVV response
Bad Request
Unprocessable Entity
POST /customers/{id}/payment-methods/{card_id}/cvv HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"cvv_secret": "text",
"product_id": "text",
"product_type": "invoice",
"provider": "evervault"
}{
"success": true
}Customer ID
Card ID
Request body for calculating card payment fees
100.00USDPossible values: OK
Response containing calculated payment fees for card payments
2.501.500.500.252.501.50Bad Request
Not Found
POST /customers/{id}/payment-methods/{card_id}/fees HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"amount": "100.00",
"currency": "USD"
}{
"fee_percentage_for_customer": "2.50",
"fee_percentage_for_partner": "1.50",
"fixed_fee_amount_customer": "0.50",
"fixed_fee_amount_partner": "0.25",
"relative_fee_amount_customer": "2.50",
"relative_fee_amount_partner": "1.50"
}Customer ID
Payment Method ID
Created
Delete a payment method
Bad Request
Unprocessable Entity
DELETE /customers/{id}/payment-methods/{method_id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"response": "text"
}Customer ID
Payment Method ID
Created
Change default method response
Bad Request
Unprocessable Entity
PATCH /customers/{id}/payment-methods/{method_id}/default HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"response": "text"
}Customer ID
Bank account information. Only one of USAccountData or CAAccountData must be sent, matching AccountDataType.
Created
Create bank account response
Bad Request
Unprocessable Entity
POST /customers/{id}/payment-methods/bank HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 300
{
"account_data_type": "us",
"ca_account_data": {
"account_number": "text",
"institution_code": "text",
"transit_number": "text"
},
"custom_name": "text",
"institution_name": "text",
"receiver_name": "text",
"subtype": "checkings",
"type": "depository",
"us_account_data": {
"account_number": "text",
"routing_number": "text"
}
}{
"id": "text"
}Customer ID
Tokenized card information
Created
Create card response
Bad Request
Unprocessable Entity
POST /customers/{id}/payment-methods/card HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 239
{
"address": {
"city": "text",
"country": "text",
"country_code": "text",
"postal_code": "text",
"state": "text",
"state_code": "text",
"street_address": "text",
"subpremise": "text"
},
"card_provider_token": "text",
"custom_name": "text",
"provider": "evervault"
}{
"id": "text"
}Last updated
Was this helpful?
