Create Shipment
Production
Production
POST
https://api.salla.dev/admin/v2/shipments
Shipments
Last modified:2025-02-05 08:33:34
Scopes
shipping.read_write
- Shipping Read & WriteRequest
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
shipment_id
integer | null
optional
courier_id
integer
required
Example:
1723506348
external_company_name
string
optional
overwrite_exists_pending
boolean
optional
Example:
true
shipment_type
enum<string>
required
Allowed values:
returnshipment
Example:
shipment
policy_options
object
optional
boxes
integer
optional
Example:
2
payment_method
enum<string>
required
Allowed values:
codpre_paid
Example:
cod
cash_on_delivery
object
optional
amount
number
required
Example:
200
currency
string
required
Example:
SAR
ship_to
object
optional
name
string
required
Example:
username
email
string
required
Example:
username@gmailcom
phone
string
required
Example:
555-555-555
country_id
string
required
Example:
1473353380
address_line
string
required
Example:
Tahlia Street
street_number
string
required
Example:
120
block
string
required
Example:
Block AB
postal_code
string
required
Example:
1000
geo_coordinates
object
optional
ship_from
object
optional
type
string
optional
Example:
address
name
string
optional
Example:
Username
phone
string
optional
Example:
555-555-555
country
string
optional
Example:
Saudi Arabia
city
string
optional
Example:
Mecca
address_line
string
optional
Example:
Mecca Street
street_number
string
optional
block
string
optional
postal_code
string
optional
latitude
number
optional
Example:
10.2345
longitude
number
optional
Example:
54.321
branch_id
integer
optional
Example:
194309
packages
array [object {5}]
required
name
string
optional
Example:
Package 1
sku
string
optional
Example:
SKU-123-456
price
object
optional
quantity
integer
optional
Example:
2
weight
object
optional
Example
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 POST 'https://api.salla.dev/admin/v2/shipments' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
object (Shipment)
optional
id
number
required
Example:
987654321
order_id
number
required
Example:
123456789
order_reference_id
number | null
required
created_at
object
required
type
enum<string>
required
Allowed values:
returnshipment
Example:
shipment
courier_id
integer
required
Example:
1723506348
courier_name
string
required
Example:
Semsa
courier_logo
string
required
Example:
https://semsa.com/assets/logo.png
external_company_name
string
optional
shipping_number
string
required
Example:
192837465
tracking_number
string
required
Example:
918273645
pickup_id
number
required
trackable
boolean
required
Example:
true
tracking_link
string
required
Example:
https://semsa.com/tracking/order_url.com
label
object
required
payment_method
enum<string>
required
Allowed values:
codpre_paid
Example:
cod
source
string
required
Example:
dashboard
status
enum<string>
required
Allowed values:
creatingcreatedpendingdeliveredreturnedin_progresscancelleddelivering
Example:
in_progress
total
object
required
cash_on_delivery
object
required
is_international
boolean
required
Example:
true
total_weight
object
required
packages
array [object {8}]
required
ship_from
object
required
ship_to
object
required
meta
object
required
billing_account
enum<string>
required
Allowed values:
sallamerchant
Example
{
"status": "anim",
"success": false,
"data": [
{
"id": -32645125.3234493,
"order_id": 93507000.57084745,
"order_reference_id": null,
"created_at": {
"date": "2024-02-12T14:09:27.127Z",
"timezone_type": 70745330,
"timezone": "America/Sao_Paulo"
},
"type": "shipment",
"courier_id": 8948698,
"courier_name": "esse numquam doloribus",
"courier_logo": "cupidatat fugiat qui id tempor",
"shipping_number": "velit est",
"tracking_number": "sint ad minim cillum",
"pickup_id": null,
"trackable": true,
"tracking_link": "https://high-level-footstep.name",
"label": {
"format": "2024-02-13T00:46:47.084Z",
"url": "http://wasteful-facet.name"
},
"payment_method": "pre_paid",
"source": "tempor",
"status": "delivered",
"total": {
"amount": -87094298.04461335,
"currency": "SHP"
},
"cash_on_delivery": {
"amount": 42126404.63522267,
"currency": "ILS"
},
"is_international": false,
"total_weight": {
"value": -57799137.09990661,
"units": "mollit laboris fugiat pariatur consectetur"
},
"packages": [
{
"item_id": 62924221,
"external_id": null,
"name": "explicabo dolores nesciunt",
"sku": "dolore non sed est incididunt",
"price": {
"amount": 88829593.05470765,
"currency": "SOS"
},
"quantity": -32542040,
"weight": {
"value": 38160911,
"units": "kg"
}
}
],
"ship_from": {
"type": "id",
"name": "laudantium ullam earum",
"email": "[email protected]",
"phone": "(065) 723-2847",
"country": "ليبيريا",
"city": "عجمان",
"address_line": "Excepteur",
"street_number": null,
"block": null,
"postal_code": null,
"latitude": 8.5867,
"longitude": -69.9668,
"branch_id": -1346031
},
"ship_to": {
"type": "dolor veniam dolor",
"name": "eligendi accusantium eum",
"email": "[email protected]",
"phone": "453.850.0142 x8168",
"country": "بهماس",
"city": "الإسكندرية",
"address_line": "ad sunt dolor",
"street_number": "37934 جادة بركات",
"block": "sunt aliquip deserunt Ut",
"postal_code": "Duis sit do proident occaecat",
"latitude": -39.1654,
"longitude": 93.9262
},
"meta": {
"app_id": 3349694,
"policy_options": {
"shipment_content_type": [
"document"
],
"packaging_type": [
"pallet"
],
"boxes": -69384132
}
},
"billing_account": "merchant"
}
]
}
🟠422Validation Error
Modified at 2025-02-05 08:33:34