Skip to main content
POST
Batch query gift cards

Overview

This page documents the POST /v1/pay/gift/batch/query endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.

Notes

Headers

X-GatePay-Certificate-ClientId
string
required

Merchant client ID

Example:

"mZ96D37oKk-HrWJc"

X-GatePay-Signature
string
required

Signature

Example:

"b8c4705ff4c1357f2a27925dd180c1e1f4a244148f312a2dee5afbcc6f4b150e9ffceee455c5a298f895d43a64ee829eebdfd262539d45c41f7aee4336fd8c8c"

X-GatePay-Timestamp
string
required

Millisecond timestamp; the difference from server time must not exceed 30 seconds.

Example:

"1738934053475"

X-GatePay-Nonce
string
required

Nonce

Example:

"5417061546"

Body

application/json

Batch query parameters. Provide batch_id or a complete start_time/end_time range.

Provide batch_id or a complete start_time/end_time range.

batch_id
string
required

Gift card batch ID. The API uses an exact match. When combined with a time range, both filters apply.

Required string length: 1 - 64
Example:

"G545273793309741056"

start_time
integer<int64>

Inclusive creation time range start as a Unix timestamp in milliseconds. Must be provided with end_time.

Required range: x >= 0
Example:

1791916618083

end_time
integer<int64>

Inclusive creation time range end as a Unix timestamp in milliseconds. A single query cannot span more than 31 days.

Required range: x >= 0
Example:

1791939618083

page
integer
default:1

Page number starting from 1.

Required range: x >= 1
Example:

1

page_size
integer
default:20

Number of records per page. The default is 20 and the maximum is 100.

Required range: 1 <= x <= 100
Example:

20

Response

200 - application/json

Query successful

status
string

Response status

Example:

"SUCCESS"

code
string

Response code. 000000 indicates success.

Example:

"000000"

errorMessage
string

Error message. Empty on success.

Example:

""

data
object