Xameel

Xameel

  • Agent App
  • User Portal
  • Developer

›Developer

Agent App

  • Start
  • Register at Xameel
  • Resetting your Password
  • Managing a Delivery
  • Cancelling a Delivery
  • Completing a Delivery

User Portal

  • Start
  • Create Delivery Request
  • Manage Delivery Request
  • Cancel Delivery Request
  • Create API
  • Enable / Disable API
  • Remove API
  • View Report
  • Export Report
  • View invoice
  • Pay Invoice

Developer

  • Start
  • Get Delivery Cost Estimate
  • Submit a Delivery Request
  • Get a Collection of Delivery Requests
  • Get a Delivery Request
  • Update a Delivery Request
  • Cancel a Delivery Request
  • Add an Item to a Delivery
  • Update an Item in a Delivery
  • Delete and Item from a Delivery
  • Get Chat Messages
  • Submit Chat Message

Get a Delivery Request

This API helps retriving a single delivery request details.

Request

Method : GET
URI : https://core.xameel.com/api/v1/call/delivery/{delivery-uuid}
ParamRequiredDetails
delivery-uuidYesThe delivery request identification string

Header

{
    "Content-Type": "application/json",
    "Accept": "application/json",
    "api_key": "your-api-key",
    "api_aceess": "your-api-access",
    "api_pass": "your-api-password"
}
KeyRequiredTypeDetails
api_keyYesStringYour API key generated from the user portal
api_accessYesStringYour API access generated from the user portal
api_passwordYesStringYour API password generated from the user portal

Expected Response

Success

{
    "code": 200,
    "status": "success",
    "message": "Delivery found",
    "data": {
        "uuid": "e7e966a2-8f64-4241-b643-e971367f8394",
        "origin": "Albaik",
        "origin_location": "{\"lat\":24.48316739335232,\"long\":39.62342909511722}",
        "origin_phone": "+123",
        "destination": "Eyad Khallaf",
        "destination_location": "{\"lat\":24.425913138738597,\"long\":39.60282972988284}",
        "destination_phone": "+1456",
        "estimated_distance": 0,
        "reference": null,
        "api_uuid": null,
        "client_uuid": "62251b90-39d9-43f8-8661-1bdf42d30180",
        "payment_method": "cash",
        "status": "open",
        "assigned_to": null,
        "assigned_at": null,
        "cancelled_by": null,
        "cancelled_at": null,
        "cancellation_reasons": null,
        "estimated_delivery_cost": 15507.6,
        "custom_delivery_cost": 45,
        "sub_total": 75,
        "tax": 5,
        "total": 78.75,
        "collect_cash": 1,
        "amount_to_collect": 103.72,
        "amount_collected": 85,
        "created_at": "2018-11-08 13:58:15",
        "updated_at": "2018-11-08 17:36:04",
        "deleted_at": null,
        "items": [
            {
                "uuid": "1e3f3c05-3cfe-4ade-aad3-af2ac78651c4",
                "delivery_uuid": "e7e966a2-8f64-4241-b643-e971367f8394",
                "item": "Test",
                "description": "Testing description",
                "notes": null,
                "quantity": 1,
                "price": 10,
                "created_at": "2018-11-08 13:58:15",
                "updated_at": "2018-11-08 13:58:15",
                "deleted_at": null
            },
            {
                "uuid": "3449024a-0c75-4212-abba-3dff3cddf673",
                "delivery_uuid": "e7e966a2-8f64-4241-b643-e971367f8394",
                "item": "Apple pie price",
                "description": "Cream apple pie",
                "notes": null,
                "quantity": 1,
                "price": 10,
                "created_at": "2018-11-08 16:57:08",
                "updated_at": "2018-11-08 16:57:08",
                "deleted_at": null
            },
            {
                "uuid": "42bca134-1fa2-421e-adda-4d29c6c2e726",
                "delivery_uuid": "e7e966a2-8f64-4241-b643-e971367f8394",
                "item": "Test",
                "description": "Testing description",
                "notes": "no onions",
                "quantity": 1,
                "price": 10,
                "created_at": "2018-11-08 13:58:15",
                "updated_at": "2018-11-08 13:58:15",
                "deleted_at": null
            }
        ]
    }
}

If a delivery was assigned to an agent the resoponse will include an agent proparty with the agent name, last reported location, and contact phone.

{
    "code": 200,
    "status": "success",
    "message": "Delivery found",
    "data": {
        "uuid": "e7e966a2-8f64-4241-b643-e971367f8394",
        ...,
        "agent": {
            "name": "Jason Smith",
            "phone": "+17148553555",
            "last_reported_location": 
        }
    }
}

Failure

This response is just a sample, the content may differ based on the type of error

{
    "code": 403,
    "err_code": "1x00022-013",
    "status": "fail",
    "message": "Unauthorized",
    "errors": [
        "Unauthorized access"
    ]
}
CodeErrorDetails
4011x00022-015Couldn't validate the provided API data
4001x00022-048Delivery not found
4031x00022-155Unauthorized to preform the request
← Get a Collection of Delivery RequestsUpdate a Delivery Request →
  • Request
  • Header
  • Expected Response
    • Success
    • Failure
Xameel
Docs
Web Portal for BusinessAgent AppAPI Integration "Hello World!"
Community
User ShowcaseStack OverflowContact us
More
DGEra3WebBox
3WebBox and DGEra family
Copyright © 2018 DGEra - Xameel Logistic Services