Skip to main content
POST
Add Return Line Item

Authorizations

Authorization
string
header
required

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

Headers

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

The ID of the return the line item is added to.

Example:

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

Body

application/json

Request model for AddReturnLineItem command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

quantity
number<decimal>
required

The quantity of the line item.

stateId
string<uuid>

The state of the line item.

Example:

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

returnReasonId
string<uuid>

The return reason of the line item. Optional in general, but required when the return is assigned to a JTL Fulfillment Network warehouse.

Example:

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

returnReasonComment
string

The comment for the return reason.

conditionId
string<uuid>

The item condition after inspection.

Example:

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

conditionComment
string

The comment for the item condition.

credit
boolean

Indicates whether the line item should be credited.

salesOrderLineItemId
string<uuid>

Unique ID to identify a sales order item.

Example:

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

deliveryNoteLineItemId
string<uuid>

Unique ID to identify a delivery note item.

Example:

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

Response

Successfully added a line item to the return.

Adds a new line item to an existing return. On an installation connected to the fulfillment network, a line item that agrees with an existing one of the same return on delivery note position, state, condition, reason and comments is merged into that one instead, with the summed quantity; the response then addresses the surviving position. - Response

returnLineItemId
string<uuid>
required

The ID of the newly added line item.

Example:

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