Create new order events
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
The ID of the order to which the event is related
"77f60af4-185e-4867-b113-34e3cf7c6acd"
Type of order event
CAPTURED, REFUNDED "CAPTURED"
Total event amount ($2,699.99 + $50.00)
274999
Card network transaction identifier
"615e3ba0-6b99-495b-ade4-1f584c40f376"
The ID of the order event
"77f60af4-185e-4867-b113-34e3cf7c6acd"
Partner's event identifier
"7622c07d-eb2b-4345-a9a9-345d61d32bc2"
Total rewards amount for the event ($25 + $0)
2500
The 3-character currency code of the amount in ISO 4217 format (e.g., "USD")
"USD"
When provided, the API will require that the calculated sum of all the rates and rewards rates within (taking quantities into account) are equal to the amount and rewards_amount, respectively.
It is important to note that the sums of all event amounts and event rewards amounts belonging to an order do not need to be equal to total_order_amount and total_rewards_amount in the order, as the data contained in events will serve as the final source of truth for the lifecycle of the order, as it actually transpired.
[
{
"name": "Couch Supreme",
"product_url": "www.restassured.com/couch-supreme",
"quantity": 1,
"rate": 274999,
"rewards_rate": 2500
}
]
Order event created successfully
The ID of the order to which the event is related
"77f60af4-185e-4867-b113-34e3cf7c6acd"
Type of order event
CAPTURED, REFUNDED "CAPTURED"
Total event amount ($2,699.99 + $50.00)
274999
Card network transaction identifier
"615e3ba0-6b99-495b-ade4-1f584c40f376"
The ID of the order event
"77f60af4-185e-4867-b113-34e3cf7c6acd"
Partner's event identifier
"7622c07d-eb2b-4345-a9a9-345d61d32bc2"
Total rewards amount for the event ($25 + $0)
2500
The 3-character currency code of the amount in ISO 4217 format (e.g., "USD")
"USD"
When provided, the API will require that the calculated sum of all the rates and rewards rates within (taking quantities into account) are equal to the amount and rewards_amount, respectively.
It is important to note that the sums of all event amounts and event rewards amounts belonging to an order do not need to be equal to total_order_amount and total_rewards_amount in the order, as the data contained in events will serve as the final source of truth for the lifecycle of the order, as it actually transpired.
[
{
"name": "Couch Supreme",
"product_url": "www.restassured.com/couch-supreme",
"quantity": 1,
"rate": 274999,
"rewards_rate": 2500
}
]