Refunds
A previous "APPROVED" transaction is required for refunds. You can process multiple partial refunds against the same "APPROVED" transaction up to the full settled amount. You can issue refunds against card not present and card present transactions.
Work Flow:
All examples are assuming a settled amount of $100.00.
.
curl --location --request POST 'https://api.preferredpayments.com/v1/transactions/refund' \
--header 'X-API-Key: PRIVATE-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"transaction_id":"1234567890",
"amount":100.00,
"reason":"Customer Refund"
}'{
"transaction_id": "1234567890",
"response_code": "APPROVED",
"response_text": "TRANSACTION_WAS_APPROVED",
"request_id": "ABCD1234567890"
}You can issue any combination of refunds up to the full settled amount. There is no requirement to send the refunds on the same day. You can process one $25.00 today and $12.50 thirty five days from today.
curl --location --request POST 'https://api.preferredpayments.com/v1/transactions/refund' \
--header 'X-API-Key: PRIVATE-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"transaction_id":"1234567890",
"amount":12.50,
"reason":"Partial customer refund"
}'{
"transaction_id": "1234567890",
"response_code": "APPROVED",
"response_text": "TRANSACTION_WAS_APPROVED",
"request_id": "ABCD1234567890"
}Updated about 1 year ago