curl --request POST \
--url https://api.trysynch.com/CardPayment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"mobileNumber": "<string>",
"cardType": "<string>",
"transactionStatus": "<string>",
"email": "<string>",
"patientReferenceNumber": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyReferenceId": "<string>"
}
'Registers a new card payment for a given company
curl --request POST \
--url https://api.trysynch.com/CardPayment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"mobileNumber": "<string>",
"cardType": "<string>",
"transactionStatus": "<string>",
"email": "<string>",
"patientReferenceNumber": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"companyReferenceId": "<string>"
}
'JWT Authorization header using the Bearer scheme.
Use /auth/token to obtain access token.
Enter 'Bearer' [space] and then your token in the text input below.
Example: 'Bearer eyJhbGci...'
The payment amount in cents
The payer's phone number in international format
The type of card used (e.g., Visa, Mastercard)
Status of the card transaction. Allowed values: Pending, Succeeded, Failed, Cancelled, Refunded
The payer's email address for notifications
An optional reference number for the payer
The SynchPay identifier for the company
Your external identifier for the company
OK
Was this page helpful?