For card/coupon errors, in addition to error codes, error messages indicating the reasons for errors are returned.
The common card/coupon error codes and descriptions are as follows:
Error Code | Description |
---|---|
-1 | System is busy. Try again later. |
0 | Request successful |
40009 | The image size exceeds the limit. |
40013 | Invalid AppID. Check whether AppID is correct. Avoid unsupported characters and ensure case sensitivity. |
40053 | Invalid actioninfo. Verify whether the parameter is correct. |
40071 | Invalid card/coupon type. |
40072 | Invalid encoding method. |
40078 | Invalid card/coupon status. |
40079 | Invalid time. |
40080 | Invalid CardExt. |
40099 | Coupon has been redeemed. |
40100 | Invalid time period. |
40116 | Invalid code. |
40122 | Invalid inventory balance. |
40124 | Number of custom_fields exceeds the limit for member card. |
40127 | Card/Coupon has been deleted or gifted. |
41012 | Parameter cardid is missing. |
45030 | The cardid has no API permission. |
45031 | Inventory is 0. |
45033 | Number of times the user receives the card/coupon exceeds the limit (get_limit). |
41011 | Required parameter is missing. |
45021 | Field length exceeds the limit. See the field description. |
40056 | Invalid code. |
43009 | No SN customization permission. Go to the Official Accounts Platform to apply for the permission. |
43010 | No top-up permission. Go to the Official Accounts Platform to apply for the permission. |
For the list of error codes, see Common Error Codes.
For any questions, contact us by emailing to weixin_card@foxmail.com, or join the Developer QQ Group (205482166). Provide the merchant name and service category when requesting to join the group.