For the complete documentation index, see llms.txt. This page is also available as Markdown.

Checkout

Address autocomplete (checkout)

post

Returns address suggestions for the checkout address form

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Body
countrystringOptional
qstringOptional
sessiontokenstringOptional
Responses
200

OK

application/json
post/checkout/address/autocomplete
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"
      }
    }
  ]
}

Get address details (checkout)

post

Returns full address details for a place selected in the checkout address form

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Body
idstringOptional
sessiontokenstringOptional
Responses
200

OK

application/json
post/checkout/address/details
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"
    }
  }
}

Get card form credentials (checkout)

get

Returns the credentials required to initialize the secure card form in checkout

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Responses
200

OK

application/json
app_idstringOptional
team_idstringOptional
get/checkout/card-form/credentials
GET /checkout/card-form/credentials HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "app_id": "text",
  "team_id": "text"
}

Get invoice from checkout token

get

Retrieves the invoice associated with the checkout token

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Responses
200

OK

application/json

Invoice response

created_atstringOptional
currencystringOptional
customer_idstringOptional
due_datestringOptional
idstringOptional
invoice_numberstringOptional
statusstringOptional
sub_totalnumberOptional
totalnumberOptional
get/checkout/invoice
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
}
get

Retrieves the PDF download link for the invoice associated with the checkout token

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Responses
200

OK

application/json

PDF link response

urlstringOptional
get/checkout/invoice/pdf-link
GET /checkout/invoice/pdf-link HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "url": "text"
}

Get payment methods from checkout token

get

Retrieves all payment methods for the customer associated with the checkout token

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Responses
200

OK

application/json

List of payment methods response

get/checkout/payment-methods
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 CVV for a card payment from checkout token

post

Register an encrypted CVV token for a specific card. Uses customer_id and invoice_id from checkout token.

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Path parameters
card_idstringRequired

Card ID

Body

CVV registration information

cvv_secretstringOptional
providerstring · enumOptionalPossible values:
Responses
201

Created

application/json

Create card CVV response

successbooleanOptional
post/checkout/payment-methods/{card_id}/cvv
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 card payment fees

post

Calculate payment fees for a specific card payment method using checkout token

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Path parameters
card_idstringRequired

Card ID

Body

Request body for calculating card payment fees

amountstringOptionalExample: 100.00
currencystring · enumOptionalExample: USDPossible values:
Responses
200

OK

application/json

Response containing calculated payment fees for card payments

fee_percentage_for_customerstringOptionalExample: 2.50
fee_percentage_for_partnerstringOptionalExample: 1.50
fixed_fee_amount_customerstringOptionalExample: 0.50
fixed_fee_amount_partnerstringOptionalExample: 0.25
relative_fee_amount_customerstringOptionalExample: 2.50
relative_fee_amount_partnerstringOptionalExample: 1.50
post/checkout/payment-methods/{card_id}/fees
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"
}

Create a bank account payment method from checkout token

post

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.

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Body

Create bank account payment method request body. Only one of USAccountData or CAAccountData must be sent, matching AccountDataType.

account_data_typestring · enumOptionalPossible values:
custom_namestringOptional
institution_namestringOptional
receiver_namestringOptional
subtypestring · enumOptionalPossible values:
typestring · enumOptionalPossible values:
Responses
200

OK

application/json

Create bank account response

idstringOptional
post/checkout/payment-methods/bank
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"
}

Create a card payment method from checkout token

post

Creates a new card payment method for the customer associated with the checkout token

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Body

Create card payment method request body

card_provider_tokenstringOptional
custom_namestringOptional
providerstring · enumOptionalPossible values:
Responses
200

OK

application/json

Create card response

idstringOptional
post/checkout/payment-methods/card
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"
}

Get pass-through fees (checkout)

post

Returns the pass-through card fees that apply to the checkout customer for the given card networks

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Body
Responses
200

OK

application/json
partner_idstringOptionalExample: 123e4567-e89b-12d3-a456-426614174000
post/checkout/payment-methods/pass-through-fees
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"
}

Create a payment from checkout token

post

Creates a payment for the invoice associated with the checkout token. Customer ID and invoice ID are extracted from the token.

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Header parameters
Idempotency-KeystringOptional

Used when idempotency_key is not set in the body. Non-UUID values are hashed to a UUID.

Body

Create payment request body

amountstringOptionalExample: 100.00
idempotency_keystring · uuidOptionalExample: 00000000-0000-0000-0000-000000000000
payment_datestringOptionalExample: 2025-01-01T00:00:000Z
payment_methodstring · enumOptionalPossible values:
payment_method_idstringOptionalExample: 00000000-0000-0000-0000-000000000000
Responses
201

Created

application/json

Create payment response

messagestringOptionalExample: Payment is being processed!
statusstringOptionalExample: processing
post/checkout/payments
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"
}

Get partner theme preferences (checkout)

get

Returns the partner's theme customization used to style checkout

Authorizations
AuthorizationstringRequired

Bearer token authentication for checkout endpoints. Pass the token as "Bearer {token}" in the Authorization header.

Responses
200

OK

application/json
partner_namestringOptional
get/checkout/preferences/theme
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?