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

Update an Item in a Delivery

This API allows you to update an item in an already existing request.

Update Amount to Collect

Update delivery item will automatically update the delivery sub total, and total just like when adding new item to a delivery, and just as well, with update delivery item, you can force the amount to be collected to be updated as well by calculating the difference between the original item total and the new item total and it's reflection on the whole delivery sub total.

Request

Method : PATCH
URI : https://core.xameel.com/api/v1/call/delivery-item/{item-uuid}
ParamRequiredDetails
item-uuidYesThe item 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

Body

{
    "deliveryUuid": "e7e966a2-8f64-4241-b643-e971367f8394",
    "item": "Apple pie price",
    "description": "Cream apple pie",
    "price": 10.00,
    "quantity": 1,
    "notes": "Testing note",
    "updateAmountToCollect": true
}
KeyRequiredTypeDefaultDetails
deliveryUuidYesString-The id string identifing the delivery request
itemYesBooleanFalseThe name of the item being added
descriptionYesFloat-A description of the item
priceYesFloat-The price of the item added
quanitityYesInt-The quntity required of the item
notesNoString-Note that can be attached to the item
updateAmountToCollectNoBooleanfalseSet to (true) to force update the total amount to be collected on delivery

Expected Response

Success

{
    "code": 200,
    "status": "success",
    "message": "Updated successfully"
}

Failure

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

{
    "code": 400,
    "err_code": "1x00024-009",
    "status": "fail",
    "message": "Bad request",
    "errors": [
        "Delivery related to the item was not found"
    ]
}
CodeErrorDetails
4001x00024-009Input related errors
4001x00024-119Missing required data or data is not valid
4011x00024-015Missing or incorrect provided API access data
4031x00024-155Unauthorized to preform the request
5001x00024-008Couldn't update the item due to server side error
5001x00024-039Couldn't update the delivery total
← Add an Item to a DeliveryDelete and Item from a Delivery →
  • Update Amount to Collect
  • Request
  • Header
  • Body
  • 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