- Integration API
- account
- import
- orders
- return
- from-template
- quote
- {orderId}
- status
- hold
- charges
- items
- trackeditemslog
- barcodes
- label
- Update an orderPATCH
- Get an orderGET
- Cancel an orderDELETE
- status
- search
- items
- Create a new orderPOST
- order-templates
- routes
- subscriptions
- userfields
- account
Update items of an order
Testing Env
Testing Env
PUT
https://statimlogistics-test.dsapp.io/integration/api/v1/orders/{orderId}/items
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Path Params
orderId
string
required
Example:
<string>
Header Params
Content-Type
string
required
Example:
application/json
Accept
string
required
Example:
text/plain
Body Params application/json
array of:
itemId
string
required
barcode
string
required
exceptionCodes
array [object {9}]
required
addedAt
integer
required
exceptionCodeTypeId
string
required
displayName
string
required
description
string
required
code
string
required
isVisibleByDriver
string
required
isDamaged
string
required
dispatchOption
integer
required
types
array[string]
required
parcelTypeId
string
required
description
string
required
weight
string
required
height
string
required
length
string
required
width
string
required
userFields
array [object {2}]
required
userFieldId
string
required
value
string
required
Example
[
{
"itemId": "<string>",
"barcode": "<string>",
"exceptionCodes": [
{
"addedAt": 0,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
},
{
"addedAt": 2,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
}
],
"parcelTypeId": "<string>",
"description": "<string>",
"weight": "<double>",
"height": "<double>",
"length": "<double>",
"width": "<double>",
"userFields": [
{
"userFieldId": "<string>",
"value": "<string>"
},
{
"userFieldId": "<string>",
"value": "<string>"
}
]
},
{
"itemId": "<string>",
"barcode": "<string>",
"exceptionCodes": [
{
"addedAt": 2,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
},
{
"addedAt": 1,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
}
],
"parcelTypeId": "<string>",
"description": "<string>",
"weight": "<double>",
"height": "<double>",
"length": "<double>",
"width": "<double>",
"userFields": [
{
"userFieldId": "<string>",
"value": "<string>"
},
{
"userFieldId": "<string>",
"value": "<string>"
}
]
}
]
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://statimlogistics-test.dsapp.io/integration/api/v1/orders/<string>/items' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '[
{
"itemId": "<string>",
"barcode": "<string>",
"exceptionCodes": [
{
"addedAt": 0,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
},
{
"addedAt": 2,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
}
],
"parcelTypeId": "<string>",
"description": "<string>",
"weight": "<double>",
"height": "<double>",
"length": "<double>",
"width": "<double>",
"userFields": [
{
"userFieldId": "<string>",
"value": "<string>"
},
{
"userFieldId": "<string>",
"value": "<string>"
}
]
},
{
"itemId": "<string>",
"barcode": "<string>",
"exceptionCodes": [
{
"addedAt": 2,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
},
{
"addedAt": 1,
"exceptionCodeTypeId": "<string>",
"displayName": "<string>",
"description": "<string>",
"code": "<string>",
"isVisibleByDriver": "<boolean>",
"isDamaged": "<boolean>",
"dispatchOption": 1,
"types": [
"<string>",
"<string>"
]
}
],
"parcelTypeId": "<string>",
"description": "<string>",
"weight": "<double>",
"height": "<double>",
"length": "<double>",
"width": "<double>",
"userFields": [
{
"userFieldId": "<string>",
"value": "<string>"
},
{
"userFieldId": "<string>",
"value": "<string>"
}
]
}
]'
Responses
🟢200Items updated.
text/plain
Body
object {0}
🟠400Request has invalid values
🟠404Order not found
🔴500An error occurred when trying to update the items
🟠401Unauthorized
Modified at 2025-02-27 06:47:19