- Documentation Portal
- SDK and API
- General API Reference
- Objects
- RefundGiftCardResponse
RefundGiftCardResponse
Parameter Name | Type | Description | Mandatory |
|---|---|---|---|
| List of | List with gift cards data objects data | |
| String | Code of the error | |
| String | Error message | |
| Boolean | Indicates if the amounts of redeemed cards was successfully returned TRUE - Successfully refunded. FALSE - Refund not successful. |
GiftCardData
The GiftCardData model is used for most calls where multiple cards are passed. See Base Gift Card Model.
Parameter Name | Type | Description | Mandatory |
|---|---|---|---|
| Decimal | Total available amount in customer currency | |
| Decimal | Total available amount in gift card currency | |
| Decimal | Amount to redeem in gift card currency | |
| Decimal | Amount to redeem in gift user currency | |
| Dictionary<String, String> | Key value pairs of each field defined in the configuration | |
| Decimal | id of the card in the DB table on the Global‑e side | |
| String | User currency code (checkout currency) | |
| String | Code of the error | No |
| String | Error message | No |
| String | Gift card currency code | |
| Boolean | The refund status. TRUE - Refund was successfully applied to the gift card FALSE - Refund failed or there is no refund on the card | |
| String | The value that is set as a result of card redemption (should be provided by the platform) | |
| Decimal | The amount of refunded money in customer currency | |
| Decimal | The amount of refunded money in gift card currency |
BaseGiftCard
The CardData model is used for most calls where multiple cards are passed.
Parameter Name | Type | Description |
|---|---|---|
| Decimal | Amount to redeem in gift card currency |
| Dictionary<String,String> | The Value of each field is defined in the configuration. Key – defined field name Value – user input data |
| String | Unique hash generated for each card |
| Long | ID of card in DB table on Global-e CORE side |
| String | User currency code (checkout currency) |
| String | Code of error which should be set during Redeem and Refund calls |
| String | Text of error message |
| String | Gift card currency code |
| Boolean |
|
| String | Value which is set as a result of card redemption |
| Decimal | Amount of refunded money in customer currency (should be set in refund API call) |
| Decimal | Amount of refunded money in gift card currency (should be set in refund API call) |