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

Checkout Auth

Generate a token for checkout flow

post

Generate a token for checkout flow

Required scopes
This endpoint requires the following scopes:
  • : Create checkout tokens
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Body
customer_idstringRequired
invoice_idstringRequired
Responses
201

Created

application/json
expires_atintegerOptional
tokenstringOptional
post/checkout-auth/init
POST /checkout-auth/init HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "customer_id": "text",
  "invoice_id": "text"
}
{
  "expires_at": 1,
  "token": "text"
}

Last updated

Was this helpful?