Update Invoice Attr

View as Markdown
### **Update Invoice Attr** This API use to update invoice details. API endpoint allow user to update invoice attributes by sending an HTTP POST request to the specified URL. The request should include the invoice ID, data, type, logo, posting triggered timestamp, posting errors, posting document number, and posting status flags. ### Request Body | Param | Required | Type | Description | | --- | --- | --- | --- | | invoiceId | Mandatory | String | The ID of the invoice to be updated. | | data | Mandatory | Object | The updated data for the invoice. | | type | Optional | String | The type of the invoice. | | logo | Optional | String | The logo associated with the invoice. | | postingTriggeredAt | Optional | Timestamp | Timestamp indicating when the posting was triggered. | | postingErrors | Optional | String | Any errors that occurred during posting. | | postingDocNo | Optional | String | The document number generated during posting. | | postingTriggered | Optional | Boolean | Boolean flag indicating if posting was triggered. | | postingFailed | Optional | Boolean | Boolean flag indicating if posting failed. | | postingSynced | Optional | Boolean | Boolean flag indicating if posting was synced. | ### Response Upon successful execution, the API returns a JSON object with a `success` key, indicating whether the update was successful. #### Example Response ``` json { "success": true } ```

Headers

DICE-APP-IDstringOptional
Company Code of client
X-CLIENT-IDstringOptional
API Client ID
X-CLIENT-SECRETstringOptional
API Client Secret

Request

This endpoint expects an object.
invoiceIdstringRequired
dataobjectRequired
typestringRequired
postingTriggeredAtintegerRequired
postingErrorsstringRequired
postingDocNostringRequired
postingTriggeredbooleanRequired
postingFailedbooleanRequired
postingSyncedbooleanRequired

Response

OK
successboolean