Query card movements
This operation allow you query card movements between a date range.
HTTP Request
GET /cards/movements
Header Parameters
Header | Description |
---|---|
Authorization required | The Bearer token created in Get authorization Token |
Content-Type required | application/json |
Query parameters
Parameter | Type | Pattern | Description |
---|---|---|---|
card_number required | string | 16 digits* or uuid | The card_number or card_id that will receive the charge. |
initial_date required | date | YYYY-MM-DD | Initial movements query date. |
end_date required | date | YYYY-MM-DD | End movements query date. |
note
*If card_number is sended as 16 digits, it must be sended ciphered and Base 64 Encoded. See Data encryption & encoding.
Example JSON Request:
GET /cards/movements?initial_date=2021-07-01&end_date=2021-07-30&card_number=ab123d54-d87f-6d2c-7b02-1234e6ab123a
Example JSON Response:
{
"success": true,
"code": 0,
"message": "OK",
"data": {
"card": {
"id": "11111111-daa7-1234-aaaa-123123123ecd",
"masked_card_number": "************1234",
"type": "PHYSICAL",
"status": "ACTIVE"
},
"account": {
"id": "22222222-daa7-1234-aaaa-123123123ecd",
"reference": 555555555
},
"movements": {
"initial_date": "2021-07-01",
"end_date": "2021-07-30",
"detail": [
{
"id": "123456789",
"referencial_id": "MASTER.MASTER_POS.1627686137.7753921.00000077.066147.1",
"date": "2021-07-30 17:03:02",
"code": {
"type": "1",
"subtype": "99",
"description": "ON Line - Compra"
},
"merchant": {
"code": "7898745",
"description": "ST*STRIPE 2 CIUDAD DE MEX MEX"
},
"country": {
"code": "484",
"description": "MEXICO "
},
"amounts": {
"original": {
"coin": {
"code": "484",
"description": "Peso mexicano"
},
"total": "567.24"
},
"exchanged": {
"coin": {
"code": "484",
"description": "Peso mexicano"
},
"total": "567.24"
}
},
"channel": "MASTER_POS",
"authorization": "000000",
"status": {
"code": "00",
"description": "Aprobada"
},
"retrieval": "121212121212"
}
]
}
}
}