Tokocabang Order Notification
Response Parameters
Field | Type | Description |
---|---|---|
fs_id | Integer | Fulfillment service ID |
order_id | Integer | Order ID |
invoice_num | String | Invoice reference number |
products | array | Products data |
customer | object | Customer data |
recipient | object | Recipient data |
shop_id | Integer | Shop ID |
warehouse_id | Integer | Warehouse ID |
shop_name | String | Shop Name |
payment_id | Integer | Payment ID |
logistics | object | Logistics data |
amt | object | Amount data |
dropshipper_info | object | Dropshipper information |
voucher_info | object | Voucher information |
device_type | String | User device type |
order_status | Integer | Order status |
create_time | Integer | Time in unix timestamp |
custom_fields | StringString | A map of String to String for custom fields for future |
accept_partial | Boolean | flag which determines if the order is partially accepted |
fulfillment_order_type | Integer | Tokocabang Order Prioritization Type, 0 = Normal Order, 1 = BO Ekstra |
have_product_bundle | Boolean | Flag which determines whether the order contains product bundle |
bundle_detail | Object | Bundle detail data |
Success Response Examples
{
"fs_id": 13057,
"order_id": 166969580,
"invoice_ref_num": "TEST/LOCAL/166969580",
"products": [
{
"id": 15457030,
"name": "THANOS",
"notes": "i am inevitable",
"currency": "Rp.",
"weight": 10,
"total_weight": 20,
"price": 10000,
"total_price": 20000,
"quantity": 2,
"sku": "sasdas12",
"campaign_id": 10,
"event_id": 1,
"bundle_id": 2,
"bundle_variant_id": "3"
}
],
"customer": {
"id": 123123,
"name": "",
"phone": "",
"email": ""
},
"recipient": {
"name": "",
"phone": "",
"address": {
"address_full": "",
"district": "jatisampurna",
"city": "planet bekasi",
"province": "jawa barad",
"country": "englonesia",
"postal_code": "12345",
"district_id": 327510,
"city_id": 72,
"province_id": 32,
"geo": "123,123"
}
},
"shop_id": 480876,
"warehouse_id": 19551,
"shop_name": "Dodol Garut Change",
"payment_id": 123456,
"payment_date": "2021-09-05 00:00:00",
"logistics": {
"shipping_id": 10,
"district_id": 327510,
"city_id": 72,
"province_id": 32,
"geo": "123,123",
"shipping_agency": "sicepat",
"service_type": "same day"
},
"amt": {
"ttl_product_price": 20000,
"shipping_cost": 4000,
"insurance_cost": 1000,
"ttl_amount": 25000,
"voucher_amount": 0,
"toppoints_amount": 0
},
"dropshipper_info": {
"name": "",
"phone": ""
},
"voucher_info": {
"voucher_code": "",
"voucher_type": 0
},
"device_type": "ios",
"create_time": 1630924654,
"order_status": 400,
"custom_fields": {
"gift_eligibility": [
"BOTESTWHITELIST"
]
},
"accept_partial": false,
"fulfillment_order_type": 1,
"encryption": {
"secret": "",
"content": ""
},
"have_product_bundle": true,
"bundle_detail": {
"total_product": 3,
"bundle": [
{
"bundle_id": 2,
"bundle_variant_id": "2-socks_3",
"bundle_name": "Bundle Socks - 3 pairs",
"bundle_price": 40500,
"bundle_quantity": 1,
"bundle_subtotal_price": 40500,
"order_detail": [
{
"order_dtl_id": 1004,
"order_id": 100,
"product_id": 2,
"product_name": "Socks",
"quantity": 3,
"product_price": 13500,
"normal_price": 15000,
"subtotal_price": 40500,
"product_weight": 1000,
"total_weight": 3000,
"bundle_id": 2,
"bundle_variant_id": "2-socks_3"
}
]
}
],
"non_bundle": [
{
"order_dtl_id": 1005,
"order_id": 100,
"product_id": 3,
"product_name": "Shoe - White",
"quantity": 3,
"product_price": 100000,
"normal_price": 100000,
"subtotal_price": 300000,
"product_weight": 5000,
"total_weight": 15000,
"bundle_id": 0,
"bundle_variant_id": ""
}
]
}
}