App Cycle
Note
shipment.creating
& shipment.cancelled
. Creating New Shipment
completed | تم التنفيذ
Generate Policy | اصدار بوليصة
buttonshipment.creating
, will be triggered and sent to your shipping app. As a result, you will be able to use the shipment information, such as the recipient's address and the items being shipped, to create the shipment and set up the delivery process, and the Merchant will be able to download the shipment policy.Webhook Payload shipment.creating
Update Shipment Request Body
Update Shipment Response Body
Payload
Response
The following payload is correspondent to when the Event Name Merchant ID who installed the application on their store. Get details on the Merchant via the ID using the endpoint here Webhook Created At Date Timestamp This field refers to a unique identifier for the shipment. This field refers to the unique identifier for the order associated with the shipment. This field refers to a reference ID that can be used to look up additional information about the order Shipment Type Shipment Courier ID. Find a complete list of Shipment companies here Shipment Courier Name Shipment Courier Logo Shipment Shipping Number Shipment Tracking Number Shipment Pickup ID Whether or not the shipment is trackable Shipment Tracking Link Shipment Payment Method Shipment Source Shipment Status Whether the shipment is shipped internationally The type of the company billing account
shipment.creating
event is firedShipments Webhook Events Model
This webhook schema defines shipment event properties, including event name, merchant ID, creation timestamp, shipment data (order and shipment ID, type, courier, tracking, payment, and status), and other details. The webhook provides shipment-specific details to update the receiver's systems.
event
enum<string>
optional
Allowed values:
shipment.creatingshipment.createdshipment.updatedshipment.cancelled
merchant
number
optional
created_at
string
optional
data
object
optional
id
number
optional
Example:
987654321
order_id
integer
optional
Example:
123456789
order_reference_id
number | null
optional
created_at
object
optional
type
enum<string>
optional
Allowed values:
returnshipment
Example:
shipment
courier_id
integer
optional
Example:
1723506348
courier_name
string
optional
Example:
Semsa
courier_logo
string
optional
Example:
https://semsa.com/assets/logo.png
shipping_number
string
optional
Example:
192837465
tracking_number
string
optional
Example:
918273645
pickup_id
null
optional
Example:
10954392
trackable
boolean
optional
Example:
true
tracking_link
string
optional
Example:
https://semsa.com/tracking/order_url.com
label
object
optional
payment_method
enum<string>
optional
Allowed values:
codpre_paid
Example:
cod
source
string
optional
Example:
dashboard
status
enum<string>
optional
Allowed values:
createdin_progressdeliveringdeliveredshippedcancelled
Example:
in_progress
total
object
optional
cash_on_delivery
object
optional
is_international
boolean
optional
Example:
true
total_weight
object
optional
packages
array [object {8}]
optional
ship_from
object
optional
ship_to
object
optional
meta
object
optional
billing_account
enum<string>
optional
Allowed values:
sallamerchant
Note
cost
variable, containing the actual cost value of the Shipping that the Merchant will be charged for, which is calculated per the shipping App's actual costs. Ensure to include VAT in the cost.Updating Shipment / Order Status
Payload
Sample
Sample Example - Order / Shipment Status
shipment_number
string
required
status
enum<string>
required
enum
values.Allowed values:
createdshippeddeliveringdeliveredin_progresscancelled
Required vs Optional Parameters
"shipment_number"
and "status"
values åre required and must match the value used in the first update shipment request. The rest of the parameters are optional.Available Statuses
•
"created"
•
"shipped"
•
"delivering"
•
"delivered"
•
"in_progress"
•
"cancelled"
Exception Shipment Statuses
"shipped"
, "delivering"
, or "delivered"
, the status cannot be updated to "created"
nor "in_progress"
Update Shipments / Orders Diagram
Handling Returns
shipment.creating
will be triggered with the type
value set to return
in the payload.restoring
or restored
Generate Return Policy | اصدار بوليصة ارجاع
buttonWebhook Payload shipment.creating
Update Shipment Request Body
Update Shipment Response Body
Payload
Response
The following payload is correspondent to when the Event Name Merchant ID who installed the application on their store. Get details on the Merchant via the ID using the endpoint here Webhook Created At Date Timestamp This field refers to a unique identifier for the shipment. This field refers to the unique identifier for the order associated with the shipment. This field refers to a reference ID that can be used to look up additional information about the order Shipment Type Shipment Courier ID. Find a complete list of Shipment companies here Shipment Courier Name Shipment Courier Logo Shipment Shipping Number Shipment Tracking Number Shipment Pickup ID Whether or not the shipment is trackable Shipment Tracking Link Shipment Payment Method Shipment Source Shipment Status Whether the shipment is shipped internationally The type of the company billing account
shipment.creating
event is fired with the "type"
variable set to "return"
.Shipments Webhook Events Model
This webhook schema defines shipment event properties, including event name, merchant ID, creation timestamp, shipment data (order and shipment ID, type, courier, tracking, payment, and status), and other details. The webhook provides shipment-specific details to update the receiver's systems.
event
enum<string>
optional
Allowed values:
shipment.creatingshipment.createdshipment.updatedshipment.cancelled
merchant
number
optional
created_at
string
optional
data
object
optional
id
number
optional
Example:
987654321
order_id
integer
optional
Example:
123456789
order_reference_id
number | null
optional
created_at
object
optional
type
enum<string>
optional
Allowed values:
returnshipment
Example:
shipment
courier_id
integer
optional
Example:
1723506348
courier_name
string
optional
Example:
Semsa
courier_logo
string
optional
Example:
https://semsa.com/assets/logo.png
shipping_number
string
optional
Example:
192837465
tracking_number
string
optional
Example:
918273645
pickup_id
null
optional
Example:
10954392
trackable
boolean
optional
Example:
true
tracking_link
string
optional
Example:
https://semsa.com/tracking/order_url.com
label
object
optional
payment_method
enum<string>
optional
Allowed values:
codpre_paid
Example:
cod
source
string
optional
Example:
dashboard
status
enum<string>
optional
Allowed values:
createdin_progressdeliveringdeliveredshippedcancelled
Example:
in_progress
total
object
optional
cash_on_delivery
object
optional
is_international
boolean
optional
Example:
true
total_weight
object
optional
packages
array [object {8}]
optional
ship_from
object
optional
ship_to
object
optional
meta
object
optional
billing_account
enum<string>
optional
Allowed values:
sallamerchant
Cancelling Shipment
type
value set to return
or shipment
, depending on the canceled shipment.shipment.cancelled
, will be triggered and sent to the shipping app, which then will be able to access the updated shipment information and handle the cancellation process. Webhook Payload shipment.cancelled
When the event is fired successfully, the shipping App is expected to receive the following payloadEvent Name Merchant ID who installed the application on their store. Get details on the Merchant via the ID using the endpoint here Webhook Created At Date Timestamp This field refers to a unique identifier for the shipment. This field refers to the unique identifier for the order associated with the shipment. This field refers to a reference ID that can be used to look up additional information about the order Shipment Type Shipment Courier ID. Find a complete list of Shipment companies here Shipment Courier Name Shipment Courier Logo Shipment Shipping Number Shipment Tracking Number Shipment Pickup ID Whether or not the shipment is trackable Shipment Tracking Link Shipment Payment Method Shipment Source Shipment Status Whether the shipment is shipped internationally The type of the company billing account
Payload
Response
Shipments Webhook Events Model
This webhook schema defines shipment event properties, including event name, merchant ID, creation timestamp, shipment data (order and shipment ID, type, courier, tracking, payment, and status), and other details. The webhook provides shipment-specific details to update the receiver's systems.
event
enum<string>
optional
Allowed values:
shipment.creatingshipment.createdshipment.updatedshipment.cancelled
merchant
number
optional
created_at
string
optional
data
object
optional
id
number
optional
Example:
987654321
order_id
integer
optional
Example:
123456789
order_reference_id
number | null
optional
created_at
object
optional
type
enum<string>
optional
Allowed values:
returnshipment
Example:
shipment
courier_id
integer
optional
Example:
1723506348
courier_name
string
optional
Example:
Semsa
courier_logo
string
optional
Example:
https://semsa.com/assets/logo.png
shipping_number
string
optional
Example:
192837465
tracking_number
string
optional
Example:
918273645
pickup_id
null
optional
Example:
10954392
trackable
boolean
optional
Example:
true
tracking_link
string
optional
Example:
https://semsa.com/tracking/order_url.com
label
object
optional
payment_method
enum<string>
optional
Allowed values:
codpre_paid
Example:
cod
source
string
optional
Example:
dashboard
status
enum<string>
optional
Allowed values:
createdin_progressdeliveringdeliveredshippedcancelled
Example:
in_progress
total
object
optional
cash_on_delivery
object
optional
is_international
boolean
optional
Example:
true
total_weight
object
optional
packages
array [object {8}]
optional
ship_from
object
optional
ship_to
object
optional
meta
object
optional
billing_account
enum<string>
optional
Allowed values:
sallamerchant
🎉
Modified at 2025-01-05 10:22:13