Skip to main content

 

Affirm Merchant Help

Affirm Exchange Authorization Request


curl https://sandbox.affirm.com/api/v1/transactions
     -X POST
     -u "<public_api_key>:<private_api_key>"
     -H "Content-Type: application/json"
     -d '{"transaction_id": "<checkout_token>","order_id": "JKLM4321"}'
Options
  • Type: POST
  • Authorization: Basic
  • Content type: application/JSON
  • Data: JSON string
Data
transaction_id

required string.

Unique token used for authorization. Received to the user_confirmation_url

order_id

optional string.

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