Getting Started
1. Credentials
Each dealer tenant receives Open API credentials:
| Field | Header / usage |
|---|---|
| AppKey | RT-AccessCode |
| AppSecret | HMAC signing key (shown once at creation) |
Configure optionally in the admin console: callback URL, IP allowlist, QPS limits.
2. Conventions
- Base URL: provided by the platform, e.g.
https://api.example.com - Protocol: HTTPS +
POST+Content-Type: application/json - Path prefix:
/open-api/v1 - Identity: AppKey maps to dealer tenant — no
shopId - Payment: orders debit the dealer BALANCE wallet
3. First health check
http
POST /open-api/v1/health
Content-Type: application/json
RT-AccessCode: {AppKey}
RT-RequestID: {UUID}
RT-Timestamp: {millis timestamp}
X-Signature: {signature}
{}See Health Check for response fields.
4. Recommended integration order
health— verify signing & connectivityaccount/balance— check wallet balancepackage/list— list sellable packagesesim/order— create order (transactionIdis idempotent)esim/query— query order statusesim/profile/list— list allocated profileswebhook/set— receiveORDER_PAID/DELIVERY_UPDATED
5. Apifox import
- Import
openapi.yaml - Environment:
OPENAPI_APP_KEY,OPENAPI_APP_SECRET,OPENAPI_BASE_URL - Download Apifox pre-request script and paste into project pre-request hook
See Authentication.