Skip to main content
PATCH
Update Return

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-companyid
string

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

Idempotency-Key
string

Optional, client-generated key for deduplicating repeated write requests. A repeated request with the same key returns the originally recorded result instead of executing the effect again.

Required string length: 1 - 255
x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

returnId
string<uuid>
required
Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

Body

application/json

Request parameters

Updates the header data of an existing return - external and internal comment, contact, company, warehouse and sales channel transmission. Line items are updated via the line item endpoint. The state of the return is inferred from its line items and cannot be set directly. - Request

externalComment
string

The external comment of the return.

internalComment
string

The internal comment of the return.

contact
string

The contact person of the return.

companyId
string<uuid>

The company of the return.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

transmitToSalesChannel
boolean

Indicates whether the return should be transmitted to the sales channel.

warehouseId
string<uuid>

The warehouse of the return.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

Response

The updated return.

Model Class: Return

id
string<uuid>
required

Unique ID to identify a return.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

returnNumber
string
required

The number of the return.

returnDate
string<date-time>
required

The date when the return was created.

customerId
string<uuid>
required

The customer ID.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

externalNumber
string
required

An arbitrary external reference number for identifying the return.

origin
enum<integer>
required

Indicates the origin of the return, specifying where or how the return was initiated.

Available options:
0,
1,
2,
3,
4,
5,
6,
7
companyId
string<uuid>
required

The company of the corresponding sales order.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

salesOrderId
string<uuid>
required

The ID of the sales order if the return has exactly one corresponding sales order.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

stateId
string<uuid>
required

The ID of the return state.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

warehouseId
string<uuid>
required

The ID of the warehouse.

Example:

"b45f6432-2462-4c6f-b00f-1d9d01000000"

externalComment
string
required

The external comment of the return.

internalComment
string
required

The internal comment of the return.

contact
string
required

The contact of the return.

transmitToSalesChannel
boolean
required

Indicates whether the return should be transmitted to the sales channel.