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. Invoice
  • About
  • Collection API
    • CallBanqSoft
      • banqsoft
    • Batches
      • Get all batches
      • Get organization batches
      • Get batch by ID
    • Collections
      • Retrieve cases for an organization
    • Invoice
      • Create a new invoice
        POST
      • Get organization invoices
        GET
      • Get invoice by ID
        GET
      • Get invoice documents by invoice id
        GET
      • Get invoice history by invoice id
        GET
      • Get invoice payments by invoice id
        GET
      • Pause invoice
        POST
      • Withdraw invoice
        POST
      • Resume invoice
        POST
    • Payment
      • Create new payments
    • Api Status
      • Ping the server
      • Ping the server to check if authorized
      • Check the status of the API health
    • Organizations
      • Get reports on a organization
    • Settlement
      • Retrieve settlements from an organization
  • AutoCollect
    • Attachment
      • /webapi/api/Attachment
    • Batch
      • /webapi/api/Batch
      • /webapi/api/Batch
    • Ping
      • /webapi/api/Ping
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. Invoice

Create a new invoice

POST
/orgs/{orgId}/invoices
Endpoint to create a new invoice in the system

Request

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

Body Params application/jsonRequired

Examples

Responses

🟢202Accepted
application/json
Accepted
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠422Unprocessable Entity
🟠429Too Many Requests
🔴500Internal Server Error
🔴503Service Unavailable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/orgs//invoices' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
    "invoices": [
        {
            "type": "NOTICE",
            "invoiceNumber": "string",
            "vat": true,
            "fees": true,
            "originalInvoiceAmount": 0,
            "currency": "NOK",
            "invoiceDate": "2019-08-24T14:15:22Z",
            "dueDate": "2019-08-24T14:15:22Z",
            "collectionNoticeDate": "2019-08-24T14:15:22Z",
            "ocrReferenceNumber": "string",
            "uniqueSourceInvoiceId": "string",
            "description": "string",
            "debtors": [
                {
                    "type": "Private",
                    "firstname": "string",
                    "lastname": "string",
                    "name": "string",
                    "customerNumber": "string",
                    "identificationNumber": "string",
                    "organizationNumber": "string",
                    "dateOfBirth": "string",
                    "emails": [
                        {
                            "value": "string"
                        }
                    ],
                    "phoneNumbers": [
                        null
                    ],
                    "addresses": [
                        {
                            "street": "string",
                            "city": "string",
                            "zipCode": "string",
                            "countryCode": "string"
                        }
                    ]
                }
            ],
            "claims": [
                {
                    "type": "Principal",
                    "remainingAmount": 0,
                    "description": "string"
                }
            ]
        }
    ]
}'
Response Response Example
202 - Example 1
"{\n  \"summary\": {\n    \"status\": \"SUCCESS\"\n  },\n  \"data\": {\n    \"batchId\": \"ae257e86-dc53-4865-9c97-5b125a3a5ac2\",\n    \"batchUrl\": \"https://api.amili.no/collection/v1/batches/ae257e86-dc53-4865-9c97-5b125a3a5ac2\"\n  }\n}"
Modified at 2025-09-23 10:42:55
Previous
Retrieve cases for an organization
Next
Get organization invoices
Built with