Authorization: Bearer ********************
curl --location --request POST 'https://live.smatpay.africa/api/merchant/fastCheckOut' \
--form 'id=""' \
--form 'paymentLinkName="{{name}}"' \
--form 'paymentLinkDescription="{{Description}}"' \
--form 'paymentLinkReference="{{Reference}}"' \
--form 'paymentLinkAmount="{{Amount}}"' \
--form 'paymentLinkType="ONCE_OFF_FIXED"' \
--form 'paymentLinkImageType="NEW"' \
--form 'paymentLinkProfileId="{{profileId}}"' \
--form 'paymentLinkStartDate="{{startDate}}"' \
--form 'paymentLinkEndDate="{{endDate}}"' \
--form 'paymentLinkCurrency="{{currency}}"' \
--form 'paymentLinkCurrencyId="{{currencyId}}"' \
--form 'paymentLinkOtherCurrencies="{{true or false}}"' \
--form 'paymentLinkCustomerRedirectUrl="{{url}}"' \
--form 'paymentCustomerFailRedirectUrl="{{url}}"' \
--form 'paymentLinkEmail="{{email}}"' \
--form 'paymentLinkImage=@""' \
--form 'paymentPayerFullNames="{{Payer Names}}"' \
--form 'paymentPayerEmailAddress="{{Payer Email Address}}"' \
--form 'paymentPayerAddress="{{Payer Address }}"' \
--form 'paymentPayerMobile="{{Payer Mobile}}"'
{
"status": "Success",
"paymentLink": {
"paymentProfileName": "Church Offering",
"paymentProfileDescription": "Offering for every Sunday Service",
"paymentLinkReference": "Pay00001",
"paymentLinkUrl": "https://staging-payments.smatpay.africa/global?token=yr1d_ljcPzFpHV3eRRP57rbwvdj7mITG",
"paymentLinkAmount": 10.0,
"paymentLinkType": "ONCE_OFF_FIXED",
"paymentLinkToken": "yr1d_ljcPzFpHV3eRRP57rbwvdj7mITG",
"paymentLinkImageUrl": "https://smatpay.s3.af-south-1.amazonaws.com/20240805150004-VPN.png",
"paymentLinkStartDate": "2024-07-26T00:00:00.000+00:00",
"paymentLinkEndDate": "2024-07-26T00:00:00.000+00:00",
"paymentLinkIsActive": true,
"createdAt": "2024-08-05T15:00:05.045+00:00",
"id": 14
},
"message": "Payment link created successfully! Image URL: https://smatpay.s3.af-south-1.amazonaws.com/20240805150004-VPN.png"
}