Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
List of API changes by date
{
"data": [
{
def request_valid?(req) # req is an instance of Rack::Request
return false if !req.post?
request_sig = req.get_header("x-hive-signature")
expected_sig = OpenSSL::HMAC.hexdigest("sha256", ENV["API_TOKEN"], req
Rack::Utils.secure_compare(request_sig, expected_sig)
endX-Rate-Limit-Used: 42
X-Rate-Limit-Max: 100Retry-After: 3.2{
"success": false,
"errors": [
"authentication required"
]
}{
"success": false,
"errors": [
"bad request"
]
}{
"success": false,
"errors": [
"Name can't be blank",
"Merchant sku can't be blank"
]
}{
"id": 34,
"merchant_sku_id": "HIVE_TSH_BLK_M",
"name": "Hive T-Shirt (Black - M)",
"created_at": "2022-08-10T17:53:04.438+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"weight_in_kg": 0.3,
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
}
}{
"data": [
{
"id": 9,
"merchant_sku_id": "2218061549136",
"name": "Morph II",
"created_at": "2022-08-10T17:53:04.822+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"weight_in_kg": 45.37,
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
}
},
{
"id": 4,
"merchant_sku_id": "4976808834423",
"name": "Mr Moonstone",
"created_at": "2022-08-10T17:53:04.507+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"weight_in_kg": 24.92,
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
}
}
],
"pagination": {
"current_page": 1,
"item_count": 2,
"page_count": 1,
"items_per_page": 20
}
}{
"data": [
{
"created_at": "2022-06-04T03:17:25.533+02:00",
"delivered_at": "2022-06-06T22:17:46.000+02:00",
"delivery_status": "Delivered",
"id": 170,
"items": [
{
"batches": [
{
"expiry_date": "2023-06-04",
"name": "Batch 1",
"quantity": 1,
"tracking_code": "ABC123"
}
],
"id": 201,
"merchant_item_id": "QWERTY0987",
"quantity": 1,
"serial_numbers": [
{
"serial_number": "1234567890"
}
],
"sku": {
"id": 123000,
"merchant_sku_id": "ABC123"
}
},
{
"batches": [],
"id": 202,
"merchant_item_id": "QWERTY6543",
"quantity": 2,
"serial_numbers": [],
"sku": {
"id": 123001,
"merchant_sku_id": "DEF456"
}
}
],
"merchant_order_id": "20220604-383",
"order_id": 575,
"shipment_provider": "DHL",
"shipped_at": "2022-06-04T07:53:20.511+02:00",
"status": "shipped",
"tracking_number": "CR123456789DE",
"tracking_url": "https://www.dhl.de/en/privatkunden/dhl-sendungsverfolgung.html?piececode=CR123456789DE",
"updated_at": "2022-07-22T16:53:31.388+02:00"
}
],
"pagination": {
"current_page": 1,
"item_count": 2,
"page_count": 1,
"items_per_page": 20
}
}{
"success": false,
"errors": [
"record not found"
]
}{
"data": [
{
"id": 70047,
"return_reason_type": "active",
"return_reason": "customer_return",
"status": "handling_completed",
"created_at": "2023-05-18T09:38:18.999+02:00",
"received_at": "2023-05-19T10:38:18.999+02:00",
"started_processing_at": "2023-05-20T11:38:18.999+02:00",
"completed_handling_at": "2023-05-21T12:38:18.999+02:00",
"tracking_code": "TC123456789",
"tracking_url": "https://example.org/package?trackingNumber=TC123456789",
"carrier": "ExampleCarrier",
"order": {
"id": 1230221,
"merchant_order_id": "60423b95-23b5-4e5b-aa1c-6a71bd90b106",
"name": "#DE12345"
},
"photos": [
{
"id": 115234,
"photo_type": "outside",
"image_url": "https://hive-production-images.s3.eu-central-1.amazonaws.com/a67e41b5fbfcf12264b3b4f704703678.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIA4LNZPVPUBMDZA65F%2F20230525%2Feu-central-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230525T083045Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d8e308229c3ee3e48d637f45e1594c5e47cf69e6b3b69c008e29685b8fcd3591"
},
{
"id": 115235,
"photo_type": "inside",
"image_url": "https://hive-production-images.s3.eu-central-1.amazonaws.com/a67e41b5fbfcf12264b3b4f704703679.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIA4LNZPVPUBMDZA65F%2F20230525%2Feu-central-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230525T083045Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d8e308229c3ee3e48d637f45e1594c5e47cf69e6b3b69c008e29685b8fcd3591"
}
],
"return_items": [
{
"id": 27890,
"quantity": 1,
"customer_return_reason": "incorrect_product_arrived",
"customer_return_message": "I ordered red pencil but got green one",
"sku": {
"id": 123085,
"merchant_sku_id": "ABC123"
}
}
],
"return_line_items": [
{
"id": 10456,
"inventory_batch_id": 123,
"return_item_id": 27890,
"condition": "A",
"follow_up_action": "restock",
"photos": [
{
"id": 117781,
"image_url": "https://hive-production-images.s3.eu-central-1.amazonaws.com/a67e41b5fbfcf12264b3b4f704703467.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIA4LNZPVPUBMDZA65F%2F20230525%2Feu-central-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230525T083045Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d8e308229c3ee3e48d637f45e1594c5e47cf69e6b3b69c008e29685b8fcd3591"
}
],
"sku": {
"id": 123085,
"merchant_sku_id": "ABC123"
},
"quantity": 1
}
]
}
],
"pagination": {
"current_page": 1,
"item_count": 1,
"items_per_page": 20,
"page_count": 1
}
}{
"id": 70047,
"return_reason_type": "active",
"return_reason": "customer_return",
"status": "handling_completed",
"created_at": "2023-05-18T09:38:18.999+02:00",
"received_at": "2023-05-19T10:38:18.999+02:00",
"started_processing_at": "2023-05-20T11:38:18.999+02:00",
"completed_handling_at": "2023-05-21T12:38:18.999+02:00",
"tracking_code": "TC123456789",
"tracking_url": "https://example.org/package?trackingNumber=TC123456789",
"carrier": "ExampleCarrier",
"order": {
"id": 1230221,
"merchant_order_id": "60423b95-23b5-4e5b-aa1c-6a71bd90b106"
},
"photos": [
{
"id": 115234,
"photo_type": "outside",
"image_url": "https://hive-production-images.s3.eu-central-1.amazonaws.com/a67e41b5fbfcf12264b3b4f704703678.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIA4LNZPVPUBMDZA65F%2F20230525%2Feu-central-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230525T083045Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d8e308229c3ee3e48d637f45e1594c5e47cf69e6b3b69c008e29685b8fcd3591"
},
{
"id": 115235,
"photo_type": "inside",
"image_url": "https://hive-production-images.s3.eu-central-1.amazonaws.com/a67e41b5fbfcf12264b3b4f704703679.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIA4LNZPVPUBMDZA65F%2F20230525%2Feu-central-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230525T083045Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d8e308229c3ee3e48d637f45e1594c5e47cf69e6b3b69c008e29685b8fcd3591"
}
],
"return_items": [
{
"id": 27890,
"quantity": 1,
"customer_return_reason": "incorrect_product_arrived",
"customer_return_message": "I ordered red pencil but got green one",
"sku": {
"id": 123085,
"merchant_sku_id": "ABC123"
}
}
],
"return_line_items": [
{
"id": 10456,
"inventory_batch_id": 123,
"return_item_id": 27890,
"condition": "A",
"follow_up_action": "restock",
"photos": [
{
"id": 117781,
"image_url": "https://hive-production-images.s3.eu-central-1.amazonaws.com/a67e41b5fbfcf12264b3b4f704703467.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIA4LNZPVPUBMDZA65F%2F20230525%2Feu-central-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20230525T083045Z\u0026X-Amz-Expires=900\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d8e308229c3ee3e48d637f45e1594c5e47cf69e6b3b69c008e29685b8fcd3591"
}
],
"sku": {
"id": 123085,
"merchant_sku_id": "ABC123"
},
"quantity": 1
}
]
}{
"data": [
{
"id": 9,
"merchant_sku_id": "2218061549136",
"name": "Morph II",
"created_at": "2022-08-10T17:53:04.822+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"barcode": "2218061549136",
"batch_tracking_enabled": true,
"fulfilled_by": "hive",
"weight_in_kg": 45.37,
"image_url": "http://example.com/image.png",
"status": "active",
"dangerous_good": true,
"un_numbers": ["UN3481"],
"hazardous_good": false,
"h_codes": [],
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
},
"inventory_per_warehouse": [
{
"warehouse_id": 22,
"stocked": 6720,
"reserved": 0,
"total": 6720
},
{
"warehouse_id": 65,
"stocked": 3240,
"reserved": 0,
"total": 3240
},
{
"warehouse_id": 38,
"stocked": 40,
"reserved": 0,
"total": 40
}
],
"inventory_batches": [
{
"id": 827,
"name": "Morph II - 827",
"tracking_code": "A01234",
"expiry_date": "2023-12-30",
"stocked_quantities": [
{
"warehouse_id": 22,
"quantity": 6720
},
{
"warehouse_id": 65,
"quantity": 3240
}
]
},
{
"id": 674,
"name": "Morph II - 674",
"tracking_code": "B56789",
"expiry_date": null,
"stocked_quantities": [
{
"warehouse_id": 38,
"quantity": 40
}
]
}
]
},
{
"id": 4,
"merchant_sku_id": "4976808834423",
"name": "Mr Moonstone",
"created_at": "2022-08-10T17:53:04.507+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"barcode": "2218061549136",
"batch_tracking_enabled": false,
"fulfilled_by": "hive",
"weight_in_kg": 24.92,
"image_url": "http://example.com/image.png",
"status": "active",
"dangerous_good": true,
"un_numbers": ["UN3481"],
"hazardous_good": false,
"h_codes": [],
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
},
"inventory_per_warehouse": [
{
"warehouse_id": 22,
"stocked": 10000,
"reserved": 0,
"total": 10000
},
{
"warehouse_id": 65,
"stocked": 0,
"reserved": 0,
"total": 0
}
],
"inventory_batches": []
}
],
"pagination": {
"current_page": 1,
"item_count": 2,
"page_count": 1,
"items_per_page": 20
}
}{
"id": 34,
"merchant_sku_id": "HIVE_TSH_BLK_M",
"name": "Hive T-Shirt (Black - M)",
"barcode": "2218061549136",
"batch_tracking_enabled": false,
"fulfilled_by": "new",
"created_at": "2022-08-10T17:53:04.438+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"weight_in_kg": 0.3,
"image_url": "http://example.com/image.png",
"status": "active",
"dangerous_good": true,
"un_numbers": ["UN3481"],
"hazardous_good": false,
"h_codes": [],
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
},
"inventory_per_warehouse": [
{
"warehouse_id": 22,
"stocked": 10000,
"reserved": 0,
"total": 10000
},
{
"warehouse_id": 65,
"stocked": 0,
"reserved": 0,
"total": 0
}
],
"inventory_batches": []
}{
"success": false,
"errors": [
"bad request"
]
}{
"success": false,
"errors": [
"Name can't be blank",
"Merchant sku can't be blank"
]
}{
"id": 4,
"merchant_sku_id": "SKU_4",
"name": "Mr Moonstone",
"barcode": "2218061549136",
"batch_tracking_enabled": true,
"fulfilled_by": "hive",
"created_at": "2022-08-10T17:53:04.507+02:00",
"cost_in_cents": null,
"country_code_of_origin": null,
"hs_code": null,
"weight_in_kg": 24.92,
"image_url": "http://example.com/image.png",
"status": "active",
"dangerous_good": true,
"un_numbers": ["UN3481"],
"hazardous_good": false,
"h_codes": [],
"inventory": {
"stocked": 10000,
"reserved": 0,
"total": 10000
},
"inventory_per_warehouse": [
{
"warehouse_id": 22,
"stocked": 10000,
"reserved": 0,
"total": 10000
},
{
"warehouse_id": 65,
"stocked": 0,
"reserved": 0,
"total": 0
}
],
"inventory_batches": [
{
"id": 579,
"name": "Mr Moonstone - 579",
"tracking_code": "A01234",
"expiry_date": "2023-12-30",
"stocked_quantities": [
{
"warehouse_id": 22,
"quantity": 10000
}
]
}
]
}{
"success": false,
"errors": [
"record not found"
]
}{
"success": false,
"errors": [
"Name can't be blank"
]
}{
"success": false,
"errors": [
"bad request"
]
}{
"data": [
{
"id": 12,
"name": "Millenium Falcon",
"country_code_of_origin": "DE",
"hs_code": "567890",
"created_at": "2023-04-25T22:12:16.123+02:00",
"cost_in_cents": 110000,
"weight_in_kg": 50.0,
"merchant_sku_id": "2B",
"image_url": "https://example.org/sw_merch/images/1.png",
"status": "active",
"barcode": "33444",
"batch_tracking_enabled": false,
"fulfilled_by": "new",
"dangerous_good": true,
"un_numbers": ["UN3481"],
"hazardous_good": false,
"h_codes": [],
"inventory": {
"stocked": 0,
"reserved": 0,
"total": 0
},
"inventory_per_warehouse": [
{
"warehouse_id": 22,
"stocked": 0,
"reserved": 0,
"total": 0
}
],
"inventory_batches": []
},
{
"id": 11,
"name": "Staff of Gandalf",
"country_code_of_origin": "FR",
"hs_code": "123456",
"created_at": "2023-04-25T22:12:16.456+02:00",
"cost_in_cents": 42000,
"weight_in_kg": 2.0,
"merchant_sku_id": "1A",
"image_url": "https://example.org/lotr_merch/images/1.png",
"status": "active",
"barcode": "11222",
"batch_tracking_enabled": true,
"fulfilled_by": "hive",
"dangerous_good": true,
"un_numbers": ["UN3481"],
"hazardous_good": false,
"h_codes": [],
"inventory": {
"stocked": 0,
"reserved": 0,
"total": 0
},
"inventory_batches": []
}
]
}{
"success": false,
"errors": [
"Pass array with at least one item for upsert by 'skus' key"
]
}{
"success": false,
"errors": [
"Disallowed to pass more than 100 items at once"
]
}{
"success": false,
"errors": [
"Name can't be blank"
]
}{
"data": [
{
"id": 4962,
"merchant_order_id": "60423b95-23b5-4e5b-aa1c-6a71bd90b106",
"customer_order_number": null,
"status": "fulfillable",
"carrier_preference": null,
"created_at": "2022-11-01T17:42:07.409+01:00",
"financial_status": null,
"payment_method": null,
"currency": "EUR",
"total_price_in_cents": 0,
"total_net_revenue_in_cents": 0,
"total_tax_in_cents": 0,
"total_net_refunds_in_cents": 0,
"total_tax_refunds_in_cents": 0,
"shipping_address": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": null,
"phone": null,
"company": null,
"line1": "Kassaveti 69",
"line2": null,
"city": "Volos",
"country_code": "GR",
"postal_code": "38221",
"parcel_point_id": "12345"
},
"items": [
{
"sku_id": 9,
"quantity": 1,
"merchant_item_id": "1",
"price_per_unit_in_cents": 0,
"price_per_unit_in_cents_with_discount": 0,
"merchant_sku_id": "28595522549341"
}
],
"tags": ["first_order"],
"custom_metadata": null
}
],
"pagination": {
"current_page": 1,
"item_count": 1,
"page_count": 1,
"items_per_page": 20
}
}{
"id":4962,
"merchant_order_id":"60423b95-23b5-4e5b-aa1c-6a71bd90b106",
"customer_order_number":null,
"status":"fulfillable",
"carrier_preference":null,
"created_at":"2022-11-01T17:42:07.409+01:00",
"financial_status":null,
"payment_method":null,
"currency": "EUR",
"total_price_in_cents":0,
"total_net_revenue_in_cents":0,
"total_tax_in_cents":0,
"total_net_refunds_in_cents":0,
"total_tax_refunds_in_cents":0,
"shipping_address":{
"first_name":"John",
"last_name":"Doe",
"full_name":"John Doe",
"email":null,
"phone":null,
"company":null,
"line1":"Kassaveti 69",
"line2":null,
"city":"Volos",
"country_code":"GR",
"postal_code":"38221",
"parcel_point_id":"12345"
},
"items":[
{
"sku_id":9,
"quantity":1,
"merchant_item_id":"1",
"price_per_unit_in_cents":0,
"price_per_unit_in_cents_with_discount":0,
"merchant_sku_id":"28595522549341"
}
],
"tags":["first_order"],
"custom_metadata":null
}{
"success": false,
"errors": [
"record not found"
]
}{
"id":4962,
"merchant_order_id":"60423b95-23b5-4e5b-aa1c-6a71bd90b106",
"customer_order_number":null,
"status":"fulfillable",
"carrier_preference":null,
"created_at":"2022-11-01T17:42:07.409+01:00",
"financial_status":null,
"payment_method":null,
"currency": "EUR",
"total_price_in_cents":0,
"total_net_revenue_in_cents":0,
"total_tax_in_cents":0,
"total_net_refunds_in_cents":0,
"total_tax_refunds_in_cents":0,
"shipping_address":{
"first_name":"John",
"last_name":"Doe",
"full_name":"John Doe",
"email":null,
"phone":null,
"company":null,
"line1":"Kassaveti 69",
"line2":null,
"city":"Volos",
"country_code":"GR",
"postal_code":"38221",
"parcel_point_id":"12345"
},
"items":[
{
"sku_id":9,
"quantity":1,
"merchant_item_id":"1",
"price_per_unit_in_cents":0,
"price_per_unit_in_cents_with_discount":0,
"merchant_sku_id":"28595522549341"
}
],
"tags":[],
"custom_metadata":null
}{
"success": false,
"errors": [
"bad request"
]
}{
"success": false,
"errors": [
"Merchant order can't be blank",
"Shipping address can't be blank",
"Items can't be blank"
]
}{
"id":4962,
"merchant_order_id":"60423b95-23b5-4e5b-aa1c-6a71bd90b106",
"customer_order_number":null,
"status":"fulfillable",
"carrier_preference":null,
"created_at":"2022-11-01T17:42:07.409+01:00",
"financial_status":null,
"payment_method":null,
"currency": "EUR",
"total_price_in_cents":0,
"total_net_revenue_in_cents":0,
"total_tax_in_cents":0,
"total_net_refunds_in_cents":0,
"total_tax_refunds_in_cents":0,
"shipping_address":{
"first_name":"John",
"last_name":"Doe",
"full_name":"John Doe",
"email":null,
"phone":null,
"company":null,
"line1":"Kassaveti 69",
"line2":null,
"city":"Volos",
"country_code":"GR",
"postal_code":"38221",
"parcel_point_id":"12345"
},
"items":[
{
"sku_id":9,
"quantity":1,
"merchant_item_id":"1",
"price_per_unit_in_cents":0,
"price_per_unit_in_cents_with_discount":0,
"merchant_sku_id":"28595522549341"
}
],
"tags":[],
"custom_metadata":null
}{
"success": false,
"errors": [
"bad request"
]
}{
"success": false,
"errors": [
"record not found"
]
}{
"success": false,
"errors": [
"Merchant order can't be blank"
]
}{
"id":4962,
"merchant_order_id":"60423b95-23b5-4e5b-aa1c-6a71bd90b106",
"customer_order_number":null,
"status":"fulfillable",
"carrier_preference":null,
"created_at":"2022-11-01T17:42:07.409+01:00",
"financial_status":null,
"payment_method":null,
"currency": "EUR",
"total_price_in_cents":0,
"total_net_revenue_in_cents":0,
"total_tax_in_cents":0,
"total_net_refunds_in_cents":0,
"total_tax_refunds_in_cents":0,
"shipping_address":{
"first_name":"John",
"last_name":"Doe",
"full_name":"John Doe",
"email":null,
"phone":null,
"company":null,
"line1":"Kassaveti 69",
"line2":null,
"city":"Volos",
"country_code":"GR",
"postal_code":"38221",
"parcel_point_id":"12345"
},
"items":[
{
"sku_id":9,
"quantity":1,
"merchant_item_id":"1",
"price_per_unit_in_cents":0,
"price_per_unit_in_cents_with_discount":0,
"merchant_sku_id":"28595522549341"
}
],
"tags":[],
"custom_metadata":null
}{
"success": false,
"errors": [
"record not found"
]
}{
"data": [
{
"id": 13,
"merchant_id": 1,
"warehouse_id": 71,
"estimated_arrival_date": "2022-12-01",
"delivery_option": "postal",
"tracking_code": "1234567",
"po_number": null,
"supplier_name": null,
"status": "restocked",
"barcode": "RS.13",
"restocking_shipment_items": [
{
"id": 15,
"sku_id": 558,
"announced_quantity": 10,
"arrived_quantity": 2,
"damaged_quantity": 1,
"missing_quantity": 7,
"remarks": null,
"total_cost_in_cents": null,
"inventory_batches": [
{
"id": 827,
"name": "Morph II - 827",
"tracking_code": "A01234",
"expiry_date": "2023-12-30",
"arrived_quantity": 3
},
{
"id": 828,
"name": "Morph II - 828",
"tracking_code": "B56789",
"expiry_date": "2024-02-15",
"arrived_quantity": 1
}
]
}
]
}
],
"pagination": {
"current_page": 1,
"item_count": 1,
"page_count": 1,
"items_per_page": 20
}
}{
"id": 13,
"merchant_id": 1,
"warehouse_id": 71,
"estimated_arrival_date": "2022-12-01",
"delivery_option": "postal",
"tracking_code": "1234567",
"po_number": null,
"supplier_name": null,
"status": "shipped",
"barcode": "RS.13",
"restocking_shipment_items": [
{
"id": 15,
"sku_id": 558,
"announced_quantity": 10,
"arrived_quantity": 2,
"damaged_quantity": 1,
"missing_quantity": 7,
"remarks": null,
"total_cost_in_cents": null,
"inventory_batches": [
{
"id": 827,
"name": "Morph II - 827",
"tracking_code": "A01234",
"expiry_date": "2023-12-30",
"arrived_quantity": 3
},
{
"id": 828,
"name": "Morph II - 828",
"tracking_code": "B56789",
"expiry_date": "2024-02-15",
"arrived_quantity": 1
}
]
}
]
}{
"success": false,
"errors": [
"record not found"
]
}{
"id": 16,
"merchant_id": 1,
"warehouse_id": 71,
"estimated_arrival_date": "2022-12-01",
"delivery_option": "postal",
"tracking_code": null,
"po_number": null,
"supplier_name": null,
"status": "shipped",
"barcode": "RS.16",
"restocking_shipment_items": [
{
"id": 18,
"sku_id": 558,
"announced_quantity": 12,
"remarks": null,
"total_cost_in_cents": null
}
]
}{
"success": false,
"errors": [
"bad request"
]
}{
"success": false,
"errors": [
"Warehouse can't be blank"
]
}{
"id": 16,
"merchant_id": 1,
"warehouse_id": 71,
"estimated_arrival_date": "2022-12-01",
"delivery_option": "postal",
"tracking_code": null,
"po_number": null,
"supplier_name": null,
"status": "shipped",
"barcode": "RS.16",
"restocking_shipment_items": [
{
"id": 18,
"sku_id": 558,
"announced_quantity": 12,
"remarks": null,
"total_cost_in_cents": null
}
]
}{
"success": false,
"errors": [
"bad request"
]
}{
"success": false,
"errors": [
"Warehouse can't be blank"
]
}{
"success": false,
"errors": [
"Cannot cancel a restocking shipment with status arrived"
]
}