Skip to main content
GET
/
returns
/
{returnId}
/
packages
Query Return Packages
curl --request GET \
  --url https://api.jtl-cloud.com/erp/returns/{returnId}/packages \
  --header 'Authorization: Bearer <token>' \
  --header 'x-tenant-id: <x-tenant-id>'
[
  {
    "Id": 123,
    "ReturnId": 123,
    "TrackingID": "<string>",
    "ShippingMethodId": 123,
    "ShippingMethodCustom": "<string>"
  }
]

Authorizations

Authorization
string
header
required

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

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-companyid
string

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

Path Parameters

returnId
integer<int32>
required

The id of the return that the packages belong to.

Response

The requested packages.

Id
integer<int32>
required

Unique ID to identify a return package.

ReturnId
integer<int32>
required

Unique ID to identify a return.

TrackingID
string
required

The tracking Id of the package.

ShippingMethodId
integer<int32>

The shipping method.

ShippingMethodCustom
string

The custom shipping method name used for the return. This value may only be set if ShippingMethodId is not provided.