# Vend\GiftCardsApi



All URIs are relative to https://example.retail.lightspeed.app/api/2026-07, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**createGiftCard()**](GiftCardsApi.md#createGiftCard) | **POST** /gift_cards | Create gift card |
| [**createGiftCardTransaction()**](GiftCardsApi.md#createGiftCardTransaction) | **POST** /gift_cards/{card_number}/transactions | Create a gift card transaction |
| [**findGiftCard()**](GiftCardsApi.md#findGiftCard) | **GET** /gift_cards/{number} | Find gift card |
| [**findGiftCardById()**](GiftCardsApi.md#findGiftCardById) | **GET** /gift_cards/by_id/{id} | Find gift card by id |
| [**findGiftCardByNumber()**](GiftCardsApi.md#findGiftCardByNumber) | **GET** /gift_cards/by_number/{card_number} | Find gift card by number |
| [**findGiftCardByTransactionId()**](GiftCardsApi.md#findGiftCardByTransactionId) | **GET** /gift_cards/transactions/{transaction_id} | Find gift card by transaction id |
| [**listGiftCards()**](GiftCardsApi.md#listGiftCards) | **GET** /gift_cards | List gift cards |
| [**reverseGiftCardTransaction()**](GiftCardsApi.md#reverseGiftCardTransaction) | **DELETE** /gift_cards/transactions/{transaction_id} | Reverse gift card transaction |
| [**voidGiftCard()**](GiftCardsApi.md#voidGiftCard) | **DELETE** /gift_cards/{number} | Void gift card |
| [**voidGiftCardById()**](GiftCardsApi.md#voidGiftCardById) | **DELETE** /gift_cards/by_id/{id} | Void gift card by id |
| [**voidGiftCardByNumber()**](GiftCardsApi.md#voidGiftCardByNumber) | **DELETE** /gift_cards/by_number/{card_number} | Void gift card by number |


## `createGiftCard()`

```php
createGiftCard($gift_card_activation_params): \Vend\Model\GiftCardSingleton
```

Create gift card

Creates and activates a new gift card. The gift card will be created with one transaction with status \"ACTIVATION\" which contains the initial balance of the gift card.  🔒 Requires: `gift_cards:write:issue` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$gift_card_activation_params = new \Vend\Model\GiftCardActivationParams(); // \Vend\Model\GiftCardActivationParams | Create gift card parameters

try {
    $result = $apiInstance->createGiftCard($gift_card_activation_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->createGiftCard: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **gift_card_activation_params** | [**\Vend\Model\GiftCardActivationParams**](../Model/GiftCardActivationParams.md)| Create gift card parameters | |

### Return type

[**\Vend\Model\GiftCardSingleton**](../Model/GiftCardSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `createGiftCardTransaction()`

```php
createGiftCardTransaction($card_number, $gift_card_transaction_params): \Vend\Model\GiftCardTransactionSingleton
```

Create a gift card transaction

Creates a new gift card transaction on the specified gift card. The request body requires the `type`, `amount`, and `client_id` fields. The `type` determines what sort of transaction it is.  * \"REDEEMING\" - Use this type when you want to redeem a certain amount from the gift card balance. The amount MUST be negative. If you want to add an amount to the balance use the \"RELOADING\" type. * \"RELOADING\" - Use this type when you load a new amount onto a gift card.  If the gift card does not have enough credit to honour the transaction a 422 HTTP status code will be returned.  ## Idempotency  Please populate the client_id field with a unique transaction identifier, to ensure that the transaction is safe from double-submit problems. See [the tutorial](/docs/gift_cards#idempotency) for more information.  🔒 Requires: `gift_cards:write:redeem` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$card_number = 'card_number_example'; // string | The number of the gift card to add the transaction to.
$gift_card_transaction_params = new \Vend\Model\GiftCardTransactionParams(); // \Vend\Model\GiftCardTransactionParams | Create gift card transaction parameters

try {
    $result = $apiInstance->createGiftCardTransaction($card_number, $gift_card_transaction_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->createGiftCardTransaction: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **card_number** | **string**| The number of the gift card to add the transaction to. | |
| **gift_card_transaction_params** | [**\Vend\Model\GiftCardTransactionParams**](../Model/GiftCardTransactionParams.md)| Create gift card transaction parameters | |

### Return type

[**\Vend\Model\GiftCardTransactionSingleton**](../Model/GiftCardTransactionSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `findGiftCard()`

```php
findGiftCard($number): \Vend\Model\GiftCard
```

Find gift card

Finds and returns the given card number. Returns a 404 if the card does not exist.  Within the gift card structure returned is the field gift__card__transactions which contains a list of all the transactions associated with the gift card. In this list you will see one or more of the following statuses:  * \"ACTIVATION\" - This transaction type is added automatically when the gift card is created. The amount will be the initial balance that was loaded onto the gift card. * \"REDEEMING\" - This status indicates the customer used their gift card to pay for one or more items. The amount MUST be negative. * \"IMPORTING\" - You should only see this if gift cards were imported into the gift card system. * \"VOIDING\" - You will see this status if the gift card has been voided. Note that the balance of the card is set to zero when the gift card is voided. * \"EXPIRING\" - This transaction is added automatically when the gift card expires. Again note that the balance is set to zero when the gift card expires. * \"REVERSING\" - This status indicates that a given transaction was reversed. * \"RELOADING\" - This status means that more credit was loaded onto the gift card.  🔒 Requires: `gift_cards:read` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$number = 'number_example'; // string | The number of the gift card to find.

try {
    $result = $apiInstance->findGiftCard($number);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->findGiftCard: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **number** | **string**| The number of the gift card to find. | |

### Return type

[**\Vend\Model\GiftCard**](../Model/GiftCard.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `findGiftCardById()`

```php
findGiftCardById($id): \Vend\Model\GiftCardSingleton
```

Find gift card by id

Finds and returns the gift card with the given id. Returns a 404 if the card does not exist.  Within the gift card structure returned is the field `gift_card_transactions` which contains a list of all the transactions associated with the gift card. In this list you will see one or more of the following statuses:  * \"ACTIVATION\" - This transaction type is added automatically when the gift card is created. The amount will be the initial balance that was loaded onto the gift card. * \"REDEEMING\" - This status indicates the customer used their gift card to pay for one or more items. The amount MUST be negative. * \"IMPORTING\" - You should only see this if gift cards were imported into the gift card system. * \"VOIDING\" - You will see this status if the gift card has been voided. Note that the balance of the card is set to zero when the gift card is voided. * \"EXPIRING\" - This transaction is added automatically when the gift card expires. Again note that the balance is set to zero when the gift card expires. * \"REVERSING\" - This status indicates that a given transaction was reversed. * \"RELOADING\" - This status means that more credit was loaded onto the gift card.  🔒 Requires: `gift_cards:read` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string | The id of the gift card to find.

try {
    $result = $apiInstance->findGiftCardById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->findGiftCardById: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| The id of the gift card to find. | |

### Return type

[**\Vend\Model\GiftCardSingleton**](../Model/GiftCardSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `findGiftCardByNumber()`

```php
findGiftCardByNumber($card_number): \Vend\Model\GiftCardSingleton
```

Find gift card by number

Finds and returns the gift card with the given card number. Returns a 404 if the card does not exist.  Within the gift card structure returned is the field `gift_card_transactions` which contains a list of all the transactions associated with the gift card. In this list you will see one or more of the following statuses:  * \"ACTIVATION\" - This transaction type is added automatically when the gift card is created. The amount will be the initial balance that was loaded onto the gift card. * \"REDEEMING\" - This status indicates the customer used their gift card to pay for one or more items. The amount MUST be negative. * \"IMPORTING\" - You should only see this if gift cards were imported into the gift card system. * \"VOIDING\" - You will see this status if the gift card has been voided. Note that the balance of the card is set to zero when the gift card is voided. * \"EXPIRING\" - This transaction is added automatically when the gift card expires. Again note that the balance is set to zero when the gift card expires. * \"REVERSING\" - This status indicates that a given transaction was reversed. * \"RELOADING\" - This status means that more credit was loaded onto the gift card.  🔒 Requires: `gift_cards:read` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$card_number = 'card_number_example'; // string | The number of the gift card to find.

try {
    $result = $apiInstance->findGiftCardByNumber($card_number);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->findGiftCardByNumber: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **card_number** | **string**| The number of the gift card to find. | |

### Return type

[**\Vend\Model\GiftCardSingleton**](../Model/GiftCardSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `findGiftCardByTransactionId()`

```php
findGiftCardByTransactionId($transaction_id, $system_id): \Vend\Model\GiftCardSingleton
```

Find gift card by transaction id

Finds and returns the gift card associated with the given transaction id. Returns a 404 if the gift card with the given transaction id was not found.  Supports an optional `system_id` query parameter to specify the source system (defaults to x-series, also supports e-series).  🔒 Requires: `gift_cards:read` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$transaction_id = 'transaction_id_example'; // string | The transaction id of the gift card transaction to find.
$system_id = 'x-series'; // string | The source system identifier. Defaults to x-series if not specified.

try {
    $result = $apiInstance->findGiftCardByTransactionId($transaction_id, $system_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->findGiftCardByTransactionId: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **transaction_id** | **string**| The transaction id of the gift card transaction to find. | |
| **system_id** | **string**| The source system identifier. Defaults to x-series if not specified. | [optional] [default to &#39;x-series&#39;] |

### Return type

[**\Vend\Model\GiftCardSingleton**](../Model/GiftCardSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `listGiftCards()`

```php
listGiftCards($before, $page_size, $card_number, $status): \Vend\Model\GiftCardCollection
```

List gift cards

Returns a paginated list of gift cards.  🔒 Requires: `gift_cards:read` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$before = 'before_example'; // string | Pagination cursor for reverse-chronological traversal. Pass the ID of a gift card to retrieve the next page of gift cards created before it, ordered from newest to oldest.
$page_size = 1000; // int | The maximum number of items to be returned in the response. Defaults to 1000. Maximum value is 1000.
$card_number = 'card_number_example'; // string | Find by gift card number.
$status = 'status_example'; // string | Filter by gift card status.

try {
    $result = $apiInstance->listGiftCards($before, $page_size, $card_number, $status);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->listGiftCards: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **before** | **string**| Pagination cursor for reverse-chronological traversal. Pass the ID of a gift card to retrieve the next page of gift cards created before it, ordered from newest to oldest. | [optional] |
| **page_size** | **int**| The maximum number of items to be returned in the response. Defaults to 1000. Maximum value is 1000. | [optional] [default to 1000] |
| **card_number** | **string**| Find by gift card number. | [optional] |
| **status** | **string**| Filter by gift card status. | [optional] |

### Return type

[**\Vend\Model\GiftCardCollection**](../Model/GiftCardCollection.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `reverseGiftCardTransaction()`

```php
reverseGiftCardTransaction($transaction_id): \Vend\Model\GiftCardTransactionSingleton
```

Reverse gift card transaction

Reverses the given transaction on the gift card. If the reversal is successful, a new transaction will be added to the gift card transactions with the status \"REVERSING\". Only transactions of type \"REDEEMING\" can be reversed.  🔒 Requires: `gift_cards:write:redeem` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$transaction_id = 'transaction_id_example'; // string | The transaction id to be reversed for the gift card.

try {
    $result = $apiInstance->reverseGiftCardTransaction($transaction_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->reverseGiftCardTransaction: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **transaction_id** | **string**| The transaction id to be reversed for the gift card. | |

### Return type

[**\Vend\Model\GiftCardTransactionSingleton**](../Model/GiftCardTransactionSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `voidGiftCard()`

```php
voidGiftCard($number): \Vend\Model\GiftCard
```

Void gift card

Void the given gift card.  🔒 Requires: `gift_cards:write:issue` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$number = 'number_example'; // string | The number of the gift card to be voided.

try {
    $result = $apiInstance->voidGiftCard($number);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->voidGiftCard: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **number** | **string**| The number of the gift card to be voided. | |

### Return type

[**\Vend\Model\GiftCard**](../Model/GiftCard.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `voidGiftCardById()`

```php
voidGiftCardById($id): \Vend\Model\GiftCardSingleton
```

Void gift card by id

Voids the gift card with the given id. The gift card balance will be set to zero and its status changed to \"VOIDED\".  🔒 Requires: `gift_cards:write:issue` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string | The id of the gift card to be voided.

try {
    $result = $apiInstance->voidGiftCardById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->voidGiftCardById: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| The id of the gift card to be voided. | |

### Return type

[**\Vend\Model\GiftCardSingleton**](../Model/GiftCardSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `voidGiftCardByNumber()`

```php
voidGiftCardByNumber($card_number): \Vend\Model\GiftCardSingleton
```

Void gift card by number

Voids the gift card with the given card number. The gift card balance will be set to zero and its status changed to \"VOIDED\".  🔒 Requires: `gift_cards:write:issue` scope

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Vend\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Vend\Api\GiftCardsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$card_number = 'card_number_example'; // string | The number of the gift card to be voided.

try {
    $result = $apiInstance->voidGiftCardByNumber($card_number);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GiftCardsApi->voidGiftCardByNumber: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **card_number** | **string**| The number of the gift card to be voided. | |

### Return type

[**\Vend\Model\GiftCardSingleton**](../Model/GiftCardSingleton.md)

### Authorization

[bearerAuth](../../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
