Skip to main content
GET
/
api
/
v1
/
coupons
/
{id}
Obter cupom
curl --request GET \
  --url https://upay-sistema-api.onrender.com/api/v1/coupons/{id} \
  --header 'API-Key: <api-key>'
{
  "message": "<string>",
  "coupon": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "code": "<string>",
    "discountType": "PERCENTAGE",
    "discountValue": 123,
    "description": "<string>",
    "minPurchaseCents": 123,
    "maxDiscountCents": 123,
    "usageLimit": 123,
    "perUserLimit": 123,
    "validFrom": "2023-11-07T05:31:56Z",
    "validUntil": "2023-11-07T05:31:56Z",
    "status": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Key
string
header
required

Chave de API obtida através do endpoint /api/credentials. Também aceita formato Bearer Token: Authorization: Bearer <api_key>

Path Parameters

id
string<uuid>
required

Response

Detalhes do cupom

message
string
coupon
object