Update Order

API Update Order

CustomerAPIUpdateOrder

POST /api/Customer/CustomerAPIUpdateOrder

Request Body

{
    "Errors": [],
    "ErrorCode": "0",
    "OrderInfo": {
        "OrderCode": "HD000003",
        "ReferenceCode": "HD000004",
        "ExternalCode": "HD000003",
        "TotalServiceCost": 44176,
        "ExtraServices": [
            {
                "ServiceName": "Chuyển phát nhanh",
                "ServiceID": "DE",
                "Cost": 16800
            },
            {
                "ServiceName": "Hàng đông lạnh",
                "ServiceID": "HDL",
                "Cost": 15000
            },
            {
                "ServiceName": "Báo phát",
                "ServiceID": "BP",
                "Cost": 5000
            },
            {
                "ServiceName": "Phí xăng dầu",
                "ServiceID": "Fuel",
                "Cost": 3360
            },
            {
                "ServiceName": "Phí VAT",
                "ServiceID": "VAT",
                "Cost": 4016
            }
        ],
        "DeliveryType": "1"
    },
    "ErrorMessage": ""
}

Example

{
   "OrderInfo":{
      "OrderCode": "HD000003",
      "ClientHubID":11583,
      "CusWareHouseID":"30984",
      "ContactName": "Trần Văn B",
      "ContactPhone": "0332318317",      
      "ReceiverPhone":"0345555777",
      "ReceiverName":"Nguyễn Thành Đạt",
      "ReceiverAddress":"12 Tân Trào, phường Tân Phú, Quận 7, Hồ Chí Minh, Việt Nam",
      "ReceiverProvinceName":"Hồ Chí Minh",
      "ReceiverDistrictName":"Quận 7",
      "ReceiverWardName":"Phường Tân Phú",   
      "RealWeight":1,
      "Length":0,
      "Width":0,
      "Height":0,
      "Quantity":3,
      "Packages" :[
         {
            "PackageID":"HD000003/1",
            "Length":25,
            "Width":30,
            "Height": 10,
            "RealWeight": 5 
         },
         {
            "PackageID":"HD000003/2",
            "Length":33,
            "Width":25,
            "Height": 12,
            "RealWeight": 8.7
         },
         {
            "PackageID":"HD000003/3",
            "Length":10,
            "Width":23,
            "Height": 35,
            "RealWeight": 6.8
         }
      ],
      "Note":"Tài liệu",
      "ServiceTypeID":"DE",
      "MailerType":"HH",
      "CODAmount":0,
      "ExternalCode":"HD000003",
      "SpecialInstructionId":1,
      "InformFee":500000,
      "COPAmt" : 12000,
      "ReferenceCode": "HD000004",
      "ExtraServices":[
         {
            "ServiceID":"PTN",
            "Type":2
         },
         {
            "ServiceID":"BP",
            "Type":2
         }
      ]
   }
}

Errors Code

  • 1: Ward error

  • 2: District error

  • 3: Province error

  • 4: Duplicate ordercode

  • 5: Server error

  • 6: Was an exception

  • 8: Update Order error

  • 9: SpecialInstruction is required

  • 10: ServiceType is required

  • 12: Account is invalid

  • 13: Order is not found

  • 15: OrderCode is required

  • 16: OrderCode is invalid

  • 17: ReceiverAddress is invalid

  • 18: MailerType is invalid

  • 19: Quantity is invalid

  • 20: Packages is invalid

  • 21: Sender info incomplete

  • 25: COPAmt is invalid

Last updated