Make a Payment with Surcharge
post/payment
Request
- Base URLhttps://sandbox.api.mxmerchant.com/checkout
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
echoboolean
includeCustomerMatchesboolean
Return customers that have this card vaulted in their account
Request body
Response
201
Example response
{
"created": "2020-12-04T16:04:23.127Z",
"paymentToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXbzaQ",
"id": 10000001505878,
"creatorName": "Andrew Ferrer",
"shouldVaultCard": true,
"merchantId": 1000000000,
"batch": "0003",
"batchId": 10000000224661,
"tenderType": "Card",
"currency": "USD",
"amount": "1248.48",
"cardAccount": {
"cardType": "Visa",
"entryMode": "Keyed",
"last4": "4242",
"cardId": "XXXXXXXXXXXXXXXXXXXXXXXQMsf",
"token": "XXXXXXXXXXXXXXXXXXXXXXXbzaQ",
"expiryMonth": "12",
"expiryYear": "33"
},
"posData": {
"panCaptureMethod": "Manual"
},
"authCode": "PPSa78",
"status": "Approved",
"risk": {
"cvvResponseCode": "M",
"cvvResponse": "Match",
"cvvMatch": true,
"avsResponse": "No Response from AVS"
},
"settledAmount": "0",
"settledCurrency": "USD",
"authMessage": "Approved or completed successfully. ",
"availableAuthAmount": "0",
"reference": "033916000059",
"surchargeAmount": "36.36",
"surchargeRate": "0.03",
"surchargeLabel": "surcharge",
"type": "Sale",
"reviewIndicator": 1,
"source": "QuickPay"
}Changes
No recorded changes to this operation across all 1 revision of this API.