API Reference
Choose the correct DEUNA API operation, authorization model, and caller for each integration flow.
On this page
The DEUNA API reference covers the merchant-backend and customer-application operations published in the previous documentation. Start with the caller—not only the resource name—because the supported authorization model changes by surface. Other API Gateway routes are intentionally excluded from this reference.
Use the API Reference navigation to browse the published operations by product area and resource.
Base URLs#
Use the sandbox base URL while you build. Switch to production only after receiving production credentials and completing certification.
Choose the API surface#
| Surface | Intended caller | Authorization | Use it for |
|---|---|---|---|
| Merchant backend · server to server | Trusted merchant infrastructure | Private API key in X-Api-Key; X-Store-Code and idempotency headers where required | Orders, purchases, captures, refunds, voids and operational reads |
| Customer application · user to server | Merchant Web or mobile application acting for a customer | Public application context plus user Authorization: Bearer … after login; never embed a private key | Optional login, reusable profiles and addresses, and stored cards |
Authentication#
Merchant backend
Send the private API key in X-Api-Key, not in the Bearer header. Keep it on trusted server infrastructure.
X-Api-Key: YOUR_PRIVATE_API_KEY
X-Store-Code: STORE_CODE
X-Idempotency-Key: order_1042-attempt_1
Content-Type: application/jsonAuthenticated customer
Send the user access token in the Bearer header. Some order and wallet operations also require the merchant application key or store context; each operation page lists its authorization and forwarded headers.
Authorization: Bearer USER_ACCESS_TOKEN
X-Api-Key: APPLICATION_API_KEY
X-Store-Code: STORE_CODE
Content-Type: application/jsonSee Authentication for credential handling, token lifetimes and rotation.
Merchant backend operations#
Customer application operations#
Responses and errors#
Browse the complete list in Error codes.
Path versioning#
Use each path exactly as published. API Gateway frequently exposes canonical routes without an internal /api/v1 prefix. A version segment such as /v2 is included only when it is part of the public route shown in the catalog. Backwards-compatible changes are listed in the Changelog.