Validate Gift Cards
URL:
Method: POST
https://saasapi.igainapp.in/v1/giftcard.php/validate
Request Parameters
| Parameter | Type | Position | # | Description |
|---|---|---|---|---|
| Authorization | string |
Header |
Required |
Authorization is the Enrypted Company API KEY |
| membershipid | string |
Body |
Required |
Membership ID / Mobile No. |
| outletno | integer |
Body |
Required |
Outlet ID |
| orderamount | integer |
Body |
Required |
Order Amount |
| giftcarddetails | array |
Body |
Required |
Gift Card Details |
Sample Request Body
{
"membershipid":"2019000000076",
"outletno":"4",
"orderamount":"1020",
"giftcarddetails":{"code":"5827353454"}
}
Sample Request Response
{
"errorcode":1001,
"message":"Successful",
"membershipid":"2019000000076",
"membername":"Nilesh Choudhari",
"orderamount":"1,020.00",
"giftcardcode":"5827353454",
"giftcardamount":"300.00"
}
Error Codes
| Error Code | Description |
|---|---|
| 3121 | Required field(s) is missing or empty |
| 3112 | Invalid Gift Card Or No Balance In Gift Card |
| 2009 | Invalid outlet no |
| 2003 | Invalid or unable to locate membership id |
| 1001 | Successful |