Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Platform API Stock Items (#11506)
Damian Legawiec589920875b50
diff --git a/api/app/controllers/spree/api/v2/platform/stock_items_controller.rb b/api/app/controllers/spree/api/v2/platform/stock_items_controller.rbnew file mode 100644index 0000000000..21100c336c--- /dev/null+++ b/api/app/controllers/spree/api/v2/platform/stock_items_controller.rb@@ -0,0 +1,19 @@+module Spree+ module Api+ module V2+ module Platform+ class StockItemsController < ResourceController+ private++ def model_class+ Spree::StockItem+ end++ def scope_includes+ [:variant, :stock_location]+ end+ end+ end+ end+ end+enddiff --git a/api/app/helpers/spree/api/v2/collection_options_helpers.rb b/api/app/helpers/spree/api/v2/collection_options_helpers.rbindex 9bf7492022..768313af08 100644--- a/api/app/helpers/spree/api/v2/collection_options_helpers.rb+++ b/api/app/helpers/spree/api/v2/collection_options_helpers.rb@@ -23,7 +23,7 @@ module Spree# leaving this method in public scope so it's still possible to modify# those params to support non-standard non-JSON API parametersdef collection_permitted_params- params.permit(:format, :page, :per_page, :sort, :include, :fields, filter: {})+ params.permit(:format, :page, :per_page, :sort, :include, fields: {}, filter: {})endprivatediff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yamlindex de6b6dd951..7a0c34cfc2 100644--- a/api/docs/v2/platform/index.yaml+++ b/api/docs/v2/platform/index.yaml@@ -70,8 +70,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-17T08:58:27.524Z'- updated_at: '2021-11-17T08:58:27.524Z'+ created_at: '2021-11-18T14:34:59.848Z'+ updated_at: '2021-11-18T14:34:59.848Z'deleted_at:label:public_metadata: {}@@ -100,8 +100,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-17T08:58:27.531Z'- updated_at: '2021-11-17T08:58:27.531Z'+ created_at: '2021-11-18T14:34:59.855Z'+ updated_at: '2021-11-18T14:34:59.855Z'deleted_at:label:public_metadata: {}@@ -177,8 +177,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-17T08:58:27.932Z'- updated_at: '2021-11-17T08:58:27.932Z'+ created_at: '2021-11-18T14:35:00.250Z'+ updated_at: '2021-11-18T14:35:00.250Z'deleted_at:label:public_metadata: {}@@ -274,8 +274,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-17T08:58:28.037Z'- updated_at: '2021-11-17T08:58:28.037Z'+ created_at: '2021-11-18T14:35:00.354Z'+ updated_at: '2021-11-18T14:35:00.354Z'deleted_at:label:public_metadata: {}@@ -356,8 +356,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-17T08:58:28.170Z'- updated_at: '2021-11-17T08:58:28.183Z'+ created_at: '2021-11-18T14:35:00.480Z'+ updated_at: '2021-11-18T14:35:00.501Z'deleted_at:label:public_metadata: {}@@ -503,8 +503,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-17T08:58:28.579Z'- updated_at: '2021-11-17T08:58:28.579Z'+ created_at: '2021-11-18T14:35:00.865Z'+ updated_at: '2021-11-18T14:35:00.865Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -530,8 +530,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-17T08:58:28.613Z'- updated_at: '2021-11-17T08:58:28.613Z'+ created_at: '2021-11-18T14:35:00.898Z'+ updated_at: '2021-11-18T14:35:00.898Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -604,8 +604,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-17T08:58:29.126Z'- updated_at: '2021-11-17T08:58:29.126Z'+ created_at: '2021-11-18T14:35:01.328Z'+ updated_at: '2021-11-18T14:35:01.328Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -687,8 +687,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-17T08:58:29.319Z'- updated_at: '2021-11-17T08:58:29.326Z'+ created_at: '2021-11-18T14:35:01.505Z'+ updated_at: '2021-11-18T14:35:01.512Z'state: openincluded: falsedisplay_amount: "$1.00"@@ -766,8 +766,8 @@ paths:label: New labelmandatory:eligible: true- created_at: '2021-11-17T08:58:29.663Z'- updated_at: '2021-11-17T08:58:29.683Z'+ created_at: '2021-11-18T14:35:01.853Z'+ updated_at: '2021-11-18T14:35:01.872Z'state: openincluded: falsedisplay_amount: "$15.00"@@ -907,8 +907,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-17T08:58:30.788Z'- updated_at: '2021-11-17T08:58:30.788Z'+ created_at: '2021-11-18T14:35:02.725Z'+ updated_at: '2021-11-18T14:35:02.725Z'relationships:product:data:@@ -922,8 +922,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-17T08:58:30.981Z'- updated_at: '2021-11-17T08:58:30.981Z'+ created_at: '2021-11-18T14:35:02.842Z'+ updated_at: '2021-11-18T14:35:02.842Z'relationships:product:data:@@ -984,8 +984,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-17T08:58:31.828Z'- updated_at: '2021-11-17T08:58:31.828Z'+ created_at: '2021-11-18T14:35:03.574Z'+ updated_at: '2021-11-18T14:35:03.574Z'relationships:product:data:@@ -1052,8 +1052,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-17T08:58:32.141Z'- updated_at: '2021-11-17T08:58:32.141Z'+ created_at: '2021-11-18T14:35:03.879Z'+ updated_at: '2021-11-18T14:35:03.879Z'relationships:product:data:@@ -1119,8 +1119,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-17T08:58:32.716Z'- updated_at: '2021-11-17T08:58:32.716Z'+ created_at: '2021-11-18T14:35:04.422Z'+ updated_at: '2021-11-18T14:35:04.422Z'relationships:product:data:@@ -1264,34 +1264,34 @@ paths:- id: '1'type: cms_pageattributes:- title: Libero iusto cupiditate totam qui omnis exercitationem.+ title: Laboriosam sed voluptatem autem natus provident.meta_title:content:meta_description:visible: true- slug: libero-iusto-cupiditate-totam-qui-omnis-exercitationem+ slug: laboriosam-sed-voluptatem-autem-natus-providenttype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-17T08:58:33.932Z'- updated_at: '2021-11-17T08:58:33.932Z'+ created_at: '2021-11-18T14:35:05.729Z'+ updated_at: '2021-11-18T14:35:05.729Z'relationships:cms_sections:data: []- id: '2'type: cms_pageattributes:- title: Delectus nesciunt impedit placeat eveniet fugit.+ title: Labore suscipit natus rerum dolores omnis sunt consectetur.meta_title:content:meta_description:visible: true- slug: delectus-nesciunt-impedit-placeat-eveniet-fugit+ slug: labore-suscipit-natus-rerum-dolores-omnis-sunt-consecteturtype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-17T08:58:33.938Z'- updated_at: '2021-11-17T08:58:33.938Z'+ created_at: '2021-11-18T14:35:05.734Z'+ updated_at: '2021-11-18T14:35:05.734Z'relationships:cms_sections:data: []@@ -1345,17 +1345,17 @@ paths:id: '5'type: cms_pageattributes:- title: Enim dicta illo ipsum quos molestiae.+ title: Asperiores veniam cum voluptatum ducimus aspernatur.meta_title:content:meta_description:visible: true- slug: enim-dicta-illo-ipsum-quos-molestiae+ slug: asperiores-veniam-cum-voluptatum-ducimus-aspernaturtype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-17T08:58:34.087Z'- updated_at: '2021-11-17T08:58:34.087Z'+ created_at: '2021-11-18T14:35:05.880Z'+ updated_at: '2021-11-18T14:35:05.880Z'relationships:cms_sections:data: []@@ -1421,17 +1421,18 @@ paths:id: '6'type: cms_pageattributes:- title: Quis distinctio tempore occaecati perferendis amet.+ title: Iure suscipit iste molestiae occaecati neque ipsam+ quia corrupti.meta_title:content:meta_description:visible: true- slug: quis-distinctio-tempore-occaecati-perferendis-amet+ slug: iure-suscipit-iste-molestiae-occaecati-neque-ipsam-quia-corruptitype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-17T08:58:34.181Z'- updated_at: '2021-11-17T08:58:34.181Z'+ created_at: '2021-11-18T14:35:05.963Z'+ updated_at: '2021-11-18T14:35:05.963Z'relationships:cms_sections:data: []@@ -1495,12 +1496,12 @@ paths:content:meta_description:visible: true- slug: aperiam-et-esse-deserunt-ipsum-quam-sapiente-voluptatem-non+ slug: eius-sunt-nam-saepe-idtype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-17T08:58:34.307Z'- updated_at: '2021-11-17T08:58:34.324Z'+ created_at: '2021-11-18T14:35:06.086Z'+ updated_at: '2021-11-18T14:35:06.099Z'relationships:cms_sections:data: []@@ -1629,7 +1630,7 @@ paths:- id: '1'type: cms_sectionattributes:- name: Occaecati ut ullam dolor perferendis.+ name: Nemo aspernatur consectetur non eaque minus.content: {}settings:gutters: No Gutters@@ -1638,8 +1639,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 1linked_resource_type: Spree::Taxon- created_at: '2021-11-17T08:58:34.667Z'- updated_at: '2021-11-17T08:58:34.667Z'+ created_at: '2021-11-18T14:35:06.426Z'+ updated_at: '2021-11-18T14:35:06.426Z'relationships:cms_page:data:@@ -1650,7 +1651,8 @@ paths:- id: '2'type: cms_sectionattributes:- name: Necessitatibus quaerat repellat incidunt cupiditate.+ name: Accusantium corporis quo repellendus fugit pariatur+ magni minus.content:link_type_one: Spree::Taxonlink_type_two: Spree::Taxon@@ -1662,8 +1664,8 @@ paths:type: Spree::Cms::Sections::ImageGalleryposition: 2linked_resource_type:- created_at: '2021-11-17T08:58:34.673Z'- updated_at: '2021-11-17T08:58:34.673Z'+ created_at: '2021-11-18T14:35:06.431Z'+ updated_at: '2021-11-18T14:35:06.431Z'relationships:cms_page:data:@@ -1674,8 +1676,7 @@ paths:- id: '3'type: cms_sectionattributes:- name: Temporibus deleniti delectus repellat unde consequuntur- consequatur magni consectetur.+ name: Unde sint modi reprehenderit nihil officia iste eaque.content: {}settings:gutters: No Gutters@@ -1684,8 +1685,8 @@ paths:type: Spree::Cms::Sections::FeaturedArticleposition: 3linked_resource_type: Spree::Taxon- created_at: '2021-11-17T08:58:34.687Z'- updated_at: '2021-11-17T08:58:34.687Z'+ created_at: '2021-11-18T14:35:06.442Z'+ updated_at: '2021-11-18T14:35:06.442Z'relationships:cms_page:data:@@ -1696,7 +1697,8 @@ paths:- id: '4'type: cms_sectionattributes:- name: Exercitationem aliquam nobis fugiat sunt.+ name: Veniam molestias laborum possimus nihil ut dignissimos+ facilis.content: {}settings:gutters: No Gutters@@ -1705,8 +1707,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-11-17T08:58:34.704Z'- updated_at: '2021-11-17T08:58:34.704Z'+ created_at: '2021-11-18T14:35:06.453Z'+ updated_at: '2021-11-18T14:35:06.453Z'relationships:cms_page:data:@@ -1719,7 +1721,8 @@ paths:- id: '5'type: cms_sectionattributes:- name: Iusto explicabo natus minus debitis hic eum doloribus.+ name: Sapiente culpa esse harum debitis iusto minus nobis+ dolor.content: {}settings:gutters: No Gutters@@ -1728,8 +1731,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 5linked_resource_type: Spree::Product- created_at: '2021-11-17T08:58:34.717Z'- updated_at: '2021-11-17T08:58:34.717Z'+ created_at: '2021-11-18T14:35:06.463Z'+ updated_at: '2021-11-18T14:35:06.463Z'relationships:cms_page:data:@@ -1789,8 +1792,7 @@ paths:id: '13'type: cms_sectionattributes:- name: Laborum quibusdam cupiditate delectus atque eos labore- nemo.+ name: At numquam quod totam repellat tenetur sapiente blanditiis.content: {}settings:gutters: No Gutters@@ -1799,8 +1801,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 3linked_resource_type: Spree::Product- created_at: '2021-11-17T08:58:35.103Z'- updated_at: '2021-11-17T08:58:35.103Z'+ created_at: '2021-11-18T14:35:06.732Z'+ updated_at: '2021-11-18T14:35:06.732Z'relationships:cms_page:data:@@ -1875,7 +1877,7 @@ paths:id: '19'type: cms_sectionattributes:- name: Repellendus explicabo quos debitis magni similique quae.+ name: Quis vero perferendis iure laboriosam esse rem.content: {}settings:gutters: No Gutters@@ -1884,8 +1886,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-11-17T08:58:35.352Z'- updated_at: '2021-11-17T08:58:35.352Z'+ created_at: '2021-11-18T14:35:06.968Z'+ updated_at: '2021-11-18T14:35:06.968Z'relationships:cms_page:data:@@ -1959,8 +1961,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 1linked_resource_type: Spree::Product- created_at: '2021-11-17T08:58:35.730Z'- updated_at: '2021-11-17T08:58:35.746Z'+ created_at: '2021-11-18T14:35:07.302Z'+ updated_at: '2021-11-18T14:35:07.318Z'relationships:cms_page:data:@@ -2080,9 +2082,9 @@ paths:name: United States of Americanumcode: 840states_required: true- updated_at: '2021-11-17T08:58:36.545Z'+ updated_at: '2021-11-18T14:35:08.030Z'zipcode_required: true- created_at: '2021-11-17T08:58:36.545Z'+ created_at: '2021-11-18T14:35:08.030Z'relationships:states:data: []@@ -2095,9 +2097,9 @@ paths:name: NAME_2numcode: 840states_required: false- updated_at: '2021-11-17T08:58:36.553Z'+ updated_at: '2021-11-18T14:35:08.037Z'zipcode_required: true- created_at: '2021-11-17T08:58:36.553Z'+ created_at: '2021-11-18T14:35:08.037Z'relationships:states:data: []@@ -2110,9 +2112,9 @@ paths:name: NAME_3numcode: 840states_required: false- updated_at: '2021-11-17T08:58:36.558Z'+ updated_at: '2021-11-18T14:35:08.040Z'zipcode_required: true- created_at: '2021-11-17T08:58:36.558Z'+ created_at: '2021-11-18T14:35:08.040Z'relationships:states:data: []@@ -2171,9 +2173,9 @@ paths:name: NAME_6numcode: 840states_required: false- updated_at: '2021-11-17T08:58:36.669Z'+ updated_at: '2021-11-18T14:35:08.222Z'zipcode_required: true- created_at: '2021-11-17T08:58:36.669Z'+ created_at: '2021-11-18T14:35:08.222Z'relationships:states:data: []@@ -2231,7 +2233,7 @@ paths:- id: '1'type: digital_linkattributes:- token: nuiYcLrbrkSsTyaPCHfGEfBa+ token: UgogVF3gRUMUPAy9MjQJXNuQaccess_counter: 0relationships:digital:@@ -2245,7 +2247,7 @@ paths:- id: '2'type: digital_linkattributes:- token: sxhLyyWCiQv5ef5iDKYMq7vw+ token: 9V7pbibYiRymsmCLSCB9MsmBaccess_counter: 0relationships:digital:@@ -2299,7 +2301,7 @@ paths:id: '5'type: digital_linkattributes:- token: yy6BSSYWsyduQdSs8josXWqq+ token: T3zYDiSJfKHUxWuFQ4PAH9Qaaccess_counter: 0relationships:digital:@@ -2362,7 +2364,7 @@ paths:id: '6'type: digital_linkattributes:- token: XVPRFqKvkmvTZyqXh6it8Ve6+ token: bG4iKyxuUhXfBQxXvPXLdYCwaccess_counter: 0relationships:digital:@@ -2421,7 +2423,7 @@ paths:id: '8'type: digital_linkattributes:- token: Zxtm4L5NqdZEJUDAgzbLdV7a+ token: frd8dfbMmXkBcVDaAXFVTGsAaccess_counter: 0relationships:digital:@@ -2536,7 +2538,7 @@ paths:id: '13'type: digital_linkattributes:- token: yejFsjWDXrujT8Etdz3T5qPM+ token: wsSqTgNcHubedFbWWFLAoz4Uaccess_counter: 0relationships:digital:@@ -2608,7 +2610,7 @@ paths:- id: '15'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--139889339da605b73416a7b84e0e5978f974c889/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--1623ea2b9ed788d7d24f66bc34c2b125868ff345/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2620,7 +2622,7 @@ paths:- id: '16'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--41f6331d4c5177a4f37da7d04fe69467cd773301/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c0f37a85ca6119585a6377b0b5654d336e0299bd/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2632,7 +2634,7 @@ paths:- id: '17'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f7d6d648dc4bb29032d46648c28547974a4c2754/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a3992c7650dec5bc0877fdceb0695f6b201efc38/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2691,7 +2693,7 @@ paths:id: '24'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--52590f82a73468b5fe5a4ade78c290e564de329b/icon_256x256.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--20c0fe7f26f9118f852a2fa5a8d8f5186feacb53/icon_256x256.jpg"content_type: image/pngfilename: icon_256x256.jpgbyte_size: 818@@ -2756,7 +2758,7 @@ paths:id: '28'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--39595a1e731b502858309ee8c2772fc796f406cc/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--20e5c2088245d70d24543ee1705724b4734239be/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2820,7 +2822,7 @@ paths:id: '36'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--da0a36cb1f998ff6c37283f117552f561f570413/icon_256x256.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f32f69a558155710b5b08f7ce33ed56d81faad02/icon_256x256.jpg"content_type: image/pngfilename: icon_256x256.jpgbyte_size: 818@@ -2953,8 +2955,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-17T08:58:50.441Z'- updated_at: '2021-11-17T08:58:50.466Z'+ created_at: '2021-11-18T14:35:21.993Z'+ updated_at: '2021-11-18T14:35:22.003Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -2966,18 +2968,18 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_price: "$10.00"+ single_display_amount: "$10.00"+ display_discounted_amount: "$10.00"+ display_total: "$10.00"display_amount: "$10.00"display_subtotal: "$10.00"display_final_amount: "$10.00"display_adjustment_total: "$0.00"- display_additional_tax_total: "$0.00"display_promo_total: "$0.00"- display_included_tax_total: "$0.00"display_pre_tax_amount: "$10.00"- display_price: "$10.00"- single_display_amount: "$10.00"- display_discounted_amount: "$10.00"- display_total: "$10.00"+ display_included_tax_total: "$0.00"+ display_additional_tax_total: "$0.00"relationships:order:data:@@ -3002,8 +3004,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-17T08:58:50.529Z'- updated_at: '2021-11-17T08:58:50.538Z'+ created_at: '2021-11-18T14:35:22.052Z'+ updated_at: '2021-11-18T14:35:22.058Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3015,18 +3017,18 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_price: "$10.00"+ single_display_amount: "$10.00"+ display_discounted_amount: "$10.00"+ display_total: "$10.00"display_amount: "$10.00"display_subtotal: "$10.00"display_final_amount: "$10.00"display_adjustment_total: "$0.00"- display_additional_tax_total: "$0.00"display_promo_total: "$0.00"- display_included_tax_total: "$0.00"display_pre_tax_amount: "$10.00"- display_price: "$10.00"- single_display_amount: "$10.00"- display_discounted_amount: "$10.00"- display_total: "$10.00"+ display_included_tax_total: "$0.00"+ display_additional_tax_total: "$0.00"relationships:order:data:@@ -3098,8 +3100,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-17T08:58:50.920Z'- updated_at: '2021-11-17T08:58:50.966Z'+ created_at: '2021-11-18T14:35:22.419Z'+ updated_at: '2021-11-18T14:35:22.461Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3111,18 +3113,18 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_price: "$10.00"+ single_display_amount: "$10.00"+ display_discounted_amount: "$10.00"+ display_total: "$10.00"display_amount: "$10.00"display_subtotal: "$10.00"display_final_amount: "$10.00"display_adjustment_total: "$0.00"- display_additional_tax_total: "$0.00"display_promo_total: "$0.00"- display_included_tax_total: "$0.00"display_pre_tax_amount: "$10.00"- display_price: "$10.00"- single_display_amount: "$10.00"- display_discounted_amount: "$10.00"- display_total: "$10.00"+ display_included_tax_total: "$0.00"+ display_additional_tax_total: "$0.00"relationships:order:data:@@ -3203,8 +3205,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-17T08:58:51.218Z'- updated_at: '2021-11-17T08:58:51.231Z'+ created_at: '2021-11-18T14:35:22.714Z'+ updated_at: '2021-11-18T14:35:22.724Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3216,18 +3218,18 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_price: "$10.00"+ single_display_amount: "$10.00"+ display_discounted_amount: "$10.00"+ display_total: "$10.00"display_amount: "$10.00"display_subtotal: "$10.00"display_final_amount: "$10.00"display_adjustment_total: "$0.00"- display_additional_tax_total: "$0.00"display_promo_total: "$0.00"- display_included_tax_total: "$0.00"display_pre_tax_amount: "$10.00"- display_price: "$10.00"- single_display_amount: "$10.00"- display_discounted_amount: "$10.00"- display_total: "$10.00"+ display_included_tax_total: "$0.00"+ display_additional_tax_total: "$0.00"relationships:order:data:@@ -3304,8 +3306,8 @@ paths:attributes:quantity: 4price: '10.0'- created_at: '2021-11-17T08:58:51.635Z'- updated_at: '2021-11-17T08:58:51.701Z'+ created_at: '2021-11-18T14:35:23.146Z'+ updated_at: '2021-11-18T14:35:23.204Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3317,18 +3319,18 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_price: "$10.00"+ single_display_amount: "$10.00"+ display_discounted_amount: "$40.00"+ display_total: "$40.00"display_amount: "$40.00"display_subtotal: "$40.00"display_final_amount: "$40.00"display_adjustment_total: "$0.00"- display_additional_tax_total: "$0.00"display_promo_total: "$0.00"- display_included_tax_total: "$0.00"display_pre_tax_amount: "$40.00"- display_price: "$10.00"- single_display_amount: "$10.00"- display_discounted_amount: "$40.00"- display_total: "$40.00"+ display_included_tax_total: "$0.00"+ display_additional_tax_total: "$0.00"relationships:order:data:@@ -3357,10 +3359,10 @@ paths:examples:Example:value:- error: 'Quantity selected of "Product #127 - 5769" is not available.'+ error: 'Quantity selected of "Product #127 - 1099" is not available.'errors:quantity:- - 'selected of "Product #127 - 5769" is not available.'+ - 'selected of "Product #127 - 1099" is not available.'schema:"$ref": "#/components/schemas/validation_errors"'404':@@ -3480,8 +3482,8 @@ paths:lft: 2rgt: 3depth: 1- created_at: '2021-11-17T08:58:52.768Z'- updated_at: '2021-11-17T08:58:52.774Z'+ created_at: '2021-11-18T14:35:24.217Z'+ updated_at: '2021-11-18T14:35:24.224Z'link:is_container: falseis_root: false@@ -3517,8 +3519,8 @@ paths:lft: 4rgt: 5depth: 1- created_at: '2021-11-17T08:58:52.860Z'- updated_at: '2021-11-17T08:58:52.867Z'+ created_at: '2021-11-18T14:35:24.319Z'+ updated_at: '2021-11-18T14:35:24.328Z'link:is_container: falseis_root: false@@ -3554,8 +3556,8 @@ paths:lft: 6rgt: 7depth: 1- created_at: '2021-11-17T08:58:53.052Z'- updated_at: '2021-11-17T08:58:53.078Z'+ created_at: '2021-11-18T14:35:24.424Z'+ updated_at: '2021-11-18T14:35:24.431Z'link:is_container: falseis_root: false@@ -3591,8 +3593,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-17T08:58:53.243Z'- updated_at: '2021-11-17T08:58:53.250Z'+ created_at: '2021-11-18T14:35:24.526Z'+ updated_at: '2021-11-18T14:35:24.533Z'link:is_container: falseis_root: false@@ -3628,8 +3630,8 @@ paths:lft: 10rgt: 11depth: 1- created_at: '2021-11-17T08:58:53.339Z'- updated_at: '2021-11-17T08:58:53.347Z'+ created_at: '2021-11-18T14:35:24.626Z'+ updated_at: '2021-11-18T14:35:24.636Z'link:is_container: falseis_root: false@@ -3665,8 +3667,8 @@ paths:lft: 12rgt: 13depth: 1- created_at: '2021-11-17T08:58:53.435Z'- updated_at: '2021-11-17T08:58:53.442Z'+ created_at: '2021-11-18T14:35:24.726Z'+ updated_at: '2021-11-18T14:35:24.735Z'link:is_container: falseis_root: false@@ -3702,8 +3704,8 @@ paths:lft: 14rgt: 15depth: 1- created_at: '2021-11-17T08:58:53.529Z'- updated_at: '2021-11-17T08:58:53.536Z'+ created_at: '2021-11-18T14:35:24.831Z'+ updated_at: '2021-11-18T14:35:24.839Z'link:is_container: falseis_root: false@@ -3729,7 +3731,8 @@ paths:- id: '1'type: menu_itemattributes:- name: Impedit aliquid ratione eum quas id.+ name: Dolorem neque hic sapiente velit illum distinctio ratione+ incidunt.subtitle:destination:new_window: false@@ -3739,8 +3742,8 @@ paths:lft: 1rgt: 16depth: 0- created_at: '2021-11-17T08:58:52.682Z'- updated_at: '2021-11-17T08:58:53.551Z'+ created_at: '2021-11-18T14:35:24.120Z'+ updated_at: '2021-11-18T14:35:24.855Z'link:is_container: trueis_root: true@@ -3833,8 +3836,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-17T08:58:54.710Z'- updated_at: '2021-11-17T08:58:54.717Z'+ created_at: '2021-11-18T14:35:26.072Z'+ updated_at: '2021-11-18T14:35:26.078Z'link:is_container: falseis_root: false@@ -3924,8 +3927,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-17T08:58:55.460Z'- updated_at: '2021-11-17T08:58:55.467Z'+ created_at: '2021-11-18T14:35:26.911Z'+ updated_at: '2021-11-18T14:35:26.920Z'link:is_container: falseis_root: false@@ -4013,8 +4016,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-17T08:58:56.717Z'- updated_at: '2021-11-17T08:58:56.756Z'+ created_at: '2021-11-18T14:35:28.254Z'+ updated_at: '2021-11-18T14:35:28.292Z'link:is_container: falseis_root: false@@ -4151,8 +4154,8 @@ paths:lft: 5rgt: 6depth: 2- created_at: '2021-11-17T08:58:59.586Z'- updated_at: '2021-11-17T08:58:59.627Z'+ created_at: '2021-11-18T14:35:31.442Z'+ updated_at: '2021-11-18T14:35:31.498Z'link:is_container: falseis_root: false@@ -4256,8 +4259,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-17T08:59:00.457Z'- updated_at: '2021-11-17T08:59:00.651Z'+ created_at: '2021-11-18T14:35:32.369Z'+ updated_at: '2021-11-18T14:35:32.575Z'relationships:menu_items:data:@@ -4273,8 +4276,8 @@ paths:name: Footer Menulocation: footerlocale: en- created_at: '2021-11-17T08:59:00.471Z'- updated_at: '2021-11-17T08:59:00.840Z'+ created_at: '2021-11-18T14:35:32.381Z'+ updated_at: '2021-11-18T14:35:32.785Z'relationships:menu_items:data:@@ -4337,8 +4340,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-17T08:59:01.381Z'- updated_at: '2021-11-17T08:59:01.390Z'+ created_at: '2021-11-18T14:35:33.373Z'+ updated_at: '2021-11-18T14:35:33.382Z'relationships:menu_items:data:@@ -4406,8 +4409,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-17T08:59:01.482Z'- updated_at: '2021-11-17T08:59:01.490Z'+ created_at: '2021-11-18T14:35:33.459Z'+ updated_at: '2021-11-18T14:35:33.467Z'relationships:menu_items:data:@@ -4471,8 +4474,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-17T08:59:01.666Z'- updated_at: '2021-11-17T08:59:01.674Z'+ created_at: '2021-11-18T14:35:33.599Z'+ updated_at: '2021-11-18T14:35:33.609Z'relationships:menu_items:data:@@ -4607,8 +4610,8 @@ paths:name: foo-size-68presentation: Sizeposition: 1- created_at: '2021-11-17T08:59:02.004Z'- updated_at: '2021-11-17T08:59:02.004Z'+ created_at: '2021-11-18T14:35:33.920Z'+ updated_at: '2021-11-18T14:35:33.920Z'filterable: truepublic_metadata: {}private_metadata: {}@@ -4621,8 +4624,8 @@ paths:name: foo-size-69presentation: Sizeposition: 2- created_at: '2021-11-17T08:59:02.007Z'- updated_at: '2021-11-17T08:59:02.007Z'+ created_at: '2021-11-18T14:35:33.923Z'+ updated_at: '2021-11-18T14:35:33.923Z'filterable: truepublic_metadata: {}private_metadata: {}@@ -4675,8 +4678,8 @@ paths:name: foo-size-72presentation: Sizeposition: 1- created_at: '2021-11-17T08:59:02.122Z'- updated_at: '2021-11-17T08:59:02.122Z'+ created_at: '2021-11-18T14:35:34.033Z'+ updated_at: '2021-11-18T14:35:34.033Z'filterable: truepublic_metadata: {}private_metadata: {}@@ -4735,8 +4738,8 @@ paths:name: foo-size-73presentation: Sizeposition: 1- created_at: '2021-11-17T08:59:02.193Z'- updated_at: '2021-11-17T08:59:02.193Z'+ created_at: '2021-11-18T14:35:34.102Z'+ updated_at: '2021-11-18T14:35:34.102Z'filterable: truepublic_metadata: {}private_metadata: {}@@ -4794,8 +4797,8 @@ paths:name: Size-Xpresentation: Sizeposition: 1- created_at: '2021-11-17T08:59:02.314Z'- updated_at: '2021-11-17T08:59:02.326Z'+ created_at: '2021-11-18T14:35:34.210Z'+ updated_at: '2021-11-18T14:35:34.219Z'filterable: truepublic_metadata: {}private_metadata: {}@@ -4933,8 +4936,8 @@ paths:position: 1name: Size-68presentation: S- created_at: '2021-11-17T08:59:02.583Z'- updated_at: '2021-11-17T08:59:02.583Z'+ created_at: '2021-11-18T14:35:34.465Z'+ updated_at: '2021-11-18T14:35:34.465Z'public_metadata: {}private_metadata: {}relationships:@@ -4948,8 +4951,8 @@ paths:position: 1name: Size-69presentation: S- created_at: '2021-11-17T08:59:02.591Z'- updated_at: '2021-11-17T08:59:02.591Z'+ created_at: '2021-11-18T14:35:34.473Z'+ updated_at: '2021-11-18T14:35:34.473Z'public_metadata: {}private_metadata: {}relationships:@@ -5010,8 +5013,8 @@ paths:position: 1name: Size-72presentation: S- created_at: '2021-11-17T08:59:02.710Z'- updated_at: '2021-11-17T08:59:02.710Z'+ created_at: '2021-11-18T14:35:34.578Z'+ updated_at: '2021-11-18T14:35:34.578Z'public_metadata: {}private_metadata: {}relationships:@@ -5076,8 +5079,8 @@ paths:position: 1name: Size-73presentation: S- created_at: '2021-11-17T08:59:02.786Z'- updated_at: '2021-11-17T08:59:02.786Z'+ created_at: '2021-11-18T14:35:34.665Z'+ updated_at: '2021-11-18T14:35:34.665Z'public_metadata: {}private_metadata: {}relationships:@@ -5143,8 +5146,8 @@ paths:position: 1name: Mpresentation: S- created_at: '2021-11-17T08:59:02.917Z'- updated_at: '2021-11-17T08:59:02.930Z'+ created_at: '2021-11-18T14:35:34.783Z'+ updated_at: '2021-11-18T14:35:34.796Z'public_metadata: {}private_metadata: {}relationships:@@ -5274,7 +5277,7 @@ paths:- id: '40'type: orderattributes:- number: R936310679+ number: R368674185item_total: '0.0'total: '0.0'state: cart@@ -5283,10 +5286,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:03.222Z'- updated_at: '2021-11-17T08:59:03.222Z'+ created_at: '2021-11-18T14:35:35.074Z'+ updated_at: '2021-11-18T14:35:35.074Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5304,6 +5307,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$0.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"+ display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"display_tax_total: "$0.00"@@ -5313,10 +5320,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$0.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"- display_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -5360,7 +5363,7 @@ paths:- id: '41'type: orderattributes:- number: R743211233+ number: R535438858item_total: '0.0'total: '0.0'state: cart@@ -5369,10 +5372,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:03.238Z'- updated_at: '2021-11-17T08:59:03.238Z'+ created_at: '2021-11-18T14:35:35.085Z'+ updated_at: '2021-11-18T14:35:35.085Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5390,6 +5393,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$0.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"+ display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"display_tax_total: "$0.00"@@ -5399,10 +5406,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$0.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"- display_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -5493,7 +5496,7 @@ paths:id: '44'type: orderattributes:- number: R074996438+ number: R424165090item_total: '0.0'total: '0.0'state: cart@@ -5504,8 +5507,8 @@ paths:payment_state:email:special_instructions:- created_at: '2021-11-17T08:59:03.698Z'- updated_at: '2021-11-17T08:59:03.718Z'+ created_at: '2021-11-18T14:35:35.512Z'+ updated_at: '2021-11-18T14:35:35.529Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5523,6 +5526,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$20.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"+ display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"display_tax_total: "$0.00"@@ -5532,10 +5539,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$20.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"- display_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -5621,7 +5624,7 @@ paths:id: '45'type: orderattributes:- number: R860669827+ number: R495827447item_total: '10.0'total: '110.0'state: delivery@@ -5630,10 +5633,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:03.790Z'- updated_at: '2021-11-17T08:59:04.000Z'+ created_at: '2021-11-18T14:35:35.598Z'+ updated_at: '2021-11-18T14:35:35.784Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5651,6 +5654,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"+ display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"display_tax_total: "$0.00"@@ -5660,10 +5667,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"- display_total: "$110.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -5765,7 +5768,7 @@ paths:id: '47'type: orderattributes:- number: R343758136+ number: R943648371item_total: '10.0'total: '110.0'state: delivery@@ -5776,8 +5779,8 @@ paths:payment_state:email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:04.504Z'- updated_at: '2021-11-17T08:59:04.688Z'+ created_at: '2021-11-18T14:35:36.077Z'+ updated_at: '2021-11-18T14:35:36.215Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5795,6 +5798,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"+ display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"display_tax_total: "$0.00"@@ -5804,10 +5811,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"- display_total: "$110.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -5965,7 +5968,7 @@ paths:id: '52'type: orderattributes:- number: R334088042+ number: R834156244item_total: '10.0'total: '110.0'state: payment@@ -5974,10 +5977,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:05.689Z'- updated_at: '2021-11-17T08:59:05.889Z'+ created_at: '2021-11-18T14:35:37.132Z'+ updated_at: '2021-11-18T14:35:37.319Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5995,6 +5998,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$110.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"+ display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"display_tax_total: "$0.00"@@ -6004,10 +6011,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$110.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"- display_total: "$110.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -6112,7 +6115,7 @@ paths:id: '54'type: orderattributes:- number: R630834231+ number: R859935001item_total: '10.0'total: '110.0'state: payment@@ -6121,10 +6124,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:06.248Z'- updated_at: '2021-11-17T08:59:06.444Z'+ created_at: '2021-11-18T14:35:37.610Z'+ updated_at: '2021-11-18T14:35:37.820Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6142,6 +6145,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$110.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"+ display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"display_tax_total: "$0.00"@@ -6151,10 +6158,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$110.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"- display_total: "$110.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -6259,19 +6262,19 @@ paths:id: '56'type: orderattributes:- number: R189235257+ number: R685204089item_total: '10.0'total: '110.0'state: completeadjustment_total: '0.0'- completed_at: '2021-11-17T08:59:07.073Z'+ completed_at: '2021-11-18T14:35:38.411Z'payment_total: '0.0'shipment_state: pendingpayment_state: balance_due- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:06.748Z'- updated_at: '2021-11-17T08:59:07.073Z'+ created_at: '2021-11-18T14:35:38.083Z'+ updated_at: '2021-11-18T14:35:38.411Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6289,6 +6292,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$110.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"+ display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"display_tax_total: "$0.00"@@ -6298,10 +6305,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$110.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"- display_total: "$110.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -6417,7 +6420,7 @@ paths:id: '59'type: orderattributes:- number: R848296928+ number: R588039070item_total: '0.0'total: '0.0'state: cart@@ -6426,10 +6429,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:07.639Z'- updated_at: '2021-11-17T08:59:07.800Z'+ created_at: '2021-11-18T14:35:38.893Z'+ updated_at: '2021-11-18T14:35:39.051Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -6447,6 +6450,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$0.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"+ display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"display_tax_total: "$0.00"@@ -6456,10 +6463,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$0.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"- display_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -6559,7 +6562,7 @@ paths:id: '61'type: orderattributes:- number: R315735568+ number: R364102979item_total: '10.0'total: '110.0'state: delivery@@ -6568,10 +6571,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-17T08:59:08.118Z'- updated_at: '2021-11-17T08:59:08.247Z'+ created_at: '2021-11-18T14:35:39.337Z'+ updated_at: '2021-11-18T14:35:39.477Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6589,6 +6592,10 @@ paths:store_owner_notification_delivered:public_metadata: {}private_metadata: {}+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"+ display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"display_tax_total: "$0.00"@@ -6598,10 +6605,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"- display_total: "$110.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -6874,8 +6877,8 @@ paths:display_on: bothauto_capture:position: 1- created_at: '2021-11-17T08:59:11.171Z'- updated_at: '2021-11-17T08:59:11.171Z'+ created_at: '2021-11-18T14:35:42.076Z'+ updated_at: '2021-11-18T14:35:42.076Z'deleted_at:public_metadata: {}private_metadata: {}@@ -6895,8 +6898,8 @@ paths:display_on: bothauto_capture:position: 2- created_at: '2021-11-17T08:59:11.181Z'- updated_at: '2021-11-17T08:59:11.181Z'+ created_at: '2021-11-18T14:35:42.088Z'+ updated_at: '2021-11-18T14:35:42.088Z'deleted_at:public_metadata: {}private_metadata: {}@@ -6916,8 +6919,8 @@ paths:display_on: bothauto_capture:position: 3- created_at: '2021-11-17T08:59:11.187Z'- updated_at: '2021-11-17T08:59:11.187Z'+ created_at: '2021-11-18T14:35:42.095Z'+ updated_at: '2021-11-18T14:35:42.095Z'deleted_at:public_metadata: {}private_metadata: {}@@ -6937,8 +6940,8 @@ paths:display_on: bothauto_capture:position: 4- created_at: '2021-11-17T08:59:11.193Z'- updated_at: '2021-11-17T08:59:11.193Z'+ created_at: '2021-11-18T14:35:42.102Z'+ updated_at: '2021-11-18T14:35:42.102Z'deleted_at:public_metadata: {}private_metadata: {}@@ -6961,8 +6964,8 @@ paths:display_on: bothauto_capture:position: 5- created_at: '2021-11-17T08:59:11.201Z'- updated_at: '2021-11-17T08:59:11.201Z'+ created_at: '2021-11-18T14:35:42.110Z'+ updated_at: '2021-11-18T14:35:42.110Z'deleted_at:public_metadata: {}private_metadata: {}@@ -7032,8 +7035,8 @@ paths:display_on: bothauto_capture:position: 3- created_at: '2021-11-17T08:59:11.418Z'- updated_at: '2021-11-17T08:59:11.418Z'+ created_at: '2021-11-18T14:35:42.313Z'+ updated_at: '2021-11-18T14:35:42.313Z'deleted_at:public_metadata: {}private_metadata: {}@@ -7109,8 +7112,8 @@ paths:display_on: bothauto_capture:position: 4- created_at: '2021-11-17T08:59:11.575Z'- updated_at: '2021-11-17T08:59:11.575Z'+ created_at: '2021-11-18T14:35:42.455Z'+ updated_at: '2021-11-18T14:35:42.455Z'deleted_at:public_metadata: {}private_metadata: {}@@ -7185,8 +7188,8 @@ paths:display_on: bothauto_capture:position: 3- created_at: '2021-11-17T08:59:11.812Z'- updated_at: '2021-11-17T08:59:11.830Z'+ created_at: '2021-11-18T14:35:42.653Z'+ updated_at: '2021-11-18T14:35:42.669Z'deleted_at:public_metadata: {}private_metadata: {}@@ -7334,9 +7337,9 @@ paths:state: invalidresponse_code: '12345'avs_response:- created_at: '2021-11-17T08:59:12.345Z'- updated_at: '2021-11-17T08:59:12.377Z'- number: PAEAUM26+ created_at: '2021-11-18T14:35:43.124Z'+ updated_at: '2021-11-18T14:35:43.152Z'+ number: PQ30UPWMcvv_response_code:cvv_response_message:public_metadata: {}@@ -7373,9 +7376,9 @@ paths:state: checkoutresponse_code: '12345'avs_response:- created_at: '2021-11-17T08:59:12.372Z'- updated_at: '2021-11-17T08:59:12.372Z'- number: PG4BHVZY+ created_at: '2021-11-18T14:35:43.147Z'+ updated_at: '2021-11-18T14:35:43.147Z'+ number: PXOE32W8cvv_response_code:cvv_response_message:public_metadata: {}@@ -7463,9 +7466,9 @@ paths:state: checkoutresponse_code: '12345'avs_response:- created_at: '2021-11-17T08:59:12.653Z'- updated_at: '2021-11-17T08:59:12.653Z'- number: PZ5KKG99+ created_at: '2021-11-18T14:35:43.392Z'+ updated_at: '2021-11-18T14:35:43.392Z'+ number: PW24WHQRcvv_response_code:cvv_response_message:public_metadata: {}@@ -7599,8 +7602,8 @@ paths:position:type:deleted_at:- created_at: '2021-11-17T08:59:13.270Z'- updated_at: '2021-11-17T08:59:13.270Z'+ created_at: '2021-11-18T14:35:43.767Z'+ updated_at: '2021-11-18T14:35:43.767Z'relationships:promotion:data:@@ -7612,8 +7615,8 @@ paths:position:type:deleted_at:- created_at: '2021-11-17T08:59:13.271Z'- updated_at: '2021-11-17T08:59:13.271Z'+ created_at: '2021-11-18T14:35:43.769Z'+ updated_at: '2021-11-18T14:35:43.769Z'relationships:promotion:data:@@ -7672,8 +7675,8 @@ paths:position:type:deleted_at:- created_at: '2021-11-17T08:59:13.425Z'- updated_at: '2021-11-17T08:59:13.425Z'+ created_at: '2021-11-18T14:35:43.882Z'+ updated_at: '2021-11-18T14:35:43.882Z'relationships:promotion:data:@@ -7723,8 +7726,8 @@ paths:position:type:deleted_at:- created_at: '2021-11-17T08:59:13.476Z'- updated_at: '2021-11-17T08:59:13.476Z'+ created_at: '2021-11-18T14:35:43.922Z'+ updated_at: '2021-11-18T14:35:43.922Z'relationships:promotion:data:@@ -7788,8 +7791,8 @@ paths:position:type: Spree::Promotion::Actions::CreateAdjustmentdeleted_at:- created_at: '2021-11-17T08:59:13.644Z'- updated_at: '2021-11-17T08:59:13.654Z'+ created_at: '2021-11-18T14:35:44.062Z'+ updated_at: '2021-11-18T14:35:44.072Z'relationships:promotion:data:@@ -7911,8 +7914,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-17T08:59:13.914Z'- updated_at: '2021-11-17T08:59:13.914Z'+ created_at: '2021-11-18T14:35:44.293Z'+ updated_at: '2021-11-18T14:35:44.293Z'code: POP123relationships:promotions:@@ -7921,8 +7924,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-17T08:59:13.916Z'- updated_at: '2021-11-17T08:59:13.916Z'+ created_at: '2021-11-18T14:35:44.295Z'+ updated_at: '2021-11-18T14:35:44.295Z'code: POP123relationships:promotions:@@ -7978,8 +7981,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-17T08:59:14.019Z'- updated_at: '2021-11-17T08:59:14.019Z'+ created_at: '2021-11-18T14:35:44.398Z'+ updated_at: '2021-11-18T14:35:44.398Z'code: 2021-BFMrelationships:promotions:@@ -8039,8 +8042,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-17T08:59:14.103Z'- updated_at: '2021-11-17T08:59:14.103Z'+ created_at: '2021-11-18T14:35:44.462Z'+ updated_at: '2021-11-18T14:35:44.462Z'code: MJOrelationships:promotions:@@ -8101,8 +8104,8 @@ paths:type: promotion_categoryattributes:name: 2021 Promotions- created_at: '2021-11-17T08:59:14.221Z'- updated_at: '2021-11-17T08:59:14.232Z'+ created_at: '2021-11-18T14:35:44.570Z'+ updated_at: '2021-11-18T14:35:44.578Z'code: 2021-Promosrelationships:promotions:@@ -8230,8 +8233,8 @@ paths:type: promotion_ruleattributes:type:- created_at: '2021-11-17T08:59:14.494Z'- updated_at: '2021-11-17T08:59:14.494Z'+ created_at: '2021-11-18T14:35:44.822Z'+ updated_at: '2021-11-18T14:35:44.822Z'code:preferences: {}relationships:@@ -8243,8 +8246,8 @@ paths:type: promotion_ruleattributes:type:- created_at: '2021-11-17T08:59:14.498Z'- updated_at: '2021-11-17T08:59:14.498Z'+ created_at: '2021-11-18T14:35:44.824Z'+ updated_at: '2021-11-18T14:35:44.824Z'code:preferences: {}relationships:@@ -8303,8 +8306,8 @@ paths:type: promotion_ruleattributes:type:- created_at: '2021-11-17T08:59:14.648Z'- updated_at: '2021-11-17T08:59:14.648Z'+ created_at: '2021-11-18T14:35:44.938Z'+ updated_at: '2021-11-18T14:35:44.938Z'code:preferences: {}relationships:@@ -8354,8 +8357,8 @@ paths:type: promotion_ruleattributes:type:- created_at: '2021-11-17T08:59:14.699Z'- updated_at: '2021-11-17T08:59:14.699Z'+ created_at: '2021-11-18T14:35:44.989Z'+ updated_at: '2021-11-18T14:35:44.989Z'code:preferences: {}relationships:@@ -8419,8 +8422,8 @@ paths:type: promotion_ruleattributes:type: Spree::Promotion::Rules::Country- created_at: '2021-11-17T08:59:14.852Z'- updated_at: '2021-11-17T08:59:14.863Z'+ created_at: '2021-11-18T14:35:45.117Z'+ updated_at: '2021-11-18T14:35:45.128Z'code:preferences: {}relationships:@@ -8553,8 +8556,8 @@ paths:code:advertise: falsepath:- created_at: '2021-11-17T08:59:15.143Z'- updated_at: '2021-11-17T08:59:15.143Z'+ created_at: '2021-11-18T14:35:45.380Z'+ updated_at: '2021-11-18T14:35:45.380Z'public_metadata: {}private_metadata: {}relationships:@@ -8581,8 +8584,8 @@ paths:code:advertise: falsepath:- created_at: '2021-11-17T08:59:15.163Z'- updated_at: '2021-11-17T08:59:15.163Z'+ created_at: '2021-11-18T14:35:45.392Z'+ updated_at: '2021-11-18T14:35:45.392Z'public_metadata: {}private_metadata: {}relationships:@@ -8613,8 +8616,8 @@ paths:code:advertise: falsepath:- created_at: '2021-11-17T08:59:15.194Z'- updated_at: '2021-11-17T08:59:15.194Z'+ created_at: '2021-11-18T14:35:45.414Z'+ updated_at: '2021-11-18T14:35:45.414Z'public_metadata: {}private_metadata: {}relationships:@@ -8645,8 +8648,8 @@ paths:code:advertise: falsepath:- created_at: '2021-11-17T08:59:15.217Z'- updated_at: '2021-11-17T08:59:15.217Z'+ created_at: '2021-11-18T14:35:45.428Z'+ updated_at: '2021-11-18T14:35:45.428Z'public_metadata: {}private_metadata: {}relationships:@@ -8717,8 +8720,8 @@ paths:type: promotionattributes:description: First 1000 Customers Save 20%- expires_at: '2021-11-21T08:59:15.537Z'- starts_at: '2021-11-17T08:59:15.537Z'+ expires_at: '2021-11-22T14:35:45.660Z'+ starts_at: '2021-11-18T14:35:45.660Z'name: Black Friday 20% Offtype: Spree::Promotionusage_limit: 1000@@ -8726,8 +8729,8 @@ paths:code: BLK-20advertise: truepath: "/black-fri/today"- created_at: '2021-11-17T08:59:15.562Z'- updated_at: '2021-11-17T08:59:15.562Z'+ created_at: '2021-11-18T14:35:45.678Z'+ updated_at: '2021-11-18T14:35:45.678Z'public_metadata: {}private_metadata: {}relationships:@@ -8811,8 +8814,8 @@ paths:code:advertise: falsepath:- created_at: '2021-11-17T08:59:15.893Z'- updated_at: '2021-11-17T08:59:15.893Z'+ created_at: '2021-11-18T14:35:45.914Z'+ updated_at: '2021-11-18T14:35:45.914Z'public_metadata: {}private_metadata: {}relationships:@@ -8897,8 +8900,8 @@ paths:code: RAND-10advertise: falsepath:- created_at: '2021-11-17T08:59:16.633Z'- updated_at: '2021-11-17T08:59:16.662Z'+ created_at: '2021-11-18T14:35:46.304Z'+ updated_at: '2021-11-18T14:35:46.329Z'public_metadata: {}private_metadata: {}relationships:@@ -9041,14 +9044,14 @@ paths:type: roleattributes:name: 'Role #1'- created_at: '2021-11-17T08:59:17.787Z'- updated_at: '2021-11-17T08:59:17.787Z'+ created_at: '2021-11-18T14:35:47.071Z'+ updated_at: '2021-11-18T14:35:47.071Z'- id: '2'type: roleattributes:name: 'Role #2'- created_at: '2021-11-17T08:59:17.789Z'- updated_at: '2021-11-17T08:59:17.789Z'+ created_at: '2021-11-18T14:35:47.073Z'+ updated_at: '2021-11-18T14:35:47.073Z'meta:count: 2total_count: 2@@ -9093,8 +9096,8 @@ paths:type: roleattributes:name: 'Role #5'- created_at: '2021-11-17T08:59:17.904Z'- updated_at: '2021-11-17T08:59:17.904Z'+ created_at: '2021-11-18T14:35:47.163Z'+ updated_at: '2021-11-18T14:35:47.163Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -9143,8 +9146,8 @@ paths:type: roleattributes:name: 'Role #6'- created_at: '2021-11-17T08:59:17.980Z'- updated_at: '2021-11-17T08:59:17.980Z'+ created_at: '2021-11-18T14:35:47.238Z'+ updated_at: '2021-11-18T14:35:47.238Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -9194,8 +9197,8 @@ paths:type: roleattributes:name: administrator- created_at: '2021-11-17T08:59:18.098Z'- updated_at: '2021-11-17T08:59:18.108Z'+ created_at: '2021-11-18T14:35:47.348Z'+ updated_at: '2021-11-18T14:35:47.357Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -9319,12 +9322,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H49185489578+ number: H12688231265cost: '100.0'shipped_at:state: pending- created_at: '2021-11-17T08:59:18.447Z'- updated_at: '2021-11-17T08:59:18.453Z'+ created_at: '2021-11-18T14:35:47.614Z'+ updated_at: '2021-11-18T14:35:47.618Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9334,11 +9337,12 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$0.00"display_final_price: "$100.00"display_amount: "$100.00"display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$0.00"+ tracking_url:relationships:order:data:@@ -9368,12 +9372,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H48328237505+ number: H06318418292cost: '100.0'shipped_at:state: pending- created_at: '2021-11-17T08:59:18.515Z'- updated_at: '2021-11-17T08:59:18.520Z'+ created_at: '2021-11-18T14:35:47.663Z'+ updated_at: '2021-11-18T14:35:47.668Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9383,11 +9387,12 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$0.00"display_final_price: "$100.00"display_amount: "$100.00"display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$0.00"+ tracking_url:relationships:order:data:@@ -9435,6 +9440,97 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"+ post:+ summary: Create a Shipment+ tags:+ - Shipments+ security:+ - bearer_auth: []+ description: Creates a Shipment+ operationId: create-shipment+ parameters:+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: line_items,variants,product+ schema:+ type: string+ responses:+ '201':+ description: Record created+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '32'+ type: shipment+ attributes:+ tracking:+ number: H30022101054+ cost: '0.0'+ shipped_at:+ state: pending+ created_at: '2021-11-18T14:35:48.043Z'+ updated_at: '2021-11-18T14:35:48.059Z'+ adjustment_total: '0.0'+ additional_tax_total: '0.0'+ promo_total: '0.0'+ included_tax_total: '0.0'+ pre_tax_amount: '0.0'+ taxable_adjustment_total: '0.0'+ non_taxable_adjustment_total: '0.0'+ public_metadata: {}+ private_metadata: {}+ display_discounted_cost: "$0.00"+ display_item_cost: "$19.99"+ display_final_price: "$0.00"+ display_amount: "$0.00"+ display_cost: "$0.00"+ tracking_url:+ relationships:+ order:+ data:+ id: '82'+ type: order+ address:+ data:+ stock_location:+ data:+ id: '128'+ type: stock_location+ adjustments:+ data: []+ inventory_units:+ data:+ - id: '28'+ type: inventory_unit+ shipping_rates:+ data: []+ state_changes:+ data: []+ selected_shipping_rate:+ data:+ schema:+ "$ref": "#/components/schemas/resource"+ '422':+ description: Invalid request+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: order_not_found+ errors: {}+ schema:+ "$ref": "#/components/schemas/validation_errors"+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/create_shipment_params""/api/v2/platform/shipments/{id}":get:summary: Return a Shipment@@ -9466,16 +9562,16 @@ paths:Example:value:data:- id: '33'+ id: '34'type: shipmentattributes:tracking: U10000- number: H29305380595+ number: H27748242272cost: '100.0'shipped_at:state: pending- created_at: '2021-11-17T08:59:19.069Z'- updated_at: '2021-11-17T08:59:19.101Z'+ created_at: '2021-11-18T14:35:48.422Z'+ updated_at: '2021-11-18T14:35:48.451Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9485,27 +9581,28 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"display_final_price: "$100.00"display_amount: "$100.00"display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$10.00"+ tracking_url:relationships:order:data:- id: '82'+ id: '83'type: orderaddress:data:stock_location:data:- id: '130'+ id: '131'type: stock_locationadjustments:data: []inventory_units:data:- - id: '29'+ - id: '30'type: inventory_unitshipping_rates:data:@@ -9539,36 +9636,116 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- delete:- summary: Delete a Shipment+ patch:+ summary: Update a Shipmenttags:- Shipmentssecurity:- bearer_auth: []- description: Deletes a Shipment- operationId: delete-shipment+ description: Updates a Shipment+ operationId: update-shipmentparameters:- name: idin: pathrequired: trueschema:type: string+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: line_items,variants,product+ schema:+ type: stringresponses:- '204':- description: Record deleted- '404':- description: Record not found+ '200':+ description: Record updatedcontent:application/vnd.api+json:examples:Example:value:- error: The resource you were looking for could not be found.- schema:- "$ref": "#/components/schemas/error"- '401':- description: Authentication Failed- content:+ data:+ id: '38'+ type: shipment+ attributes:+ tracking: MY-TRACKING-NUMBER-1234+ number: H29239385631+ cost: '100.0'+ shipped_at:+ state: pending+ created_at: '2021-11-18T14:35:49.072Z'+ updated_at: '2021-11-18T14:35:49.114Z'+ adjustment_total: '0.0'+ additional_tax_total: '0.0'+ promo_total: '0.0'+ included_tax_total: '0.0'+ pre_tax_amount: '0.0'+ taxable_adjustment_total: '0.0'+ non_taxable_adjustment_total: '0.0'+ public_metadata: {}+ private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"+ display_final_price: "$100.00"+ display_amount: "$100.00"+ display_cost: "$100.00"+ tracking_url:+ relationships:+ order:+ data:+ id: '85'+ type: order+ address:+ data:+ stock_location:+ data:+ id: '137'+ type: stock_location+ adjustments:+ data: []+ inventory_units:+ data:+ - id: '34'+ type: inventory_unit+ shipping_rates:+ data:+ - id: '45'+ type: shipping_rate+ state_changes:+ data: []+ selected_shipping_rate:+ data:+ id: '45'+ type: shipping_rate+ schema:+ "$ref": "#/components/schemas/resource"+ '422':+ description: Invalid request+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: Stock location can't be blank+ errors:+ stock_location:+ - can't be blank+ schema:+ "$ref": "#/components/schemas/validation_errors"+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:application/vnd.api+json:examples:Example:@@ -9576,15 +9753,58 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- "/api/v2/platform/shipments/{id}/ready":+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/update_shipment_params"+ delete:+ summary: Delete a Shipment+ tags:+ - Shipments+ security:+ - bearer_auth: []+ description: Deletes a Shipment+ operationId: delete-shipment+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ responses:+ '204':+ description: Record deleted+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ "/api/v2/platform/shipments/{id}/add_item":patch:- summary: Mark Shipment as ready to be shipped+ summary: Adds item (Variant) to an existing Shipmenttags:- Shipmentssecurity:- bearer_auth: []- description: Marks Shipment as ready to be shipped- operationId: ready-shipment+ description: If selected Variant was already added to Order it will increase+ the quantity of existing Line Item, if not it will create a new Line Item+ operationId: add-item-shipmentparameters:- name: idin: path@@ -9607,16 +9827,16 @@ paths:Example:value:data:- id: '41'+ id: '48'type: shipmentattributes:tracking: U10000- number: H89971370745- cost: '100.0'+ number: H42474317269+ cost: '0.0'shipped_at:- state: ready- created_at: '2021-11-17T08:59:20.739Z'- updated_at: '2021-11-17T08:59:20.788Z'+ state: pending+ created_at: '2021-11-18T14:35:50.708Z'+ updated_at: '2021-11-18T14:35:50.854Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9626,39 +9846,42 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}- display_final_price: "$100.00"- display_amount: "$100.00"- display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$10.00"+ display_discounted_cost: "$0.00"+ display_item_cost: "$29.99"+ display_final_price: "$0.00"+ display_amount: "$0.00"+ display_cost: "$0.00"+ tracking_url:relationships:order:data:- id: '86'+ id: '90'type: orderaddress:data:stock_location:data:- id: '142'+ id: '152'type: stock_locationadjustments:data: []inventory_units:data:- - id: '37'+ - id: '44'+ type: inventory_unit+ - id: '45'type: inventory_unitshipping_rates:data:- - id: '53'+ - id: '76'+ type: shipping_rate+ - id: '77'type: shipping_ratestate_changes:- data:- - id: '17'- type: state_change+ data: []selected_shipping_rate:data:- id: '53'+ id: '77'type: shipping_rateschema:"$ref": "#/components/schemas/resource"@@ -9682,15 +9905,21 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- "/api/v2/platform/shipments/{id}/ship":+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/add_item_shipment_params"+ "/api/v2/platform/shipments/{id}/remove_item":patch:- summary: Mark Shipment as shipped+ summary: Removes item (Variant) from Shipmenttags:- Shipmentssecurity:- bearer_auth: []- description: Marks Shipment as shipped- operationId: ship-shipment+ description: If selected Variant is removed completely and Shipment doesn't+ include any other Line Items, Shipment itself will be deleted+ operationId: remove-item-shipmentparameters:- name: idin: path@@ -9705,6 +9934,8 @@ paths:schema:type: stringresponses:+ '204':+ description: Record deleted'200':description: Record updatedcontent:@@ -9713,16 +9944,16 @@ paths:Example:value:data:- id: '45'+ id: '54'type: shipmentattributes:tracking: U10000- number: H42967804063- cost: '100.0'- shipped_at: '2021-11-17T08:59:21.558Z'- state: shipped- created_at: '2021-11-17T08:59:21.501Z'- updated_at: '2021-11-17T08:59:21.558Z'+ number: H13563038824+ cost: '0.0'+ shipped_at:+ state: pending+ created_at: '2021-11-18T14:35:52.314Z'+ updated_at: '2021-11-18T14:35:52.508Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9732,39 +9963,40 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}- display_final_price: "$100.00"- display_amount: "$100.00"- display_cost: "$100.00"- display_discounted_cost: "$100.00"+ display_discounted_cost: "$0.00"display_item_cost: "$10.00"+ display_final_price: "$0.00"+ display_amount: "$0.00"+ display_cost: "$0.00"+ tracking_url:relationships:order:data:- id: '88'+ id: '93'type: orderaddress:data:stock_location:data:- id: '148'+ id: '162'type: stock_locationadjustments:data: []inventory_units:data:- - id: '41'+ - id: '51'type: inventory_unitshipping_rates:data:- - id: '61'+ - id: '100'+ type: shipping_rate+ - id: '101'type: shipping_ratestate_changes:- data:- - id: '19'- type: state_change+ data: []selected_shipping_rate:data:- id: '61'+ id: '97'type: shipping_rateschema:"$ref": "#/components/schemas/resource"@@ -9788,15 +10020,20 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- "/api/v2/platform/shipments/{id}/cancel":+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/remove_item_shipment_params"+ "/api/v2/platform/shipments/{id}/ready":patch:- summary: Cancels the Shipment+ summary: Mark Shipment as ready to be shippedtags:- Shipmentssecurity:- bearer_auth: []- description: Cancels the Shipment- operationId: cancel-shipment+ description: Marks Shipment as ready to be shipped+ operationId: ready-shipmentparameters:- name: idin: path@@ -9819,16 +10056,16 @@ paths:Example:value:data:- id: '49'+ id: '58'type: shipmentattributes:tracking: U10000- number: H14478205241+ number: H02422899159cost: '100.0'shipped_at:- state: canceled- created_at: '2021-11-17T08:59:22.309Z'- updated_at: '2021-11-17T08:59:22.352Z'+ state: ready+ created_at: '2021-11-18T14:35:53.223Z'+ updated_at: '2021-11-18T14:35:53.277Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9838,39 +10075,40 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"display_final_price: "$100.00"display_amount: "$100.00"display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$10.00"+ tracking_url:relationships:order:data:- id: '90'+ id: '95'type: orderaddress:data:stock_location:data:- id: '154'+ id: '168'type: stock_locationadjustments:data: []inventory_units:data:- - id: '45'+ - id: '55'type: inventory_unitshipping_rates:data:- - id: '69'+ - id: '109'type: shipping_ratestate_changes:data:- - id: '20'+ - id: '25'type: state_changeselected_shipping_rate:data:- id: '69'+ id: '109'type: shipping_rateschema:"$ref": "#/components/schemas/resource"@@ -9894,15 +10132,15 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- "/api/v2/platform/shipments/{id}/resume":+ "/api/v2/platform/shipments/{id}/ship":patch:- summary: Resumes the Shipment+ summary: Mark Shipment as shippedtags:- Shipmentssecurity:- bearer_auth: []- description: Resumes previously canceled Shipment- operationId: resume-shipment+ description: Marks Shipment as shipped+ operationId: ship-shipmentparameters:- name: idin: path@@ -9925,16 +10163,16 @@ paths:Example:value:data:- id: '53'+ id: '62'type: shipmentattributes:tracking: U10000- number: H45251121432+ number: H93228282805cost: '100.0'- shipped_at:- state: ready- created_at: '2021-11-17T08:59:23.213Z'- updated_at: '2021-11-17T08:59:23.290Z'+ shipped_at: '2021-11-18T14:35:53.961Z'+ state: shipped+ created_at: '2021-11-18T14:35:53.911Z'+ updated_at: '2021-11-18T14:35:53.961Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -9944,39 +10182,40 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"display_final_price: "$100.00"display_amount: "$100.00"display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$10.00"+ tracking_url:relationships:order:data:- id: '92'+ id: '97'type: orderaddress:data:stock_location:data:- id: '160'+ id: '174'type: stock_locationadjustments:data: []inventory_units:data:- - id: '49'+ - id: '59'type: inventory_unitshipping_rates:data:- - id: '77'+ - id: '117'type: shipping_ratestate_changes:data:- - id: '21'+ - id: '27'type: state_changeselected_shipping_rate:data:- id: '77'+ id: '117'type: shipping_rateschema:"$ref": "#/components/schemas/resource"@@ -10000,15 +10239,15 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- "/api/v2/platform/shipments/{id}/pend":+ "/api/v2/platform/shipments/{id}/cancel":patch:- summary: Moves Shipment back to pending state+ summary: Cancels the Shipmenttags:- Shipmentssecurity:- bearer_auth: []- description: Moves Shipment back to pending state- operationId: pend-shipment+ description: Cancels the Shipment+ operationId: cancel-shipmentparameters:- name: idin: path@@ -10031,16 +10270,16 @@ paths:Example:value:data:- id: '57'+ id: '66'type: shipmentattributes:tracking: U10000- number: H68269206941+ number: H77190813031cost: '100.0'shipped_at:- state: pending- created_at: '2021-11-17T08:59:24.229Z'- updated_at: '2021-11-17T08:59:24.275Z'+ state: canceled+ created_at: '2021-11-18T14:35:54.614Z'+ updated_at: '2021-11-18T14:35:54.653Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -10050,39 +10289,40 @@ paths:non_taxable_adjustment_total: '0.0'public_metadata: {}private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"display_final_price: "$100.00"display_amount: "$100.00"display_cost: "$100.00"- display_discounted_cost: "$100.00"- display_item_cost: "$10.00"+ tracking_url:relationships:order:data:- id: '94'+ id: '99'type: orderaddress:data:stock_location:data:- id: '166'+ id: '180'type: stock_locationadjustments:data: []inventory_units:data:- - id: '53'+ - id: '63'type: inventory_unitshipping_rates:data:- - id: '85'+ - id: '125'type: shipping_ratestate_changes:data:- - id: '22'+ - id: '28'type: state_changeselected_shipping_rate:data:- id: '85'+ id: '125'type: shipping_rateschema:"$ref": "#/components/schemas/resource"@@ -10106,22 +10346,236 @@ paths:error: The access token is invalidschema:"$ref": "#/components/schemas/error"- "/api/v2/platform/shipping_categories":- get:- summary: Return a list of Shipping Categories+ "/api/v2/platform/shipments/{id}/resume":+ patch:+ summary: Resumes the Shipmenttags:- - Shipping Categories+ - Shipmentssecurity:- bearer_auth: []- description: Returns a list of Shipping Categories- operationId: shipping-categories-list+ description: Resumes previously canceled Shipment+ operationId: resume-shipmentparameters:- - name: page- in: query- example: 1+ - name: id+ in: path+ required: trueschema:- type: integer- - name: per_page+ type: string+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: line_items,variants,product+ schema:+ type: string+ responses:+ '200':+ description: Record updated+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '70'+ type: shipment+ attributes:+ tracking: U10000+ number: H12355575954+ cost: '100.0'+ shipped_at:+ state: ready+ created_at: '2021-11-18T14:35:55.350Z'+ updated_at: '2021-11-18T14:35:55.393Z'+ adjustment_total: '0.0'+ additional_tax_total: '0.0'+ promo_total: '0.0'+ included_tax_total: '0.0'+ pre_tax_amount: '0.0'+ taxable_adjustment_total: '0.0'+ non_taxable_adjustment_total: '0.0'+ public_metadata: {}+ private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"+ display_final_price: "$100.00"+ display_amount: "$100.00"+ display_cost: "$100.00"+ tracking_url:+ relationships:+ order:+ data:+ id: '101'+ type: order+ address:+ data:+ stock_location:+ data:+ id: '186'+ type: stock_location+ adjustments:+ data: []+ inventory_units:+ data:+ - id: '67'+ type: inventory_unit+ shipping_rates:+ data:+ - id: '133'+ type: shipping_rate+ state_changes:+ data:+ - id: '29'+ type: state_change+ selected_shipping_rate:+ data:+ id: '133'+ type: shipping_rate+ schema:+ "$ref": "#/components/schemas/resource"+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ "/api/v2/platform/shipments/{id}/pend":+ patch:+ summary: Moves Shipment back to pending state+ tags:+ - Shipments+ security:+ - bearer_auth: []+ description: Moves Shipment back to pending state+ operationId: pend-shipment+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: line_items,variants,product+ schema:+ type: string+ responses:+ '200':+ description: Record updated+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '75'+ type: shipment+ attributes:+ tracking: U10000+ number: H58015533965+ cost: '100.0'+ shipped_at:+ state: pending+ created_at: '2021-11-18T14:35:56.295Z'+ updated_at: '2021-11-18T14:35:56.337Z'+ adjustment_total: '0.0'+ additional_tax_total: '0.0'+ promo_total: '0.0'+ included_tax_total: '0.0'+ pre_tax_amount: '0.0'+ taxable_adjustment_total: '0.0'+ non_taxable_adjustment_total: '0.0'+ public_metadata: {}+ private_metadata: {}+ display_discounted_cost: "$100.00"+ display_item_cost: "$10.00"+ display_final_price: "$100.00"+ display_amount: "$100.00"+ display_cost: "$100.00"+ tracking_url:+ relationships:+ order:+ data:+ id: '104'+ type: order+ address:+ data:+ stock_location:+ data:+ id: '194'+ type: stock_location+ adjustments:+ data: []+ inventory_units:+ data:+ - id: '72'+ type: inventory_unit+ shipping_rates:+ data:+ - id: '144'+ type: shipping_rate+ state_changes:+ data:+ - id: '30'+ type: state_change+ selected_shipping_rate:+ data:+ id: '144'+ type: shipping_rate+ schema:+ "$ref": "#/components/schemas/resource"+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ "/api/v2/platform/shipping_categories":+ get:+ summary: Return a list of Shipping Categories+ tags:+ - Shipping Categories+ security:+ - bearer_auth: []+ description: Returns a list of Shipping Categories+ operationId: shipping-categories-list+ parameters:+ - name: page+ in: query+ example: 1+ schema:+ type: integer+ - name: per_pagein: queryexample: 50schema:@@ -10141,18 +10595,18 @@ paths:Example:value:data:- - id: '113'+ - id: '124'type: shipping_categoryattributes:- name: 'ShippingCategory #113'- created_at: '2021-11-17T08:59:24.737Z'- updated_at: '2021-11-17T08:59:24.737Z'- - id: '114'+ name: 'ShippingCategory #124'+ created_at: '2021-11-18T14:35:56.741Z'+ updated_at: '2021-11-18T14:35:56.741Z'+ - id: '125'type: shipping_categoryattributes:- name: 'ShippingCategory #114'- created_at: '2021-11-17T08:59:24.738Z'- updated_at: '2021-11-17T08:59:24.738Z'+ name: 'ShippingCategory #125'+ created_at: '2021-11-18T14:35:56.742Z'+ updated_at: '2021-11-18T14:35:56.742Z'meta:count: 2total_count: 2@@ -10193,12 +10647,12 @@ paths:Example:value:data:- id: '117'+ id: '128'type: shipping_categoryattributes:- name: 'ShippingCategory #117'- created_at: '2021-11-17T08:59:24.853Z'- updated_at: '2021-11-17T08:59:24.853Z'+ name: 'ShippingCategory #128'+ created_at: '2021-11-18T14:35:56.837Z'+ updated_at: '2021-11-18T14:35:56.837Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -10243,12 +10697,12 @@ paths:Example:value:data:- id: '118'+ id: '129'type: shipping_categoryattributes:- name: 'ShippingCategory #118'- created_at: '2021-11-17T08:59:24.931Z'- updated_at: '2021-11-17T08:59:24.931Z'+ name: 'ShippingCategory #129'+ created_at: '2021-11-18T14:35:56.903Z'+ updated_at: '2021-11-18T14:35:56.903Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -10294,12 +10748,12 @@ paths:Example:value:data:- id: '120'+ id: '131'type: shipping_categoryattributes:name: Default- created_at: '2021-11-17T08:59:25.074Z'- updated_at: '2021-11-17T08:59:25.088Z'+ created_at: '2021-11-18T14:35:57.020Z'+ updated_at: '2021-11-18T14:35:57.030Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -10425,7 +10879,7 @@ paths:Example:value:data:- - id: '60'+ - id: '77'type: shipping_methodattributes:name: UPS Ground@@ -10433,15 +10887,41 @@ paths:admin_name:display_on: bothtracking_url:- created_at: '2021-11-17T08:59:25.569Z'- updated_at: '2021-11-17T08:59:25.569Z'+ created_at: '2021-11-18T14:35:57.292Z'+ updated_at: '2021-11-18T14:35:57.292Z'deleted_at:public_metadata: {}private_metadata: {}relationships:shipping_categories:data:- - id: '125'+ - id: '136'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '137'+ type: calculator+ - id: '78'+ type: shipping_method+ attributes:+ name: UPS Ground+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ created_at: '2021-11-18T14:35:57.308Z'+ updated_at: '2021-11-18T14:35:57.308Z'+ deleted_at:+ public_metadata: {}+ private_metadata: {}+ relationships:+ shipping_categories:+ data:+ - id: '136'type: shipping_categoryshipping_rates:data: []@@ -10449,44 +10929,405 @@ paths:data:calculator:data:- id: '120'- type: calculator- - id: '61'- type: shipping_method+ id: '138'+ type: calculator+ meta:+ count: 2+ total_count: 2+ total_pages: 1+ links:+ self: http://www.example.com/api/v2/platform/shipping_methods?page=1&per_page=&include=&filter[name]=&filter[title_cont]=+ next: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ prev: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ last: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ first: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ schema:+ "$ref": "#/components/schemas/resources_list"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ post:+ summary: Create a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Creates a Shipping Method+ operationId: create-shipping-method+ parameters:+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ responses:+ '201':+ description: Record created+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '81'+ type: shipping_method+ attributes:+ name: DHL Express Domestic+ code: DDD+ admin_name: DHL Express- Zone A+ display_on: both+ tracking_url:+ created_at: '2021-11-18T14:35:57.452Z'+ updated_at: '2021-11-18T14:35:57.452Z'+ deleted_at:+ public_metadata: {}+ private_metadata: {}+ relationships:+ shipping_categories:+ data:+ - id: '138'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ id: '133'+ type: tax_category+ calculator:+ data:+ id: '141'+ type: calculator+ schema:+ "$ref": "#/components/schemas/resource"+ '422':+ description: Invalid request+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: Calculator can't be blank, Name can't be blank, Display+ on can't be blank, and You must select at least one shipping+ category+ errors:+ calculator:+ - can't be blank+ name:+ - can't be blank+ display_on:+ - can't be blank+ base:+ - You must select at least one shipping category+ schema:+ "$ref": "#/components/schemas/validation_errors"+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/create_shipping_method_params"+ "/api/v2/platform/shipping_methods/{id}":+ get:+ summary: Return a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Returns a Shipping Method+ operationId: show-shipping-method+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ responses:+ '200':+ description: Record found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '82'+ type: shipping_method+ attributes:+ name: UPS Ground+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ created_at: '2021-11-18T14:35:57.535Z'+ updated_at: '2021-11-18T14:35:57.535Z'+ deleted_at:+ public_metadata: {}+ private_metadata: {}+ relationships:+ shipping_categories:+ data:+ - id: '139'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '142'+ type: calculator+ schema:+ "$ref": "#/components/schemas/resource"+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ patch:+ summary: Update a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Updates a Shipping Method+ operationId: update-shipping-method+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ responses:+ '200':+ description: Record updated+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '84'+ type: shipping_method+ attributes:+ name: FedEx Expedited+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ created_at: '2021-11-18T14:35:57.693Z'+ updated_at: '2021-11-18T14:35:57.717Z'+ deleted_at:+ public_metadata: {}+ private_metadata: {}+ relationships:+ shipping_categories:+ data:+ - id: '141'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '145'+ type: calculator+ schema:+ "$ref": "#/components/schemas/resource"+ '422':+ description: Invalid request+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: Name can't be blank+ errors:+ name:+ - can't be blank+ schema:+ "$ref": "#/components/schemas/validation_errors"+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/update_shipping_method_params"+ delete:+ summary: Delete a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Deletes a Shipping Method+ operationId: delete-shipping-method+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ responses:+ '204':+ description: Record deleted+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ schema:+ "$ref": "#/components/schemas/error"+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ schema:+ "$ref": "#/components/schemas/error"+ "/api/v2/platform/stock_items":+ get:+ summary: Return a list of Stock Items+ tags:+ - Stock Items+ security:+ - bearer_auth: []+ description: Returns a list of Stock Items+ operationId: stock-items-list+ parameters:+ - name: page+ in: query+ example: 1+ schema:+ type: integer+ - name: per_page+ in: query+ example: 50+ schema:+ type: integer+ - name: include+ in: query+ description: 'Select which associated resources you would like to fetch, see:+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'+ example: stock_location,variant+ schema:+ type: string+ responses:+ '200':+ description: Records returned+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ - id: '335'+ type: stock_item+ attributes:+ count_on_hand: 0+ created_at: '2021-11-18T14:35:58.079Z'+ updated_at: '2021-11-18T14:35:58.126Z'+ backorderable: false+ deleted_at:+ is_available: false+ relationships:+ stock_location:+ data:+ id: '198'+ type: stock_location+ variant:+ data:+ id: '259'+ type: variant+ - id: '336'+ type: stock_itemattributes:- name: UPS Ground- code: UPS_GROUND- admin_name:- display_on: both- tracking_url:- created_at: '2021-11-17T08:59:25.611Z'- updated_at: '2021-11-17T08:59:25.611Z'+ count_on_hand: 10+ created_at: '2021-11-18T14:35:58.138Z'+ updated_at: '2021-11-18T14:35:58.153Z'+ backorderable: truedeleted_at:- public_metadata: {}- private_metadata: {}+ is_available: truerelationships:- shipping_categories:- data:- - id: '125'- type: shipping_category- shipping_rates:- data: []- tax_category:+ stock_location:data:- calculator:+ id: '198'+ type: stock_location+ variant:data:- id: '121'- type: calculator+ id: '260'+ type: variantmeta:count: 2total_count: 2total_pages: 1links:- self: http://www.example.com/api/v2/platform/shipping_methods?page=1&per_page=&include=&filter[name]=&filter[title_cont]=- next: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=- prev: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=- last: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=- first: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ self: http://www.example.com/api/v2/platform/stock_items?page=1&per_page=&include=+ next: http://www.example.com/api/v2/platform/stock_items?include=&page=1&per_page=+ prev: http://www.example.com/api/v2/platform/stock_items?include=&page=1&per_page=+ last: http://www.example.com/api/v2/platform/stock_items?include=&page=1&per_page=+ first: http://www.example.com/api/v2/platform/stock_items?include=&page=1&per_page=schema:"$ref": "#/components/schemas/resources_list"'401':@@ -10500,19 +11341,19 @@ paths:schema:"$ref": "#/components/schemas/error"post:- summary: Create a Shipping Method+ summary: Create a Stock Itemtags:- - Shipping Methods+ - Stock Itemssecurity:- bearer_auth: []- description: Creates a Shipping Method- operationId: create-shipping-method+ description: Creates a Stock Item+ operationId: create-stock-itemparameters:- name: includein: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: calculator,shipping_categories,shipping_rates,tax_category+ example: stock_location,variantschema:type: stringresponses:@@ -10524,34 +11365,24 @@ paths:Example:value:data:- id: '64'- type: shipping_method+ id: '341'+ type: stock_itemattributes:- name: DHL Express Domestic- code: DDD- admin_name: DHL Express- Zone A- display_on: both- tracking_url:- created_at: '2021-11-17T08:59:25.784Z'- updated_at: '2021-11-17T08:59:25.784Z'+ count_on_hand: 0+ created_at: '2021-11-18T14:35:58.522Z'+ updated_at: '2021-11-18T14:35:58.522Z'+ backorderable: falsedeleted_at:- public_metadata: {}- private_metadata: {}+ is_available: falserelationships:- shipping_categories:- data:- - id: '127'- type: shipping_category- shipping_rates:- data: []- tax_category:+ stock_location:data:- id: '122'- type: tax_category- calculator:+ id: '201'+ type: stock_location+ variant:data:- id: '124'- type: calculator+ id: '264'+ type: variantschema:"$ref": "#/components/schemas/resource"'422':@@ -10561,34 +11392,28 @@ paths:examples:Example:value:- error: Calculator can't be blank, Name can't be blank, Display- on can't be blank, and You must select at least one shipping- category+ error: Stock location can't be blank and Variant can't be blankerrors:- calculator:- - can't be blank- name:+ stock_location:- can't be blank- display_on:+ variant:- can't be blank- base:- - You must select at least one shipping categoryschema:"$ref": "#/components/schemas/validation_errors"requestBody:content:application/json:schema:- "$ref": "#/components/schemas/create_shipping_method_params"- "/api/v2/platform/shipping_methods/{id}":+ "$ref": "#/components/schemas/create_stock_item_params"+ "/api/v2/platform/stock_items/{id}":get:- summary: Return a Shipping Method+ summary: Return a Stock Itemtags:- - Shipping Methods+ - Stock Itemssecurity:- bearer_auth: []- description: Returns a Shipping Method- operationId: show-shipping-method+ description: Returns a Stock Item+ operationId: show-stock-itemparameters:- name: idin: path@@ -10599,7 +11424,7 @@ paths:in: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: calculator,shipping_categories,shipping_rates,tax_category+ example: stock_location,variantschema:type: stringresponses:@@ -10611,32 +11436,24 @@ paths:Example:value:data:- id: '65'- type: shipping_method+ id: '343'+ type: stock_itemattributes:- name: UPS Ground- code: UPS_GROUND- admin_name:- display_on: both- tracking_url:- created_at: '2021-11-17T08:59:25.888Z'- updated_at: '2021-11-17T08:59:25.888Z'+ count_on_hand: 10+ created_at: '2021-11-18T14:35:58.662Z'+ updated_at: '2021-11-18T14:35:58.676Z'+ backorderable: truedeleted_at:- public_metadata: {}- private_metadata: {}+ is_available: truerelationships:- shipping_categories:- data:- - id: '128'- type: shipping_category- shipping_rates:- data: []- tax_category:+ stock_location:data:- calculator:+ id: '203'+ type: stock_location+ variant:data:- id: '125'- type: calculator+ id: '265'+ type: variantschema:"$ref": "#/components/schemas/resource"'404':@@ -10660,13 +11477,13 @@ paths:schema:"$ref": "#/components/schemas/error"patch:- summary: Update a Shipping Method+ summary: Update a Stock Itemtags:- - Shipping Methods+ - Stock Itemssecurity:- bearer_auth: []- description: Updates a Shipping Method- operationId: update-shipping-method+ description: Updates a Stock Item+ operationId: update-stock-itemparameters:- name: idin: path@@ -10677,7 +11494,7 @@ paths:in: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: calculator,shipping_categories,shipping_rates,tax_category+ example: stock_location,variantschema:type: stringresponses:@@ -10689,32 +11506,24 @@ paths:Example:value:data:- id: '67'- type: shipping_method+ id: '347'+ type: stock_itemattributes:- name: FedEx Expedited- code: UPS_GROUND- admin_name:- display_on: both- tracking_url:- created_at: '2021-11-17T08:59:26.053Z'- updated_at: '2021-11-17T08:59:26.079Z'+ count_on_hand: 200+ created_at: '2021-11-18T14:35:58.992Z'+ updated_at: '2021-11-18T14:35:59.038Z'+ backorderable: truedeleted_at:- public_metadata: {}- private_metadata: {}+ is_available: truerelationships:- shipping_categories:- data:- - id: '130'- type: shipping_category- shipping_rates:- data: []- tax_category:+ stock_location:data:- calculator:+ id: '207'+ type: stock_location+ variant:data:- id: '128'- type: calculator+ id: '267'+ type: variantschema:"$ref": "#/components/schemas/resource"'422':@@ -10724,9 +11533,9 @@ paths:examples:Example:value:- error: Name can't be blank+ error: Variant can't be blankerrors:- name:+ variant:- can't be blankschema:"$ref": "#/components/schemas/validation_errors"@@ -10754,15 +11563,15 @@ paths:content:application/json:schema:- "$ref": "#/components/schemas/update_shipping_method_params"+ "$ref": "#/components/schemas/update_stock_item_params"delete:- summary: Delete a Shipping Method+ summary: Delete a Stock Itemtags:- - Shipping Methods+ - Stock Itemssecurity:- bearer_auth: []- description: Deletes a Shipping Method- operationId: delete-shipping-method+ description: Deletes a Stock Item+ operationId: delete-stock-itemparameters:- name: idin: path@@ -10828,12 +11637,12 @@ paths:Example:value:data:- - id: '170'+ - id: '216'type: stock_locationattributes:- name: Celinda Bahringer- created_at: '2021-11-17T08:59:26.429Z'- updated_at: '2021-11-17T08:59:26.429Z'+ name: Lynwood Leannon+ created_at: '2021-11-18T14:35:59.753Z'+ updated_at: '2021-11-18T14:35:59.753Z'default: falseaddress1: 1600 Pennsylvania Ave NWaddress2:@@ -10848,14 +11657,14 @@ paths:relationships:country:data:- id: '367'+ id: '394'type: country- - id: '171'+ - id: '217'type: stock_locationattributes:- name: Ethyl Weber- created_at: '2021-11-17T08:59:26.435Z'- updated_at: '2021-11-17T08:59:26.435Z'+ name: Phung Mitchell+ created_at: '2021-11-18T14:35:59.758Z'+ updated_at: '2021-11-18T14:35:59.758Z'default: falseaddress1: 1600 Pennsylvania Ave NWaddress2:@@ -10870,7 +11679,7 @@ paths:relationships:country:data:- id: '367'+ id: '394'type: countrymeta:count: 2@@ -10919,12 +11728,12 @@ paths:Example:value:data:- id: '174'+ id: '220'type: stock_locationattributes:- name: Ardath Vandervort- created_at: '2021-11-17T08:59:26.558Z'- updated_at: '2021-11-17T08:59:26.558Z'+ name: September O'Hara+ created_at: '2021-11-18T14:35:59.863Z'+ updated_at: '2021-11-18T14:35:59.863Z'default: falseaddress1: 1600 Pennsylvania Ave NWaddress2:@@ -10939,7 +11748,7 @@ paths:relationships:country:data:- id: '369'+ id: '396'type: countryschema:"$ref": "#/components/schemas/resource"@@ -10992,12 +11801,12 @@ paths:Example:value:data:- id: '175'+ id: '221'type: stock_locationattributes:- name: Dorathy Fahey- created_at: '2021-11-17T08:59:26.639Z'- updated_at: '2021-11-17T08:59:26.639Z'+ name: Josiah Gulgowski+ created_at: '2021-11-18T14:35:59.950Z'+ updated_at: '2021-11-18T14:35:59.950Z'default: falseaddress1: 1600 Pennsylvania Ave NWaddress2:@@ -11012,7 +11821,7 @@ paths:relationships:country:data:- id: '371'+ id: '398'type: countryschema:"$ref": "#/components/schemas/resource"@@ -11066,12 +11875,12 @@ paths:Example:value:data:- id: '177'+ id: '223'type: stock_locationattributes:name: Warehouse 3- created_at: '2021-11-17T08:59:26.774Z'- updated_at: '2021-11-17T08:59:26.787Z'+ created_at: '2021-11-18T14:36:00.093Z'+ updated_at: '2021-11-18T14:36:00.106Z'default: trueaddress1: South Street 8/2address2:@@ -11086,7 +11895,7 @@ paths:relationships:country:data:- id: '374'+ id: '401'type: countryschema:"$ref": "#/components/schemas/resource"@@ -11204,14 +12013,14 @@ paths:type: store_credit_categoryattributes:name: Exchange- created_at: '2021-11-17T08:59:27.062Z'- updated_at: '2021-11-17T08:59:27.062Z'+ created_at: '2021-11-18T14:36:00.407Z'+ updated_at: '2021-11-18T14:36:00.407Z'- id: '3'type: store_credit_categoryattributes:name: Exchange- created_at: '2021-11-17T08:59:27.064Z'- updated_at: '2021-11-17T08:59:27.064Z'+ created_at: '2021-11-18T14:36:00.408Z'+ updated_at: '2021-11-18T14:36:00.408Z'meta:count: 2total_count: 2@@ -11256,8 +12065,8 @@ paths:type: store_credit_categoryattributes:name: Exchange- created_at: '2021-11-17T08:59:27.164Z'- updated_at: '2021-11-17T08:59:27.164Z'+ created_at: '2021-11-18T14:36:00.498Z'+ updated_at: '2021-11-18T14:36:00.498Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -11306,8 +12115,8 @@ paths:type: store_credit_categoryattributes:name: Exchange- created_at: '2021-11-17T08:59:27.241Z'- updated_at: '2021-11-17T08:59:27.241Z'+ created_at: '2021-11-18T14:36:00.580Z'+ updated_at: '2021-11-18T14:36:00.580Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -11357,8 +12166,8 @@ paths:type: store_credit_categoryattributes:name: refunded- created_at: '2021-11-17T08:59:27.359Z'- updated_at: '2021-11-17T08:59:27.372Z'+ created_at: '2021-11-18T14:36:00.698Z'+ updated_at: '2021-11-18T14:36:00.707Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -11470,15 +12279,15 @@ paths:attributes:name: Expiringpriority: 1- created_at: '2021-11-17T08:59:27.622Z'- updated_at: '2021-11-17T08:59:27.622Z'+ created_at: '2021-11-18T14:36:00.962Z'+ updated_at: '2021-11-18T14:36:00.962Z'- id: '3'type: store_credit_typeattributes:name: Expiringpriority: 1- created_at: '2021-11-17T08:59:27.623Z'- updated_at: '2021-11-17T08:59:27.623Z'+ created_at: '2021-11-18T14:36:00.964Z'+ updated_at: '2021-11-18T14:36:00.964Z'meta:count: 2total_count: 2@@ -11524,8 +12333,8 @@ paths:attributes:name: Expiringpriority: 1- created_at: '2021-11-17T08:59:27.726Z'- updated_at: '2021-11-17T08:59:27.726Z'+ created_at: '2021-11-18T14:36:01.058Z'+ updated_at: '2021-11-18T14:36:01.058Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -11575,8 +12384,8 @@ paths:attributes:name: Expiringpriority: 1- created_at: '2021-11-17T08:59:27.799Z'- updated_at: '2021-11-17T08:59:27.799Z'+ created_at: '2021-11-18T14:36:01.141Z'+ updated_at: '2021-11-18T14:36:01.141Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -11627,8 +12436,8 @@ paths:attributes:name: defaultpriority: 1- created_at: '2021-11-17T08:59:28.093Z'- updated_at: '2021-11-17T08:59:28.104Z'+ created_at: '2021-11-18T14:36:01.251Z'+ updated_at: '2021-11-18T14:36:01.260Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -11776,8 +12585,8 @@ paths:currency: USDamount_authorized: '0.0'originator_type:- created_at: '2021-11-17T08:59:28.399Z'- updated_at: '2021-11-17T08:59:28.399Z'+ created_at: '2021-11-18T14:36:01.539Z'+ updated_at: '2021-11-18T14:36:01.539Z'public_metadata: {}private_metadata: {}display_amount_used: "$0.00"@@ -11785,11 +12594,11 @@ paths:relationships:user:data:- id: '97'+ id: '107'type: usercreated_by:data:- id: '98'+ id: '108'type: userstore_credit_category:data:@@ -11813,8 +12622,8 @@ paths:currency: USDamount_authorized: '0.0'originator_type:- created_at: '2021-11-17T08:59:28.417Z'- updated_at: '2021-11-17T08:59:28.417Z'+ created_at: '2021-11-18T14:36:01.550Z'+ updated_at: '2021-11-18T14:36:01.550Z'public_metadata: {}private_metadata: {}display_amount_used: "$0.00"@@ -11822,11 +12631,11 @@ paths:relationships:user:data:- id: '97'+ id: '107'type: usercreated_by:data:- id: '99'+ id: '109'type: userstore_credit_category:data:@@ -11897,8 +12706,8 @@ paths:currency: USDamount_authorized: '0.0'originator_type:- created_at: '2021-11-17T08:59:28.621Z'- updated_at: '2021-11-17T08:59:28.621Z'+ created_at: '2021-11-18T14:36:01.712Z'+ updated_at: '2021-11-18T14:36:01.712Z'public_metadata: {}private_metadata: {}display_amount_used: "$0.00"@@ -11906,11 +12715,11 @@ paths:relationships:user:data:- id: '103'+ id: '113'type: usercreated_by:data:- id: '104'+ id: '114'type: userstore_credit_category:data:@@ -12002,8 +12811,8 @@ paths:currency: USDamount_authorized: '0.0'originator_type:- created_at: '2021-11-17T08:59:28.723Z'- updated_at: '2021-11-17T08:59:28.723Z'+ created_at: '2021-11-18T14:36:01.804Z'+ updated_at: '2021-11-18T14:36:01.804Z'public_metadata: {}private_metadata: {}display_amount_used: "$0.00"@@ -12011,11 +12820,11 @@ paths:relationships:user:data:- id: '105'+ id: '115'type: usercreated_by:data:- id: '106'+ id: '116'type: userstore_credit_category:data:@@ -12091,8 +12900,8 @@ paths:currency: CADamount_authorized: '0.0'originator_type:- created_at: '2021-11-17T08:59:28.912Z'- updated_at: '2021-11-17T08:59:28.936Z'+ created_at: '2021-11-18T14:36:01.947Z'+ updated_at: '2021-11-18T14:36:01.967Z'public_metadata:loyalty_reward: trueprivate_metadata: {}@@ -12101,11 +12910,11 @@ paths:relationships:user:data:- id: '109'+ id: '119'type: usercreated_by:data:- id: '110'+ id: '120'type: userstore_credit_category:data:@@ -12255,28 +13064,29 @@ paths:Example:value:data:- - id: '123'+ - id: '144'type: tax_categoryattributes:- name: TaxCategory - 176683- description: Aliquam rem architecto dolorem assumenda delectus.+ name: TaxCategory - 146148+ description: Voluptatibus praesentium molestiae iste occaecati+ alias ad.is_default: falsedeleted_at:- created_at: '2021-11-17T08:59:29.278Z'- updated_at: '2021-11-17T08:59:29.278Z'+ created_at: '2021-11-18T14:36:02.298Z'+ updated_at: '2021-11-18T14:36:02.298Z'tax_code:relationships:tax_rates:data: []- - id: '124'+ - id: '145'type: tax_categoryattributes:- name: TaxCategory - 291605- description: Magni fugit a odio blanditiis id cum aliquid.+ name: TaxCategory - 994675+ description: Incidunt perferendis et fugiat quae quibusdam.is_default: falsedeleted_at:- created_at: '2021-11-17T08:59:29.281Z'- updated_at: '2021-11-17T08:59:29.281Z'+ created_at: '2021-11-18T14:36:02.300Z'+ updated_at: '2021-11-18T14:36:02.300Z'tax_code:relationships:tax_rates:@@ -12328,15 +13138,16 @@ paths:Example:value:data:- id: '127'+ id: '148'type: tax_categoryattributes:- name: TaxCategory - 533682- description: Ad architecto tempore rem aliquam iure eos.+ name: TaxCategory - 519514+ description: Assumenda voluptate aperiam facere asperiores+ tenetur.is_default: falsedeleted_at:- created_at: '2021-11-17T08:59:29.571Z'- updated_at: '2021-11-17T08:59:29.571Z'+ created_at: '2021-11-18T14:36:02.404Z'+ updated_at: '2021-11-18T14:36:02.404Z'tax_code:relationships:tax_rates:@@ -12392,15 +13203,16 @@ paths:Example:value:data:- id: '128'+ id: '149'type: tax_categoryattributes:- name: TaxCategory - 194111- description: Harum tenetur ut ullam nobis minus cumque.+ name: TaxCategory - 942167+ description: Reprehenderit quidem dolor delectus quia voluptates+ vero.is_default: falsedeleted_at:- created_at: '2021-11-17T08:59:29.643Z'- updated_at: '2021-11-17T08:59:29.643Z'+ created_at: '2021-11-18T14:36:02.478Z'+ updated_at: '2021-11-18T14:36:02.478Z'tax_code:relationships:tax_rates:@@ -12457,15 +13269,15 @@ paths:Example:value:data:- id: '130'+ id: '151'type: tax_categoryattributes:name: Clothingdescription: Men's, women's and children's clothingis_default: truedeleted_at:- created_at: '2021-11-17T08:59:29.766Z'- updated_at: '2021-11-17T08:59:29.777Z'+ created_at: '2021-11-18T14:36:02.603Z'+ updated_at: '2021-11-18T14:36:02.615Z'tax_code: 1233Krelationships:tax_rates:@@ -12606,38 +13418,38 @@ paths:attributes:amount: '0.1'included_in_price: false- created_at: '2021-11-17T08:59:30.037Z'- updated_at: '2021-11-17T08:59:30.037Z'+ created_at: '2021-11-18T14:36:02.890Z'+ updated_at: '2021-11-18T14:36:02.890Z'name:show_rate_in_label: truedeleted_at:relationships:zone:data:- id: '82'+ id: '99'type: zonetax_category:data:- id: '135'+ id: '156'type: tax_category- id: '13'type: tax_rateattributes:amount: '0.1'included_in_price: false- created_at: '2021-11-17T08:59:30.042Z'- updated_at: '2021-11-17T08:59:30.042Z'+ created_at: '2021-11-18T14:36:02.897Z'+ updated_at: '2021-11-18T14:36:02.897Z'name:show_rate_in_label: truedeleted_at:relationships:zone:data:- id: '83'+ id: '100'type: zonetax_category:data:- id: '135'+ id: '156'type: tax_categorymeta:count: 2@@ -12691,8 +13503,8 @@ paths:attributes:amount: '0.1'included_in_price: false- created_at: '2021-11-17T08:59:30.173Z'- updated_at: '2021-11-17T08:59:30.173Z'+ created_at: '2021-11-18T14:36:03.015Z'+ updated_at: '2021-11-18T14:36:03.015Z'name:show_rate_in_label: truedeleted_at:@@ -12701,7 +13513,7 @@ paths:data:tax_category:data:- id: '137'+ id: '158'type: tax_categoryschema:"$ref": "#/components/schemas/resource"@@ -12764,19 +13576,19 @@ paths:attributes:amount: '0.1'included_in_price: false- created_at: '2021-11-17T08:59:30.262Z'- updated_at: '2021-11-17T08:59:30.262Z'+ created_at: '2021-11-18T14:36:03.096Z'+ updated_at: '2021-11-18T14:36:03.096Z'name:show_rate_in_label: truedeleted_at:relationships:zone:data:- id: '86'+ id: '103'type: zonetax_category:data:- id: '138'+ id: '159'type: tax_categoryschema:"$ref": "#/components/schemas/resource"@@ -12835,19 +13647,19 @@ paths:attributes:amount: '25.9'included_in_price: true- created_at: '2021-11-17T08:59:30.392Z'- updated_at: '2021-11-17T08:59:30.408Z'+ created_at: '2021-11-18T14:36:03.250Z'+ updated_at: '2021-11-18T14:36:03.268Z'name:show_rate_in_label: truedeleted_at:relationships:zone:data:- id: '89'+ id: '106'type: zonetax_category:data:- id: '140'+ id: '161'type: tax_categoryschema:"$ref": "#/components/schemas/resource"@@ -12972,8 +13784,8 @@ paths:type: taxonomyattributes:name: taxonomy_13- created_at: '2021-11-17T08:59:30.694Z'- updated_at: '2021-11-17T08:59:30.717Z'+ created_at: '2021-11-18T14:36:03.576Z'+ updated_at: '2021-11-18T14:36:03.604Z'position: 1public_metadata: {}private_metadata: {}@@ -12990,8 +13802,8 @@ paths:type: taxonomyattributes:name: taxonomy_14- created_at: '2021-11-17T08:59:30.721Z'- updated_at: '2021-11-17T08:59:30.743Z'+ created_at: '2021-11-18T14:36:03.607Z'+ updated_at: '2021-11-18T14:36:03.629Z'position: 2public_metadata: {}private_metadata: {}@@ -13055,8 +13867,8 @@ paths:type: taxonomyattributes:name: taxonomy_17- created_at: '2021-11-17T08:59:31.102Z'- updated_at: '2021-11-17T08:59:31.102Z'+ created_at: '2021-11-18T14:36:03.798Z'+ updated_at: '2021-11-18T14:36:03.798Z'position: 1public_metadata: {}private_metadata: {}@@ -13124,8 +13936,8 @@ paths:type: taxonomyattributes:name: taxonomy_18- created_at: '2021-11-17T08:59:31.246Z'- updated_at: '2021-11-17T08:59:31.275Z'+ created_at: '2021-11-18T14:36:03.899Z'+ updated_at: '2021-11-18T14:36:03.921Z'position: 1public_metadata: {}private_metadata: {}@@ -13194,8 +14006,8 @@ paths:type: taxonomyattributes:name: Categories- created_at: '2021-11-17T08:59:31.424Z'- updated_at: '2021-11-17T08:59:31.457Z'+ created_at: '2021-11-18T14:36:04.097Z'+ updated_at: '2021-11-18T14:36:04.138Z'position: 1public_metadata:balanced: true@@ -13343,8 +14155,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-11-17T08:59:32.034Z'- updated_at: '2021-11-17T08:59:32.040Z'+ created_at: '2021-11-18T14:36:04.644Z'+ updated_at: '2021-11-18T14:36:04.652Z'meta_title:meta_description:meta_keywords:@@ -13380,8 +14192,8 @@ paths:lft: 4rgt: 5description:- created_at: '2021-11-17T08:59:32.132Z'- updated_at: '2021-11-17T08:59:32.140Z'+ created_at: '2021-11-18T14:36:04.758Z'+ updated_at: '2021-11-18T14:36:04.766Z'meta_title:meta_description:meta_keywords:@@ -13417,8 +14229,8 @@ paths:lft: 6rgt: 7description:- created_at: '2021-11-17T08:59:32.230Z'- updated_at: '2021-11-17T08:59:32.235Z'+ created_at: '2021-11-18T14:36:04.880Z'+ updated_at: '2021-11-18T14:36:04.891Z'meta_title:meta_description:meta_keywords:@@ -13454,8 +14266,8 @@ paths:lft: 1rgt: 8description:- created_at: '2021-11-17T08:59:31.932Z'- updated_at: '2021-11-17T08:59:32.251Z'+ created_at: '2021-11-18T14:36:04.542Z'+ updated_at: '2021-11-18T14:36:04.908Z'meta_title:meta_description:meta_keywords:@@ -13540,8 +14352,8 @@ paths:lft: 4rgt: 5description:- created_at: '2021-11-17T08:59:32.907Z'- updated_at: '2021-11-17T08:59:32.916Z'+ created_at: '2021-11-18T14:36:05.591Z'+ updated_at: '2021-11-18T14:36:05.599Z'meta_title:meta_description:meta_keywords:@@ -13628,8 +14440,8 @@ paths:lft: 6rgt: 7description:- created_at: '2021-11-17T08:59:33.450Z'- updated_at: '2021-11-17T08:59:33.469Z'+ created_at: '2021-11-18T14:36:06.095Z'+ updated_at: '2021-11-18T14:36:06.101Z'meta_title:meta_description:meta_keywords:@@ -13719,8 +14531,8 @@ paths:lft: 6rgt: 7description:- created_at: '2021-11-17T08:59:34.468Z'- updated_at: '2021-11-17T08:59:34.508Z'+ created_at: '2021-11-18T14:36:06.979Z'+ updated_at: '2021-11-18T14:36:07.023Z'meta_title:meta_description:meta_keywords:@@ -13858,8 +14670,8 @@ paths:lft: 3rgt: 4description:- created_at: '2021-11-17T08:59:36.351Z'- updated_at: '2021-11-17T08:59:36.398Z'+ created_at: '2021-11-18T14:36:09.039Z'+ updated_at: '2021-11-18T14:36:09.076Z'meta_title:meta_description:meta_keywords:@@ -13961,12 +14773,12 @@ paths:Example:value:data:- - id: '119'+ - id: '129'type: userattributes:- email: [email protected]- created_at: '2021-11-17T08:59:37.031Z'- updated_at: '2021-11-17T08:59:37.031Z'+ email: [email protected]+ created_at: '2021-11-18T14:36:09.652Z'+ updated_at: '2021-11-18T14:36:09.652Z'public_metadata: {}private_metadata: {}average_order_value: []@@ -13977,12 +14789,12 @@ paths:data:ship_address:data:- - id: '120'+ - id: '130'type: userattributes:- email: [email protected]- created_at: '2021-11-17T08:59:37.041Z'- updated_at: '2021-11-17T08:59:37.041Z'+ email: [email protected]+ created_at: '2021-11-18T14:36:09.661Z'+ updated_at: '2021-11-18T14:36:09.661Z'public_metadata: {}private_metadata: {}average_order_value: []@@ -13993,12 +14805,12 @@ paths:data:ship_address:data:- - id: '121'+ - id: '131'type: userattributes:- email: [email protected]- created_at: '2021-11-17T08:59:37.044Z'- updated_at: '2021-11-17T08:59:37.044Z'+ email: [email protected]+ created_at: '2021-11-18T14:36:09.663Z'+ updated_at: '2021-11-18T14:36:09.663Z'public_metadata: {}private_metadata: {}average_order_value: []@@ -14056,12 +14868,12 @@ paths:Example:value:data:- id: '126'+ id: '136'type: userattributes:- email: [email protected]- created_at: '2021-11-17T08:59:37.201Z'- updated_at: '2021-11-17T08:59:37.201Z'+ email: [email protected]+ created_at: '2021-11-18T14:36:09.812Z'+ updated_at: '2021-11-18T14:36:09.812Z'public_metadata: {}private_metadata: {}average_order_value: []@@ -14123,12 +14935,12 @@ paths:Example:value:data:- id: '129'+ id: '139'type: userattributes:- email: [email protected]- created_at: '2021-11-17T08:59:37.307Z'- updated_at: '2021-11-17T08:59:37.307Z'+ email: [email protected]+ created_at: '2021-11-18T14:36:09.927Z'+ updated_at: '2021-11-18T14:36:09.927Z'public_metadata: {}private_metadata: {}average_order_value: []@@ -14191,12 +15003,12 @@ paths:Example:value:data:- id: '134'+ id: '144'type: userattributes:email: [email protected]- created_at: '2021-11-17T08:59:37.459Z'- updated_at: '2021-11-17T08:59:37.472Z'+ created_at: '2021-11-18T14:36:10.077Z'+ updated_at: '2021-11-18T14:36:10.096Z'public_metadata: {}private_metadata: {}average_order_value: []@@ -14332,10 +15144,10 @@ paths:Example:value:data:- - id: '245'+ - id: '272'type: variantattributes:- sku: SKU-245+ sku: SKU-272weight: '0.0'height:depth:@@ -14345,14 +15157,14 @@ paths:position: 1cost_currency: USDtrack_inventory: true- updated_at: '2021-11-17T08:59:37.865Z'+ updated_at: '2021-11-18T14:36:10.487Z'discontinue_on:- created_at: '2021-11-17T08:59:37.857Z'+ created_at: '2021-11-18T14:36:10.487Z'public_metadata: {}private_metadata: {}display_compare_at_price:display_price: "$19.99"- name: 'Product #178 - 5794'+ name: 'Product #202 - 8139'options_text: ''total_on_hand: 0purchasable: true@@ -14365,7 +15177,7 @@ paths:relationships:product:data:- id: '178'+ id: '202'type: producttax_category:data:@@ -14377,33 +15189,33 @@ paths:data: []stock_items:data:- - id: '300'+ - id: '356'type: stock_itemstock_locations:data:- - id: '182'+ - id: '228'type: stock_location- - id: '246'+ - id: '273'type: variantattributes:- sku: SKU-246- weight: '61.94'- height: '99.59'- depth: '45.89'+ sku: SKU-273+ weight: '115.69'+ height: '13.12'+ depth: '94.76'deleted_at:is_master: falsecost_price: '17.0'position: 2cost_currency: USDtrack_inventory: true- updated_at: '2021-11-17T08:59:37.907Z'+ updated_at: '2021-11-18T14:36:10.547Z'discontinue_on:- created_at: '2021-11-17T08:59:37.898Z'+ created_at: '2021-11-18T14:36:10.539Z'public_metadata: {}private_metadata: {}display_compare_at_price:display_price: "$19.99"- name: 'Product #178 - 5794'+ name: 'Product #202 - 8139'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -14416,7 +15228,7 @@ paths:relationships:product:data:- id: '178'+ id: '202'type: producttax_category:data:@@ -14426,37 +15238,37 @@ paths:data: []option_values:data:- - id: '80'+ - id: '83'type: option_valuestock_items:data:- - id: '301'+ - id: '357'type: stock_itemstock_locations:data:- - id: '182'+ - id: '228'type: stock_location- - id: '247'+ - id: '274'type: variantattributes:- sku: SKU-247- weight: '138.2'- height: '197.32'- depth: '16.38'+ sku: SKU-274+ weight: '174.1'+ height: '89.85'+ depth: '73.7'deleted_at:is_master: falsecost_price: '17.0'position: 3cost_currency: USDtrack_inventory: true- updated_at: '2021-11-17T08:59:37.937Z'+ updated_at: '2021-11-18T14:36:10.591Z'discontinue_on:- created_at: '2021-11-17T08:59:37.928Z'+ created_at: '2021-11-18T14:36:10.578Z'public_metadata: {}private_metadata: {}display_compare_at_price:display_price: "$19.99"- name: 'Product #178 - 5794'+ name: 'Product #202 - 8139'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -14469,7 +15281,7 @@ paths:relationships:product:data:- id: '178'+ id: '202'type: producttax_category:data:@@ -14479,15 +15291,15 @@ paths:data: []option_values:data:- - id: '81'+ - id: '84'type: option_valuestock_items:data:- - id: '302'+ - id: '358'type: stock_itemstock_locations:data:- - id: '182'+ - id: '228'type: stock_locationmeta:count: 3@@ -14542,27 +15354,27 @@ paths:Example:value:data:- id: '252'+ id: '279'type: variantattributes:- sku: SKU-252- weight: '57.15'- height: '140.2'- depth: '173.7'+ sku: SKU-279+ weight: '83.61'+ height: '119.66'+ depth: '35.58'deleted_at:is_master: falsecost_price: '17.0'position: 2cost_currency: USDtrack_inventory: true- updated_at: '2021-11-17T08:59:38.304Z'+ updated_at: '2021-11-18T14:36:11.004Z'discontinue_on:- created_at: '2021-11-17T08:59:38.295Z'+ created_at: '2021-11-18T14:36:10.997Z'public_metadata: {}private_metadata: {}display_compare_at_price:display_price: "$19.99"- name: 'Product #180 - 5235'+ name: 'Product #204 - 5828'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -14575,7 +15387,7 @@ paths:relationships:product:data:- id: '180'+ id: '204'type: producttax_category:data:@@ -14585,15 +15397,15 @@ paths:data: []option_values:data:- - id: '84'+ - id: '87'type: option_valuestock_items:data:- - id: '307'+ - id: '363'type: stock_itemstock_locations:data:- - id: '184'+ - id: '230'type: stock_locationschema:"$ref": "#/components/schemas/resource"@@ -14723,14 +15535,14 @@ paths:- id: '1'type: eventattributes:- execution_time: 90955+ execution_time: 43115name: order.canceledrequest_errors: ''response_code: '200'success: trueurl: https://www.url1.com/- created_at: '2021-11-17T08:59:38.886Z'- updated_at: '2021-11-17T08:59:38.886Z'+ created_at: '2021-11-18T14:36:11.665Z'+ updated_at: '2021-11-18T14:36:11.665Z'relationships:subscriber:data:@@ -14739,14 +15551,14 @@ paths:- id: '2'type: eventattributes:- execution_time: 96586+ execution_time: 61893name: order.canceledrequest_errors: ''response_code: '200'success: trueurl: https://www.url2.com/- created_at: '2021-11-17T08:59:38.889Z'- updated_at: '2021-11-17T08:59:38.889Z'+ created_at: '2021-11-18T14:36:11.668Z'+ updated_at: '2021-11-18T14:36:11.668Z'relationships:subscriber:data:@@ -14822,8 +15634,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-17T08:59:38.981Z'- updated_at: '2021-11-17T08:59:38.981Z'+ created_at: '2021-11-18T14:36:11.795Z'+ updated_at: '2021-11-18T14:36:11.795Z'- id: '6'type: subscriberattributes:@@ -14831,8 +15643,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-17T08:59:38.983Z'- updated_at: '2021-11-17T08:59:38.983Z'+ created_at: '2021-11-18T14:36:11.796Z'+ updated_at: '2021-11-18T14:36:11.796Z'meta:count: 2total_count: 2@@ -14880,8 +15692,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-17T08:59:39.084Z'- updated_at: '2021-11-17T08:59:39.084Z'+ created_at: '2021-11-18T14:36:11.896Z'+ updated_at: '2021-11-18T14:36:11.896Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -14936,8 +15748,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-17T08:59:39.153Z'- updated_at: '2021-11-17T08:59:39.153Z'+ created_at: '2021-11-18T14:36:11.975Z'+ updated_at: '2021-11-18T14:36:11.975Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -14990,8 +15802,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-17T08:59:39.263Z'- updated_at: '2021-11-17T08:59:39.263Z'+ created_at: '2021-11-18T14:36:12.103Z'+ updated_at: '2021-11-18T14:36:12.103Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -15112,8 +15924,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-17T08:59:39.699Z'- updated_at: '2021-11-17T08:59:39.699Z'+ created_at: '2021-11-18T14:36:12.619Z'+ updated_at: '2021-11-18T14:36:12.619Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -15121,14 +15933,14 @@ paths:relationships:variant:data:- id: '262'+ id: '289'type: variant- id: '2'type: wished_itemattributes:quantity: 1- created_at: '2021-11-17T08:59:39.781Z'- updated_at: '2021-11-17T08:59:39.781Z'+ created_at: '2021-11-18T14:36:12.712Z'+ updated_at: '2021-11-18T14:36:12.712Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -15136,14 +15948,14 @@ paths:relationships:variant:data:- id: '264'+ id: '291'type: variant- id: '3'type: wished_itemattributes:quantity: 1- created_at: '2021-11-17T08:59:39.859Z'- updated_at: '2021-11-17T08:59:39.859Z'+ created_at: '2021-11-18T14:36:12.802Z'+ updated_at: '2021-11-18T14:36:12.802Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -15151,14 +15963,14 @@ paths:relationships:variant:data:- id: '266'+ id: '293'type: variant- id: '4'type: wished_itemattributes:quantity: 1- created_at: '2021-11-17T08:59:39.936Z'- updated_at: '2021-11-17T08:59:39.936Z'+ created_at: '2021-11-18T14:36:12.907Z'+ updated_at: '2021-11-18T14:36:12.907Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -15166,7 +15978,7 @@ paths:relationships:variant:data:- id: '268'+ id: '295'type: variantmeta:count: 4@@ -15219,8 +16031,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-17T08:59:40.643Z'- updated_at: '2021-11-17T08:59:40.643Z'+ created_at: '2021-11-18T14:36:13.622Z'+ updated_at: '2021-11-18T14:36:13.622Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -15228,7 +16040,7 @@ paths:relationships:variant:data:- id: '280'+ id: '307'type: variantschema:"$ref": "#/components/schemas/resource"@@ -15290,8 +16102,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-17T08:59:41.225Z'- updated_at: '2021-11-17T08:59:41.225Z'+ created_at: '2021-11-18T14:36:14.026Z'+ updated_at: '2021-11-18T14:36:14.026Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -15299,7 +16111,7 @@ paths:relationships:variant:data:- id: '286'+ id: '313'type: variantschema:"$ref": "#/components/schemas/resource"@@ -15357,8 +16169,8 @@ paths:type: wished_itemattributes:quantity: 3- created_at: '2021-11-17T08:59:42.034Z'- updated_at: '2021-11-17T08:59:42.046Z'+ created_at: '2021-11-18T14:36:14.777Z'+ updated_at: '2021-11-18T14:36:14.800Z'display_price: "$19.99"display_total: "$59.97"price: '19.99'@@ -15366,7 +16178,7 @@ paths:relationships:variant:data:- id: '296'+ id: '323'type: variantschema:"$ref": "#/components/schemas/resource"@@ -15493,9 +16305,9 @@ paths:name: Black Fridayis_private: trueis_default: false- created_at: '2021-11-17T08:59:43.351Z'- updated_at: '2021-11-17T08:59:43.351Z'- token: 8mdvEux7iJtNG3z63jcT3tpW+ created_at: '2021-11-18T14:36:16.403Z'+ updated_at: '2021-11-18T14:36:16.403Z'+ token: qXsqkwoxgZkHpemsMwcAMEN7variant_included: falserelationships:wished_items:@@ -15510,9 +16322,9 @@ paths:name: Birthdayis_private: trueis_default: false- created_at: '2021-11-17T08:59:43.353Z'- updated_at: '2021-11-17T08:59:43.353Z'- token: a5CX4Y1jmvReQGJ9gGcWdAfJ+ created_at: '2021-11-18T14:36:16.406Z'+ updated_at: '2021-11-18T14:36:16.406Z'+ token: qNqiiRPptz4qAtGSqA33ny33variant_included: falserelationships:wished_items:@@ -15574,9 +16386,9 @@ paths:name: Wishlist_26is_private: trueis_default: false- created_at: '2021-11-17T08:59:44.120Z'- updated_at: '2021-11-17T08:59:44.120Z'- token: CBSXp32STTNyMygLKnkYmXrx+ created_at: '2021-11-18T14:36:17.462Z'+ updated_at: '2021-11-18T14:36:17.462Z'+ token: T21c2hejmK8VGVs87rB6t9sRvariant_included: falserelationships:wished_items:@@ -15640,9 +16452,9 @@ paths:name: My Wishlistis_private: trueis_default: false- created_at: '2021-11-17T08:59:44.203Z'- updated_at: '2021-11-17T08:59:44.203Z'- token: 4vxEJgPt4MhLsX8knVhpmnMe+ created_at: '2021-11-18T14:36:17.557Z'+ updated_at: '2021-11-18T14:36:17.557Z'+ token: m1g4x7xVqJjiMvqbyjGhsF3Dvariant_included: falserelationships:wished_items:@@ -15705,9 +16517,9 @@ paths:name: My Super Wishlistis_private: trueis_default: false- created_at: '2021-11-17T08:59:44.334Z'- updated_at: '2021-11-17T08:59:44.348Z'- token: cn6hsHijV8TKDRjd9U2pmxoR+ created_at: '2021-11-18T14:36:17.703Z'+ updated_at: '2021-11-18T14:36:17.714Z'+ token: CmKQQuBjvqbMkqS8qZK4ZJJNvariant_included: falserelationships:wished_items:@@ -15831,29 +16643,29 @@ paths:Example:value:data:- - id: '96'+ - id: '113'type: zoneattributes:- name: Ratione veritatis expedita saepe ipsum eos.- description: Vero doloremque expedita ducimus reiciendis.+ name: Labore odit quam velit ipsa.+ description: Dolore corrupti quasi molestiae tempore perspiciatis.default_tax: falsezone_members_count: 0- created_at: '2021-11-17T08:59:44.642Z'- updated_at: '2021-11-17T08:59:44.642Z'+ created_at: '2021-11-18T14:36:18.031Z'+ updated_at: '2021-11-18T14:36:18.031Z'kind: staterelationships:zone_members:data: []- - id: '97'+ - id: '114'type: zoneattributes:- name: Nihil consectetur aspernatur dicta cumque cum.- description: Excepturi commodi laudantium perferendis aliquam- consequuntur.+ name: Repudiandae placeat accusantium cumque omnis corporis+ vitae.+ description: Nesciunt magni itaque amet ducimus dolores.default_tax: falsezone_members_count: 0- created_at: '2021-11-17T08:59:44.644Z'- updated_at: '2021-11-17T08:59:44.644Z'+ created_at: '2021-11-18T14:36:18.041Z'+ updated_at: '2021-11-18T14:36:18.041Z'kind: staterelationships:zone_members:@@ -15905,16 +16717,16 @@ paths:Example:value:data:- id: '100'+ id: '117'type: zoneattributes:- name: Dicta tempore tempora tenetur sed.- description: Debitis quos totam eaque est aut impedit quaerat- exercitationem.+ name: Sapiente dolore quasi ipsam animi quod.+ description: Maxime illo corporis iusto eligendi molestiae+ sapiente et.default_tax: falsezone_members_count: 0- created_at: '2021-11-17T08:59:44.744Z'- updated_at: '2021-11-17T08:59:44.744Z'+ created_at: '2021-11-18T14:36:18.154Z'+ updated_at: '2021-11-18T14:36:18.154Z'kind: staterelationships:zone_members:@@ -15970,16 +16782,17 @@ paths:Example:value:data:- id: '101'+ id: '118'type: zoneattributes:- name: Consectetur magnam maiores blanditiis ea.- description: Earum harum explicabo adipisci cupiditate eum- hic commodi ipsum.+ name: Architecto distinctio praesentium voluptate earum deleniti+ asperiores molestias.+ description: Temporibus pariatur illo velit sequi quibusdam+ quaerat autem.default_tax: falsezone_members_count: 0- created_at: '2021-11-17T08:59:44.813Z'- updated_at: '2021-11-17T08:59:44.813Z'+ created_at: '2021-11-18T14:36:18.243Z'+ updated_at: '2021-11-18T14:36:18.243Z'kind: staterelationships:zone_members:@@ -16036,15 +16849,15 @@ paths:Example:value:data:- id: '103'+ id: '120'type: zoneattributes:name: EUdescription: The zone containing all EU countriesdefault_tax: falsezone_members_count: 0- created_at: '2021-11-17T08:59:44.932Z'- updated_at: '2021-11-17T08:59:44.942Z'+ created_at: '2021-11-18T14:36:18.377Z'+ updated_at: '2021-11-18T14:36:18.397Z'kind: staterelationships:zone_members:@@ -16156,6 +16969,7 @@ tags:- name: Shipments- name: Shipping Categories- name: Shipping Methods+- name: Stock Items- name: Stock Locations- name: Store Credit Categories- name: Store Credit Types@@ -18055,7 +18869,7 @@ components:completed_at:type: stringformat: date_time- example: 2021-11-17 08:58:25 UTC+ example: 2021-11-18 14:34:58 UTCbill_address_id:type: stringexample: '1'@@ -18123,7 +18937,7 @@ components:approved_at:type: stringformat: date_time- example: 2021-11-17 08:58:25 UTC+ example: 2021-11-18 14:34:58 UTCconfirmation_delivered:type: booleanexample: true@@ -18194,7 +19008,7 @@ components:completed_at:type: stringformat: date_time- example: 2021-11-17 08:58:25 UTC+ example: 2021-11-18 14:34:58 UTCbill_address_id:type: stringexample: '1'@@ -18262,7 +19076,7 @@ components:approved_at:type: stringformat: date_time- example: 2021-11-17 08:58:25 UTC+ example: 2021-11-18 14:34:58 UTCconfirmation_delivered:type: booleanexample: true@@ -19001,6 +19815,77 @@ components:required:- zonex-internal: true+ create_shipment_params:+ type: object+ properties:+ shipment:+ type: object+ required:+ - stock_location_id+ - order_id+ - variant_id+ properties:+ stock_location_id:+ type: string+ example: '101'+ order_id:+ type: string+ example: '101'+ variant_id:+ type: string+ example: '101'+ quantity:+ type: integer+ example: 2+ required:+ - shipping_category+ x-internal: true+ update_shipment_params:+ type: object+ properties:+ shipment:+ type: object+ properties:+ tracking:+ type: string+ example: MY-TRACKING-REF-12324+ required:+ - shipping_category+ x-internal: true+ add_item_shipment_params:+ type: object+ properties:+ shipment:+ type: object+ required:+ - variant_id+ properties:+ variant_id:+ type: string+ example: '101'+ quantity:+ type: integer+ example: 2+ required:+ - shipping_category+ x-internal: true+ remove_item_shipment_params:+ type: object+ properties:+ shipment:+ type: object+ required:+ - variant_id+ properties:+ variant_id:+ type: string+ example: '101'+ quantity:+ type: integer+ example: 2+ required:+ - shipping_category+ x-internal: truecreate_shipping_category_params:type: objectproperties:@@ -19135,6 +20020,58 @@ components:required:- typex-internal: true+ create_stock_item_params:+ type: object+ properties:+ stock_item:+ type: object+ required:+ - variant_id+ - stock_location_id+ - count_on_hand+ properties:+ variant_id:+ type: string+ example: '2'+ stock_location_id:+ type: string+ example: '2'+ count_on_hand:+ type: number+ example: 200+ backorderable:+ type: boolean+ example: true+ default: false+ required:+ - stock_item+ x-internal: true+ update_stock_item_params:+ type: object+ properties:+ stock_item:+ type: object+ required:+ - variant_id+ - stock_location_id+ - count_on_hand+ properties:+ variant_id:+ type: string+ example: '2'+ stock_location_id:+ type: string+ example: '2'+ count_on_hand:+ type: number+ example: 200+ backorderable:+ type: boolean+ example: true+ default: false+ required:+ - stock_item+ x-internal: truecreate_stock_location_params:type: objectproperties:diff --git a/api/spec/integration/api/v2/platform/stock_items_spec.rb b/api/spec/integration/api/v2/platform/stock_items_spec.rbnew file mode 100644index 0000000000..5e43f52228--- /dev/null+++ b/api/spec/integration/api/v2/platform/stock_items_spec.rb@@ -0,0 +1,42 @@+require 'swagger_helper'++describe 'Stock Items API', swagger: true do+ include_context 'Platform API v2'++ resource_name = 'Stock Item'+ options = {+ include_example: 'stock_location,variant',+ filter_examples: []+ }++ let(:product) { create(:product, stores: [store]) }+ let(:variant) { product.master }+ let(:variant_2) { create(:variant, product: product) }+ let(:stock_location) { create(:stock_location, propagate_all_variants: false) }+ let(:id) { create(:stock_item, variant: variant, stock_location: stock_location).id }+ let(:records_list) do+ create(:stock_item, stock_location: stock_location, variant: variant)+ create(:stock_item, stock_location: stock_location, variant: variant_2)+ end+ let(:valid_create_param_value) do+ {+ stock_item: {+ variant_id: variant_2.id,+ stock_location_id: stock_location.id,+ cound_on_hand: 100+ }+ }+ end+ let(:valid_update_param_value) do+ {+ count_on_hand: 200+ }+ end+ let(:invalid_param_value) do+ {+ variant_id: nil+ }+ end++ include_examples 'CRUD examples', resource_name, options+enddiff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rbindex c553a22e02..fb3bac1def 100644--- a/api/spec/swagger_helper.rb+++ b/api/spec/swagger_helper.rb@@ -64,6 +64,7 @@ RSpec.configure do |config|{ name: 'Shipments' },{ name: 'Shipping Categories' },{ name: 'Shipping Methods' },+ { name: 'Stock Items' },{ name: 'Stock Locations' },{ name: 'Store Credit Categories' },{ name: 'Store Credit Types' },@@ -1661,6 +1662,42 @@ RSpec.configure do |config|'x-internal': true},+ # Stock Item+ create_stock_item_params: {+ type: :object,+ properties: {+ stock_item: {+ type: :object,+ required: %w[variant_id stock_location_id count_on_hand],+ properties: {+ variant_id: { type: :string, example: '2' },+ stock_location_id: { type: :string, example: '2' },+ count_on_hand: { type: :number, example: 200 },+ backorderable: { type: :boolean, example: true, default: false }+ }+ }+ },+ required: %w[stock_item],+ 'x-internal': true+ },+ update_stock_item_params: {+ type: :object,+ properties: {+ stock_item: {+ type: :object,+ required: %w[variant_id stock_location_id count_on_hand],+ properties: {+ variant_id: { type: :string, example: '2' },+ stock_location_id: { type: :string, example: '2' },+ count_on_hand: { type: :number, example: 200 },+ backorderable: { type: :boolean, example: true, default: false }+ }+ }+ },+ required: %w[stock_item],+ 'x-internal': true+ },+# Stock Locationcreate_stock_location_params: {type: :object,diff --git a/core/app/models/spree/stock_item.rb b/core/app/models/spree/stock_item.rbindex ed0d04bdff..45773d8e65 100644--- a/core/app/models/spree/stock_item.rb+++ b/core/app/models/spree/stock_item.rb@@ -26,7 +26,7 @@ module Spreeafter_destroy { variant.touch }self.whitelisted_ransackable_attributes = %w[count_on_hand stock_location_id variant_id]- self.whitelisted_ransackable_associations = ['variant']+ self.whitelisted_ransackable_associations = %w[variant stock_location]scope :with_active_stock_location, -> { joins(:stock_location).merge(Spree::StockLocation.active) }diff --git a/core/lib/spree/testing_support/factories/stock_location_factory.rb b/core/lib/spree/testing_support/factories/stock_location_factory.rbindex 1ca9bb78c9..9767851921 100644--- a/core/lib/spree/testing_support/factories/stock_location_factory.rb+++ b/core/lib/spree/testing_support/factories/stock_location_factory.rb@@ -17,7 +17,7 @@ FactoryBot.define doafter(:create) do |stock_location, _evaluator|# variant will add itself to all stock_locations in an after_create# creating a product will automatically create a master variant- store = create(:store)+ store = Spree::Store.first || create(:store)product_1 = create(:product, stores: [store])product_2 = create(:product, stores: [store])