Create Sales Order B2B

Last Updated: 13/12/2022

Create Sales Order B2B

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

MethodEndpoint
POST/v3/fulfillment/outbound/wms

📘

Note

  1. If there is note "Please Fill with Empty String / 0 / false", it means client still need to pass ““ / 0 / false value to that parameter.

Body Request Parameter

FieldData TypeDescriptionNote
warehouse_idString(20)Warehouse ID given by Shipper

Example: WH-AA99
Mandatory
customer_idString(50)Customer ID given by Shipper

Example: HJ
Mandatory
order_typeString(20)Order type

Example: RT
Mandatory

Valid value:
1. RT - Return
2. CSO - Customer Sales Order (Normal Order)
3. TT - Inter-warehouse Transfer
4. CD - Cross dock
doc_noString(20)Shipment order number

Example: TEST3
Mandatory

No special character
order_timeyyyy-MM-ddTHH:mm:ssZSales Order date

Example: 2021-05-07T00:00:00Z
Mandatory
consignee_nameString(50)Receiver Name

Example: Naufal
Mandatory
consignee_telString(30)Receiver Phone

Example: 0813456789
Mandatory
consignee_mailString(100)Receiver Email Address

Example: [email protected]
Mandatory

Must be on email format: [email protected]
consignee_zipIntegerConsignee ZIP Code

Example: 12345
Mandatory

Must have 5 characters
consignee_addressString(200)Consignee Full Address such as street no, district, city, province

Example: Jl. Open Api no 5, Tanah Abang, Jakarta Pusat, DKI Jakarta
Mandatory
consignee_idString(50)Consignee ID
example: ERP
Optional
delivery_noInteger(30)AWB No

Example: 123129839”
Optional
carrier_idString(30)Expedition Code

Example: SicepatID
Mandatory
carrier_nameString(200)Courier Name / Expedition NameOptional
priorityString(1)Order PriorityOptional
notesText(500)Remarks

Example: this is order for client xxx
Optional
cross_dock_flagString(1)Cross Dock Flag
Default to Y if order_type is filled with CD
Optional
DETAILS
line_noIntegerLine No

Example: 123123
Mandatory
skuString(30)SKU Code

Example: SKU-AAAA
Mandatory
qty_orderedIntegerOrder QTY

Example: 2
Mandatory

Please use the smallest UoM. 1 SKU Code able to Map to Multiple UoM at WMS.
Auto Convert from WMS
priceDecimal(24,7)Goods Price

Example: 100.00
Optional
mfg_dateyyyy-MM-ddGoods Manufacturing Date

Example: 2021-01-01
Optional
exp_dateyyyy-MM-ddGoods Expired Date

Example: 2021-01-01
Optional
batch_noString(50)Goods Batch No

Example: 182739812
Optional
serial_noStringGoods Serial No

Example: 12381782
Optional
receipt_dateyyyy-MM-ddGoods Receipt Date

Example: 2021-01-01
Optional
stock_conditionStringGoods Stock Condition

Y: DAMAGED condition
N: GOOD condition
Optional

If the order type is RT, only allow Y, which is DAMAGED condition.
total_gross_weightDecimal(18,8)Total Gross Weight

Example: 20.0
Optional
total_net_weightDecimal(18,8)Total Net Weight

Example: 20.0
Optional
total_cubicDecimal(18,8)Total Cubic

Example: 20.0
Optional

Sample Body Request

HeaderHow to Fill
x-api-keyShipper API Key
{
    "data": {
        "outbound": {
            "warehouse_id": "WH-TGR04",
            "customer_id": "HJ",
            "order_type": "RT",
            "doc_no": "TEST-OUTBOUND-WMS-3",
            "order_time": "2021-05-07T00:00:00Z",
            "consignee_address": " Kampus IPB, Jl. Raya Dramaga, Babakan, Kec. Dramaga, Kota Bogor, Jawa Barat 16680",
            "consignee_mail": "[email protected]",
            "consignee_name": "YOGA",
            "consignee_tel": "0822323223",
            "carrier_id": "SicepatID",
            "consignee_zip": 16680,            
            "details": [
                {
                    "line_no": 1,
                    "qty_ordered": 10,
                    "sku": "1-MACBOOK"
                }
            ]
        }
    }
}
{
    "data": {
        "outbound": {
            "warehouse_id": "WH-TGR04",
            "customer_id": "HJ",
            "order_type": "RT",
            "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",
            "cross_dock_flag": "Y",
            "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": "Y",
                    "project_ref_no":"123124", 
                    "total_gross_weight":99.0,
                    "total_net_weight":99.0,
                    "total_cubic":99.0
                }
            ]
        }
    }
}

Sample Response

{
  "metadata": {
    "path": "/v3/fulfillment/outbound/wms",
    "http_status_code": 201,
    "http_status": "Created",
    "timestamp": 1652326659
  },
  "data": {
    "request_id": "hwoutboundwms.2022.05.12033739.067611"
  }
}
{
    "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
    }
}
{
  "metadata": {
    "path": "/v3/fulfillment/outbound/wms",
    "http_status_code": 500,
    "http_status": "Internal Server Error",
    "errors": [
      {
        "code": 803,
        "message": "Internal Server error."
      }
    ],
    "timestamp": 1652326659
  }
}
StatusReason
201Create sales order B2B success
400Please check your input.
Make sure the JSON payload is correct
Make sure the requested input are valid.
401Please check whether your API Key is valid and still active.
500Something wrong with Shipper application.
Please contact Shipper representative.