Amili Docs
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
  1. Documents
  • About
  • ARM API
    • Health
      • Check API health
    • ArItems
      • Get one AR item
      • Get a list of AR items
      • Put (update) ar item details
    • Documents
      • Get one document
        GET
      • POST (create) a batch of documents
        POST
      • POST (create) one document
        POST
      • Get a list of documents
        GET
    • AutoPostings
      • POST (create) one or more auto postings
    • GlItems
      • Get one GL item
      • Get a list of GL items
    • Customers
      • Get one customer
      • Delete a customer
      • POST (create) a batch of customers
      • PUT (update) a batch of customers
      • PUT (update) one customer
      • GET a list of customers
      • POST (create) one customer
    • Batches
      • Get one batch
    • PaymentReservations
      • Creates a new payment reservation
    • Files
      • POST (upload) one or more OS files
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
Go to amili.no
  1. Documents

Get one document

GET
/clients/{clientno}/documents/{documentno}
Get details for one document based on documentNo as path parameter

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Query Params

Header Params

Responses

🟢200OK
application/json
Document found. See different response output examples for different document types and expand parameter options
Headers

Body

🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/clients//documents/?expand&userid' \
--header 'Accept-Language;' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Get document response, invoice
{
    "clientNo": 2218,
    "accountNo": 500002,
    "referenceNo": 35078,
    "documentType": "IN",
    "documentTypeDescription": "Invoice",
    "customerNo": "543210",
    "documentNo": "88776655",
    "documentDate": "2025-02-27",
    "dueDate": "2025-03-11",
    "documentStatusCode": 9,
    "documentStatusDescription": "Doc distributed",
    "documentId": "2010022183000350782",
    "documentUuid": "waG0vjD244OiFCxPYMAEvQ",
    "documentBundleId": 432735,
    "documentBundleDate": "2025-02-27",
    "currency": "NOK",
    "directDebit": 0,
    "postalReturnStatus": 0,
    "deliveryDate": "2025-02-25",
    "language": "en",
    "usingLanguage": "en",
    "kid": "500221850000200350786",
    "marketingMessageCode": "0203",
    "customerMessage": "Happy holidays!",
    "salesOrderId": "B-0564311",
    "purchaseOrderId": "",
    "sellerReference": "C333",
    "buyerReference": "A1982",
    "additionalReference": "X99887",
    "subCustomerNo": "654655",
    "arItemId": "2218-500002-35078-0",
    "createdTime": "2025-02-23T16:06:46.557+01:00",
    "currencyAmounts": {
        "exclVat": 5200,
        "vat": 1300,
        "inclVat": 6500
    },
    "distribution": {
        "type": "M",
        "einvoiceCode": 0,
        "typeDescription": "Email"
    },
    "einvoiceAddress": {
        "address": "87654321",
        "addressScheme": "",
        "operator": ""
    },
    "emailAddress": [
        "test@armresttest.no"
    ],
    "attachmentFiles": [],
    "attachmentCodes": [],
    "customCodes": [],
    "documentLines": [
        {
            "lineNo": 1,
            "lineType": "PLH",
            "articleNo": "1300",
            "articleName": "Comb",
            "lineText": "Red comb",
            "quantityUnit": "kg",
            "quantity": 1,
            "volumeUnit": "",
            "volume": 0,
            "price": 200,
            "discountPercent": 7.5,
            "glDim1": 321,
            "glDim2": 0,
            "glDim3": "Appliance",
            "glDim4": "",
            "bookkeepingCode": 0,
            "itemGroup1": "500",
            "itemGroup2": "",
            "itemGroup3": "",
            "currencyAmounts": {
                "exclVat": 200,
                "vat": 50,
                "inclVat": 250
            }
        },
        {
            "lineNo": 2,
            "lineType": "PLH",
            "articleNo": "1500",
            "articleName": "Pill",
            "lineText": "Purple pill",
            "quantityUnit": "dozen",
            "quantity": 1,
            "volumeUnit": "",
            "volume": 0,
            "price": 5000,
            "discountPercent": 0,
            "glDim1": 321,
            "glDim2": 0,
            "glDim3": "Medicine",
            "glDim4": "",
            "bookkeepingCode": 0,
            "itemGroup1": "500",
            "itemGroup2": "",
            "itemGroup3": "",
            "currencyAmounts": {
                "exclVat": 5000,
                "vat": 150,
                "inclVat": 6250
            }
        },
        {
            "lineNo": 3,
            "lineType": "TXT",
            "articleNo": "",
            "articleName": "",
            "lineText": "This is a text line with no amounts",
            "quantityUnit": "",
            "quantity": 0,
            "volumeUnit": "",
            "volume": 0,
            "price": 0,
            "discountPercent": 0,
            "glDim1": 0,
            "glDim2": 0,
            "glDim3": "",
            "glDim4": "",
            "bookkeepingCode": 0,
            "itemGroup1": "",
            "itemGroup2": "",
            "itemGroup3": "",
            "currencyAmounts": {
                "exclVat": 0,
                "vat": 0,
                "inclVat": 0
            }
        }
    ]
}
Modified at 2025-09-29 16:08:55
Previous
Put (update) ar item details
Next
POST (create) a batch of documents
Built with