Error codes
The Partner API's own error codes, on top of the API's common ones.
Errors use the API's common envelope (see
Responses and errors):
{"error": {"code", "message", "details": [{"field", "code", "message"}]}}.
These codes are the Partner API's own.
| Code | Status | When |
|---|---|---|
PARTNER_NOT_ENABLED | 403 | The workspace's plan does not include the partner feature (details: {"field": "feature", "code": "partner"}). |
FORBIDDEN | 403 | The key lacks the operation's scope (partner.read, partner.manage or partner.send). |
INSUFFICIENT_CREDITS | 402 | A send or a negative adjustment needs more than the available credits (details: the available amount). |
MESSAGE_BALANCE_EXHAUSTED | 402 | A send from a number connected through Messora's Meta app while your workspace's message balance is used up. Top it up under Billing; the customer's credits are not touched. |
CREDIT_EXPIRY_REQUIRED | 422 | A grant or positive adjustment without a future expires_at (at most ten years ahead). |
PARTNER_CUSTOMER_SUSPENDED | 409 | A send for a suspended customer. |
RECIPIENT_OPTED_OUT | 422 | A send to a recipient that opted out of every customer or of this one. |
CONTACT_UNDELIVERABLE | 422 | Meta could not deliver to this number before (error 131026): nothing is sent until the recipient writes to you. |
CONTACT_OPTED_OUT | 422 | The recipient opted out with your workspace itself, e.g. a stop word before any of your customers messaged them, or a change in the panel. |
MARKETING_STOPPED | 422 | A marketing template to a recipient who chose "Stop" for your business in WhatsApp. |
PARTNER_DAILY_LIMIT | 429 | A send over the customer's daily limit (details: daily_limit, resets_at; Retry-After header). |
IDEMPOTENCY_KEY_REUSED | 409 | An Idempotency-Key used before for a different send or grant. |
PARTNER_RESERVATION_SETTLED | 409 | A reservation settled a second time (internal; you do not see it from sends). |
VALIDATION_ERROR | 422 | Invalid input, e.g. a template that is not approved, a missing variable, an unsupported template kind, a usage range longer than 366 days. |
NOT_FOUND | 404 | An unknown customer, send or opt-out (also another provider's: providers never see each other's data). |
Retry 429 after Retry-After; never retry 402, 409 or 422
unchanged. A send retried with the same Idempotency-Key after a timeout
is always safe.
Usage reports
Messages, credits and Meta's estimated cost per sub-customer and per period, as JSON or CSV.
List sub-customers GET
The provider's sub-customers, newest first, paged with cursor. q matches the external id, the name or the display name. Needs the provider feature (403 PARTNER_NOT_ENABLED otherwise). Scope: one of partner.manage, partner.read. Rate limit: 300 requests per minute per API key.