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. PaymentReservations
  • 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
      • 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
        POST
    • 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. PaymentReservations

Creates a new payment reservation

POST
/clients/{clientno}/paymentreservations
Creates a new payment reservation connected to an existing document's AR item or to an existing customer. There are alternative ways to identify this document or customer, you must fulfill at least one of them.
Ways to identify a document:
arItemId (The AR item ID of the document's AR posting)
documentNo
documentUuid
referenceNo
kid (document KID)
Ways to identify a customer:
accountNo (AR account number)
customerNo
kid (customer KID)
The payment reservation must also have a unique paymentId to identify the transaction for later settlement/posting to GL/AR. (The settlement data must contain a reference to the same paymentId.)
The paid amount (currencyAmountPaid) must be a positive amount.

Request

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

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
OK. The request succeeded
Body

🟢201Created
🟠400Bad Request
🟠403Forbidden
🟠422Unprocessable Entity
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/clients//paymentreservations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "metadata": {
        "userId": "TestUser"
    },
    "paymentreservation": {
        "arItemId": "2218-500002-35078-0",
        "paymentId": "PM285000350786",
        "currency": "NOK",
        "currencyAmountPaid": 120.5,
        "transactionText": "Prepaid membership fee",
        "paidTime": "2025-04-27T07:08:37.227+01:00",
        "unstructuredData": [
            {
                "name": "SalesRep",
                "value": "John Doe"
            }
        ]
    }
}'
Response Response Example
200 - Payment reservation validated
{
    "status": "PROCESSED",
    "result": "VALIDATED",
    "message": "Payment reservation validated",
    "clientNo": 2218,
    "accountNo": 500002,
    "customerNo": "543210"
}
Modified at 2025-09-29 16:08:55
Previous
Get one batch
Next
POST (upload) one or more OS files
Built with