Invoice done/completed Update log: April 24th, 2024 Change Auth from Bearer to Basic Endpoint Endpoint Method Authentication /invoice/done POST yes Authentication Type Token source Server Basic Login and password same as USAPI Login USAPI Body request { "platform": "ONMARKET", "invoice_id": "OM0003d0CS00009", "invoice_onmarket": "INV/ONM/20240124-002B0001" } Properties Properties of Data type Required Description platform string yes ONINDONESIA services. Possible values: ONDELIVERY means the source of the transaction comes from ondelivery. ONTICKET means the source of the transaction comes from onticket. ONMARKET means the source of the transaction comes from onmarket. invoice_id string yes invoice ID generated by USAPI invoice_onmarket string no 1 Invoice ID generated by ONMARKET   1 if status of the invoice is PAID, it will be refunded to buyer's balance from each store. So invoice_onmarket is required. Result example 200 OK (Invoice status is PAID) { "message": "TRANSACTION IS COMPLETED" } Error example 400 Bad request { "message": "REFUND ALREADY IN PROCESS" } { "message": "TRANSACTION IS ALREADY CANCELED" } { "message": "EXPIRED INVOICE" } { "message": "TRANSACTION IS ALREADY COMPLETED" } 500 Internal server error { "message": "INTERNAL SERVER ERROR" }