Coupon Api

Fire this api to show coupon information.

List of all coupons

api/coupon

GET https://yourdomain.com/api/coupon

This end point allows to you list of all coupons informations.

Query Parameters

Name
Type
Description

secret

string

Client secret key will goes here which you get from admin panel.

Headers

Name
Type
Description

Authorization*

string

Bearer { bearer_token without bracket }

Accept*

string

application/json

{
    "coupon": [
       
        {
            "id": 6,
            "coupon_code": "NEW100",
            "percent_off": null,
            "currency": "USD",
            "amount_off": 75,
            "duration": "repeating",
            "max_redemptions": "1",
            "redeem_by": "2021-08-02T18:30:00.000000Z",
            "created_at": "2021-08-03T19:38:46.000000Z",
            "updated_at": "2021-08-03T19:38:46.000000Z",
            "in_stripe": 1
        }
    ]
}

Verify Coupon

api/verifycoupon

POST https://yourdomain.com/api/verifycoupon

This end point allow to verifycoupon.

Query Parameters

Name
Type
Description

secret

string

Client secret key will goes here which you get from admin panel.

Headers

Name
Type
Description

AUthorization*

string

Bearer { bearer_token without bracket }

Accept*

string

application/json

Request Body

Name
Type
Description

coupon_code*

string

enter the coupon code

{
    "message": "Coupon is applied !"
}

Last updated