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.
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
Changed in 7 of the 28 revisions of this API.121
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
the request property
//became nullablerequest-property-became-nullable
- ○
the request property
//became optionalrequest-property-became-optional
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
- ○
added the new optional request property
//new-optional-request-property
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
- ●
the
request property's maxLength was set to32request-property-max-length-set
- ○
request property
list-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional request property
new-optional-request-property
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new optional request property
new-optional-request-property
- ○