Get a Payment
get/v3/payment/{paymentId}
Request
- Base URLhttps://sandbox.api.mxmerchant.com/checkout
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
paymentIdstring required
The id of the payment
Query parameters
includeCustomerboolean
Return the customer object associated with the payment
Response
200
Example response
{
"created": "2018-01-25T21:34:15.24Z",
"paymentToken": "Pfcyy68HAtwxb0hM2mpYHLEzc5nSESc3",
"id": 22028828,
"creatorName": "John Doe",
"merchantId": 418324776,
"batch": "Z08X0",
"batchId": 2092732,
"tenderType": "Card",
"currency": "USD",
"amount": "0.01",
"cardAccount": {
"cardType": "Visa",
"entryMode": "Keyed",
"last4": "1111",
"cardId": "y15QvOteHZGBm7LH3GNIlTWbA1If",
"token": "Pfcyy68HAtwxb0hM2mpYHLEzc5nSESc3",
"expiryMonth": "01",
"expiryYear": "19",
"cardPresent": true
},
"authCode": "PPSVI7",
"status": "Settled",
"customer": {
"id": 10696183,
"created": "2017-09-25T15:18:08.89Z",
"name": "Jane Doe",
"firstName": "Jane",
"lastName": "Doe",
"sales": "0",
"loyaltyStatus": "Enrolled",
"loyaltyEnrolled": "2017-09-25T15:18:08.89Z",
"displayColor": "A1BC3A"
},
"settledAmount": "0",
"settledCurrency": "USD",
"settledDate": "2018-01-26T15:16:49.763",
"cardPresent": true,
"authMessage": "AUTH/TKT PPSVI7",
"availableAuthAmount": "0",
"reference": "053DO00MMCL7",
"tax": "0",
"invoice": "O00MMCL7",
"customerCode": "053DO00MMCL7",
"customerName": "Jane Doe",
"clientReference": "053DO00MMCL7",
"type": "Sale",
"source": "QuickPay"
}Changes
No recorded changes to this operation across all 1 revision of this API.