v2
latestOpenAPI 3.1.02026-08-07168434918.5 KBOrders
Create Order
Creates an order for the specified player_id and list of items.
The response includes a checkout_url that the player should be redirected to in order to complete the purchase.
You can optionally provide:
- back_to_game_url: A universal deep link that appears as a "Back to Game" button on the checkout page. Typically, this should open the game client.
- back_to_store_url: A web URL that appears as a "Back to Store" button on the checkout page. Usually links to your store website.
post/v1/orders
Request body
Example request
{
"player_id": "r2d2-c3po",
"items": [
{
"sku": "crystal"
}
]
}Response
Successful Response
Example response
{
"order_id": "ord_XXXXXXX",
"checkout_url": "https://pay.aghanim.com/order/ord_XXXXXXX"
}