GET
/
coupon
/
{id}
curl --request GET \
  --url https://api.getjusto.com/api/v2/coupon/{id} \
  --header 'Authorization: Bearer <token>'
{
  "status": "<string>",
  "data": {
    "_id": "<string>",
    "websiteId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "type": [
      "percentage"
    ],
    "percentageOff": 123,
    "totalRedemptions": 123,
    "active": true,
    "externalId": "ID_EXTERNO",
    "onlyForProductsWithoutDiscount": true,
    "requirePhoneVerification": true,
    "dontApplyDiscountToOptions": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z",
    "isHidden": true,
    "useProductExternalIdAsReference": true,
    "allowedEmails": [
      "<string>"
    ],
    "discountAmount": "<string>",
    "endDate": "2023-11-07T05:31:56Z",
    "fromDate": "2023-11-07T05:31:56Z",
    "maxPercentageOffDiscount": 123,
    "maxRedemptions": 123,
    "maxRedemptionsPerUser": 123,
    "maxRedemptionsPerUserPerDay": 123,
    "maximumOrderPrice": 123,
    "minimumOrderPrice": 123,
    "isBirthdayCoupon": true,
    "onlyRedeemOnBirthday": true,
    "onlyForCertainCreditCard": true,
    "onlyForNewUsers": "<string>",
    "requireChannels": [
      "<string>"
    ],
    "requiredBINs": [
      "<string>"
    ],
    "requiresMenusIds": [
      "<string>"
    ],
    "requiresPaymentTypes": [
      "<string>"
    ],
    "requiresStoresIds": [
      "<string>"
    ],
    "schedule": {
      "closedUntilDate": [
        "2023-11-07T05:31:56Z"
      ],
      "closedDays": [
        "2023-11-07T05:31:56Z"
      ],
      "availableAtPeriods": true,
      "timezone": "America/Santiago",
      "openPeriods": [
        {
          "daysOfWeek": [
            "2023-11-07T05:31:56Z"
          ],
          "fromMinute": 123,
          "toMinute": 123
        }
      ]
    },
    "scheduleAtUse": {
      "closedUntilDate": [
        "2023-11-07T05:31:56Z"
      ],
      "closedDays": [
        "2023-11-07T05:31:56Z"
      ],
      "availableAtPeriods": true,
      "timezone": "America/Santiago",
      "openPeriods": [
        {
          "daysOfWeek": [
            "2023-11-07T05:31:56Z"
          ],
          "fromMinute": 123,
          "toMinute": 123
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Corresponde al identificador del cupón.

Response

200 - application/json

success

The response is of type object.