Create Card Transaction
This API is used to create card transaction records.Only development is available
Path: /api/v1/card/createTransaction
Method: POST
Content-Type
application/json
Headers
authorization
string
YES
Authorization Header
Body
api_key
string
YES
api key
request_id
string
YES
Unique id; the shortest is 20 characters, the longest is 64 characters
timestamp
string
YES
13-digit; Valid for plus or minus 30 seconds
kit_number
string
YES
Show on card
amount
string
YES
Transaction Amount;Greater than 0
origin_type
int
YES
1: original; 2: secondary
origin_id
string
YES
Original transaction id; Required if origin_type is 2
sign
string
YES
sign: MD5(api_key+timestamp+secret+request_id)lowercase hex
Example
{ api_key: 'ac97c403062e94a094131aa332df6458', request_id: '8328849454b64a82b113cdf2ce489651', timestamp: '1700562785998', kit_number: '2000001791317913', category: 'CR TOP-UP', amount: '14.13', origin_type: 1, origin_id: '', sign: 'd3ef835ee52e8e36927aea60aebf2a59' }signature example:MD5(ac97c403062e94a094131aa332df64581700562785998a446b6660552582e08b043b84634e1fe8328849454b64a82b113cdf2ce489651)
Response
code
number
Response code
msg
string
Response message
Example
{ "code": 10200, "msg": "ok" }
Last updated