StableOps
API reference

Create portal invoice checkout session

POST/v1/merchant/portal/invoices/{id}/checkout-session

Path Parameters

id*unknown

Merchant invoice id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/merchant/portal/invoices/{id}/checkout-session" \  -H "Content-Type: application/json" \  -d '{    "accepted_assets": [      {        "chain": "ethereum",        "asset": "USDC"      }    ]  }'
{
  "checkout_session_id": "string",
  "client_secret": "string",
  "payment_order": {
    "id": "string",
    "merchant_order_id": "string",
    "amount": "string",
    "requested_amount": "string",
    "status": "created",
    "expires_at": "2019-08-24T14:15:22Z",
    "payment_instructions": [
      {
        "chain": "ethereum",
        "asset": "USDC",
        "address": "string"
      }
    ]
  }
}

How is this guide?

Last updated