Skip to content

Create Bulk Simple Document#

Create Bulk Simple Document

Route

/invx/apis/{iridessa-version}/orgs/{org-id}/simple/bulk

- active 'iridessa-version': v1
- method: POST

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

Request#

Please refer the following request body for reference-

Sample request body

[
  {
    "Version": "1.1",
    "DocDtls": {
      "Typ": "INV",
      "No": "JB1142A6C21ED4B6",
      "Dt": "21/11/2022"
    },
    "SellerGstin": "27AAAPI3182M002",
    "SellerPAN": "AAAPI3182M",
    "BuyerGstin": "27ACBPN2353E1ZX",
    "BuyerPAN": "ACBPN2353E",
    "TotInvVal": 100.0
  }
]

Response#

Successful response will have the response in “data” attribute as a json.

Sample response body

{
  "status": "1",
  "data": [
    {
      "itemStatus": "1",
      "itemData": {
        "id": "fbf6390f-dc20-458d-97b3-b5e027912f65",
        "docNumber": "I200148B25E564A7",
        "docType": "100",
        "docDate": "26/04/2023",
        "sellerGstin": "27AAAPI3182M002",
        "sellerPAN": "AAAPI3182M",
        "buyerGstin": "27ACBPN2353E1ZX",
        "buyerPAN": "ACBPN2353E",
        "irdDocType": "SMP",
        "amount": 100.0,
        "acceptanceComments": null,
        "denialComments": null,
        "disputeComments": null,
        "status": "270",
        "createdByUserId": "3e193e19-0d70-4938-9698-287f8bd947fb",
        "createdOn": 1682489152423,
        "lastUpdatedByUserId": null,
        "lastUpdated": null,
        "annotations": []
      },
      "itemErrors": null,
      "itemInfo": null,
      "itemKey": null
    }
  ],
  "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: April 26, 2023