Update Order
Updates the order.
Path parameters
Request body
Whether the order was handled/consumed by the client or not.
Response
Successful Response
The unique ID of the order.
The number of the payment in receipt
The amount of the order.
The amount of the order before discount.
The unique identifier for the player making the purchase.
The player's email address.
Order creation date in Unix epoch time.
Order payment date in Unix epoch time.
The metadata object structured as key-value pairs to store additional information about the order.
Order expiration date in Unix epoch time (seconds). Orders cannot be paid after this date.
The URL to redirect the player to complete the purchase.
Whether coupons are enabled for the order.
Whether the player is allowed to save a payment method (card, wallet) for future purchases on this order. Enabled by default.
The applied reward points for the order that allowed you to receive a discount.
The number of reward points the player is eligible to receive for this order.
The number of loyalty points the player is eligible to receive for this order.
Example response
{
"checkout_url": "https://pay.aghanim.com/order/ord_XXXXXXX",
"created_at": 1690000000,
"id": "ord_XXXXXXX",
"items": [
{
"sku": "crystal"
}
],
"metadata": {
"key": "value"
},
"paid_at": 1690000100,
"player_id": "r2d2-c3po",
"status": "paid"
}