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 Collection of Delivery Requests

This API helps to retrieve a collection of delivery requests.

Request

Method : GET
URI : https://core.xameel.com/api/v1/call/deliveries

URL Variables

KeyExampleDetails
from2018-11-15A date of which delivery requests made from or after
to2018-11-15A date of which delivery requests made on or before
originSamA value or part of a value in the origin field
originPhone9668A value or part of a value in the origin phone field
destinationBurgerA value or part of a value in the destination field
destinationPhone8456A value or part of a value in the destination phone field
paymentMethodcashSpecified payment method on the delivery request. Accept values: cash, credit card
collectCash1Records where collecting cash was required on the delivery request. Accepted values: 1, 0
amountCollectedGreaterThan10.55Your API password generated from the user portal
amountCollectedLessThan20Your API password generated from the user portal

Request with filters example

https://core.xameel.com/api/v1/call/deliveries?{key}={value}&...

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": "deliveries found",
    "data": {
        "current_page": 1,
        "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": "assigned",
                "assigned_to": "8dd2b5fd-eba2-449e-9bf2-4699abcfeaa1",
                "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
            },
            {
                "uuid": "e7e966a2-8f64-4241-b643-e971367f8392",
                "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": "assigned",
                "assigned_to": "8dd2b5fd-eba2-449e-9bf2-4699abcfeaa1",
                "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
            }
        ],
        "first_page_url": "http://localhost:8000/api/v1/call/deliveries?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://localhost:8000/api/v1/call/deliveries?page=1",
        "next_page_url": null,
        "path": "http://localhost:8000/api/v1/call/deliveries",
        "per_page": 15,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

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-055Couldn't validate the provided API data
4001x00022-002No deliveries found
4031x00022-162Unauthorized to preform the request
← Submit a Delivery RequestGet a Delivery Request →
  • Request
  • URL Variables
    • Request with filters example
  • 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