Gift card orders

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

ParameterTypeRequiredDescription
archivebooleanNoFilter by archive status. false (default) returns active/recently purchased cards; true returns archived cards that have been used, expired, or deactivated.
skipinteger (int32)NoNumber of records to skip from the beginning of the result set. Default: 0. Used for pagination.
limitinteger (int32)NoMaximum 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.

FieldTypeDescription
idstringUnique identifier for the gift card order.
brandIdstringIdentifier of the gift card brand/retailer.
brandNamestringDisplay name of the gift card brand/retailer.
logoUrlstringURL of the brand logo image.
urlstringURL to access or redeem the gift card.
currencystringCurrency code for the gift card (e.g., "USD").
faceAmountinteger (int64)Face value of the gift card in the smallest currency unit (e.g., cents).
amountinteger (int64)Actual amount paid for the gift card in the smallest currency unit (e.g., cents).
discountnumber (double)Discount applied to the gift card purchase, expressed as a decimal (e.g., 0.05 for 5%).
expirationDatestring (date-time)ISO 8601 date-time indicating when the gift card expires. Null if no expiration.
createdDatestring (date-time)ISO 8601 date-time when the gift card order was created.
cancelDatestring (date-time)ISO 8601 date-time when the gift card was canceled. Null if not canceled.
issueTransactionIdstringTransaction ID associated with the issuance of the gift card.
cancelTransactionIdstringTransaction ID associated with the cancellation of the gift card. Null if not canceled.
statusstring (enum)Current status of the gift card order. Possible values: "Issued", "Canceled".
userNamestringDisplay name of the customer who purchased the gift card.
userIdinteger (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

CodeWhen it happens
400Invalid query parameter values (e.g., negative skip or limit, non-boolean archive)
401Token missing, expired, or invalid
403Insufficient permissions to access gift card order data
404No gift card orders found for the authenticated customer
500Internal server error

Common Mistakes

  • Omitting the Authorization header 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 — set archive: true to retrieve historical orders.
  • The faceAmount and amount fields are returned in the smallest currency unit (cents for USD); divide by 100 to display dollar amounts.
  • When paginating, increment skip by the value of limit for each subsequent page (e.g., first page: skip=0&limit=10, second page: skip=10&limit=10).
  • The status field 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 customer
  • GET /api/giftCards/brands — Retrieve available gift card brands and denominations
  • POST /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"
Query Params
boolean
Defaults to false
int32
Defaults to 0
int32
Defaults to 100
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json