Cancel pending payment
Step 2B: Cancels a pending purchase that was previously registered. IMPORTANT: Always expects HTTP 200 OK response with inline error codes in the body.
HMAC signature generated by signing the request body with the Egress API key from Stash Studio. Used for secure server-to-server communication between game backends and Stash services.
In: header
Request to cancel a pending purchase that was previously registered.
The user canceling the purchase
Transaction identifier to cancel
Optional checkout link identifier if purchase was made through a checkout link
List of items in this canceled purchase
Response Body
curl -X POST "https://loading/api/v1/purchase/cancel" \ -H "Content-Type: application/json" \ -d '{ "playerId": "string", "transactionId": "string", "items": [ { "guid": "string", "productId": "string", "quantity": 0, "cents": 0 } ] }'{
"status": "PURCHASE_CANCELLATION_STATUS_UNSPECIFIED",
"message": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?
Get player by ID GET
Retrieves an existing player by ID. Returns player information including profile data and in-game currency balance.
Confirm payment completion POST
Step 2A: Confirms and completes a pending purchase that was previously registered. IMPORTANT: Expects HTTP error status (3xx, 4xx, 5xx) codes for failed purchases.