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. Customers
  • 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
      • POST (create) a batch of documents
      • POST (create) one document
      • Get a list of documents
    • AutoPostings
      • POST (create) one or more auto postings
    • GlItems
      • Get one GL item
      • Get a list of GL items
    • Customers
      • Get one customer
        GET
      • Delete a customer
        DELETE
      • POST (create) a batch of customers
        POST
      • PUT (update) a batch of customers
        PUT
      • PUT (update) one customer
        PUT
      • GET a list of customers
        GET
      • POST (create) one customer
        POST
    • 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. Customers

PUT (update) a batch of customers

PUT
/clients/{clientno}/customers/batches
Update a batch of customers.
There are two ways to update/PUT customers:
Use PUT /clients/{clientno}/customers to update one customer; input one customer object. The data will be validated and customer updated immediately. You will get a response describing the status and result. The updated customer data will be avalibale immediately. Or:
Use PUT /clients/{clientno}/customers/batches to update a batch of customers; input an array of customer objects. The data will be stored, but not processed immediately. The output will present a batchUuid that you must keep track of. Processing is done asynchronously (later) and the bathcUuid can be used to retrieve the batch processing status and result using GET /clients/{clientno}/batches/{batchuuid}

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 for processing
Body

đźź 400Bad Request
đźź 403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/clients//customers/batches' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "metadata": {
        "userId": "TestUser"
    },
    "customers": [
        {
            "customerNo": "543210",
            "name": "Owe Armstrong",
            "customerCategory": "CONS",
            "phoneNo": "99887766",
            "organizationNo": "984842252",
            "dateOfBirth": "1956-01-12",
            "sellerReference": "ARMref",
            "buyerReference": "OA",
            "postalAddress": {
                "addressLine1": "C/O ARMchair industries",
                "addressLine2": "707 Arm street",
                "addressLine3": "Appartment 8",
                "postalCode": "1234",
                "cityName": "Oslo",
                "countryText": "Norway"
            },
            "emailAddressDocument": [
                "owea@testarmrest.no"
            ],
            "secondaryEmailAddress": [
                "test2.email@testarmrest.no"
            ],
            "distribution": {
                "type": "M",
                "einvoiceCode": 0
            }
        },
        {
            "customerNo": "765432",
            "name": "Bill Lossius",
            "customerCategory": "CONS",
            "phoneNo": "98989898",
            "organizationNo": "987654321",
            "buyerReference": "BL",
            "postalAddress": {
                "addressLine1": "Farm alley 9",
                "addressLine2": "Birchwood neighborhood",
                "postalCode": "5432",
                "cityName": "Bergen",
                "countryCode": "NO"
            },
            "distribution": {
                "type": "M"
            }
        }
    ]
}'
Response Response Example
202 - Batch accepted for treatment
{
    "status": "NOT-PROCESSED",
    "result": "PENDING",
    "message": "Document batch accepted for processing",
    "batchUuid": "8NlwdOIM1YLVFP9-WOwkYQ",
    "getResult": "https://api.staging.amili.no/arm/v1/clients/2218/batches/8NlwdOIM1YLVFP9-WOwkYQ"
}
Modified at 2025-09-29 16:08:55
Previous
POST (create) a batch of customers
Next
PUT (update) one customer
Built with