Card/Coupon

Use this endpoint to send users gifts

API Error Codes

Our API returns specific error codes to indicate the nature of errors encountered during API requests. Each error code is accompanied by a detailed message to help diagnose and resolve issues. Below is a list of known error codes, their meanings, and recommended actions.

Error Response Structure

When an error occurs, the API returns a JSON response with the following structure:

{
    "status": {
        "timestamp": 1717595028825,
        "errorCode": 5250,
        "errorMessage": "Campaign not found"
    }
}
  • timestamp: The time at which the error occurred (in milliseconds since epoch).

  • errorCode: A unique code representing the specific error.

  • errorMessage: A descriptive message explaining the error.

Known Error Codes

Error CodeError TitleError Message

5250

CAMPAIGN_NOT_FOUND

Campaign not found

5255

CAMPAIGN_LIMITED_QUANTITY_OUT_OF_STOCK

Campaign out of stock

5257

CAMPAIGN_USER_INSTANCE_RECEIVE_LIMIT_REACHED

One of the users have reached the allowed limit for receiving instances of the campaign.

Last updated