Authorization: Bearer ********************
{
"merchantId": "{{mecrhantId}}",
"paymentTokenReferenceRequest": "{{paymentTokenReferenceRequest}}",
"paymentTokenNumber": "{{paymentTokenNumber}}",
"paymentDescription": "{{paymentDescription}}",
"amount": {{amount}},
"payerName": {{payerName}},
"payerReference": {{payerReference}},
"payerAccountId":{{payerAccountId}},
"walletName": "Visa|Mastercard",
"paymentCurrency": "USD",
"profileId": {{profileId}}
}
curl --location --request POST 'https://live.smatpay.africa/api/tokenizePayment' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantId": "{{mecrhantId}}",
"paymentTokenReferenceRequest": "{{paymentTokenReferenceRequest}}",
"paymentTokenNumber": "{{paymentTokenNumber}}",
"paymentDescription": "{{paymentDescription}}",
"amount": {{amount}},
"payerName": {{payerName}},
"payerReference": {{payerReference}},
"payerAccountId":{{payerAccountId}},
"walletName": "Visa|Mastercard",
"paymentCurrency": "USD",
"profileId": {{profileId}}
}'
{
"checkOutStatus": "Paid",
"checkOutId": "93eb81d9-9828-4b03-890d-864203277c34",
"checkOutReference": "93eb81d9-9828-4b03-890d-864203277c34",
"checkOutToken": ""
}