Transactions API
Update Transaction
Changed onUpdates a transaction by specifying the values of the parameters passed. Any parameters that you don't provide won't change.
post/transactions/{transaction_id}
Request
- Base URLhttps://sandbox.affirm.com/api/v1
- URLhttps://sandbox.affirm.com/api/v1/transactions/{transaction_id}
- AuthHTTP basic
Path parameters
transaction_idstring required
Example:ABCD-1234
A unique ID representing the transaction’s loan or charge ID.
Request body
Example request
{
"order_id": "order_125",
"reference_id": "202307011027",
"shipping_carrier": "USPS",
"shipping_confirmation": "C12345678901234",
"shipping": {
"address": {
"street1": "123 Example Street",
"street2": "Apt 123",
"city": "Vancouver",
"region1_code": "BC",
"postal_code": "V7X 3S9",
"country_code": "CA"
},
"email": "test@example.com",
"phone_number": "1234567890"
}
}Response
HTTP 200 OK
Example response
{
"id": "ABCD-1234",
"type": "update",
"created": "2019-01-01T00:00:00.000Z",
"order_id": "order_125"
}Changes
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning