Create Sales Order B2B [Old]

Shipper API gives interface access to our clients for creating Sales Order API from their own system to Shipper Warehouse Management System. It applies for B2B type of Business if the the source order is using your ERP system.

Authorizations : X-API-Key_Header

Request Body Schema : application/json

POST Create Sales Order B2B

FieldEndpoint
POST/v3/fulfillment/outbound/wms

Body Request Parameter

📘

Notes

"Please Fill with Empty String / 0 / false" note means client still need to pass ““ / 0 / false value to that parameter.

Field

Data Type

Description

Note

warehouse_id

String(20)

Warehouse Code gave by Shipper

Example: WH-TGR04

Mandatory

customer_id

String(30)

Customer Id gave by Shipper

Example: AHN

Mandatory

order_type

String(20)

Normal SO (SO),

Return (RT)

Mandatory

doc_no

String(20)

Sales Order No

Mandatory

order_time

yyyy-MM-ddTHH:mm:ssZ

Sales Order Order Date Time

Mandatory

consignee_id

String(30)

Consignee ID

Optional

consignee_name

String(200)

Receiver Name

Mandatory

consignee_tel

String(40)

Receiver Phone

Mandatory

consignee_mail

String(100)

Receiver Email Address

Mandatory

consignee_zip

Integer(20)

Receiver Zip Code

Mandatory

consignee_address

String(20)

Receiver Full Address

Mandatory

delivery_no

Integer(30)

AWB

Optional

carrier_id

String(30)

Expedition Code

Optional

carrier_name

String(200)

Courier Name / Expedition Name

Optional

priority

String(1)

Order Priority

Optional

notes

Text(200)

Remarks

Optional

Details

 

line_no

Integer

Line No

Mandatory

sku

String(50)

SKU Code

Mandatory

qty_ordered

Integer

Order QTY. Please use the smallest UoM. 1 SKU Code able to Map to Multiple UoM at WMS. Auto Convert from WMS

Mandatory

price

Decimal(24,7)

Goods Price

Optional

mfg_date

yyyy-MM-dd

Goods Manufacturing Date

Optional

exp_date

yyyy-MM-dd

Goods Expired Date

Optional

batch_no

String(50)

Goods Batch No

Optional

serail_no

String

Goods Serial No

Available, Optional

receipt_date

yyyy-MM-dd HH:mm:ss

Goods Receipt Date

Optional

stock_condition

String

Goods Stock Condition

Optional

Sample Body Request

{
    "data": {
        "outbound": {
            "warehouse_id": "WH-TGR04",
            "customer_id": "HJ",
            "order_type": "SO",
            "doc_no": "TEST-OUTBOUND-WMS-3",
            "notes": "notes",
            "order_time": "2021-05-07T00:00:00Z",
            "priority": "H",
            "carrier_id": "SicepatID",
            "carrier_name": "Sicepat",
            "consignee_address": " Kampus IPB, Jl. Raya Dramaga, Babakan, Kec. Dramaga, Kota Bogor, Jawa Barat 16680",
            "consignee_id": "ERP",
            "consignee_mail": "[email protected]",
            "consignee_name": "YOGA",
            "consignee_tel": "0822323223",
            "consignee_zip": 16680,            
            "delivery_no": "1234",
            "details": [
                {
                    "batch_no": "1",
                    "exp_date": "2021-05-27",
                    "line_no": 1,
                    "mfg_date": "2021-05-27",
                    "price": 10000,
                    "qty_ordered": 10,
                    "receipt_date": "2021-05-27",
                    "serial_no": "SERIAL-1-X",
                    "sku": "1-MACBOOK",
                    "stock_condition": "GOOD"
                }
            ]
        }
    }
}

Sample Response

{
  "metadata": {
    "path": "/v3/fulfillment/supplier",
    "http_status_code": 201,
    "http_status": "Created",
    "timestamp": 1637555686
  },
  "data": {
    "request_id": "hwsupplier.2021.11.22043446.260372"
  }
}
{
    "metadata": {
        "path": "/v3/fulfillment/outbound/wms",
        "http_status_code": 400,
        "http_status": "Bad Request",
        "errors": [
            {
                "code": 810,
                "message": "Invalid Input. Please Validate Your Input."
            }
        ],
        "timestamp": 1637723418
    }
}
{
    "metadata": {
        "path": "/v3/fulfillment/outbound/wms",
        "http_status_code": 401,
        "http_status": "Unauthorized",
        "errors": [
            {
                "code": 10001,
                "message": "Unauthorized Access. You are not authorized to access this resource."
            }
        ],
        "timestamp": 1637723439
    }
}

What’s Next