{
"id": "req_01jexample",
"object": "api_request",
"operation": "copy.ad_copy",
"status": "failed",
"credits": 2,
"net_credits": 0,
"partial_refund_credits": 0,
"credits_charged": true,
"credits_refunded": true,
"refund_pending": false,
"status_code": 502,
"error_code": "provider_unavailable",
"created_at": "2026-09-05T00:00:00.000Z",
"updated_at": "2026-09-05T00:00:05.000Z",
"result": {
"type": "https://www.lahjty.com/problems/provider-unavailable",
"title": "Request failed",
"status": 502,
"code": "provider_unavailable",
"detail": "The generation could not complete. Retry with the same key.",
"request_id": "req_01jexample"
}
}
Reconciliation fields
Persist request_id from every success and problem response.
Use external_id for your campaign and external_customer_id for the merchant.
credits_used counts gross successful generation credits in the latest 50 attempts. It is not a net ledger total and excludes later template-outcome refunds. Inspect credits_charged, credits_refunded and refund_pending per attempt, and the template outcome refund status separately.