Files
Download
Collection
All v1 endpoints + request signer
Sandbox environment
openapi-sandbox.allscale.io
Production environment
openapi.allscale.io
Import (Postman desktop or web)
- File → Import → drop all three JSON files in at once.
- Top-right environment dropdown → pick AllScale OpenAPI — Sandbox.
- Open the environment, paste your
api_keyandapi_secret, save.api_secretis stored with Postman’ssecrettype and is masked.- Both values are shown once in the merchant dashboard — keep them safe.
base_url and checkout_intent_id are already wired up; you should not need
to edit them.
Suggested run order
- Test / GET
/v1/test/ping— confirms keys + clock + signing. - Test / POST
/v1/test/post— confirms body hashing. - Checkout Intent / Create — fiat or Create — native stable-coin
— creates an intent and auto-saves
checkout_intent_idinto the environment.- Fiat: send
currency(IntEnum). Server FX-converts to the resolved settlement coin (USDT or USDC); useaccepted_stable_coinsto pick which (first entry wins; defaults to USDT when omitted). - Native stable-coin: send
stable_coin—1(USDT) or2(USDC) are both accepted.amount_centsis stable-coin cents, no FX, andcurrency_ratewill benull. - Send exactly one — both or neither returns
10001.
- Fiat: send
- Checkout Intent / GET
/v1/checkout_intents/{id}/status— polls the lifecycle state. - Checkout Intent / GET
/v1/checkout_intents/{id}— full detail.- For a native-stable-coin intent, the fiat fields (
currency,currency_symbol,amount_cents,currency_rate) will benull; the authoritative amount lives inamount_coins.
- For a native-stable-coin intent, the fiat fields (
How signing works (for the curious)
A pre-request script lives at the collection root, so it runs before every request without per-request setup. For each call it:- Reads
api_key/api_secretfrom the active environment. - Builds the canonical string
METHOD\nPATH\nQUERY\nTIMESTAMP\nNONCE\nBODY_SHA256(body hash =sha256_hex(raw_body_bytes); empty body hashes the empty string). - Signs it with HMAC-SHA256, base64-encoded.
- Upserts the required headers:
X-API-Key,X-Timestamp,X-Nonce,X-Signature: v1=<sig>.
console.log lines at the bottom of the
pre-request script to dump the canonical string and produced signature to
the Postman console.
Troubleshooting
Updating the package
When endpoints change, editAllScale_OpenAPI.postman_collection.json in this repo, then re-export the
matching .json from Postman — or just keep editing JSON directly. Try to
keep the canonical-string script in sync with
thirdparty_api/auth/__init__.py::_canonical_request; they must produce
byte-identical canonical strings.