MelonsRun
Api referenceControl

Create a signed sandbox payment order for self-serve smoke

POST
/v2/control/payments/sandbox

Authorization

sessionBearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/control/payments/sandbox" \  -H "Content-Type: application/json" \  -d '{    "amount": "string"  }'
{  "order_id": "string",  "provider": "sandbox",  "status": "pending",  "amount": "string",  "currency": "USD",  "operation_id": "string",  "expires_at": "2019-08-24T14:15:22Z",  "callback": {    "url": "string",    "signature_header": "X-Sandbox-Payment-Signature",    "payload": {      "order_id": "string",      "account_id": "string",      "amount": "string",      "currency": "USD",      "status": "paid",      "provider_event_id": "string"    },    "signature": "string"  }}