OpenAPIs

LiteWM OpenAPIs follow principles of REST.

  1. Bearer token for authentication

  2. JSON for business data and response

Item create/update

URI /api/items

Method POST

Header Authorization: Bearer token.string

Header Content-Type: application/json

Body raw (json)

{
    "items":
    [
        {
            "code": "6901236341384",
            "name": "Tissue133mmx195mm120P",
            "pack_lines":
            [
                {
                "unit_level": "PCS",
                "unit": "PA",
                "ratio": 1,
                "inner_unit": ""
                },
                {
                "unit_level": "CTN",
                "unit": "CT",
                "ratio": 12,
                "inner_unit": "PA"
                }
            ]
        },
        {
            "code": "6923146003442",
            "name": "Toothbrush",
            "pack_lines":
            [
                {
                "unit_level": "PCS",
                "unit": "PC",
                "ratio": 1,
                "inner_unit": ""
                }
            ]
        }
    ]
}

Response raw (json)

Order create/update

URI /api/orders

Method POST

Header Authorization: Bearer token.string

Header Content-Type: application/json

Body raw (json)

Response raw (json)

Ownership Transfer Order create

URI /api/transfers

Method POST

Header Authorization: Bearer token.string

Header Content-Type: application/json

Body raw (json)

Response raw (json)

Last updated