Deny Invoice Bulk#
Deny Invoice Bulk API is used to Deny the Invoices using the given request payload. This api provides Invoice Denial feature for buyer
Route
/invx/apis/{iridessa-version}/orgs/{org-id}/edocuments/bulk
- active 'iridessa-version': v1
- method: PATCH
URL Parameters#
Name | Description | Type |
---|---|---|
iridessa-version | version of the API for example, v1 |
string |
org-id | theodore organisation id | string |
doc-id | document id | string |
Headers#
All headers are mentioned in common headers
Request#
Please refer the following request body for reference-
Sample request body
[
{
"docId": "010217a4-4fa2-4bec-9271-9df07fff2700",
"comments": "test deny",
"action": "dny"
}
]
Response#
Successful response will have the response in “data” attribute as a json
.
200
#
Sample response body
{
"status": "1",
"data": [
{
"itemStatus": "1",
"itemData": {
"id": "a6cf2392-bf98-4d94-8fb2-9dc323399df0",
"irn": "812c9d3cb631d7b8349ad7c5d4040a978a79666b2d28e1f6c25570bbaebfd123",
"docNumber": "YDD5EC67775BF474",
"docType": "100",
"docDate": "23/01/2023",
"sellerGstin": "27AAAPI3182M002",
"buyerGstin": "27ACBPN2353E1ZX",
"irdDocType":"POST",
"registeredOn": 1674449719000,
"ewbNo": 201009845700,
"ewbDate": 1674449700000,
"ewbValidTill": 1674584940000,
"amount": 100.00,
"acceptanceComments": null,
"denialComments": "test deny",
"disputeComments": null,
"cancellationComments": null,
"cancellationReason": null,
"status": "220",
"createdByUserId": "3e193e19-0d70-4938-9698-287f8bd947fb",
"createdOn": 1674449659615,
"lastUpdatedByUserId": "2a2e6f94-6b87-4e74-9692-483ffc127b04",
"lastUpdated": 1674449659702,
"annotations": [],
"irnResponse": null
},
"itemErrors": null,
"itemInfo": null,
"itemKey": null
}
],
"error": null,
"info": null
}
400 BAD REQUST
#
Sample Response Body
{
"error": {
"message": "err-incorrect-update-action",
"type": "ClientError",
"args": {
"message": "action dny on state 240.kotlin"
}
}
}
Note#
status
field in document is the state of the Document generated. Different Document states are as bellow -
100
->DRAFT
120
->REGISTRATIONFAILED
200
->CREATED
210
->ACCEPTED
220
->DENIED
230
->DISPUTED
240
->CANCELLED
250
->FROZEN
260
->DELETE
Last update: April 11, 2023