curl --request GET \
--url https://api.selltrust.com.br/api/v1/coupon/{id} \
--header 'Authorization: <authorization>'{
"id": "uuid-do-cupom",
"store_id": "uuid-da-loja",
"code": "PROMO10",
"discount_type": "PERCENTAGE",
"discount_value": 10,
"min_order_value": null,
"max_uses": null,
"used_count": 0,
"expires_at": null,
"active": true,
"product_ids": [],
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}
curl --request GET \
--url https://api.selltrust.com.br/api/v1/coupon/{id} \
--header 'Authorization: <authorization>'{
"id": "uuid-do-cupom",
"store_id": "uuid-da-loja",
"code": "PROMO10",
"discount_type": "PERCENTAGE",
"discount_value": 10,
"min_order_value": null,
"max_uses": null,
"used_count": 0,
"expires_at": null,
"active": true,
"product_ids": [],
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}
Bearer <seu_token>.{
"id": "uuid-do-cupom",
"store_id": "uuid-da-loja",
"code": "PROMO10",
"discount_type": "PERCENTAGE",
"discount_value": 10,
"min_order_value": null,
"max_uses": null,
"used_count": 0,
"expires_at": null,
"active": true,
"product_ids": [],
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}