cURL
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 }
Use API Basic Auth Keys
Error message or description
Optional error code, if available
Create Coupon Response Model
Show child attributes
Coupon Code
Create Date
if true the coupon was already bein use or inactivated.
Discount value for the coupon
the customer that the coupon is being given.
Date the coupon is start to being enable for rewards
Date the coupon will not be able for rewards anymore.
What type of coupons is this. 0: Cash value Coupon (such as R$10,00). 1: Percent discount (such as 10%). 4: Imported Coupoun
0
1
2
3
4
If true the request had an error.
Was this page helpful?