Skip to main content

Revert from Summary Tab API

Introduction​

Reverts an entry from the invoice summary tab back to generated invoice: InvoiceService.revertToGeneratedInvoiceFromSummary(invoiceNo, ackPosNo, tenantId). Logs activity with the invoice number.

Source: InvoiceHomePageAPI.revertFromSummaryTab — transportsupplyproject/src/in/greenorange/api/invoice/InvoiceHomePageAPI.java.

See also: Invoice Home — all endpoints.


HTTP Endpoint​

| URL | /rest/invoicehome/revertFromSummaryTab | | Method | POST |


Request Body (JSON)​

FieldTypeRequiredDescription
userIdStringYesActivity user.
userNameStringYesAuth.
authKeyStringYesAuth.
invoiceNoStringYesInvoice number.
ackPosNoStringYesAcknowledgement or Postlaju number associated with the summary row.

Response​

{"reverted":true}

Example​

{
"userId": "42",
"userName": "alice",
"authKey": "k",
"invoiceNo": "INV-001",
"ackPosNo": "ACK-100"
}