Orders

The basket, placing orders and following them.

The basket

GET/basket

Needs the permission ticket:manage

What is in it, with prices.

Response 200

idrequiredstring (uuid) | null
numberrequiredstring | null
placed_atrequiredstring (date-time) | null
placed_bystring | null
noterequiredstring
itemsrequiredobject[]
idrequiredstring (uuid)
kindrequiredstring
labelrequiredstring
monthsrequiredinteger | null
amountrequirednumber | null
currencyrequiredstring | null
tax_ratenumber | null
detailsrequiredmap of string
fieldsrequiredobject[]
keyrequiredstring
requiredrequiredboolean
typerequiredstring
max_lengthrequiredinteger
totalsrequiredobject[]
monthsrequiredinteger
amountrequirednumber
currencyrequiredstring
taxnumber | null
totalnumber | null
tax_ratesnumber[]default []
ticket_idstring | null
statusstring | null
closedbooleandefault false
curl "https://portal.nimag.net/api/v1/basket" \
  -H "Authorization: Bearer nck_…"
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "number": "string",
  "placed_at": "2026-01-31T12:00:00Z",
  "placed_by": "string",
  "note": "string",
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "string",
      "label": "string",
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax_rate": 0,
      "details": {},
      "fields": [
        {
          "key": "string",
          "required": true,
          "type": "string",
          "max_length": 0
        }
      ]
    }
  ],
  "totals": [
    {
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax": 0,
      "total": 0,
      "tax_rates": []
    }
  ],
  "ticket_id": "string",
  "status": "string",
  "closed": false
}

Conditions to accept

GET/basket/conditions

Needs the permission ticket:manage

What must be accepted to place an order, and where to read it.

Response 200: Successful Response.

curl "https://portal.nimag.net/api/v1/basket/conditions" \
  -H "Authorization: Bearer nck_…"
{}

Add to the basket

POST/basket/items

Needs the permission ticket:manage

Body (JSON)

kindrequiredstringup to 32 characters
planstringup to 120 characters, default ""
monthsinteger | nullfrom 1, up to 120
domainstringup to 253 characters, default ""

Response 201

idrequiredstring (uuid) | null
numberrequiredstring | null
placed_atrequiredstring (date-time) | null
placed_bystring | null
noterequiredstring
itemsrequiredobject[]
idrequiredstring (uuid)
kindrequiredstring
labelrequiredstring
monthsrequiredinteger | null
amountrequirednumber | null
currencyrequiredstring | null
tax_ratenumber | null
detailsrequiredmap of string
fieldsrequiredobject[]
keyrequiredstring
requiredrequiredboolean
typerequiredstring
max_lengthrequiredinteger
totalsrequiredobject[]
monthsrequiredinteger
amountrequirednumber
currencyrequiredstring
taxnumber | null
totalnumber | null
tax_ratesnumber[]default []
ticket_idstring | null
statusstring | null
closedbooleandefault false
curl -X POST "https://portal.nimag.net/api/v1/basket/items" \
  -H "Authorization: Bearer nck_…" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "string",
    "plan": "",
    "months": 0,
    "domain": ""
  }'
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "number": "string",
  "placed_at": "2026-01-31T12:00:00Z",
  "placed_by": "string",
  "note": "string",
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "string",
      "label": "string",
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax_rate": 0,
      "details": {},
      "fields": [
        {
          "key": "string",
          "required": true,
          "type": "string",
          "max_length": 0
        }
      ]
    }
  ],
  "totals": [
    {
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax": 0,
      "total": 0,
      "tax_rates": []
    }
  ],
  "ticket_id": "string",
  "status": "string",
  "closed": false
}

Remove from the basket

DELETE/basket/items/{item_id}

Needs the permission ticket:manage

Path

item_idrequiredstring (uuid)

Response 204: no content.

curl -X DELETE "https://portal.nimag.net/api/v1/basket/items/{item_id}" \
  -H "Authorization: Bearer nck_…"

Place the order

POST/basket/place

Needs the permission ticket:manage

Orders what is in the basket. The order is binding: Nimag invoices it.

Body (JSON)

notestringup to 4000 characters, default ""
detailsmap of map of stringdefault {}
acceptbooleandefault false

Response 201

