Error simulation — ResultCode codes
Use a special MerchantOrderID in CreateInvoice or CreateCustomerContract to get the desired ResultCode:
Sandbox
| MerchantOrderID contains | ResultCode | Name |
|---|---|---|
ERR_201 | 201 | Business_InvalidMSISDN |
ERR_202 | 202 | Business_InvalidClientIP |
ERR_203 | 203 | Business_CustomerNotSupported |
ERR_204 | 204 | Business_CustomerInBlackList |
ERR_207 | 207 | Business_InvoiceNotFound |
ERR_208 | 208 | Business_InvoiceIsClosed |
ERR_210 | 210 | Business_InvoiceWaitContent |
ERR_220 | 220 | Business_InvoiceNotAuthorized |
ERR_223 | 223 | Business_InvoiceAlreadyExpired |
ERR_232 | 232 | Business_CustomerContractNotFound |
ERR_243 | 243 | Business_CustomerContractAlreadyExpired |
ERR_500 | 500 | Fatal_UnexpectedException |
ERR_RANDOM | random | random |
Trigger example (XML)
<MerchantOrderID>test-ERR_207-invoice</MerchantOrderID>
<!-- Mock response -->
<Response>
<ResultCode>207</ResultCode>
<ResultDescription>Business_InvoiceNotFound</ResultDescription>
</Response>Trigger example (JSON)
// In the request body
"order": { "merchant_order_id": "test-ERR_207-invoice", ... }
// Mock response
{
"success": false,
"error": {
"code": "INVOICE_NOT_FOUND",
"message": "Invoice not found"
}
}