Skip to main content
GET
/
v1
/
pvt
/
Coupons
/
{code}
Returns if found a coupon based on the given coupon code.
curl --request GET \
  --url https://api.bonifiq.com.br/v1/pvt/Coupons/{code} \
  --header 'Authorization: Basic <encoded-value>'
{
  "ErrorMessage": "<string>",
  "ErrorCode": 123,
  "Result": {
    "CouponCode": "<string>",
    "CreatedDate": "2023-11-07T05:31:56Z",
    "IsUsed": true,
    "CouponValue": 123,
    "CustomerId": 123,
    "ValidDateStart": "2023-11-07T05:31:56Z",
    "ValidDateEnd": "2023-11-07T05:31:56Z",
    "CouponType": 0
  },
  "HasError": true
}

Authorizations

Authorization
string
header
required

Use API Basic Auth Keys

Path Parameters

code
string
required

Response

200 - application/json
ErrorMessage
string | null

Error message or description

ErrorCode
integer<int32> | null

Optional error code, if available

Result
object

Create Coupon Response Model

HasError
boolean

If true the request had an error.