Get Document by Id#
Get Document by Id API is used to Get a Document using the given Document Id.
Route
/invx/apis/{iridessa-version}/orgs/{org-id}/document/{doc-id}
- active 'iridessa-version': v1
- method: GET
URL Parameters#
Name | Description | Type |
---|---|---|
iridessa-version | version of the API for example, v1 |
string |
org-id | theodore organisation id | string |
doc-id | documentation id | string |
Headers#
All headers are mentioned in common headers
Response#
Successful response will have the response in “data” attribute as a json
.
Sample response body
{
"status": "1",
"data": {
"id": "51463b55-fae8-449c-af37-fe0a6c634288",
"docNumber": "L68119CDC764C404",
"docType": "100",
"docDate": "24/01/2023",
"sellerGstin": "27AAAPI3182M002",
"buyerGstin": "27ACBPN2353E1ZX",
"irdDocType": "PRE",
"amount": 100.00,
"acceptanceComments": null,
"denialComments": null,
"disputeComments": null,
"status": "260",
"createdByUserId": "3e193e19-0d70-4938-9698-287f8bd947fb",
"createdOn": 1674557711172,
"lastUpdatedByUserId": "2a2e6f94-6b87-4e74-9692-483ffc127b04",
"lastUpdated": 1674557711255,
"annotations": []
},
"error": null,
"info": null
}
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: January 25, 2023