Checkout
Returns address suggestions for the checkout address form
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
Bad Request
Unauthorized
Internal Server Error
POST /checkout/address/autocomplete HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"country": "text",
"q": "text",
"sessiontoken": "text"
}{
"data": [
{
"description": "text",
"place_id": "text",
"structured_formatting": {
"main_text": "text",
"secondary_text": "text"
}
}
]
}Returns full address details for a place selected in the checkout address form
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
Bad Request
Unauthorized
Internal Server Error
POST /checkout/address/details HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"id": "text",
"sessiontoken": "text"
}{
"data": {
"result": {
"address_components": [
{
"long_name": "text",
"short_name": "text",
"types": [
"text"
]
}
],
"name": "text"
}
}
}Returns the credentials required to initialize the secure card form in checkout
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
Bad Request
Unauthorized
Internal Server Error
GET /checkout/card-form/credentials HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"app_id": "text",
"team_id": "text"
}Retrieves the invoice associated with the checkout token
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
Invoice response
Bad Request
Not Found
GET /checkout/invoice HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"created_at": "text",
"currency": "text",
"customer_id": "text",
"due_date": "text",
"id": "text",
"invoice_number": "text",
"status": "text",
"sub_total": 1,
"total": 1
}Retrieves the PDF download link for the invoice associated with the checkout token
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
PDF link response
Bad Request
Not Found
GET /checkout/invoice/pdf-link HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"url": "text"
}Retrieves all payment methods for the customer associated with the checkout token
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
List of payment methods response
Bad Request
GET /checkout/payment-methods HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"brand": "visa",
"created_at": "text",
"default": true,
"exp_month": "01",
"exp_year": "2025",
"id": "text",
"last4": "text",
"type": "card"
}
]
}Register an encrypted CVV token for a specific card. Uses customer_id and invoice_id from checkout token.
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
Card ID
CVV registration information
Created
Create card CVV response
Bad Request
Unprocessable Entity
POST /checkout/payment-methods/{card_id}/cvv HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"cvv_secret": "text",
"provider": "evervault"
}{
"success": true
}Calculate payment fees for a specific card payment method using checkout token
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
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 /checkout/payment-methods/{card_id}/fees HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
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"
}Creates a new bank account payment method for the customer associated with the checkout token. Only one of USAccountData or CAAccountData must be sent, matching AccountDataType.
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
Create bank account payment method request body. Only one of USAccountData or CAAccountData must be sent, matching AccountDataType.
OK
Create bank account response
Bad Request
Unprocessable Entity
POST /checkout/payment-methods/bank HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
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"
}Creates a new card payment method for the customer associated with the checkout token
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
Create card payment method request body
OK
Create card response
Bad Request
Unprocessable Entity
POST /checkout/payment-methods/card HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
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"
}Returns the pass-through card fees that apply to the checkout customer for the given card networks
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
123e4567-e89b-12d3-a456-426614174000Bad Request
Unauthorized
Internal Server Error
POST /checkout/payment-methods/pass-through-fees HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"method_networks": [
"VISA",
"MASTERCARD"
]
}{
"items": [
{
"amount": "0.50",
"customer_id": "123e4567-e89b-12d3-a456-426614174000",
"fixed_fee_forwarded": true,
"method_network": "VISA"
}
],
"partner_id": "123e4567-e89b-12d3-a456-426614174000"
}Creates a payment for the invoice associated with the checkout token. Customer ID and invoice ID are extracted from the token.
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
Used when idempotency_key is not set in the body. Non-UUID values are hashed to a UUID.
Create payment request body
100.0000000000-0000-0000-0000-0000000000002025-01-01T00:00:000Z00000000-0000-0000-0000-000000000000Created
Create payment response
Payment is being processed!processingBad Request
Unprocessable Entity
POST /checkout/payments HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 198
{
"amount": "100.00",
"idempotency_key": "00000000-0000-0000-0000-000000000000",
"payment_date": "2025-01-01T00:00:000Z",
"payment_method": "card",
"payment_method_id": "00000000-0000-0000-0000-000000000000"
}{
"message": "Payment is being processed!",
"status": "processing"
}Returns the partner's theme customization used to style checkout
Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.
OK
Bad Request
Unauthorized
Not Found
GET /checkout/preferences/theme HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
"partner_name": "text",
"theme": {
"color": "text",
"logo_url": "text"
}
}Last updated
Was this helpful?
