VOID

Web service for cancelling the payment request

Flow

Merchant → Espay

Method

HTTP Post

API URL

Endpoint Development: https://sandbox-api.espay.id/rest/digitalpay/void
Endpoint Production: https://api.espay.id/rest/digitalpay/void


Parameter Request:
Name Field Attribute Mandatory Description
rq_uuid 64 Yes Identify request. Unique ID for identifying these messages with other messages
rq_datetime 19 Yes Date and time on the Espay application server where the message was sent
comm_code 32 Yes The seller code is registered in the Espay application
order_id 20 Yes Transaction Number / Invoice ID / Unique ID identifying the order / Invoice / Invoice
trx_id 20 Yes Transaction ID number generated by Espay
product_code 10 Yes The desired product code.
  1. OVO
  2. JENIUS
  3. GOPAY
  4. LINKAJA
signature 64 Yes Validation by the seller requires a signature

Parameter Response:
Name Field Attribute Mandatory Description
error_code 4 Yes If error_code equals 0000 = Successful
If error_code is not the same as 0000 = Failed to call the request to the payment application
error_message 32 Yes If error_code equals 0000 = Successful
If error_code is not the same as 0000 = Failed to call the request to the payment application
order_id 20 Yes Transaction Number / Invoice ID / Unique ID identifying the order / Invoice / Invoice
trx_id 32 Yes Transaction ID of Espay
trx_status 2 Yes Transaction Status



















Example Request:

POST /rest/digitalpay/void HTTP/1.1 Content-Length: 282 Content-Type: application/x-www-form-urlencoded Accept: */*Host: sandbox-api.espay.id Authorization: Basic U0dXUEFJREJBUTAyOkhOUlFLSENI rq_uuid=88996d80-e466-48f8-8b4b-be2334e0f0dc &comm_code=SGWYESSISHOP &product_code=OVO &order_id=SGWYESSIOVO000040 &trx_id=ESP1566967156ALDY &amount=10000 &signature=e3aa2465caa0b6300fca424aa5309a817697b7b5a3c3b76b4fbef1fc3c061b8f




Example Response:

{ "rq_uuid": "88996d80-e466-48f8-8b4b-be2334e0f0dc", "rs_datetime": "2019-08-28 11:44:58", "error_code": "0000", "error_message": "", "order_id": "SGWYESSIOVO000040", "trx_id": "ESP1566967156ALDY", "trx_status": "V" }