Skip to main content
PUT
Update despatch
Only the descriptive fields of the despatch can be updated: Description, DocumentNumber, ActualDispatchDate, ShipmentDefinitionCode and SharingCode. The update is a full replacement of these fields: the ones you do not send are cleared. To change only some of them use partial update: PATCH changes only the fields you send. The lines, customer, date and time, despatch number, despatch type, payment term and amounts cannot be updated: if the request body contains any of them it is rejected (0002). To correct them, delete the despatch and create it again. A despatch that has already been sent as an e-Despatch cannot be deleted (7019), but its descriptive fields can still be updated.
PUT /api/v1/despatches/{despatchId}

Error codes

Codes this endpoint can return. The general errors that apply to every endpoint (authentication, permissions, request headers, request limits) are not repeated here.

Authorizations

Authorization
string
header
required

Access token obtained from the Noyax auth service with your API key.

Headers

X-UserID
integer<int32>
required

ID of the Noyax user the request is made on behalf of. Written to the audit fields of created, updated and deleted records.

Required range: x >= 1
X-CompanyID
integer<int32>
required

ID of the company. The user must be assigned to this company. All reads and writes are limited to this company.

Required range: x >= 1
X-PeriodID
integer<int32>

ID of the accounting period. Optional; if sent, it is written to created records.

Required range: x >= 1

Path Parameters

despatchId
string<uuid>
required

Despatch ID.

Body

Description
null | string

Description. At most 1000 characters.

DocumentNumber
null | string

Document number (free text). At most 100 characters.

Example:

"2026-15"

ActualDispatchDate
null | string<date>

Actual dispatch date. Date only (yyyy-MM-dd), no time part.

Example:

"2026-10-15"

ShipmentDefinitionCode
null | string

Shipment definition code from GET /api/v1/definitions/shipment-definitions.

SharingCode
null | string

Sharing code that limits who can see the despatch. Empty means visible to everyone; otherwise it must be one of the user's sharing codes.

Response

OK

Success
boolean
required

Whether the operation succeeded.

Example:

true

ResultCode
string
required

"0000" on success. On failure, the code of the first error; all errors are listed in Errors.

Example:

"0000"

Data
object
required

Response data. Null when Success is false.

Message
null | string

Error message when Success is false. Messages of all errors are joined into a single text.