2.3.1 Mock tx consume
Path:/openapi/card/mock/tx/consume
Method:POST
Content-Type:application/json
Response Content-Type:application/json
Description:
This interface is only used for mock data in the test environment, and there is no such interface in the production environment! ! !
If you need to test consumption transactions in the test environment, you can call this interface to generate a transaction data;
Then you can query this transaction in the two interfaces 2.1.23 Single card transaction Inquiry-v2 and 2.1.24 Multi-card transaction Inquiry-v2
Example Request:
{
"card_id": "00003454323400000028888",
"description": "consume mock",
"fee": "0",
"transaction_date": "1595497477",
"tx_amount": "2.5",
"tx_amount_usd": "2.5"
}
Request Parameter:
Parameter Name | Type | Required | Description |
---|---|---|---|
card_id | string | 卡ID | |
description | string | true | Description |
fee | string | true | fee,applicable for certain card type |
transaction_date | string | true | Transaction date ,Unix timestamp in second |
tx_amount | string | true | Transaction currency amount |
tx_amount_usd | string | true | Transaction amount in usd |
API Response:
Parameter name | Type | Description |
---|---|---|
code | string | Error code |
msg | string | Error message |
Example Response:
{
"code": "00000",
"msg": "ok"
}