idrequiredstring (uuid) | null
numberrequiredstring | null
placed_atrequiredstring (date-time) | null
placed_bystring | null
noterequiredstring
itemsrequiredobject[]
idrequiredstring (uuid)
kindrequiredstring
labelrequiredstring
monthsrequiredinteger | null
amountrequirednumber | null
currencyrequiredstring | null
tax_ratenumber | null
detailsrequiredmap of string
fieldsrequiredobject[]
keyrequiredstring
requiredrequiredboolean
typerequiredstring
max_lengthrequiredinteger
totalsrequiredobject[]
monthsrequiredinteger
amountrequirednumber
currencyrequiredstring
taxnumber | null
totalnumber | null
tax_ratesnumber[]default []
ticket_idstring | null
statusstring | null
closedbooleandefault false
curl -X POST "https://portal.nimag.net/api/v1/basket/place" \
  -H "Authorization: Bearer nck_…" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "",
    "details": {},
    "accept": false
  }'
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "number": "string",
  "placed_at": "2026-01-31T12:00:00Z",
  "placed_by": "string",
  "note": "string",
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "string",
      "label": "string",
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax_rate": 0,
      "details": {},
      "fields": [
        {
          "key": "string",
          "required": true,
          "type": "string",
          "max_length": 0
        }
      ]
    }
  ],
  "totals": [
    {
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax": 0,
      "total": 0,
      "tax_rates": []
    }
  ],
  "ticket_id": "string",
  "status": "string",
  "closed": false
}

List orders

GET/orders

Needs the permission ticket:read

Placed orders, newest first.

Response 200

idrequiredstring (uuid) | null
numberrequiredstring | null
placed_atrequiredstring (date-time) | null
placed_bystring | null
noterequiredstring
itemsrequiredobject[]
idrequiredstring (uuid)
kindrequiredstring
labelrequiredstring
monthsrequiredinteger | null
amountrequirednumber | null
currencyrequiredstring | null
tax_ratenumber | null
detailsrequiredmap of string
fieldsrequiredobject[]
keyrequiredstring
requiredrequiredboolean
typerequiredstring
max_lengthrequiredinteger
totalsrequiredobject[]
monthsrequiredinteger
amountrequirednumber
currencyrequiredstring
taxnumber | null
totalnumber | null
tax_ratesnumber[]default []
ticket_idstring | null
statusstring | null
closedbooleandefault false
curl "https://portal.nimag.net/api/v1/orders" \
  -H "Authorization: Bearer nck_…"
[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "number": "string",
    "placed_at": "2026-01-31T12:00:00Z",
    "placed_by": "string",
    "note": "string",
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "kind": "string",
        "label": "string",
        "months": 0,
        "amount": 0,
        "currency": "string",
        "tax_rate": 0,
        "details": {},
        "fields": [
          {
            "key": null,
            "required": null,
            "type": null,
            "max_length": null
          }
        ]
      }
    ],
    "totals": [
      {
        "months": 0,
        "amount": 0,
        "currency": "string",
        "tax": 0,
        "total": 0,
        "tax_rates": []
      }
    ],
    "ticket_id": "string",
    "status": "string",
    "closed": false
  }
]

An order

GET/orders/{order_id}

Needs the permission ticket:read

Path

order_idrequiredstring (uuid)

Response 200

idrequiredstring (uuid) | null
numberrequiredstring | null
placed_atrequiredstring (date-time) | null
placed_bystring | null
noterequiredstring
itemsrequiredobject[]
idrequiredstring (uuid)
kindrequiredstring
labelrequiredstring
monthsrequiredinteger | null
amountrequirednumber | null
currencyrequiredstring | null
tax_ratenumber | null
detailsrequiredmap of string
fieldsrequiredobject[]
keyrequiredstring
requiredrequiredboolean
typerequiredstring
max_lengthrequiredinteger
totalsrequiredobject[]
monthsrequiredinteger
amountrequirednumber
currencyrequiredstring
taxnumber | null
totalnumber | null
tax_ratesnumber[]default []
ticket_idstring | null
statusstring | null
closedbooleandefault false
curl "https://portal.nimag.net/api/v1/orders/{order_id}" \
  -H "Authorization: Bearer nck_…"
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "number": "string",
  "placed_at": "2026-01-31T12:00:00Z",
  "placed_by": "string",
  "note": "string",
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "string",
      "label": "string",
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax_rate": 0,
      "details": {},
      "fields": [
        {
          "key": "string",
          "required": true,
          "type": "string",
          "max_length": 0
        }
      ]
    }
  ],
  "totals": [
    {
      "months": 0,
      "amount": 0,
      "currency": "string",
      "tax": 0,
      "total": 0,
      "tax_rates": []
    }
  ],
  "ticket_id": "string",
  "status": "string",
  "closed": false
}
Orders · Nimag API