Refund

POST {{base_path_test}}{{endpoint_refund}}

The Merchant wants to return money to the Customer, e.g. items or service not possible to deliver, or discounts to name some. Refund can be full or partial refunds, however the accumulative amount of all refunds cannot be higher than the original sale amount being refunded.

In the event no response is received from the host, the client shall attempt to reverse the failed request attempt. For details refer to Reversal (Time-Out)

Request Body

[{"name"=>"d3", "value"=>"{{processing_code_refund}}", "datatype"=>"string"}, {"name"=>"transactionId", "value"=>"{{transactionId_sale}}", "datatype"=>"string"}, {"name"=>"d31", "value"=>"{{transaction_reference_sale}}", "datatype"=>"string"}, {"name"=>"d22cp", "value"=>"{{pos_env_callcentre}}", "datatype"=>"string"}, {"name"=>"capture", "value"=>"{{capture_true}}", "datatype"=>"string"}, {"name"=>"d4", "value"=>"{{amount_refund}}", "datatype"=>"string"}, {"name"=>"d49", "value"=>"{{currency_id_number}}", "datatype"=>"string"}, {"name"=>"user", "value"=>"{{user_name}}", "datatype"=>"string"}, {"name"=>"pwd", "value"=>"{{pass_word}}", "datatype"=>"string"}, {"name"=>"terminalId", "value"=>"{{terminalID}}", "datatype"=>"string"}, {"name"=>"d41", "value"=>"{{terminalNumber}}", "datatype"=>"string"}, {"name"=>"d42", "value"=>"{{merchantID}}", "datatype"=>"string"}, {"name"=>"separator", "value"=>"{{separator}}", "datatype"=>"string"}, {"name"=>"d39", "value"=>"000", "datatype"=>"string"}, {"name"=>"d39text", "value"=>"Approved", "datatype"=>"string"}, {"name"=>"error", "value"=>"10000", "datatype"=>"number"}, {"name"=>"errortext", "value"=>"Approved", "datatype"=>"string"}, {"name"=>"d38", "value"=>"165806", "datatype"=>"number"}, {"name"=>"d37", "value"=>"84000002", "datatype"=>"number"}, {"name"=>"d2brand", "value"=>"VISA", "datatype"=>"string"}, {"name"=>"d56", "value"=>"165343201", "datatype"=>"number"}, {"name"=>"correlationId", "value"=>"941172fb-8b6e-4088-9fd6-51ffcd8acf0f", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

"d39=000\nuser=Rapyd\nd3=200000\nd4=999\nd12=201203165806\nd14=2306\nd31=trf_RQMcQHT2F5x\nd37=84000002\nd38=165806\nterminalId=54321\nd41=90000360\nd42=8180001\nd49=840\nd56=165343301\ntransactionId=165343301\nd2brand=VISA\nd2dsp=xxxxxxxxxxxx7492\nerror=00000\nerrortext=Approved\nd39text=Approved\ncorrelationId=f3d2ae82-e50d-40e4-9b16-1c209a073e36"