Callback order status

Customers please provide the following infomation to GHN config:

  • Client_ID
  • Url webhook
  • Staging or Production
  • Name

GHN' s side will send a request for order information, please return Response code=200:

  • JSON format
  • Type: Create, Switch_status, Update_weight, Update_cod, Update_fee
  • In the case of Response code other than 200, the GHN side will fire back 10 times each time 5 seconds apart.

 Example Response:

{
            "CODAmount": 200000,
            "CODTransferDate": null,
            "ClientOrderCode": "",
            "ConvertedWeight": 200,
            "Description": "Tạo đơn hàng",
            "Fee": {
            "Coupon": 0,
            "Insurance": 11000,
            "MainService": 29700,
            "R2S": 0,
            "Return": 0,
            "StationDO": 0,
            "StationPU": 0
            },
            "Height": 15,
            "Length": 15,
            "OrderCode": "5FALX6NA",
            "PartialReturnCode": "",
            "Reason": "",
            "ReasonCode": "",
            "Status":"ready_to_pick",
            "Time":"2020-06-08T02:19:54.908Z",
            "TotalFee":40700,
            "Type":"create",
            "Warehouse":"Kho giao nhận Tân Bình - Hồ Chí Minh",
            "Weight":200,
            "Width":15
    }
 

Structure Request

Field Description
CODAmount

Amount cash to collect

CODTransferDate

COD collection date

ClientOrderCode

Client order code

ConvertedWeight

Converted weight

Description

Description of requirement

Fee

Fee

Coupon

Coupon value

Insurance

Insurance value

MainService

Service fee

R2S

Fee of delivery parcel again

Return

Fee of Return to ship

StationDO

Pickup fee at Station

StationPU

Delivery fee at Station

Height

Height of parcel

IsPartialReturn

Order delivered 1 piece

true:Yes

false:No

Length

Length of parcel

OrderCode

Oder code

PartialReturnCode

Order Code delivery 1 piece

PaymentType

Service fee payer code

Reason

Reason

ReasonCode

Reason code

ShopID

Store code

Status

Status

Time

Time

TotalFee

Total fee

Type

Type

Warehouse

Warehouse

Weight

Weight of parcel

Width

Width of parcel