Transactions
Simulate Transaction Flow in Sandbox
This API will allow you to simulate through different transaction statuses in sandbox environment
Authorization
bearerAuth AuthorizationBearer <token>
Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.
In: header
Path Parameters
transactionId*string
Transaction Id that you received on fetching transaction details using payment requestId
Request Body
application/json
status*string
New status that will be applied to the transaction
Value in
- "SCHEDULING"
- "SCHEDULED"
- "APPLIED"
- "FAILED"
- "CANCELLED"
- "RETURNED"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/sandbox/transactions/3a42d08e-9cce-498f-8043-7f4213cfb70b/simulate" \ -H "Content-Type: application/json" \ -d '{ "status": "APPLIED" }'Simulate Transactions example
{ "status": { "code": 200, "desc": "success" }, "data": { "transactionId": "569ef7b0-8088-4836-80f8-583a5c3e3787", "status": "SCHEDULED" }}
