Skip to main content
GET
/
v1
/
pvt
/
Coupons
/
{couponCode}
/
rules
Retrieves the promotion rules and details associated with a specific coupon code.
curl --request GET \
  --url https://api.bonifiq.com.br/v1/pvt/Coupons/{couponCode}/rules \
  --header 'Authorization: Basic <encoded-value>'
{
  "ErrorMessage": "<string>",
  "ErrorCode": 123,
  "Result": {
    "IsCumulative": true,
    "Value": 123,
    "Type": 0,
    "Requirements": "<string>",
    "BeginDate": "<string>",
    "EndDate": "<string>",
    "Title": "<string>",
    "IsActive": true,
    "MinValue": 123
  },
  "HasError": true
}

Authorizations

Authorization
string
header
required

Use API Basic Auth Keys

Path Parameters

couponCode
string
required

The coupon code to retrieve promotion rules for.

Response

200 - application/json

Promotion details associated with the coupon.

ErrorMessage
string | null

Error message or description

ErrorCode
integer<int32> | null

Optional error code, if available

Result
object
HasError
boolean

If true the request had an error.