Get Voucher API


Description

This API is a secure endpoint that allows authorized clients to retrieve a list of vouchers. This API is intended for use in applications that need access to voucher data, such as discount coupons, promotional offers, or loyalty rewards. Clients are required to provide a valid access token in the request header for authentication and authorization.

Method: POST

URL/Path: baseurl/account/get/voucher/api/

E.g.: budgetree.in/account/get/voucher/api/

Request Header:

Content-Type application/json
Accept */*
Authorization Bearer [Your Authorization Token]

Sample Response    200


                [
                    {
                        "id": 24,
                        "created_at": {
                            "$date": "2023-09-02T09:42:57.149Z"
                        },
                        "updated_at": {
                            "$date": "2023-09-02T09:42:57.460Z"
                        },
                        "is_checked": "false",
                        "code": "BUDGETREHTXXCAJC",
                        "user_id": 150,
                        "company_id": 31,
                        "price": 10,
                        "validity": {
                            "$date": "2023-09-05T09:41:29.495Z"
                        },
                        "created_by": "manish.k@budgetreecs.com",
                        "delivery_email": "patel@gmail.com",
                        "claimed_by": "NA",
                        "claim_status": "true"
                    }
                ]
            
                  
             

Sample Response    400


                response: 400Bad Request 
                "No token provided"      
             

2. Failure

Field Name Mandatory Data Type Description Example
message no string Error Message Invalid reference number provided
code no number Error Response Codes 10466
messages no array
HTTP Codes
Status Code Message Description
200 Ok This indicates card details are resent successfully
400 Bad Request No token provided
498 Unknown Status Code Invalid token

Last updated on: