GET
/
coupons
/
{coupon}
curl --request GET \
  --url https://api.contas.rdstationmentoria.com.br/rest/coupons/{coupon} \
  --header 'Authorization: Bearer <token>'
{
  "valid": true,
  "reason": null,
  "coupon": {
    "id": 123,
    "code": "<string>",
    "currency": null,
    "desc": null,
    "early_payment_for": null,
    "validity_period_in_months": null,
    "value": "<string>",
    "kind": "percentual"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

coupon
string
required

Query Parameters

priceId
string
required

Response

200
application/json

Successful response

The response is of type object.

GET
/
coupons
/
{coupon}
curl --request GET \
  --url https://api.contas.rdstationmentoria.com.br/rest/coupons/{coupon} \
  --header 'Authorization: Bearer <token>'
{
  "valid": true,
  "reason": null,
  "coupon": {
    "id": 123,
    "code": "<string>",
    "currency": null,
    "desc": null,
    "early_payment_for": null,
    "validity_period_in_months": null,
    "value": "<string>",
    "kind": "percentual"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

coupon
string
required

Query Parameters

priceId
string
required

Response

200
application/json

Successful response

The response is of type object.