Authentication
Create payment (POST /checkout/create/) and Get payment by id (GET /transactions/<id>/) require authentication. Use your organization API key.
API key
Create and rotate your organization API key in the dashboard: Organization → API & Webhooks.
Send the key in the request header:
Authorization: Api-Key <your_api_key>
or:
Api-Key: <your_api_key>
Scopes
The API key must have the checkout:create scope to call POST /checkout/create/. Default keys created from the dashboard include this scope.
Example
curl -X POST "https://api.sandbox.nd8.com/api/checkout/create/" \
-H "Authorization: Api-Key YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"billing_country": "US",
"billing_postal_code": "10001",
"billing_first_name": "Jane",
"billing_last_name": "Doe",
"billing_email": "jane@example.com",
"currency": "USD",
"products": [{"id": "prod_xxx", "quantity": 1}]
}'