Batch Query Gift Cards
Returns a paginated list of gift cards created by the current merchant, filtered by batch ID or creation time range. When both filters are provided, the API returns their intersection.
Overview
This page documents thePOST /v1/pay/gift/batch/query endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
Notes
- Authentication uses the standard GatePay signed headers.
- Filter by batch ID, creation time range, or both. When both are provided, both filters apply.
- For shared signing rules, see /global/api-reference/version/100/en/common/securityAndSignature.
Headers
Merchant client ID
"mZ96D37oKk-HrWJc"
Signature
"b8c4705ff4c1357f2a27925dd180c1e1f4a244148f312a2dee5afbcc6f4b150e9ffceee455c5a298f895d43a64ee829eebdfd262539d45c41f7aee4336fd8c8c"
Millisecond timestamp; the difference from server time must not exceed 30 seconds.
"1738934053475"
Nonce
"5417061546"
Body
Batch query parameters. Provide batch_id or a complete start_time/end_time range.
- Option 1
- Option 2
Provide batch_id or a complete start_time/end_time range.
Gift card batch ID. The API uses an exact match. When combined with a time range, both filters apply.
1 - 64"G545273793309741056"
Inclusive creation time range start as a Unix timestamp in milliseconds. Must be provided with end_time.
x >= 01791916618083
Inclusive creation time range end as a Unix timestamp in milliseconds. A single query cannot span more than 31 days.
x >= 01791939618083
Page number starting from 1.
x >= 11
Number of records per page. The default is 20 and the maximum is 100.
1 <= x <= 10020

