CommonApiVersion 1.0.0
Query Daily Transactions
https://pay.globepay.co/api/v1.0/gateway/partners/{partner_code}/transactionsThis Api will list all transactions for current merchant in the day, containing all payment methods(include no gateway methods) and all payment channels such as payment, GlobePay discount cashback, refunds, credit for failure refunds, system pay back, cashback account income/outcome, etc. Settlement transactions will not be contained.
Notice: A payment order or refund order can contains several transaction records
Header
| Field | Description |
|---|---|
Accept | application/json |
Content-Type | application/json |
Path Variable
| Field | Type | Description |
|---|---|---|
partner_code | String | Required, Partner code |
Query Params
| Field | Type | Description |
|---|---|---|
date | String | Required, Transaction date. Format as 'yyyyMMdd',GMT+8 |
time | Long | Required, UTC timestamp in milliseconds |
nonce_str | String | Required, Random string |
sign | String | Required, Sign |
ROOT
| Field | Type | Description |
|---|---|---|
return_code | String | Execution result,SUCCESS |
result_code | String | Process result |
transaction_count | int | transaction record count |
order_count | int | payment order count |
refund_count | int | refund order count |
transactions | JSON[] | transaction list |
transactions
| Field | Type | Description |
|---|---|---|
transaction_time | String | Trade time, format as yyyyMMddHHmmss,GMT+8 |
order_id | String | GlobePay Order ID |
partner_order_id | String | Partner Order ID |
channel_order_id | String | Order ID in payment channel (Alipay/Alipay Plus/Wechat) |
refund_id | String | GlobePay Refund ID (Only in refunds or refunds failure cashback) |
partner_refund_id | String | Partner refund ID (Only in refunds or refunds failure cashback) |
gateway | String | Payment method
|
channel | String | Payment Channel (Alipay, Wechat) |
type | String | Trade Direction
|
currency | String | currency(GBP/CNY) |
total_amount | int | Total payment amount, which uses the base unit of order currency |
input_amount | int | Order input amount, which uses the base unit of order currency |
settle_amount | int | Settle amount, GBP cents |
exchange_rate | double | Using exchange rate |
remark | String | Remark |
ERROR
| Name | Description |
|---|---|
return_code | Error Code |
return_msg | Error Description |
Error Code
| Name | Description |
|---|---|
SYSTEMERROR | Exception inside system |
INVALID_SHORT_ID | Partner code is invalid or there is no partner associated with this code |
SIGN_TIMEOUT | Sign expired, the difference between time and the server time is more than 5 minutes |
INVALID_SIGN | Invalid sign |
PARAM_INVALID | Parameters are invalid. See return_msg for more details. |
NOT_PERMITTED | Gateway payment permission has not been enabled for this partner |
INVALID_CHANNEL | Channel name is not available, check the Capitalize |
