Autoriser la transaction

Authorizes a transaction. Transaction authorization occurs after a user completes the Affirm checkout flow and returns to the merchant site. Authorizing a transaction generates a unique id that will be used as a reference moving forward.

Requêtes récentes
Log in to see full request history
TempsStatutAgent utilisateur
Retrieving recent requests…
ChargementChargement en cours ...
Paramètres du corps

The request body used to create a transaction.

string

A comma-separated set of related objects to expand in the response. Allowed value is 'checkout'.

string
length between 1 and 128

Identifies the order within the merchant's order management system that this transaction corresponds to. It is only returned in the response if included in the request.

string
length between 9 and 16

A unique ID representing the checkout.

string
length between 1 and 128

An optional, unique identifier that may be associated with each transaction event and reconciled with the system of record used by the merchant.

string

Three-letter ISO currency code in uppercase. Accepted currencies are USD, CAD, and GBP.

integer

The total amount of the checkout in the lowest denomination of the currency.

shipping
objet
Articles
array of objects

An array of various details of the item being sold.

Articles
En-têtes
string

Unique identifier pre-generated by the client and used by the server to recognize successive calls to the same endpoint. This is required for Split Capture and encouraged for single transaction functionality. Note: If a request fails or times out, use the same idempotency key to retry the operation without risk of double-processing. For details, see the Idempotency section on About Split Capture.

string
Obligatoire

Required param to identify the country in which Affirm is used and uses an "alpha-3" three-letter country code. Supported countries are the United States (USA), Canada (CAN), and the United Kingdom (GBR).

Réponses

Langue
Informations d'identification
Basic
base64
:
URL
LoadingLoading…
Réponse
Click Try It! to start a request and see the response here! Or choose an example:
*/*