Gift Card Orders
The Gift Card Orders endpoint retrieves a list of all gift cards purchased by customers within the partner's platform. Partners can filter results by archive status to distinguish between active and historical orders, and use pagination parameters to manage large datasets efficiently. This endpoint is essential for displaying gift card purchase history and managing gift card lifecycle states.
Endpoint
GET /api/giftCards/orders
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint to display a customer's gift card purchase history in your application. It supports paginated retrieval of both active and archived gift card orders, making it suitable for building gift card management dashboards or transaction history views. This endpoint is relevant for business customers who earn and redeem rewards via gift cards.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| archive | boolean | No | Filter by archive status. false (default) returns active/recently purchased cards; true returns archived cards that have been used, expired, or deactivated. |
| skip | integer (int32) | No | Number of records to skip from the beginning of the result set. Default: 0. Used for pagination. |
| limit | integer (int32) | No | Maximum number of records to return in a single response. Default: 100. Controls response payload size. |
Response
200 OK
Returns an array of gift card order objects.
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the gift card order. |
| brandId | string | Identifier of the gift card brand/retailer. |
| brandName | string | Display name of the gift card brand/retailer. |
| logoUrl | string | URL of the brand logo image. |
| url | string | URL to access or redeem the gift card. |
| currency | string | Currency code for the gift card (e.g., "USD"). |
| faceAmount | integer (int64) | Face value of the gift card in the smallest currency unit (e.g., cents). |
| amount | integer (int64) | Actual amount paid for the gift card in the smallest currency unit (e.g., cents). |
| discount | number (double) | Discount applied to the gift card purchase, expressed as a decimal (e.g., 0.05 for 5%). |
| expirationDate | string (date-time) | ISO 8601 date-time indicating when the gift card expires. Null if no expiration. |
| createdDate | string (date-time) | ISO 8601 date-time when the gift card order was created. |
| cancelDate | string (date-time) | ISO 8601 date-time when the gift card was canceled. Null if not canceled. |
| issueTransactionId | string | Transaction ID associated with the issuance of the gift card. |
| cancelTransactionId | string | Transaction ID associated with the cancellation of the gift card. Null if not canceled. |
| status | string (enum) | Current status of the gift card order. Possible values: "Issued", "Canceled". |
| userName | string | Display name of the customer who purchased the gift card. |
| userId | integer (int32) | Numeric identifier of the customer who purchased the gift card. |
[
{
"id": "gc-order-001abc",
"brandId": "brand-amazon-001",
"brandName": "Amazon",
"logoUrl": "https://cdn.example.com/logos/amazon.png",
"url": "https://www.amazon.com/gc/redeem?claimCode=XXXX-XXXX-XXXX",
"currency": "USD",
"faceAmount": 5000,
"amount": 4750,
"discount": 0.05,
"expirationDate": "2027-06-08T00:00:00Z",
"createdDate": "2026-06-08T14:23:11Z",
"cancelDate": null,
"issueTransactionId": "txn-issue-7890xyz",
"cancelTransactionId": null,
"status": "Issued",
"userName": "Jane Smith",
"userId": 10042
},
{
"id": "gc-order-002def",
"brandId": "brand-target-002",
"brandName": "Target",
"logoUrl": "https://cdn.example.com/logos/target.png",
"url": "https://www.target.com/gc/redeem?code=XXXX-XXXX-XXXX",
"currency": "USD",
"faceAmount": 2500,
"amount": 2500,
"discount": 0.0,
"expirationDate": null,
"createdDate": "2026-05-15T09:10:00Z",
"cancelDate": "2026-05-20T11:00:00Z",
"issueTransactionId": "txn-issue-1122aab",
"cancelTransactionId": "txn-cancel-3344ccd",
"status": "Canceled",
"userName": "Jane Smith",
"userId": 10042
}
]Error Codes
| Code | When it happens |
|---|---|
| 400 | Invalid query parameter values (e.g., negative skip or limit, non-boolean archive) |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to access gift card order data |
| 404 | No gift card orders found for the authenticated customer |
| 500 | Internal server error |
Common Mistakes
- Omitting the
Authorizationheader or providing an expired token will result in a 401 error; ensure the token is refreshed every 10 minutes. - Setting
archive: false(the default) will not return canceled or expired gift cards — setarchive: trueto retrieve historical orders. - The
faceAmountandamountfields are returned in the smallest currency unit (cents for USD); divide by 100 to display dollar amounts. - When paginating, increment
skipby the value oflimitfor each subsequent page (e.g., first page:skip=0&limit=10, second page:skip=10&limit=10). - The
statusfield is an enum with only two values ("Issued"or"Canceled"); do not assume other status strings are valid.
Related Endpoints
POST /api/giftCards/order— Place a new gift card order for a customerGET /api/giftCards/brands— Retrieve available gift card brands and denominationsPOST /api/rewards/redeem— Redeem rewards points toward a gift card purchase
Example
Retrieve the first 10 active (non-archived) gift card orders:
curl -X GET "https://api.banking.netevia.dev/api/giftCards/orders?archive=false&skip=0&limit=10" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"Retrieve the next page (records 11–20):
curl -X GET "https://api.banking.netevia.dev/api/giftCards/orders?archive=false&skip=10&limit=10" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"Retrieve archived (canceled/expired) gift card orders:
curl -X GET "https://api.banking.netevia.dev/api/giftCards/orders?archive=true&skip=0&limit=50" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"