Manage Packages

GET /v1/packages?status=draft,request_pickup&offset=1&limit=30

JSON Response

It will return the package_id.

{
    "data": [
        {
            "status": "DRAFT",
            "x": 5,
            "y": 5,
            "z": 5,
            "weight": 100,
            "fee": 16.35,
            "lat": "12.1200000000",
            "lng": "13.1300000000",
            "customer_name": "Ratana123",
            "phone_number": "85786828",
            "cash_collected": 0,
            "cash": 50,
            "value": 50,
            "success_lat": null,
            "success_lng": null,
            "instruction": "Testing"
        },
        {
            "status": "REQUEST_PICKUP",
            "x": null,
            "y": null,
            "z": null,
            "weight": null,
            "fee": 0,
            "lat": null,
            "lng": null,
            "customer_name": "",
            "phone_number": "883767112",
            "cash_collected": 12.6,
            "cash": 12.6,
            "value": 12.6,
            "success_lat": "11.5787699096",
            "success_lng": "104.8914598873",
            "instruction": ""
        }
      ]
}

Params

FieldsDescription
statusStatus of Package
offsetOffset
limitLimit