{ "opencollection": "1.0.0", "info": { "name": "Aghanim Server-to-Server Achievements Orders API", "version": "2026.07.14" }, "items": [ { "info": { "name": "Orders", "type": "folder" }, "items": [ { "info": { "name": "Get Order", "type": "http" }, "http": { "method": "GET", "url": "https://api.aghanim.com/s2s/v1/orders/:order_id", "params": [ { "name": "order_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns the order with the latest status." }, { "info": { "name": "Update Order", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.aghanim.com/s2s/v1/orders/:order_id", "params": [ { "name": "order_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates the order." }, { "info": { "name": "Create Order", "type": "http" }, "http": { "method": "POST", "url": "https://api.aghanim.com/s2s/v1/orders", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates an order for the specified `player_id` and list of `items`.\n\nThe response includes a `checkout_url` that the player should be\nredirected to in order to complete the purchase.\n\nYou can optionally provide:\n- `back_to_game_url`: A universal deep link that appears as a \"Back to Game\"\n button on the checkout page. Typically, this should open the game client.\n- `back_to_store_url`: A web URL that appears as a \"Back to Store\"\n button on the checkout page. Usually links to your store website." }, { "info": { "name": "Expire Order", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.aghanim.com/s2s/v1/orders/:order_id/expire", "params": [ { "name": "order_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Expires the order.\n\nThe expiration timestamp is set to the current time, which makes the order\nimpossible to pay.\n\nOnly orders with status `created` or `reattempted` can be expired.\nAttempting to expire an order in any other status will result in an error." }, { "info": { "name": "Refund Order", "type": "http" }, "http": { "method": "POST", "url": "https://api.aghanim.com/s2s/v1/orders/:order_id/refund", "params": [ { "name": "order_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Refund Order" } ] } ], "bundled": true }