Orders
Create Order
Changed onCreates 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
- Base URLhttps://api.aghanim.com/s2s
- URLhttps://api.aghanim.com/s2s/v1/orders
- AuthHTTP bearer
Request body
Example request
{
"items": [
{
"sku": "crystal"
}
],
"player_id": "r2d2-c3po"
}Response
Successful Response
Example response
{
"amount": 999,
"checkout_url": "https://pay.aghanim.com/order/ord_XXXXXXX",
"currency": "USD",
"order_id": "ord_XXXXXXX"
}Changes
- info
added the optional property
to the response with the status
- info
- info
added the new optional request property
// - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info