> For the complete documentation index, see [llms.txt](https://traveloapi.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://traveloapi.gitbook.io/api/giftcard-or-brand-voucher-api/untitled-4.md).

# Gift Card Buy / Purchase

## Gift Card Buy / Purchase

<mark style="color:green;">`POST`</mark> `https://traveloapi.com/yourapi/giftcard/giftcard_purchase`&#x20;

#### Path Parameters

| Name              | Type   | Description                                              |
| ----------------- | ------ | -------------------------------------------------------- |
| gatkey            | string | gatkey (provided by traveloapi)                          |
| code              | string | code                                                     |
| amount            | string | amount                                                   |
| orderid           | string | orderid unique Id (Min 6 & Max Length 15) From Your Side |
| sender\_name      | string | sender\_name                                             |
| sender\_email     | string | sender\_email                                            |
| sender\_mobile    | string | sender\_mobile                                           |
| receiver\_name    | string | receiver\_name                                           |
| receiver\_email   | string | receiver\_email                                          |
| receiver\_mobile  | string | receiver\_mobile                                         |
| gift\_message     | string | gift\_message Please Use Max: 160-180 Characters         |
| sender\_address   | string | sender\_address : Pass if Giftcard is Physical           |
| sender\_pincode   | string | sender\_pincode : Pass if Giftcard is Physical           |
| sender\_city      | string | sender\_city : Pass if Giftcard is Physical              |
| sender\_state     | string | sender\_state : Pass if Giftcard is Physical             |
| receiver\_address | string | receiver\_address : Pass if Giftcard is Physical         |
| receiver\_pincode | string | receiver\_pincode : Pass if Giftcard is Physical         |
| receiver\_city    | string | receiver\_city : Pass if Giftcard is Physical            |
| receiver\_state   | string | receiver\_state : Pass if Giftcard is Physical           |

{% tabs %}
{% tab title="200 " %}

```javascript
 {
  "payid": "1180419135447ZFEGT",
  "operator_ref": "1804191354240144",
  "status": "success",
  "message": "Transaction Successful",
  "txstatus_desc": "Success",
  "number": "9836069576",
  "order_id": "42342343",
  "commission": 0.5
}
        status : success / pending / failure 
        
         txstatus_desc : Success / Pending  / Failure
```

{% endtab %}

{% tab title="404 " %}

```javascript
{
    "message": "Invalid Request",
    "status": "error",
    
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://traveloapi.gitbook.io/api/giftcard-or-brand-voucher-api/untitled-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
