Closed Invoice Virtual Account
Merchant will send a request to close the invoices that have been created, because the bill is considered completed, then Espay will provide an invoice response in JSON format which states the request has been successful closed.
Flow
Merchant -> Espay
Method
HTTP Post
API URL
Development : https://sandbox-api.espay.id/rest/merchant/closeinvoice
Production : https://api.espay.id/rest/merchant/closeinvoice
Parameter Request:
Parameter Name | Max Length | Mandatory | Description |
rq_uuid | 64 | Yes | Request identifier. Unique id to identify these messages with other messages |
rq_datetime | 19 | Yes | Date and time in Espay application server when messages is sent |
order_id | 32 | Yes | Transaction Number / Invoice Id / unique id that identify the order / billing / invoice. |
comm_code | 32 | Yes | Merchant code listed in the Espay application |
signature | 64 | Yes | Signature required to validate by merchant, see page here for more detail |
Parameter Response:
Parameter Name | Max Length | Mandatory | Description |
rq_uuid | 4 | Yes | Request identifier. Unique id to identify these messages with other messages. |
rs_datetime | 32 | Yes | Date and time in Espay application server when messages is sent |
error_code | 4 | Yes | Error code on web service, 0000 means success |
error_message | 32 | Yes | Error description |