0Bit Documentation
POST
/v1/checkouts

[Illustrative scaffold - not the live 0Bit API contract. See the 0Pools / 0Gate references.] Creates a hosted checkout for accepting a crypto payment and settling to fiat or stablecoins (0Base).

Authorization

bearerAuth
AuthorizationBearer <token>

Use your secret key, e.g. sk_live_xxx.

In: header

Header Parameters

Idempotency-Key*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/checkouts" \  -H "Idempotency-Key: chk_001" \  -H "Content-Type: application/json" \  -d '{    "amount": "49.99",    "currency": "USD"  }'
{  "id": "chk_9a21",  "status": "pending",  "pay_url": "https://pay.0bit.app/chk_9a21",  "expires_at": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "unauthorized",    "message": "Invalid API key."  }}