Cancel

POST {{base_path_test}}{{endpoint_cancel}}

It is important to Cancel all transactions where the Merchant has received approval to charge the Customer, but where the Customer later decides not to go ahead with the purchase. In this scenario the Customer's card usage limit has been deducted, and will not be reset until the Merchant has cancelled the authorised amount to charge.

Request Body

[{"name"=>"transactionId", "value"=>"{{transactionId_authorisation}}", "datatype"=>"string"}, {"name"=>"d56", "value"=>"{{transactionId_authorisation}}", "datatype"=>"string"}, {"name"=>"o12", "value"=>"{{date_of_sale_to_cancel}}", "datatype"=>"string"}, {"name"=>"d31", "value"=>"{{transaction_reference_authorisation}}", "datatype"=>"string"}, {"name"=>"d3", "value"=>"{{processing_code_sale}}", "datatype"=>"string"}, {"name"=>"d4", "value"=>"{{amount_sale}}", "datatype"=>"string"}, {"name"=>"de4", "value"=>"{{currency_exponent}}", "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"=>"correlationId", "value"=>"941172fb-8b6e-4088-9fd6-51ffcd8acf0f", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

"d39=000\nuser=Rapyd\nd3=000000\nd4=1999\nde4=2\nd12=201203172342\nd31=trf_Jykmkoqid3x\nd37=84000002\nd38=170514\nterminalId=54321\nd41=90000360\nd42=8180001\nd49=840\nd56=165343501\ntransactionId=165343501\no4=1999\no12=201203170514\no39=909\nerror=00000\nerrortext=Approved\nd39text=Approved\ncorrelationId=ff9510c6-fc15-4c81-88d0-e6bfc6bdfa98"