curl --request POST \
--url https://api.trysynch.com/Payment/Refund/{paymentRequestId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"description": "<string>",
"attachment": {
"fileName": "<string>",
"fileData": "<string>",
"fileType": "<string>"
}
}
'Create a refund for previous payment
curl --request POST \
--url https://api.trysynch.com/Payment/Refund/{paymentRequestId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"description": "<string>",
"attachment": {
"fileName": "<string>",
"fileData": "<string>",
"fileType": "<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...'
OK
Was this page helpful?