Create multiple shipments

/shipments/many

POST

Query Parameters

NameTypeDescription

merchant_token

string

Token is created in management system

Headers

NameTypeDescription

Content-Type

string

application/json

Accept

string

application/json

Request Body

NameTypeDescription

shipments

string

Array shipment data

shipments.*.warehouse_code

string

Warehouse code

shipments.*.customer_code

string

Customer code(if any)

shipments.*.to_name

string

Recipient

shipments.*.to_phone

string

Recipient's phone number

shipments.*.to_province

string

Recipient's province code

shipments.*.to_district

string

Recipient's district code

shipments.*.to_ward

string

Recipient's ward code

shipments.*.to_address

string

Recipient's address

shipments.*.order_code

string

Order code

shipments.*.money_collect

integer

Total money collect

shipments.*.description

string

Description

shipments.*.payment_config

boolean

Set 1 if recipient pays shipping fee Set 0 if sender pays shipping fee

shipments.*.service_type

string

Main services

shipments.*.addition_service

array

Additonal services (array additional services ex: ['COD', 'PTT',...])

shipments.*.can_check

boolean

Can check package or not

shipments.*.is_fragile

boolean

Fragile goods

shipments.*.is_related_product

boolean

Shipment inlcudes products at inventory

shipments.*.product_name

string

Product name (not required if order does not include related products)

shipments.*.total_amount

integer

Total amount (not required if order does not include related products)

shipments.*.total_quantity

integer

Total quantity (not required if order does not included related products)

shipments.*.total_weight

integer

Total weight (not required if order does not include related products)

shipments.*.items

array

Array products (required if order includes related products)

shipments.*.items.*.product_sku

string

Related product SKU

shipments.*.items.*.quantity

string

Related product quantity

Tạo nhiều bưu gửi thành công
{
    "code": "success",
    "message": "Thành công",
    "data": [
        {
            "code": "SM0000000001",
            "warehouse_code": "1",
            "order_code": "1",
            "state": "waitForPick",
            "ref_code": "SM0000000001",
            "product_name": "San pham A",
            "total_amount": "100000.00",
            "total_quantity": 10,
            "total_weight": 10,
            "money_collect": "100000.00",
            "total_fee": "0.00",
            "description": null,
            "can_check": 0,
            "is_fragile": 0,
            "service_type": 0,
            "addition_service": "",
            "payment_config": 1,
            "estimated_delivery_time": 0,
            "created_at": "2019-04-04T18:07:11.000000Z"
        }
    ]
}

Last updated