本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
{
"event": "order.shipment.creating",
"merchant": 0,
"created_at": "string",
"data": {
"id": 0,
"reference_id": 0,
"urls": {
"customer": "https://salla.sa/StoreLink",
"admin": "https://s.salla./YourStoreDashboard"
},
"date": {
"date": "2019-08-24T14:15:22Z",
"timezone_type": 0,
"timezone": "string"
},
"source": "string",
"source_device": "string",
"source_details": {
"type": "string",
"value": "string",
"device": "string",
"user-agent": "string",
"ip": "string"
},
"first_complete_at": "string",
"status": {
"id": 0,
"name": "string",
"slug": "string",
"customized": {
"id": 0,
"name": "string"
}
},
"payment_method": "string",
"currency": "string",
"amounts": {
"sub_total": {
"amount": 0,
"currency": "string"
},
"shipping_cost": {
"amount": 0,
"currency": "string"
},
"cash_on_delivery": {
"amount": 0,
"currency": "string"
},
"tax": {
"percent": "string",
"amount": {
"amount": 0,
"currency": "string"
}
},
"discounts": [
{
"title": "string",
"type": "string",
"code": "string",
"discount": "string",
"discounted_shipping": 0
}
],
"total": {
"amount": 0,
"currency": "string"
}
},
"shipping": {
"id": 0,
"app_id": 0,
"company": "string",
"logo": "string",
"receiver": {
"name": "string",
"email": "string",
"phone": "string"
},
"shipper": {
"name": "string",
"company_name": "string",
"email": "string",
"phone": "string"
},
"pickup_address": {
"country": "string",
"country_code": "string",
"city": "string",
"shipping_address": "string",
"street_number": "string",
"block": "string",
"postal_code": "string",
"geo_coordinates": {
"lat": 0,
"lng": 0
}
},
"address": {
"country": "string",
"country_code": "string",
"city": "string",
"shipping_address": "string",
"street_number": "string",
"block": "string",
"postal_code": "string",
"geo_coordinates": {
"lat": 0,
"lng": 0
}
},
"shipment": {
"id": 0,
"pickup_id": 0,
"tracking_link": "string",
"label": [
{
"format": "string",
"url": "string"
}
]
},
"policy_options": [
{
"boxes": "string"
}
],
"shipment_reference": 2030962235,
"branch_id": 2094289474
},
"shipments": {
"shipment_reference": 2030962235,
"created_at": "string",
"type": "shipment",
"id": "0",
"tracking_number": "0",
"courier_id": 665151403,
"courier_name": "أي مكان",
"courier_logo": "https://logo.com/shipping/aymakan.png",
"pickup_id": 0,
"trackable": true,
"tracking_link": "https://aymakan.com.sa/ar/tracking/0",
"label": [
"string"
],
"ship_to": {
"name": "Username",
"email": "username@gmail.com",
"phone": "9665231852655555",
"country": "SA",
"country_code": "SA",
"city": "جدة",
"address_line": "شارع Makkah, Makkah، الحي NEW YORK 11434،, Makkah, Makkah,, جدة, السعودية",
"street_number": "Makkah, Makkah",
"block": "NEW YORK",
"postal_code": "11414",
"latitude": 40.6413111,
"longitude": -73.7781391
},
"ship_from": {
"name": "المستودع الرئيسي",
"company_name": "Routine",
"email": "companyuser@gmail.com",
"phone": "9665231852655555",
"country": "السعودية",
"city": "Riyadh",
"address_line": "3481,السلي,62465, 3481، السلي، الرياض 14322 7487، السعودية, Riyadh,السعودية",
"street_number": "3481",
"block": "السلي",
"postal_code": "62",
"latitude": 18.2952212,
"longitude": 42.755331
},
"total_weight": {
"value": 8.052,
"units": "kg"
},
"packages": [
{
"weight": {
"value": "8",
"units": "string"
}
}
],
"is_international": false,
"meta": {
"app_id": 944213936,
"branch_id": 2030962235,
"policy_options": {
"boxes": "1"
}
}
},
"can_cancel": true,
"show_weight": true,
"can_reorder": true,
"is_pending_payment": true,
"pending_payment_ends_at": 0,
"total_weight": "string",
"rating_link": "string",
"shipment_branch": {
"id": 0,
"name": "string",
"status": "string",
"is_default": true,
"type": "string"
},
"customer": {
"id": 0,
"first_name": "string",
"last_name": "string",
"mobile": 0,
"mobile_code": "string",
"email": "user@example.com",
"urls": {
"customer": "https://salla.sa/StoreLink",
"admin": "https://s.salla./YourStoreDashboard"
},
"avatar": "string",
"gender": "male",
"birthday": {
"date": "2019-08-24T14:15:22Z",
"timezone_type": 0,
"timezone": "string"
},
"city": "string",
"country": "string",
"country_code": "string",
"currency": "string",
"location": "string",
"updated_at": {
"date": "2019-08-24T14:15:22Z",
"timezone_type": 0,
"timezone": "string"
},
"groups": [
0
]
},
"items": [
{
"id": 0,
"product_id": 0,
"name": "string",
"sku": 0,
"quantity": 0,
"weight": 0,
"amounts": {
"price_without_tax": {
"amount": 0,
"currency": "string"
},
"total_discount": {
"amount": 0,
"currency": "string"
},
"tax": {
"percent": "string",
"amount": {
"amount": 0,
"currency": "string"
}
},
"total": {
"amount": 0,
"currency": "string"
}
}
}
]
}
}