API V2.2
- Documentacion api legacy
- Empezar
- Autenticación
- Estructura
- Modelo de datos de Justo
- Menú
- Cupones
- Clientes
- Ordenes
- Productos
- Locales
- Ultima milla
- Webhooks
Cupones
Obtener el detalle de un cupón
Usa este método para obtener el detalle de un cupón.
GET
/
coupon
/
{id}
Copy
Ask AI
curl --request GET \
--url https://api.getjusto.com/api/v2/coupon/{id} \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Corresponde al identificador del cupón.
Response
200 - application/json
success
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://api.getjusto.com/api/v2/coupon/{id} \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"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
}
]
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.