Fulfillment
Version: 1.0
A fulfillment represents a shipment of one or more items in an order. When we say that an order has been completely fulfilled, we mean that all the items that make up that order have been sent to the customer.
Ideally, a shop owner would want to make just one fulfillment per order, but there are times when the availability or size of items in the order make it necessary to make more than one shipment, which is why an order can have one or more fulfillments.
Authenticated access scopes: com.read_orders
, com.write_orders
What you can do with Fulfillment
The Haravan API lets you do the following with the Fulfillment resource.
- GET
https://apis.haravan.com/com/orders/{order_id}/fulfillments.json
- GET
https://apis.haravan.com/com/orders/{order_id}/fulfillments/count.json
- GET
https://apis.haravan.com/com/orders/{order_id}/fulfillments/{fulfillment_id}.json
- POST
https://apis.haravan.com/com/orders/{order_id}/fulfillments.json
- PUT
https://apis.haravan.com/com/orders/{order_id}/fulfillments/{fulfillment_id}.json
Properties
created_at
: string
"created_at": "2021-05-13T07:29:20.1Z"
The date and time (ISO 8601 format) when the fulfillment of order was created.
id
: string
"id":1054978733
A unique numeric identifier for the fulfillment.
line_items
: array
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1054978733,
"price": 240000.0000,
"product_id": 1028183635,
"quantity": 1,
"requires_shipping": true,
"sku": "AO999",
"title": "Áo len cổ tròn kiểu Cổ điển",
"variant_id": 1061514635,
"variant_title": "Trắng / L",
"vendor": "Khác",
"name": "Áo len cổ tròn kiểu Cổ điển",
"variant_inventory_management": null,
"properties": null,
"product_exists": true
}
]
A historical record of each item in the fulfillment:
- fulfillable_quantity: The amount available to fulfill. This is the quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity.
- fulfillment_service: Service provider who is doing the fulfillment. Valid values are manual.
- fulfillment_status: Status of an order in terms of the line_items being fulfilled. Valid values are: fulfilled, null or partial.
- grams: The weight of the item in grams.
- Id: The id of the line_item within the fulfillment.
- price: The price of the item.
- product_id: The unique numeric identifier for the product in the fulfillment.
- requires_shipping: Specifies whether or not a customer needs to provide a shipping address when placing an order for this product variant. Valid values are: "true" or "false." SKU: A unique identifier of the item in the fulfillment.
- title: The title of the product.
- variant_id: The id of the product variant being fulfilled.
- variant_title: The title of the product variant being fulfilled.
- vendor: The name of the supplier of the item.
- name: The name of the product variant.
- variant_inventory_management: Returns the name of the inventory management system.
- properties: Returns additional properties associated with the line item.
- product_exists: States whether or not the product exists. Valid values are "true" or "false".
province
: string
"province": "Hồ Chí Minh"
The name of the region (for example, province, state, or prefecture) of the shipping address.
province_code
: string
"province_code": "HC"
The two-letter abbreviation of the region of the shipping address.
district
: string
"district": "Quận 11"
The haravan's code of the district of the shipping address.
district_code
: string
"district_code": "HC476"
The haravan's code of the district of the shipping address.
ward
: string
"ward": "Phường 15"
The name of the ward of the shipping address.
ward_code
: string
"ward_code": "27208"
The haravan 's code of the district of the shipping address.
cod_amount
: number
"cod_amount": 510000.0000
Total COD money.
carrier_status_name
(deprecated) : string
"carrier_status_name": "Đã giao hàng"
Delivery status name. Valid value are:
- chờ lấy hàng
- đang đi lấy
- đang giao hàng
- đã giao hàng
- hủy giao hàng
- chuyển hoàn
- chờ xử lý
- không gặp khách
- chờ chuyển hoàn
carrier_status_code
: string
"carrier_status_code": "readytopick"
Delivery status code. Valid values are:
- readytopick: the carrier waiting to pick up the goods
- picking: the carrier is picking up the goods
- delivering: the carrier is delivering the goods
- delivered: the carrier has delivered the goods to the customer
- cancel: the fulfillment is canceled
- return: the fulfillment is returned
- pending: the fulfillment is penđing
- notmeetcustomer: the carrier doesn't meet the customer
- waitingforreturn: the fulfillment is waiting to return
carrier_cod_status_name
(deprecated) : string
"carrier_cod_status_name": "Đã nhận"
COD status name. Valid value are:
- Không: the fulfillment doesn't COD
- Chưa nhận: the fulfillment have not received COD
- Đã nhận: the fulfillment received COD
carrier_cod_status_code
: string
"carrier_cod_status_code": "codpaid"
COD status code. Valid values are:
- none: the fulfillment doesn't COD
- codpending: the fulfillment have not received COD
- codpaid: the shipper received COD but did not send it to the shop
- codreceipt: the fulfillment received COD
location_id
: number
"location_id": 1091390
The location code where carrier pick goods.
note
: string
"note": null
The fulfillment 's note.
cancelled_at
: string
"cancelled_at": null
The date and time (ISO 8601 format) when the fulfillment status changed "cancelled".
carrier_service_package
: number
"carrier_service_package": 0
Carrier service package.
carrier_service_package_name
: string
"carrier_service_package_name": "abc"
Carrier service package name.
coupon_code
: string
"coupon_code": "123"
Carrier service's coupon.
ready_to_pick_date
: string
"ready_to_pick_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "ready_to_pick".
picking_date
: string
"picking_date": null
The date and time (ISO 8601 format) when the fulfillment status changed "picking".
delivering_date
: string
"delivering_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "delivering".
delivered_date
: string
"delivered_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "delivered".
return_date
: string
return_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "return".
not_meet_customer_date
: string
"not_meet_customer_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "notmeetcustomer".
waiting_for_return_date
: string
"waiting_for_return_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "waitingforreturn".
cod_paid_date
: string
"cod_paid_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment COD status changed "codpaid".
cod_receipt_date
: string
"cod_receipt_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment COD status changed "codreceipt".
cod_pending_date
: string
"cod_pending_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment COD status changed "codpending".
cod_not_receipt_date
: string
"cod_not_receipt_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment COD status changed "codnotreceipt".
cancel_date
: string
"cancel_date": "2021-09-27T03:42:18Z"
The date and time (ISO 8601 format) when the fulfillment status changed "cancel".
is_view_before
(deprecated): boolean
"is_view_before": true
Customers can view goods if is_view_before was true.
country
: string
"country": "Vietnam"
The name of the country of the shipping address.
country_code
: string
"country_code": "VN"
The two-letter code (ISO 3166-1 format) for the country of the shipping address.
zip_code
: string
"zip_code": null
The postal code (for example, zip, postcode, or Eircode) of the shipping address.
city
: string
"city": null
The city, town, or village of the shipping address.
real_shipping_fee
: number
"real_shipping_fee": 0.0000
Carrier service shipping fee.
shipping_notes
: string
"shipping_notes": "Hàng dễ vỡ"
Shipping note.
total_weight
: number
"total_weight": 0.0000
Total package weight.
package_width
: number
"package_width": 0.0000
Package width.
package_height
: number
"package_height": 0.0000
Total packed height.
address
: string
"address": "184 Le Dai Hanh"
The street address of the shipping address.
first_name
: string
"first_name": "Phạm"
Recipient's first name.
last_name
: string
"last_name": "Lê"
Recipient's last name.
shipping_address
(deprecated): string
"shipping_address": "184 Le Dai Hanh"
The street address of the shipping address.
shipping_phone
: string
"shipping_phone": "0123456789"
The phone number is at the shipping address.
Endpoints
Retrieves a list fulfillment of the order
Parameters
ids
: string
A comma-separated list of order ids.
limit
: number
Limit of the result.
page
: number
Page to show the result.
since_id
: number
Restrict results to after the specified ID.
created_at_min
: string
Show fulfillments of order after date (format: 2008-12-31 03:00).
created_at_max
: string
Show fulfillments of order created before date (format: 2008-12-31 03:00).
updated_at_min
: string
Show fulfillments of order last updated after date (format: 2008-12-31 03:00).
updated_at_max
: string
Show fulfillments of order last updated before date (format: 2008-12-31 03:00).
fields
: string
comma-separated list of fields to include in the response.
Retrieve all fulfillment orders.
- GET
https://apis.haravan.com/com/orders/1229422895/fulfillments.json
Details
HTTP/1.1 200 OK
{
"fulfillments": [
{
"created_at": "2021-09-27T03:42:17.571Z",
"id": 1054978733,
"order_id": 1229422895,
"receipt": null,
"status": "success",
"tracking_company": "Khác",
"tracking_company_code": "other",
"tracking_numbers": [],
"tracking_number": null,
"tracking_url": "http://www.google.com/search?q=",
"tracking_urls": [
"http://www.google.com/search?q="
],
"updated_at": "2021-09-27T03:42:31.466Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1054978733,
"price": 240000.0000,
"product_id": 1028183635,
"quantity": 1,
"requires_shipping": true,
"sku": "AO999",
"title": "Áo len cổ tròn kiểu Cổ điển",
"variant_id": 1061514635,
"variant_title": "Trắng / L",
"vendor": "Khác",
"name": "Áo len cổ tròn kiểu Cổ điển",
"variant_inventory_management": null,
"properties": null,
"product_exists": true
},
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1054978733,
"price": 240000.0000,
"product_id": 1028183635,
"quantity": 1,
"requires_shipping": true,
"sku": "AO999",
"title": "Áo len cổ tròn kiểu Cổ điển",
"variant_id": 1061514635,
"variant_title": "Trắng / L",
"vendor": "Khác",
"name": "Áo len cổ tròn kiểu Cổ điển",
"variant_inventory_management": null,
"properties": null,
"product_exists": true
}
],
"province": "Hồ Chí Minh",
"province_code": "HC",
"district": "Quận 11",
"district_code": "HC476",
"ward": "Phường 15",
"ward_code": "27208",
"cod_amount": 510000.0000,
"carrier_status_name": "Đã giao hàng",
"carrier_cod_status_name": "Đã nhận",
"carrier_status_code": "delivered",
"carrier_cod_status_code": "codreceipt",
"location_id": 1091390,
"note": null,
"carrier_service_package": 0,
"carrier_service_package_name": "",
"is_new_service_package": false,
"coupon_code": "",
"ready_to_pick_date": "2021-09-27T03:42:18Z",
"picking_date": null,
"delivering_date": null,
"delivered_date": "2021-09-27T03:42:29Z",
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": null,
"cod_receipt_date": "2021-09-27T03:42:24Z",
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": "Vietnam",
"country_code": "VN",
"zip_code": null,
"city": null,
"real_shipping_fee": 0.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": "184 Le Dai Hanh",
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "Nguyen",
"last_name": "Le",
"shipping_address": "184 Le Dai Hanh",
"shipping_phone": "0123456789"
}
]
}
Retrieve a count fulfillment of the order
Retrieve the count fulfillments of order.
- GET
https://apis.haravan.com/com/orders/1229422895/fulfillments/count.json
Details
HTTP/1.1 200 OK
{
"count": 1
}
Retrieves single fulfillment of the order
Retrieves single fulfillment of the order.
- GET
https://apis.haravan.com/com/orders/1229422895/fulfillments/1054978733.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-09-27T03:42:17.571Z",
"id": 1054978733,
"order_id": 1229422895,
"receipt": null,
"status": "success",
"tracking_company": "Khác",
"tracking_company_code": "other",
"tracking_numbers": [],
"tracking_number": null,
"tracking_url": "http://www.google.com/search?q=",
"tracking_urls": [
"http://www.google.com/search?q="
],
"updated_at": "2021-09-27T03:42:31.466Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1054978733,
"price": 240000.0000,
"product_id": 1028183635,
"quantity": 1,
"requires_shipping": true,
"sku": "AO999",
"title": "Áo len cổ tròn kiểu Cổ điển",
"variant_id": 1061514635,
"variant_title": "Trắng / L",
"vendor": "Khác",
"name": "Áo len cổ tròn kiểu Cổ điển",
"variant_inventory_management": null,
"properties": null,
"product_exists": true
},
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1054978733,
"price": 240000.0000,
"product_id": 1028183635,
"quantity": 1,
"requires_shipping": true,
"sku": "AO999",
"title": "Áo len cổ tròn kiểu Cổ điển",
"variant_id": 1061514635,
"variant_title": "Trắng / L",
"vendor": "Khác",
"name": "Áo len cổ tròn kiểu Cổ điển",
"variant_inventory_management": null,
"properties": null,
"product_exists": true
}
],
"province": "Hồ Chí Minh",
"province_code": "HC",
"district": "Quận 11",
"district_code": "HC476",
"ward": "Phường 15",
"ward_code": "27208",
"cod_amount": 510000.0000,
"carrier_status_name": "Đã giao hàng",
"carrier_cod_status_name": "Đã nhận",
"carrier_status_code": "delivered",
"carrier_cod_status_code": "codreceipt",
"location_id": 1091390,
"note": null,
"carrier_service_package": 0,
"carrier_service_package_name": "",
"is_new_service_package": false,
"coupon_code": "",
"ready_to_pick_date": "2021-09-27T03:42:18Z",
"picking_date": null,
"delivering_date": null,
"delivered_date": "2021-09-27T03:42:29Z",
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": null,
"cod_receipt_date": "2021-09-27T03:42:24Z",
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": "Vietnam",
"country_code": "VN",
"zip_code": null,
"city": null,
"real_shipping_fee": 0.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": "184 Le Dai Hanh",
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "Nguyen",
"last_name": "Le",
"shipping_address": "184 Le Dai Hanh",
"shipping_phone": "0123456789"
}
}
Create a fulfillment for order
Creates a fulfillment for the specified order and line items. If the line items in the fulfillment use a manual or custom fulfillment service the status of the returned fulfillment will be set immediately. If the line items use an external fulfillment service they will be queued for fulfillment and the status will be set to pending until the external fulfillment service has been invoked. Not specifying line item IDs causes all unfulfilled and partially fulfilled line items for the order to be fulfilled. Note that all line items being fulfilled must have the same fulfillment service.
Fulfill all line items for an order and send the shipping confirmation email. Not specifying line item IDs causes all unfulfilled and partially fulfilled line items for the order to be fulfilled.
- POST
https://apis.haravan.com/com/orders/1230369995/fulfillments.json
{
"fulfillment": {
"tracking_number": "123456789",
"notify_customer": true
}
}
Details
HTTP/1.1 201 Created
{
"fulfillment": {
"created_at": "2021-10-02T13:47:32.8910054Z",
"id": 1055494186,
"order_id": 1230369995,
"receipt": null,
"status": "success",
"tracking_company": "Khác",
"tracking_company_code": "other",
"tracking_numbers": [
"123456789"
],
"tracking_number": "123456789",
"tracking_url": "http://www.google.com/search?q=",
"tracking_urls": [
"http://www.google.com/search?q=",
"http://www.google.com/search?q="
],
"updated_at": "2021-10-02T13:47:32.8910108Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305723156,
"price": 10000000.0000,
"product_id": 1035626312,
"quantity": 6,
"requires_shipping": true,
"sku": "S300912-1",
"title": "SP 30094-1",
"variant_id": 1078252093,
"variant_title": "Be đậm",
"vendor": "2080",
"name": "SP 30094-1",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
},
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305723157,
"price": 9900000.0000,
"product_id": 1035626312,
"quantity": 5,
"requires_shipping": true,
"sku": "S300912-2",
"title": "SP 30094-1",
"variant_id": 1078252094,
"variant_title": "Túi 500g",
"vendor": "2080",
"name": "SP 30094-1",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": null,
"ward_code": null,
"cod_amount": 109500000.0000,
"carrier_status_name": "Chờ lấy hàng",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "readytopick",
"carrier_cod_status_code": "codpending",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": " - ",
"is_new_service_package": false,
"coupon_code": null,
"ready_to_pick_date": "2021-10-02T13:47:32.8637077Z",
"picking_date": null,
"delivering_date": null,
"delivered_date": null,
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": null,
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 0.0,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.0,
"package_width": 0.0,
"package_height": 0.0,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Fulfill all line items for an order and send the shipping confirmation email. Not specifying line item IDs causes all unfulfilled and partially fulfilled line items for the order to be fulfilled.
- POST
https://apis.haravan.com/com/orders/1230064550/fulfillments.json
{
"fulfillment": {
"notify_customer": true,
"tracking_company":"Giao Hàng Nhanh",
"location_id":"963414",
"note": "test",
"cod_amount": 20000,
"coupon_code": "abc",
"carrier_service_package": 1,
"carrier_service_package_name": "giao abc",
"is_new_service_package": true,
"carrier_service_code": "abc"
}
}
Details
HTTP/1.1 201 Created
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.7549066Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [],
"tracking_number": null,
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-02T13:58:58.7549122Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0,
"carrier_status_name": "Chờ lấy hàng",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "readytopick",
"carrier_cod_status_code": "codpending",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:58.7406356Z",
"picking_date": null,
"delivering_date": null,
"delivered_date": null,
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": null,
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 0.0,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.0,
"package_width": 0.0,
"package_height": 0.0,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update an existing fulfillment of the order
Update tracking number and status of fulfillment.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932.json
{
"fulfillment": {
"tracking_number": "2021",
"carrier_status_code":"delivered"
}
}
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T04:43:00.345Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1055494932,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Đã giao hàng",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "delivered",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package_name": "giao abc",
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": null,
"delivering_date": null,
"delivered_date": "2021-10-03T04:40:15Z",
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": "Vietnam",
"country_code": "VN",
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": "HCN",
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585"
}
}
Update status picking.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/picking.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T04:51:26.5279791Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Đang đi lấy",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "picking",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:26.526012Z",
"delivering_date": null,
"delivered_date": "2021-10-03T04:40:15Z",
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update status delivering.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/delivering.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T04:53:12.747917Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Đang giao hàng",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "delivering",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:12.745645Z",
"delivered_date": "2021-10-03T04:40:15Z",
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update status delivered.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/delivered.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T04:53:41.557Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Đã giao hàng",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "delivered",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": null,
"not_meet_customer_date": null,
"waiting_for_return_date": null,
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update status does not meet customer.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/not_meet_customer.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T04:57:21.2991246Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Không gặp khách",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "notmeetcustomer",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": null,
"not_meet_customer_date": "2021-10-03T04:57:21.2971689Z",
"waiting_for_return_date": null,
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update status waiting for return.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/waiting_for_return.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T04:58:46.0662403Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Chờ chuyển hoàn",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "waitingforreturn",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": null,
"not_meet_customer_date": "2021-10-03T04:57:21Z",
"waiting_for_return_date": "2021-10-03T04:58:46.0648984Z",
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update status return.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/return.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T05:00:55.477775Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Chuyển hoàn",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "return",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": "2021-10-03T05:00:55.4754006Z",
"not_meet_customer_date": "2021-10-03T04:57:21Z",
"waiting_for_return_date": "2021-10-03T04:58:46Z",
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update COD status paid.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/cod_status/paid.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T05:00:55.478Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Chuyển hoàn",
"carrier_cod_status_name": "Chưa nhận",
"carrier_status_code": "return",
"carrier_cod_status_code": "codpaid",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": "2021-10-03T05:00:55Z",
"not_meet_customer_date": "2021-10-03T04:57:21Z",
"waiting_for_return_date": "2021-10-03T04:58:46Z",
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": null,
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update COD status receipt.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/cod_status/receipt.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T05:04:17.1170943Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Chuyển hoàn",
"carrier_cod_status_name": "Đã nhận",
"carrier_status_code": "return",
"carrier_cod_status_code": "codreceipt",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": "2021-10-03T05:00:55Z",
"not_meet_customer_date": "2021-10-03T04:57:21Z",
"waiting_for_return_date": "2021-10-03T04:58:46Z",
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": "2021-10-03T05:04:17.1154441Z",
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": null,
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}
Update status cancel.
- PUT
https://apis.haravan.com/com/orders/1230064550/fulfillments/1055494932/carrier_status/cancel.json
Details
HTTP/1.1 200 OK
{
"fulfillment": {
"created_at": "2021-10-02T13:58:58.755Z",
"id": 1055494932,
"order_id": 1230064550,
"receipt": null,
"status": "success",
"tracking_company": "Giao Hàng Nhanh",
"tracking_company_code": "ghn2018",
"tracking_numbers": [
"2021"
],
"tracking_number": "2021",
"tracking_url": "https://donhang.ghn.vn/?order_code=",
"tracking_urls": [
"https://donhang.ghn.vn/?order_code="
],
"updated_at": "2021-10-03T05:06:32.881063Z",
"line_items": [
{
"fulfillable_quantity": 0,
"fulfillment_service": "Thủ công",
"fulfillment_status": "Đã hoàn thành",
"grams": 0.0000,
"id": 1305098847,
"price": 4000000.0000,
"product_id": 1035620803,
"quantity": 3,
"requires_shipping": true,
"sku": "S30091-2",
"title": "SP 30092",
"variant_id": 1078238660,
"variant_title": "Da tổng hợp / Hộp 350g",
"vendor": "2.5 NEW VISION GENERATION",
"name": "SP 30092",
"variant_inventory_management": "haravan",
"properties": null,
"product_exists": true
}
],
"province": "Hà Nội",
"province_code": "HI",
"district": "Quận Ba Đình",
"district_code": "HI2",
"ward": "Phường Giảng Võ",
"ward_code": "00031",
"cod_amount": 20000.0000,
"carrier_status_name": "Hủy giao hàng",
"carrier_cod_status_name": "Đã nhận",
"carrier_status_code": "cancel",
"carrier_cod_status_code": "codreceipt",
"location_id": 963414,
"note": null,
"carrier_service_package": null,
"carrier_service_package_name": "giao abc",
"is_new_service_package": false,
"coupon_code": "abc",
"ready_to_pick_date": "2021-10-02T13:58:59Z",
"picking_date": "2021-10-03T04:51:27Z",
"delivering_date": "2021-10-03T04:53:13Z",
"delivered_date": "2021-10-03T04:53:42Z",
"return_date": "2021-10-03T05:00:55Z",
"not_meet_customer_date": "2021-10-03T04:57:21Z",
"waiting_for_return_date": "2021-10-03T04:58:46Z",
"cod_paid_date": "2021-10-03T04:40:15Z",
"cod_receipt_date": "2021-10-03T05:04:17Z",
"cod_pending_date": null,
"cod_not_receipt_date": null,
"cancel_date": "2021-10-03T05:06:32.8797837Z",
"is_view_before": null,
"country": null,
"country_code": null,
"zip_code": null,
"city": null,
"real_shipping_fee": 100000.0000,
"shipping_notes": null,
"total_weight": 0.0000,
"package_length": 0.00,
"package_width": 0.00,
"package_height": 0.00,
"boxme_servicecode": null,
"transport_type": 0,
"address": null,
"sender_phone": null,
"sender_name": null,
"carrier_service_code": null,
"from_longtitude": 0.0,
"from_latitude": 0.0,
"to_longtitude": 0.0,
"to_latitude": 0.0,
"sort_code": null,
"is_drop_off": false,
"is_insurance": false,
"insurance_price": 0.0,
"is_open_box": false,
"request_id": null,
"carrier_options": null,
"note_attributes": null,
"first_name": "02",
"last_name": "Thành viên",
"shipping_address": "HCN",
"shipping_phone": "0586888585",
"carrier_shop_id": null,
"request_mode": null
}
}