LET'S ROCK!
Refund via API
In order to perform an automated Refund via API, you will need to send the following parameters.
Â
curl https://test.oppwa.com/v1/payments/{Payment ID} \
-d "entityId=8ac7a4ca6db97ef1016dbe9214e70aac" \
-d "amount=10.00" \
-d "currency=BRL" \
-d "paymentType=RF" \
-d "testMode=EXTERNAL" \ Test Evroment Only
-d "customParameters[AccountHolder]=John Test"
-d "customParameters[AccountCPF]=12345678911"
-d "customParameters[AccountNumber]=111111"
-d "customParameters[AccountAgency]=1111"
-d "customParameters[AccountBankCode]=237"
-H "Authorization: Bearer OGFjN2E0Y2E2ZGI5N2VmMTAxNmRiZTkwZTMxZDBhYTh8WENkRUs0NHJubQ=="