Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Add Store Credits endpoints to Platform API

Aleksandar Petrushev072ae9358311
diff --git a/api/app/controllers/spree/api/v2/platform/store_credits_controller.rb b/api/app/controllers/spree/api/v2/platform/store_credits_controller.rb
new file mode 100644
index 0000000000..1ae1d8ccee
--- /dev/null
+++ b/api/app/controllers/spree/api/v2/platform/store_credits_controller.rb
@@ -0,0 +1,20 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ class StoreCreditsController < ResourceController
+ private
+
+ def model_class
+ Spree::StoreCredit
+ end
+
+ def scope_includes
+ [:user, :created_by, :category, :credit_type]
+ end
+ end
+ end
+ end
+ end
+end
+
diff --git a/api/config/routes.rb b/api/config/routes.rb
index 6a45f09a61..98c65a8bd3 100644
--- a/api/config/routes.rb
+++ b/api/config/routes.rb
@@ -246,6 +246,9 @@ Spree::Core::Engine.add_routes do
# end
end
+ # Store Credit API
+ resources :store_credits
+
# Geo API
resources :zones
resources :countries, only: [:index, :show]
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index fd7a493a5a..5513714c52 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-0199
company: Company
- created_at: '2021-11-05T11:29:22.224Z'
- updated_at: '2021-11-05T11:29:22.224Z'
+ created_at: '2021-11-08T13:41:21.533Z'
+ updated_at: '2021-11-08T13:41:21.533Z'
deleted_at:
label:
public_metadata: {}
@@ -100,8 +100,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-05T11:29:22.231Z'
- updated_at: '2021-11-05T11:29:22.231Z'
+ created_at: '2021-11-08T13:41:21.541Z'
+ updated_at: '2021-11-08T13:41:21.541Z'
deleted_at:
label:
public_metadata: {}
@@ -177,8 +177,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-05T11:29:22.581Z'
- updated_at: '2021-11-05T11:29:22.581Z'
+ created_at: '2021-11-08T13:41:21.917Z'
+ updated_at: '2021-11-08T13:41:21.917Z'
deleted_at:
label:
public_metadata: {}
@@ -274,8 +274,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-05T11:29:22.650Z'
- updated_at: '2021-11-05T11:29:22.650Z'
+ created_at: '2021-11-08T13:41:21.997Z'
+ updated_at: '2021-11-08T13:41:21.997Z'
deleted_at:
label:
public_metadata: {}
@@ -356,8 +356,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-05T11:29:22.761Z'
- updated_at: '2021-11-05T11:29:22.773Z'
+ created_at: '2021-11-08T13:41:22.192Z'
+ updated_at: '2021-11-08T13:41:22.245Z'
deleted_at:
label:
public_metadata: {}
@@ -503,8 +503,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-05T11:29:23.116Z'
- updated_at: '2021-11-05T11:29:23.116Z'
+ created_at: '2021-11-08T13:41:22.604Z'
+ updated_at: '2021-11-08T13:41:22.604Z'
state: open
included: false
display_amount: "$100.00"
@@ -530,8 +530,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-05T11:29:23.148Z'
- updated_at: '2021-11-05T11:29:23.148Z'
+ created_at: '2021-11-08T13:41:22.636Z'
+ updated_at: '2021-11-08T13:41:22.636Z'
state: open
included: false
display_amount: "$100.00"
@@ -604,8 +604,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-05T11:29:23.554Z'
- updated_at: '2021-11-05T11:29:23.554Z'
+ created_at: '2021-11-08T13:41:23.025Z'
+ updated_at: '2021-11-08T13:41:23.025Z'
state: open
included: false
display_amount: "$100.00"
@@ -687,8 +687,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-05T11:29:23.742Z'
- updated_at: '2021-11-05T11:29:23.750Z'
+ created_at: '2021-11-08T13:41:23.198Z'
+ updated_at: '2021-11-08T13:41:23.206Z'
state: open
included: false
display_amount: "$1.00"
@@ -766,8 +766,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-11-05T11:29:24.061Z'
- updated_at: '2021-11-05T11:29:24.079Z'
+ created_at: '2021-11-08T13:41:23.516Z'
+ updated_at: '2021-11-08T13:41:23.534Z'
state: open
included: false
display_amount: "$15.00"
@@ -907,8 +907,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-05T11:29:25.031Z'
- updated_at: '2021-11-05T11:29:25.031Z'
+ created_at: '2021-11-08T13:41:24.352Z'
+ updated_at: '2021-11-08T13:41:24.352Z'
relationships:
product:
data:
@@ -922,8 +922,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-05T11:29:25.152Z'
- updated_at: '2021-11-05T11:29:25.152Z'
+ created_at: '2021-11-08T13:41:24.465Z'
+ updated_at: '2021-11-08T13:41:24.465Z'
relationships:
product:
data:
@@ -984,8 +984,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-05T11:29:25.841Z'
- updated_at: '2021-11-05T11:29:25.841Z'
+ created_at: '2021-11-08T13:41:25.166Z'
+ updated_at: '2021-11-08T13:41:25.166Z'
relationships:
product:
data:
@@ -1052,8 +1052,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-05T11:29:26.130Z'
- updated_at: '2021-11-05T11:29:26.130Z'
+ created_at: '2021-11-08T13:41:25.576Z'
+ updated_at: '2021-11-08T13:41:25.576Z'
relationships:
product:
data:
@@ -1119,8 +1119,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-05T11:29:26.786Z'
- updated_at: '2021-11-05T11:29:26.786Z'
+ created_at: '2021-11-08T13:41:26.083Z'
+ updated_at: '2021-11-08T13:41:26.083Z'
relationships:
product:
data:
@@ -1242,8 +1242,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-11-05T11:29:28.046Z'
- updated_at: '2021-11-05T11:29:28.075Z'
+ created_at: '2021-11-08T13:41:27.350Z'
+ updated_at: '2021-11-08T13:41:27.379Z'
relationships:
product:
data:
@@ -1348,35 +1348,35 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Quasi magnam eligendi perferendis eos possimus dolor.
+ title: Delectus deleniti laudantium eos distinctio exercitationem
+ asperiores rerum.
meta_title:
content:
meta_description:
visible: true
- slug: quasi-magnam-eligendi-perferendis-eos-possimus-dolor
+ slug: delectus-deleniti-laudantium-eos-distinctio-exercitationem-asperiores-rerum
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-05T11:29:28.776Z'
- updated_at: '2021-11-05T11:29:28.776Z'
+ created_at: '2021-11-08T13:41:27.937Z'
+ updated_at: '2021-11-08T13:41:27.937Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Dolorum recusandae dolorem earum magni fugit quisquam
- unde.
+ title: Ipsum natus blanditiis illo velit dolorem.
meta_title:
content:
meta_description:
visible: true
- slug: dolorum-recusandae-dolorem-earum-magni-fugit-quisquam-unde
+ slug: ipsum-natus-blanditiis-illo-velit-dolorem
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-05T11:29:28.782Z'
- updated_at: '2021-11-05T11:29:28.782Z'
+ created_at: '2021-11-08T13:41:27.942Z'
+ updated_at: '2021-11-08T13:41:27.942Z'
relationships:
cms_sections:
data: []
@@ -1430,18 +1430,17 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Corporis in earum suscipit ipsum quos possimus perferendis
- molestiae.
+ title: Aut dignissimos quasi atque provident numquam.
meta_title:
content:
meta_description:
visible: true
- slug: corporis-in-earum-suscipit-ipsum-quos-possimus-perferendis-molestiae
+ slug: aut-dignissimos-quasi-atque-provident-numquam
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-05T11:29:28.915Z'
- updated_at: '2021-11-05T11:29:28.915Z'
+ created_at: '2021-11-08T13:41:28.075Z'
+ updated_at: '2021-11-08T13:41:28.075Z'
relationships:
cms_sections:
data: []
@@ -1507,17 +1506,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Incidunt laborum aut a harum facilis.
+ title: Quos ratione reiciendis doloribus nemo delectus ea.
meta_title:
content:
meta_description:
visible: true
- slug: incidunt-laborum-aut-a-harum-facilis
+ slug: quos-ratione-reiciendis-doloribus-nemo-delectus-ea
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-05T11:29:28.997Z'
- updated_at: '2021-11-05T11:29:28.997Z'
+ created_at: '2021-11-08T13:41:28.148Z'
+ updated_at: '2021-11-08T13:41:28.148Z'
relationships:
cms_sections:
data: []
@@ -1581,12 +1580,12 @@ paths:
content:
meta_description:
visible: true
- slug: illo-non-repellendus-molestiae-voluptatum-corrupti-ab
+ slug: voluptate-cum-iste-hic-labore-enim-rem
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-05T11:29:29.104Z'
- updated_at: '2021-11-05T11:29:29.117Z'
+ created_at: '2021-11-08T13:41:28.272Z'
+ updated_at: '2021-11-08T13:41:28.286Z'
relationships:
cms_sections:
data: []
@@ -1715,7 +1714,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Odio hic sint reiciendis iste.
+ name: Debitis et quo libero iusto blanditiis delectus eaque.
content: {}
settings:
gutters: No Gutters
@@ -1724,8 +1723,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-11-05T11:29:29.415Z'
- updated_at: '2021-11-05T11:29:29.415Z'
+ created_at: '2021-11-08T13:41:28.591Z'
+ updated_at: '2021-11-08T13:41:28.591Z'
relationships:
cms_page:
data:
@@ -1736,8 +1735,7 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Enim pariatur tenetur aperiam facilis minus esse maiores
- expedita.
+ name: Optio perspiciatis veritatis quos tempore.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1749,8 +1747,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-11-05T11:29:29.420Z'
- updated_at: '2021-11-05T11:29:29.420Z'
+ created_at: '2021-11-08T13:41:28.596Z'
+ updated_at: '2021-11-08T13:41:28.596Z'
relationships:
cms_page:
data:
@@ -1761,8 +1759,8 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Optio commodi amet asperiores repellendus impedit eius
- numquam.
+ name: Hic veritatis commodi quis eaque esse fugit accusamus
+ corporis.
content: {}
settings:
gutters: No Gutters
@@ -1771,8 +1769,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-11-05T11:29:29.432Z'
- updated_at: '2021-11-05T11:29:29.432Z'
+ created_at: '2021-11-08T13:41:28.608Z'
+ updated_at: '2021-11-08T13:41:28.608Z'
relationships:
cms_page:
data:
@@ -1783,7 +1781,7 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Quae sequi ipsa quod alias.
+ name: Reprehenderit non quia vitae neque.
content: {}
settings:
gutters: No Gutters
@@ -1792,8 +1790,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-05T11:29:29.448Z'
- updated_at: '2021-11-05T11:29:29.448Z'
+ created_at: '2021-11-08T13:41:28.622Z'
+ updated_at: '2021-11-08T13:41:28.622Z'
relationships:
cms_page:
data:
@@ -1806,7 +1804,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Animi dolorem cupiditate laborum assumenda nulla.
+ name: Nam harum non sit exercitationem ea.
content: {}
settings:
gutters: No Gutters
@@ -1815,8 +1813,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-11-05T11:29:29.460Z'
- updated_at: '2021-11-05T11:29:29.460Z'
+ created_at: '2021-11-08T13:41:28.636Z'
+ updated_at: '2021-11-08T13:41:28.636Z'
relationships:
cms_page:
data:
@@ -1876,7 +1874,7 @@ paths:
id: '13'
type: cms_section
attributes:
- name: Neque maiores ex porro tempore nemo iste atque.
+ name: Ipsum enim maiores quas voluptatibus sapiente.
content: {}
settings:
gutters: No Gutters
@@ -1885,8 +1883,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-11-05T11:29:29.736Z'
- updated_at: '2021-11-05T11:29:29.736Z'
+ created_at: '2021-11-08T13:41:28.902Z'
+ updated_at: '2021-11-08T13:41:28.902Z'
relationships:
cms_page:
data:
@@ -1961,8 +1959,7 @@ paths:
id: '19'
type: cms_section
attributes:
- name: Veniam neque dolorum porro aliquam distinctio dolore
- libero quis.
+ name: Aliquid quisquam quas explicabo provident deserunt.
content: {}
settings:
gutters: No Gutters
@@ -1971,8 +1968,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-05T11:29:30.098Z'
- updated_at: '2021-11-05T11:29:30.098Z'
+ created_at: '2021-11-08T13:41:29.129Z'
+ updated_at: '2021-11-08T13:41:29.129Z'
relationships:
cms_page:
data:
@@ -2046,8 +2043,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Product
- created_at: '2021-11-05T11:29:30.443Z'
- updated_at: '2021-11-05T11:29:30.460Z'
+ created_at: '2021-11-08T13:41:29.479Z'
+ updated_at: '2021-11-08T13:41:29.495Z'
relationships:
cms_page:
data:
@@ -2167,9 +2164,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-11-05T11:29:31.332Z'
+ updated_at: '2021-11-08T13:41:30.208Z'
zipcode_required: true
- created_at: '2021-11-05T11:29:31.332Z'
+ created_at: '2021-11-08T13:41:30.208Z'
relationships:
states:
data: []
@@ -2182,9 +2179,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-11-05T11:29:31.340Z'
+ updated_at: '2021-11-08T13:41:30.216Z'
zipcode_required: true
- created_at: '2021-11-05T11:29:31.340Z'
+ created_at: '2021-11-08T13:41:30.216Z'
relationships:
states:
data: []
@@ -2197,9 +2194,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-11-05T11:29:31.343Z'
+ updated_at: '2021-11-08T13:41:30.218Z'
zipcode_required: true
- created_at: '2021-11-05T11:29:31.343Z'
+ created_at: '2021-11-08T13:41:30.218Z'
relationships:
states:
data: []
@@ -2258,9 +2255,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-11-05T11:29:31.436Z'
+ updated_at: '2021-11-08T13:41:30.314Z'
zipcode_required: true
- created_at: '2021-11-05T11:29:31.436Z'
+ created_at: '2021-11-08T13:41:30.314Z'
relationships:
states:
data: []
@@ -2318,7 +2315,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: RNXJau3uSXC6q67dRqsNrbqE
+ token: PvfuCVwEcGKvLxvnM6FVZ93P
access_counter: 0
relationships:
digital:
@@ -2332,7 +2329,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: pqaxQrriSYYJcb8pR85BYjbi
+ token: cnps5VupLXPMUGG6G7atcWQk
access_counter: 0
relationships:
digital:
@@ -2386,7 +2383,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: GePp7kYXQQ2uCKv1odXhvM1L
+ token: NoEv1aRpKzyq6nLqkLziE1H7
access_counter: 0
relationships:
digital:
@@ -2449,7 +2446,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: ZH69ydPbdXTz9GASEoS2Rm1p
+ token: D8EzmoeufQdECdZJbmewADMN
access_counter: 0
relationships:
digital:
@@ -2508,7 +2505,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: DjFYBcUTiASaRX1PpiPyqqfQ
+ token: nEnawiWfWiTJs11jmaKmYEUd
access_counter: 0
relationships:
digital:
@@ -2623,7 +2620,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: GNDxhRd8Cor5ChTizu8pY7Qq
+ token: d17cNycqTPFhUQBp6PHghhLw
access_counter: 0
relationships:
digital:
@@ -3040,8 +3037,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-05T11:29:44.174Z'
- updated_at: '2021-11-05T11:29:44.187Z'
+ created_at: '2021-11-08T13:41:43.171Z'
+ updated_at: '2021-11-08T13:41:43.183Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3063,8 +3060,8 @@ paths:
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_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3089,8 +3086,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-05T11:29:44.241Z'
- updated_at: '2021-11-05T11:29:44.250Z'
+ created_at: '2021-11-08T13:41:43.231Z'
+ updated_at: '2021-11-08T13:41:43.239Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3112,8 +3109,8 @@ paths:
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_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3185,8 +3182,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-05T11:29:44.609Z'
- updated_at: '2021-11-05T11:29:44.653Z'
+ created_at: '2021-11-08T13:41:43.597Z'
+ updated_at: '2021-11-08T13:41:43.640Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3208,8 +3205,8 @@ paths:
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_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3290,8 +3287,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-05T11:29:44.884Z'
- updated_at: '2021-11-05T11:29:44.895Z'
+ created_at: '2021-11-08T13:41:43.880Z'
+ updated_at: '2021-11-08T13:41:43.891Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3313,8 +3310,8 @@ paths:
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_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3391,8 +3388,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-11-05T11:29:45.267Z'
- updated_at: '2021-11-05T11:29:45.330Z'
+ created_at: '2021-11-08T13:41:44.267Z'
+ updated_at: '2021-11-08T13:41:44.324Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3414,8 +3411,8 @@ paths:
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_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3444,10 +3441,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #130 - 3667" is not available.'
+ error: 'Quantity selected of "Product #130 - 4167" is not available.'
errors:
quantity:
- - 'selected of "Product #130 - 3667" is not available.'
+ - 'selected of "Product #130 - 4167" is not available.'
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -3567,8 +3564,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-11-05T11:29:46.261Z'
- updated_at: '2021-11-05T11:29:46.283Z'
+ created_at: '2021-11-08T13:41:45.281Z'
+ updated_at: '2021-11-08T13:41:45.288Z'
link:
is_container: false
is_root: false
@@ -3604,8 +3601,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-11-05T11:29:46.373Z'
- updated_at: '2021-11-05T11:29:46.380Z'
+ created_at: '2021-11-08T13:41:45.379Z'
+ updated_at: '2021-11-08T13:41:45.385Z'
link:
is_container: false
is_root: false
@@ -3641,8 +3638,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-11-05T11:29:46.468Z'
- updated_at: '2021-11-05T11:29:46.475Z'
+ created_at: '2021-11-08T13:41:45.472Z'
+ updated_at: '2021-11-08T13:41:45.478Z'
link:
is_container: false
is_root: false
@@ -3678,8 +3675,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-05T11:29:46.560Z'
- updated_at: '2021-11-05T11:29:46.567Z'
+ created_at: '2021-11-08T13:41:45.564Z'
+ updated_at: '2021-11-08T13:41:45.571Z'
link:
is_container: false
is_root: false
@@ -3715,8 +3712,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-11-05T11:29:46.651Z'
- updated_at: '2021-11-05T11:29:46.657Z'
+ created_at: '2021-11-08T13:41:45.656Z'
+ updated_at: '2021-11-08T13:41:45.662Z'
link:
is_container: false
is_root: false
@@ -3752,8 +3749,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-11-05T11:29:46.742Z'
- updated_at: '2021-11-05T11:29:46.749Z'
+ created_at: '2021-11-08T13:41:45.749Z'
+ updated_at: '2021-11-08T13:41:45.754Z'
link:
is_container: false
is_root: false
@@ -3789,8 +3786,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-11-05T11:29:46.836Z'
- updated_at: '2021-11-05T11:29:46.842Z'
+ created_at: '2021-11-08T13:41:45.839Z'
+ updated_at: '2021-11-08T13:41:45.862Z'
link:
is_container: false
is_root: false
@@ -3816,7 +3813,7 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Eius maiores aspernatur fugit at deleniti.
+ name: Neque exercitationem dolores odio dolorum delectus fugiat.
subtitle:
destination:
new_window: false
@@ -3826,8 +3823,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-11-05T11:29:46.174Z'
- updated_at: '2021-11-05T11:29:46.855Z'
+ created_at: '2021-11-08T13:41:45.194Z'
+ updated_at: '2021-11-08T13:41:45.878Z'
link:
is_container: true
is_root: true
@@ -3920,8 +3917,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-05T11:29:47.964Z'
- updated_at: '2021-11-05T11:29:47.970Z'
+ created_at: '2021-11-08T13:41:47.155Z'
+ updated_at: '2021-11-08T13:41:47.161Z'
link:
is_container: false
is_root: false
@@ -4011,8 +4008,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-05T11:29:48.736Z'
- updated_at: '2021-11-05T11:29:48.743Z'
+ created_at: '2021-11-08T13:41:47.930Z'
+ updated_at: '2021-11-08T13:41:47.937Z'
link:
is_container: false
is_root: false
@@ -4100,8 +4097,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-05T11:29:49.939Z'
- updated_at: '2021-11-05T11:29:49.976Z'
+ created_at: '2021-11-08T13:41:49.147Z'
+ updated_at: '2021-11-08T13:41:49.182Z'
link:
is_container: false
is_root: false
@@ -4238,8 +4235,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-11-05T11:29:52.752Z'
- updated_at: '2021-11-05T11:29:52.789Z'
+ created_at: '2021-11-08T13:41:51.975Z'
+ updated_at: '2021-11-08T13:41:52.013Z'
link:
is_container: false
is_root: false
@@ -4343,8 +4340,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-05T11:29:53.580Z'
- updated_at: '2021-11-05T11:29:53.780Z'
+ created_at: '2021-11-08T13:41:52.823Z'
+ updated_at: '2021-11-08T13:41:53.029Z'
relationships:
menu_items:
data:
@@ -4360,8 +4357,8 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-11-05T11:29:53.593Z'
- updated_at: '2021-11-05T11:29:53.965Z'
+ created_at: '2021-11-08T13:41:52.835Z'
+ updated_at: '2021-11-08T13:41:53.211Z'
relationships:
menu_items:
data:
@@ -4424,8 +4421,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-05T11:29:54.481Z'
- updated_at: '2021-11-05T11:29:54.489Z'
+ created_at: '2021-11-08T13:41:53.752Z'
+ updated_at: '2021-11-08T13:41:53.760Z'
relationships:
menu_items:
data:
@@ -4493,8 +4490,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-05T11:29:54.580Z'
- updated_at: '2021-11-05T11:29:54.589Z'
+ created_at: '2021-11-08T13:41:53.837Z'
+ updated_at: '2021-11-08T13:41:53.845Z'
relationships:
menu_items:
data:
@@ -4558,8 +4555,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-05T11:29:54.719Z'
- updated_at: '2021-11-05T11:29:54.728Z'
+ created_at: '2021-11-08T13:41:53.986Z'
+ updated_at: '2021-11-08T13:41:53.994Z'
relationships:
menu_items:
data:
@@ -4694,8 +4691,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-11-05T11:29:55.028Z'
- updated_at: '2021-11-05T11:29:55.028Z'
+ created_at: '2021-11-08T13:41:54.283Z'
+ updated_at: '2021-11-08T13:41:54.283Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4708,8 +4705,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-11-05T11:29:55.030Z'
- updated_at: '2021-11-05T11:29:55.030Z'
+ created_at: '2021-11-08T13:41:54.286Z'
+ updated_at: '2021-11-08T13:41:54.286Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4762,8 +4759,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-11-05T11:29:55.124Z'
- updated_at: '2021-11-05T11:29:55.124Z'
+ created_at: '2021-11-08T13:41:54.382Z'
+ updated_at: '2021-11-08T13:41:54.382Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4822,8 +4819,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-11-05T11:29:55.193Z'
- updated_at: '2021-11-05T11:29:55.193Z'
+ created_at: '2021-11-08T13:41:54.448Z'
+ updated_at: '2021-11-08T13:41:54.448Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4881,8 +4878,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-11-05T11:29:55.296Z'
- updated_at: '2021-11-05T11:29:55.308Z'
+ created_at: '2021-11-08T13:41:54.560Z'
+ updated_at: '2021-11-08T13:41:54.570Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -5020,8 +5017,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-11-05T11:29:55.546Z'
- updated_at: '2021-11-05T11:29:55.546Z'
+ created_at: '2021-11-08T13:41:54.800Z'
+ updated_at: '2021-11-08T13:41:54.800Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5035,8 +5032,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-11-05T11:29:55.553Z'
- updated_at: '2021-11-05T11:29:55.553Z'
+ created_at: '2021-11-08T13:41:54.808Z'
+ updated_at: '2021-11-08T13:41:54.808Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5097,8 +5094,8 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-11-05T11:29:55.653Z'
- updated_at: '2021-11-05T11:29:55.653Z'
+ created_at: '2021-11-08T13:41:54.912Z'
+ updated_at: '2021-11-08T13:41:54.912Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5163,8 +5160,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-11-05T11:29:55.717Z'
- updated_at: '2021-11-05T11:29:55.717Z'
+ created_at: '2021-11-08T13:41:54.977Z'
+ updated_at: '2021-11-08T13:41:54.977Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5230,8 +5227,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-11-05T11:29:55.830Z'
- updated_at: '2021-11-05T11:29:55.842Z'
+ created_at: '2021-11-08T13:41:55.099Z'
+ updated_at: '2021-11-08T13:41:55.111Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5361,7 +5358,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R380038600
+ number: R136264553
item_total: '0.0'
total: '0.0'
state: cart
@@ -5370,10 +5367,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:29:56.104Z'
- updated_at: '2021-11-05T11:29:56.104Z'
+ created_at: '2021-11-08T13:41:55.366Z'
+ updated_at: '2021-11-08T13:41:55.366Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5404,11 +5401,11 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -5447,7 +5444,7 @@ paths:
- id: '41'
type: order
attributes:
- number: R955484449
+ number: R221885376
item_total: '0.0'
total: '0.0'
state: cart
@@ -5456,10 +5453,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:29:56.119Z'
- updated_at: '2021-11-05T11:29:56.119Z'
+ created_at: '2021-11-08T13:41:55.385Z'
+ updated_at: '2021-11-08T13:41:55.385Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5490,11 +5487,11 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -5580,7 +5577,7 @@ paths:
id: '44'
type: order
attributes:
- number: R622405309
+ number: R159168054
item_total: '0.0'
total: '0.0'
state: cart
@@ -5591,8 +5588,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-11-05T11:29:56.535Z'
- updated_at: '2021-11-05T11:29:56.555Z'
+ created_at: '2021-11-08T13:41:55.793Z'
+ updated_at: '2021-11-08T13:41:55.818Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5623,11 +5620,11 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -5708,7 +5705,7 @@ paths:
id: '45'
type: order
attributes:
- number: R163331113
+ number: R872505684
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5717,10 +5714,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:29:56.634Z'
- updated_at: '2021-11-05T11:29:56.842Z'
+ created_at: '2021-11-08T13:41:55.886Z'
+ updated_at: '2021-11-08T13:41:56.064Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5751,11 +5748,11 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -5852,7 +5849,7 @@ paths:
id: '47'
type: order
attributes:
- number: R057214802
+ number: R780342568
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5863,8 +5860,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:29:57.145Z'
- updated_at: '2021-11-05T11:29:57.285Z'
+ created_at: '2021-11-08T13:41:56.381Z'
+ updated_at: '2021-11-08T13:41:56.521Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5895,11 +5892,11 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -6052,7 +6049,7 @@ paths:
id: '52'
type: order
attributes:
- number: R322989713
+ number: R493527898
item_total: '10.0'
total: '110.0'
state: payment
@@ -6061,10 +6058,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:29:58.211Z'
- updated_at: '2021-11-05T11:29:58.407Z'
+ created_at: '2021-11-08T13:41:57.450Z'
+ updated_at: '2021-11-08T13:41:57.639Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6095,11 +6092,11 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -6199,7 +6196,7 @@ paths:
id: '54'
type: order
attributes:
- number: R504473077
+ number: R168049079
item_total: '10.0'
total: '110.0'
state: payment
@@ -6208,10 +6205,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:29:58.708Z'
- updated_at: '2021-11-05T11:29:58.892Z'
+ created_at: '2021-11-08T13:41:57.934Z'
+ updated_at: '2021-11-08T13:41:58.126Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6242,11 +6239,11 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -6346,19 +6343,19 @@ paths:
id: '56'
type: order
attributes:
- number: R129781155
+ number: R464001013
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-11-05T11:29:59.618Z'
+ completed_at: '2021-11-08T13:41:58.722Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-11-05T11:29:59.316Z'
- updated_at: '2021-11-05T11:29:59.618Z'
+ created_at: '2021-11-08T13:41:58.399Z'
+ updated_at: '2021-11-08T13:41:58.722Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6389,11 +6386,11 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -6504,7 +6501,7 @@ paths:
id: '59'
type: order
attributes:
- number: R933032985
+ number: R185479670
item_total: '0.0'
total: '0.0'
state: cart
@@ -6513,10 +6510,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:30:00.139Z'
- updated_at: '2021-11-05T11:30:00.296Z'
+ created_at: '2021-11-08T13:41:59.238Z'
+ updated_at: '2021-11-08T13:41:59.394Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6547,11 +6544,11 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -6646,7 +6643,7 @@ paths:
id: '61'
type: order
attributes:
- number: R748115898
+ number: R260084636
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6655,10 +6652,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-05T11:30:00.577Z'
- updated_at: '2021-11-05T11:30:00.703Z'
+ created_at: '2021-11-08T13:41:59.680Z'
+ updated_at: '2021-11-08T13:41:59.804Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6689,11 +6686,11 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
+ display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
- display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@ -6961,8 +6958,8 @@ paths:
display_on: both
auto_capture:
position: 1
- created_at: '2021-11-05T11:30:03.089Z'
- updated_at: '2021-11-05T11:30:03.089Z'
+ created_at: '2021-11-08T13:42:02.796Z'
+ updated_at: '2021-11-08T13:42:02.796Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -6982,8 +6979,8 @@ paths:
display_on: both
auto_capture:
position: 2
- created_at: '2021-11-05T11:30:03.099Z'
- updated_at: '2021-11-05T11:30:03.099Z'
+ created_at: '2021-11-08T13:42:02.814Z'
+ updated_at: '2021-11-08T13:42:02.814Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7003,8 +7000,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-05T11:30:03.104Z'
- updated_at: '2021-11-05T11:30:03.104Z'
+ created_at: '2021-11-08T13:42:02.825Z'
+ updated_at: '2021-11-08T13:42:02.825Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7024,8 +7021,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-05T11:30:03.110Z'
- updated_at: '2021-11-05T11:30:03.110Z'
+ created_at: '2021-11-08T13:42:02.836Z'
+ updated_at: '2021-11-08T13:42:02.836Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7048,8 +7045,8 @@ paths:
display_on: both
auto_capture:
position: 5
- created_at: '2021-11-05T11:30:03.116Z'
- updated_at: '2021-11-05T11:30:03.116Z'
+ created_at: '2021-11-08T13:42:02.847Z'
+ updated_at: '2021-11-08T13:42:02.847Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7119,8 +7116,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-05T11:30:03.301Z'
- updated_at: '2021-11-05T11:30:03.301Z'
+ created_at: '2021-11-08T13:42:03.391Z'
+ updated_at: '2021-11-08T13:42:03.391Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7196,8 +7193,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-05T11:30:03.448Z'
- updated_at: '2021-11-05T11:30:03.448Z'
+ created_at: '2021-11-08T13:42:03.552Z'
+ updated_at: '2021-11-08T13:42:03.552Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7272,8 +7269,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-05T11:30:03.653Z'
- updated_at: '2021-11-05T11:30:03.669Z'
+ created_at: '2021-11-08T13:42:03.820Z'
+ updated_at: '2021-11-08T13:42:03.842Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7421,9 +7418,9 @@ paths:
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-11-05T11:30:04.125Z'
- updated_at: '2021-11-05T11:30:04.155Z'
- number: PJF02RSC
+ created_at: '2021-11-08T13:42:04.835Z'
+ updated_at: '2021-11-08T13:42:04.876Z'
+ number: PHEVNJLB
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7460,9 +7457,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-05T11:30:04.150Z'
- updated_at: '2021-11-05T11:30:04.150Z'
- number: P7YVWPLW
+ created_at: '2021-11-08T13:42:04.868Z'
+ updated_at: '2021-11-08T13:42:04.868Z'
+ number: PZ4OZB9Y
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7550,9 +7547,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-05T11:30:04.401Z'
- updated_at: '2021-11-05T11:30:04.401Z'
- number: P3SSQUW4
+ created_at: '2021-11-08T13:42:05.537Z'
+ updated_at: '2021-11-08T13:42:05.537Z'
+ number: P5M0UAFI
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7690,8 +7687,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-05T11:30:04.757Z'
- updated_at: '2021-11-05T11:30:04.757Z'
+ created_at: '2021-11-08T13:42:06.173Z'
+ updated_at: '2021-11-08T13:42:06.173Z'
code: POP123
relationships:
promotions:
@@ -7700,8 +7697,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-05T11:30:04.758Z'
- updated_at: '2021-11-05T11:30:04.758Z'
+ created_at: '2021-11-08T13:42:06.175Z'
+ updated_at: '2021-11-08T13:42:06.175Z'
code: POP123
relationships:
promotions:
@@ -7757,8 +7754,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-05T11:30:04.845Z'
- updated_at: '2021-11-05T11:30:04.845Z'
+ created_at: '2021-11-08T13:42:06.271Z'
+ updated_at: '2021-11-08T13:42:06.271Z'
code: 2021-BFM
relationships:
promotions:
@@ -7818,8 +7815,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-05T11:30:04.908Z'
- updated_at: '2021-11-05T11:30:04.908Z'
+ created_at: '2021-11-08T13:42:06.337Z'
+ updated_at: '2021-11-08T13:42:06.337Z'
code: MJO
relationships:
promotions:
@@ -7880,8 +7877,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-11-05T11:30:05.023Z'
- updated_at: '2021-11-05T11:30:05.031Z'
+ created_at: '2021-11-08T13:42:06.450Z'
+ updated_at: '2021-11-08T13:42:06.459Z'
code: 2021-Promos
relationships:
promotions:
@@ -8009,12 +8006,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H29326421302
+ number: H32072739964
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-05T11:30:05.252Z'
- updated_at: '2021-11-05T11:30:05.256Z'
+ created_at: '2021-11-08T13:42:06.762Z'
+ updated_at: '2021-11-08T13:42:06.768Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8024,11 +8021,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$0.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8058,12 +8055,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H21611995524
+ number: H07566324744
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-05T11:30:05.302Z'
- updated_at: '2021-11-05T11:30:05.307Z'
+ created_at: '2021-11-08T13:42:06.820Z'
+ updated_at: '2021-11-08T13:42:06.825Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8073,11 +8070,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$0.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8160,12 +8157,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H60035200587
+ number: H65215921729
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-05T11:30:05.769Z'
- updated_at: '2021-11-05T11:30:05.798Z'
+ created_at: '2021-11-08T13:42:07.857Z'
+ updated_at: '2021-11-08T13:42:07.889Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8175,11 +8172,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8301,12 +8298,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H78624579901
+ number: H28559934911
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-05T11:30:07.146Z'
- updated_at: '2021-11-05T11:30:07.192Z'
+ created_at: '2021-11-08T13:42:09.889Z'
+ updated_at: '2021-11-08T13:42:09.958Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8316,11 +8313,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8407,12 +8404,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H36706825202
+ number: H79654102319
cost: '100.0'
- shipped_at: '2021-11-05T11:30:08.120Z'
+ shipped_at: '2021-11-08T13:42:10.898Z'
state: shipped
- created_at: '2021-11-05T11:30:08.060Z'
- updated_at: '2021-11-05T11:30:08.120Z'
+ created_at: '2021-11-08T13:42:10.841Z'
+ updated_at: '2021-11-08T13:42:10.898Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8422,11 +8419,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8513,12 +8510,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H52646027720
+ number: H49080576108
cost: '100.0'
shipped_at:
state: canceled
- created_at: '2021-11-05T11:30:08.965Z'
- updated_at: '2021-11-05T11:30:09.010Z'
+ created_at: '2021-11-08T13:42:11.887Z'
+ updated_at: '2021-11-08T13:42:11.961Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8528,11 +8525,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8619,12 +8616,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H12073028234
+ number: H90538090585
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-05T11:30:09.705Z'
- updated_at: '2021-11-05T11:30:09.754Z'
+ created_at: '2021-11-08T13:42:13.790Z'
+ updated_at: '2021-11-08T13:42:13.981Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8634,11 +8631,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8725,12 +8722,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H80261464874
+ number: H88989060708
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-05T11:30:10.417Z'
- updated_at: '2021-11-05T11:30:10.474Z'
+ created_at: '2021-11-08T13:42:14.879Z'
+ updated_at: '2021-11-08T13:42:14.926Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8740,11 +8737,11 @@ paths:
non_taxable_adjustment_total: '0.0'
public_metadata: {}
private_metadata: {}
+ display_cost: "$100.00"
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
- display_cost: "$100.00"
relationships:
order:
data:
@@ -8835,14 +8832,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #116'
- created_at: '2021-11-05T11:30:10.944Z'
- updated_at: '2021-11-05T11:30:10.944Z'
+ created_at: '2021-11-08T13:42:15.415Z'
+ updated_at: '2021-11-08T13:42:15.415Z'
- id: '117'
type: shipping_category
attributes:
name: 'ShippingCategory #117'
- created_at: '2021-11-05T11:30:10.945Z'
- updated_at: '2021-11-05T11:30:10.945Z'
+ created_at: '2021-11-08T13:42:15.417Z'
+ updated_at: '2021-11-08T13:42:15.417Z'
meta:
count: 2
total_count: 2
@@ -8887,8 +8884,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #120'
- created_at: '2021-11-05T11:30:11.035Z'
- updated_at: '2021-11-05T11:30:11.035Z'
+ created_at: '2021-11-08T13:42:15.517Z'
+ updated_at: '2021-11-08T13:42:15.517Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -8937,8 +8934,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #121'
- created_at: '2021-11-05T11:30:11.104Z'
- updated_at: '2021-11-05T11:30:11.104Z'
+ created_at: '2021-11-08T13:42:15.597Z'
+ updated_at: '2021-11-08T13:42:15.597Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -8988,8 +8985,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-11-05T11:30:11.217Z'
- updated_at: '2021-11-05T11:30:11.226Z'
+ created_at: '2021-11-08T13:42:15.701Z'
+ updated_at: '2021-11-08T13:42:15.710Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9123,8 +9120,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-05T11:30:11.453Z'
- updated_at: '2021-11-05T11:30:11.453Z'
+ created_at: '2021-11-08T13:42:16.070Z'
+ updated_at: '2021-11-08T13:42:16.070Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9149,8 +9146,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-05T11:30:11.473Z'
- updated_at: '2021-11-05T11:30:11.473Z'
+ created_at: '2021-11-08T13:42:16.089Z'
+ updated_at: '2021-11-08T13:42:16.089Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9222,8 +9219,8 @@ paths:
admin_name: DHL Express- Zone A
display_on: both
tracking_url:
- created_at: '2021-11-05T11:30:11.617Z'
- updated_at: '2021-11-05T11:30:11.617Z'
+ created_at: '2021-11-08T13:42:16.253Z'
+ updated_at: '2021-11-08T13:42:16.253Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9309,8 +9306,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-05T11:30:11.741Z'
- updated_at: '2021-11-05T11:30:11.741Z'
+ created_at: '2021-11-08T13:42:16.363Z'
+ updated_at: '2021-11-08T13:42:16.363Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9387,8 +9384,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-05T11:30:11.905Z'
- updated_at: '2021-11-05T11:30:11.928Z'
+ created_at: '2021-11-08T13:42:16.521Z'
+ updated_at: '2021-11-08T13:42:16.546Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9482,15 +9479,15 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/taxons":
+ "/api/v2/platform/store_credits":
get:
- summary: Return a list of Taxons
+ summary: Return a list of Store Credits
tags:
- - Taxons
+ - Store Credits
security:
- bearer_auth: []
- description: Returns a list of Taxons
- operationId: taxons-list
+ description: Returns a list of Store Credits
+ operationId: store-credits-list
parameters:
- name: page
in: query
@@ -9506,19 +9503,31 @@ paths:
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: taxonomy,parent,children
+ example: user,created_by,category,credit_type
schema:
type: string
- - name: filter[taxonomy_id_eq]
+ - name: filter[user_id_eq]
in: query
description: ''
- example: '1'
+ example: 5
schema:
type: string
- - name: filter[name_cont]
+ - name: filter[created_by_id_eq]
in: query
description: ''
- example: Shirts
+ example: 2
+ schema:
+ type: string
+ - name: filter[amount_gteq]
+ in: query
+ description: ''
+ example: 50.0
+ schema:
+ type: string
+ - name: filter[currency_eq]
+ in: query
+ description: ''
+ example: USD
schema:
type: string
responses:
@@ -9530,127 +9539,90 @@ paths:
Example:
value:
data:
- - id: '32'
- type: taxon
+ - id: '2'
+ type: store_credit
attributes:
- position: 0
- name: taxon_16
- permalink: taxonomy-16/taxon-16
- lft: 2
- rgt: 3
- description:
- created_at: '2021-11-05T11:30:12.349Z'
- updated_at: '2021-11-05T11:30:12.355Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 1
+ amount: '150.0'
+ amount_used: '0.0'
+ memo:
+ deleted_at:
+ currency: USD
+ amount_authorized: '0.0'
+ originator_type:
+ created_at: '2021-11-08T13:42:16.868Z'
+ updated_at: '2021-11-08T13:42:16.868Z'
public_metadata: {}
private_metadata: {}
- pretty_name: taxonomy_16 -> taxon_16
- seo_title: taxon_16
- is_root: false
- is_child: true
- is_leaf: true
+ display_amount_used: "$0.00"
+ display_amount: "$150.00"
relationships:
- parent:
- data:
- id: '31'
- type: taxon
- taxonomy:
+ user:
data:
- id: '16'
- type: taxonomy
- children:
- data: []
- image:
+ id: '97'
+ type: user
+ created_by:
data:
- id: '92'
- type: taxon_image
- - id: '33'
- type: taxon
- attributes:
- position: 0
- name: taxon_17
- permalink: taxonomy-16/taxon-17
- lft: 4
- rgt: 5
- description:
- created_at: '2021-11-05T11:30:12.461Z'
- updated_at: '2021-11-05T11:30:12.466Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 1
- public_metadata: {}
- private_metadata: {}
- pretty_name: taxonomy_16 -> taxon_17
- seo_title: taxon_17
- is_root: false
- is_child: true
- is_leaf: true
- relationships:
- parent:
+ id: '98'
+ type: user
+ store_credit_category:
data:
- id: '31'
- type: taxon
- taxonomy:
+ id: '2'
+ type: store_credit_category
+ store_credit_type:
data:
- id: '16'
- type: taxonomy
- children:
- data: []
- image:
+ id: '2'
+ type: store_credit_type
+ store_credit_events:
data:
- id: '93'
- type: taxon_image
- - id: '31'
- type: taxon
+ - id: '3'
+ type: store_credit_event
+ - id: '3'
+ type: store_credit
attributes:
- position: 0
- name: taxonomy_16
- permalink: taxonomy-16
- lft: 1
- rgt: 6
- description:
- created_at: '2021-11-05T11:30:12.252Z'
- updated_at: '2021-11-05T11:30:12.480Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 0
+ amount: '150.0'
+ amount_used: '0.0'
+ memo:
+ deleted_at:
+ currency: USD
+ amount_authorized: '0.0'
+ originator_type:
+ created_at: '2021-11-08T13:42:16.884Z'
+ updated_at: '2021-11-08T13:42:16.884Z'
public_metadata: {}
private_metadata: {}
- pretty_name: taxonomy_16
- seo_title: taxonomy_16
- is_root: true
- is_child: false
- is_leaf: false
+ display_amount_used: "$0.00"
+ display_amount: "$150.00"
relationships:
- parent:
+ user:
data:
- taxonomy:
+ id: '97'
+ type: user
+ created_by:
data:
- id: '16'
- type: taxonomy
- children:
+ id: '99'
+ type: user
+ store_credit_category:
data:
- - id: '32'
- type: taxon
- - id: '33'
- type: taxon
- image:
+ id: '3'
+ type: store_credit_category
+ store_credit_type:
+ data:
+ id: '3'
+ type: store_credit_type
+ store_credit_events:
data:
+ - id: '4'
+ type: store_credit_event
meta:
- count: 3
- total_count: 3
+ count: 2
+ total_count: 2
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/taxons?page=1&per_page=&include=&filter[taxonomy_id_eq]=&filter[name_cont]=
- next: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/store_credits?page=1&per_page=&include=&filter[user_id_eq]=&filter[created_by_id_eq]=&filter[amount_gteq]=&filter[currency_eq]=
+ next: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -9664,19 +9636,19 @@ paths:
schema:
"$ref": "#/components/schemas/error"
post:
- summary: Create a Taxon
+ summary: Create a Store Credit
tags:
- - Taxons
+ - Store Credits
security:
- bearer_auth: []
- description: Creates a Taxon
- operationId: create-taxon
+ description: Creates a Store Credit
+ operationId: create-store-credit
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: taxonomy,parent,children
+ example: user,created_by,category,credit_type
schema:
type: string
responses:
@@ -9688,41 +9660,43 @@ paths:
Example:
value:
data:
- id: '38'
- type: taxon
+ id: '6'
+ type: store_credit
attributes:
- position: 0
- name: taxon_20
- permalink: taxonomy-18/taxon-20
- lft: 2
- rgt: 3
- description:
- created_at: '2021-11-05T11:30:12.848Z'
- updated_at: '2021-11-05T11:30:12.854Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 1
+ amount: '150.0'
+ amount_used: '0.0'
+ memo:
+ deleted_at:
+ currency: USD
+ amount_authorized: '0.0'
+ originator_type:
+ created_at: '2021-11-08T13:42:17.057Z'
+ updated_at: '2021-11-08T13:42:17.057Z'
public_metadata: {}
private_metadata: {}
- pretty_name: taxonomy_18 -> taxon_20
- seo_title: taxon_20
- is_root: false
- is_child: true
- is_leaf: true
+ display_amount_used: "$0.00"
+ display_amount: "$150.00"
relationships:
- parent:
+ user:
data:
- id: '37'
- type: taxon
- taxonomy:
+ id: '103'
+ type: user
+ created_by:
data:
- id: '18'
- type: taxonomy
- children:
- data: []
- image:
+ id: '104'
+ type: user
+ store_credit_category:
+ data:
+ id: '6'
+ type: store_credit_category
+ store_credit_type:
+ data:
+ id: '6'
+ type: store_credit_type
+ store_credit_events:
data:
+ - id: '7'
+ type: store_credit_event
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9732,28 +9706,43 @@ paths:
examples:
Example:
value:
- error: Name can't be blank and Taxonomy can't be blank
+ error: User can't be blank, Category can't be blank, Credit type
+ can't be blank, Created by can't be blank, Currency can't be
+ blank, Amount must be greater than 0, Amount used Cannot be
+ greater than amount., and Amount authorized Exceeds total credits.
errors:
- name:
+ user:
- can't be blank
- taxonomy:
+ category:
+ - can't be blank
+ credit_type:
+ - can't be blank
+ created_by:
- can't be blank
+ currency:
+ - can't be blank
+ amount:
+ - must be greater than 0
+ amount_used:
+ - Cannot be greater than amount.
+ amount_authorized:
+ - Exceeds total credits.
schema:
"$ref": "#/components/schemas/validation_errors"
requestBody:
content:
application/json:
schema:
- "$ref": "#/components/schemas/create_taxon_params"
- "/api/v2/platform/taxons/{id}":
+ "$ref": "#/components/schemas/create_store_credit_params"
+ "/api/v2/platform/store_credits/{id}":
get:
- summary: Return a Taxon
+ summary: Return a Store Credit
tags:
- - Taxons
+ - Store Credits
security:
- bearer_auth: []
- description: Returns a Taxon
- operationId: show-taxon
+ description: Returns a Store Credit
+ operationId: show-store-credit
parameters:
- name: id
in: path
@@ -9764,7 +9753,7 @@ paths:
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: taxonomy,parent,children
+ example: user,created_by,category,credit_type
schema:
type: string
responses:
@@ -9776,45 +9765,43 @@ paths:
Example:
value:
data:
- id: '40'
- type: taxon
+ id: '7'
+ type: store_credit
attributes:
- position: 0
- name: taxon_21
- permalink: taxonomy-19/taxon-21
- lft: 2
- rgt: 3
- description:
- created_at: '2021-11-05T11:30:13.058Z'
- updated_at: '2021-11-05T11:30:13.064Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 1
+ amount: '150.0'
+ amount_used: '0.0'
+ memo:
+ deleted_at:
+ currency: USD
+ amount_authorized: '0.0'
+ originator_type:
+ created_at: '2021-11-08T13:42:17.165Z'
+ updated_at: '2021-11-08T13:42:17.165Z'
public_metadata: {}
private_metadata: {}
- pretty_name: taxonomy_19 -> taxon_21
- seo_title: taxon_21
- is_root: false
- is_child: true
- is_leaf: true
+ display_amount_used: "$0.00"
+ display_amount: "$150.00"
relationships:
- parent:
+ user:
data:
- id: '39'
- type: taxon
- taxonomy:
+ id: '105'
+ type: user
+ created_by:
data:
- id: '19'
- type: taxonomy
- children:
- data: []
- products:
- data: []
- image:
+ id: '106'
+ type: user
+ store_credit_category:
data:
- id: '96'
- type: taxon_image
+ id: '7'
+ type: store_credit_category
+ store_credit_type:
+ data:
+ id: '7'
+ type: store_credit_type
+ store_credit_events:
+ data:
+ - id: '8'
+ type: store_credit_event
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -9838,13 +9825,13 @@ paths:
schema:
"$ref": "#/components/schemas/error"
patch:
- summary: Update a Taxon
+ summary: Update a Store Credit
tags:
- - Taxons
+ - Store Credits
security:
- bearer_auth: []
- description: Updates a Taxon
- operationId: update-taxon
+ description: Updates a Store Credit
+ operationId: update-store-credit
parameters:
- name: id
in: path
@@ -9855,7 +9842,7 @@ paths:
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: taxonomy,parent,children
+ example: user,created_by,category,credit_type
schema:
type: string
responses:
@@ -9867,44 +9854,44 @@ paths:
Example:
value:
data:
- id: '44'
- type: taxon
+ id: '9'
+ type: store_credit
attributes:
- position: 0
- name: T-Shirts
- permalink: taxonomy-21/taxon-23
- lft: 2
- rgt: 3
- description:
- created_at: '2021-11-05T11:30:13.406Z'
- updated_at: '2021-11-05T11:30:13.442Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 1
+ amount: '500.0'
+ amount_used: '0.0'
+ memo: The user is awarded
+ deleted_at:
+ currency: CAD
+ amount_authorized: '0.0'
+ originator_type:
+ created_at: '2021-11-08T13:42:17.309Z'
+ updated_at: '2021-11-08T13:42:17.336Z'
public_metadata:
- profitability: 3
+ loyalty_reward: true
private_metadata: {}
- pretty_name: taxonomy_21 -> T-Shirts
- seo_title: T-Shirts
- is_root: false
- is_child: true
- is_leaf: true
+ display_amount_used: "$0.00"
+ display_amount: "$500.00"
relationships:
- parent:
+ user:
data:
- id: '43'
- type: taxon
- taxonomy:
+ id: '109'
+ type: user
+ created_by:
data:
- id: '21'
- type: taxonomy
- children:
- data: []
- image:
+ id: '110'
+ type: user
+ store_credit_category:
data:
- id: '98'
- type: taxon_image
+ id: '9'
+ type: store_credit_category
+ store_credit_type:
+ data:
+ id: '9'
+ type: store_credit_type
+ store_credit_events:
+ data:
+ - id: '10'
+ type: store_credit_event
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9914,10 +9901,15 @@ paths:
examples:
Example:
value:
- error: Name can't be blank
+ error: Amount must be greater than 0, Amount used Cannot be greater
+ than amount., and Amount authorized Exceeds total credits.
errors:
- name:
- - can't be blank
+ amount:
+ - must be greater than 0
+ amount_used:
+ - Cannot be greater than amount.
+ amount_authorized:
+ - Exceeds total credits.
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -9944,15 +9936,15 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/update_taxon_params"
+ "$ref": "#/components/schemas/update_store_credit_params"
delete:
- summary: Delete a Taxon
+ summary: Delete a Store Credit
tags:
- - Taxons
+ - Store Credits
security:
- bearer_auth: []
- description: Deletes a Taxon
- operationId: delete-taxon
+ description: Deletes a Store Credit
+ operationId: delete-store-credit
parameters:
- name: id
in: path
@@ -9982,15 +9974,15 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/users":
+ "/api/v2/platform/taxons":
get:
- summary: Return a list of Users
+ summary: Return a list of Taxons
tags:
- - Users
+ - Taxons
security:
- bearer_auth: []
- description: Returns a list of Users
- operationId: users-list
+ description: Returns a list of Taxons
+ operationId: taxons-list
parameters:
- name: page
in: query
@@ -10006,19 +9998,19 @@ paths:
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: ship_address,bill_address
+ example: taxonomy,parent,children
schema:
type: string
- - name: filter[user_id_eq]
+ - name: filter[taxonomy_id_eq]
in: query
description: ''
example: '1'
schema:
type: string
- - name: filter[email_cont]
+ - name: filter[name_cont]
in: query
description: ''
+ example: Shirts
schema:
type: string
responses:
@@ -10030,64 +10022,127 @@ paths:
Example:
value:
data:
- - id: '97'
- type: user
+ - id: '32'
+ type: taxon
attributes:
- created_at: '2021-11-05T11:30:14.228Z'
- updated_at: '2021-11-05T11:30:14.228Z'
+ position: 0
+ name: taxon_16
+ permalink: taxonomy-16/taxon-16
+ lft: 2
+ rgt: 3
+ description:
+ created_at: '2021-11-08T13:42:17.745Z'
+ updated_at: '2021-11-08T13:42:17.751Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 1
public_metadata: {}
private_metadata: {}
- average_order_value: []
- lifetime_value: []
- store_credits: []
+ pretty_name: taxonomy_16 -> taxon_16
+ seo_title: taxon_16
+ is_root: false
+ is_child: true
+ is_leaf: true
relationships:
- bill_address:
+ parent:
data:
- ship_address:
+ id: '31'
+ type: taxon
+ taxonomy:
data:
- - id: '98'
- type: user
+ id: '16'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data:
+ id: '92'
+ type: taxon_image
+ - id: '33'
+ type: taxon
attributes:
- created_at: '2021-11-05T11:30:14.238Z'
- updated_at: '2021-11-05T11:30:14.238Z'
+ position: 0
+ name: taxon_17
+ permalink: taxonomy-16/taxon-17
+ lft: 4
+ rgt: 5
+ description:
+ created_at: '2021-11-08T13:42:17.842Z'
+ updated_at: '2021-11-08T13:42:17.847Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 1
public_metadata: {}
private_metadata: {}
- average_order_value: []
- lifetime_value: []
- store_credits: []
+ pretty_name: taxonomy_16 -> taxon_17
+ seo_title: taxon_17
+ is_root: false
+ is_child: true
+ is_leaf: true
relationships:
- bill_address:
+ parent:
data:
- ship_address:
+ id: '31'
+ type: taxon
+ taxonomy:
data:
- - id: '99'
- type: user
+ id: '16'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data:
+ id: '93'
+ type: taxon_image
+ - id: '31'
+ type: taxon
attributes:
- created_at: '2021-11-05T11:30:14.240Z'
- updated_at: '2021-11-05T11:30:14.240Z'
+ position: 0
+ name: taxonomy_16
+ permalink: taxonomy-16
+ lft: 1
+ rgt: 6
+ description:
+ created_at: '2021-11-08T13:42:17.650Z'
+ updated_at: '2021-11-08T13:42:17.863Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 0
public_metadata: {}
private_metadata: {}
- average_order_value: []
- lifetime_value: []
- store_credits: []
+ pretty_name: taxonomy_16
+ seo_title: taxonomy_16
+ is_root: true
+ is_child: false
+ is_leaf: false
relationships:
- bill_address:
+ parent:
data:
- ship_address:
+ taxonomy:
+ data:
+ id: '16'
+ type: taxonomy
+ children:
+ data:
+ - id: '32'
+ type: taxon
+ - id: '33'
+ type: taxon
+ image:
data:
meta:
count: 3
total_count: 3
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/users?page=1&per_page=&include=&filter[user_id_eq]=&filter[email_cont]=
- next: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/taxons?page=1&per_page=&include=&filter[taxonomy_id_eq]=&filter[name_cont]=
+ next: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/taxons?filter%5Bname_cont%5D=&filter%5Btaxonomy_id_eq%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -10101,19 +10156,19 @@ paths:
schema:
"$ref": "#/components/schemas/error"
post:
- summary: Create a User
+ summary: Create a Taxon
tags:
- - Users
+ - Taxons
security:
- bearer_auth: []
- description: Creates a User
- operationId: create-user
+ description: Creates a Taxon
+ operationId: create-taxon
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: ship_address,bill_address
+ example: taxonomy,parent,children
schema:
type: string
responses:
@@ -10125,23 +10180,42 @@ paths:
Example:
value:
data:
- id: '104'
- type: user
+ id: '38'
+ type: taxon
attributes:
- created_at: '2021-11-05T11:30:14.421Z'
- updated_at: '2021-11-05T11:30:14.421Z'
+ position: 0
+ name: taxon_20
+ permalink: taxonomy-18/taxon-20
+ lft: 2
+ rgt: 3
+ description:
+ created_at: '2021-11-08T13:42:18.704Z'
+ updated_at: '2021-11-08T13:42:18.715Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 1
public_metadata: {}
private_metadata: {}
- average_order_value: []
- lifetime_value: []
- store_credits: []
+ pretty_name: taxonomy_18 -> taxon_20
+ seo_title: taxon_20
+ is_root: false
+ is_child: true
+ is_leaf: true
relationships:
- bill_address:
+ parent:
data:
- ship_address:
+ id: '37'
+ type: taxon
+ taxonomy:
data:
- schema:
+ id: '18'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data:
+ schema:
"$ref": "#/components/schemas/resource"
'422':
description: Invalid request
@@ -10150,26 +10224,28 @@ paths:
examples:
Example:
value:
- error: Bill address belongs to other user
+ error: Name can't be blank and Taxonomy can't be blank
errors:
- bill_address_id:
- - belongs to other user
+ name:
+ - can't be blank
+ taxonomy:
+ - can't be blank
schema:
"$ref": "#/components/schemas/validation_errors"
requestBody:
content:
application/json:
schema:
- "$ref": "#/components/schemas/create_user_params"
- "/api/v2/platform/users/{id}":
+ "$ref": "#/components/schemas/create_taxon_params"
+ "/api/v2/platform/taxons/{id}":
get:
- summary: Return a User
+ summary: Return a Taxon
tags:
- - Users
+ - Taxons
security:
- bearer_auth: []
- description: Returns a User
- operationId: show-user
+ description: Returns a Taxon
+ operationId: show-taxon
parameters:
- name: id
in: path
@@ -10180,7 +10256,7 @@ paths:
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: ship_address,bill_address
+ example: taxonomy,parent,children
schema:
type: string
responses:
@@ -10192,22 +10268,45 @@ paths:
Example:
value:
data:
- id: '107'
- type: user
+ id: '40'
+ type: taxon
attributes:
- created_at: '2021-11-05T11:30:14.529Z'
- updated_at: '2021-11-05T11:30:14.529Z'
+ position: 0
+ name: taxon_21
+ permalink: taxonomy-19/taxon-21
+ lft: 2
+ rgt: 3
+ description:
+ created_at: '2021-11-08T13:42:18.941Z'
+ updated_at: '2021-11-08T13:42:18.947Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 1
public_metadata: {}
private_metadata: {}
- average_order_value: []
- lifetime_value: []
- store_credits: []
+ pretty_name: taxonomy_19 -> taxon_21
+ seo_title: taxon_21
+ is_root: false
+ is_child: true
+ is_leaf: true
relationships:
- bill_address:
+ parent:
data:
- ship_address:
+ id: '39'
+ type: taxon
+ taxonomy:
+ data:
+ id: '19'
+ type: taxonomy
+ children:
+ data: []
+ products:
+ data: []
+ image:
data:
+ id: '96'
+ type: taxon_image
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -10231,13 +10330,13 @@ paths:
schema:
"$ref": "#/components/schemas/error"
patch:
- summary: Update a User
+ summary: Update a Taxon
tags:
- - Users
+ - Taxons
security:
- bearer_auth: []
- description: Updates a User
- operationId: update-user
+ description: Updates a Taxon
+ operationId: update-taxon
parameters:
- name: id
in: path
@@ -10248,7 +10347,7 @@ paths:
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: ship_address,bill_address
+ example: taxonomy,parent,children
schema:
type: string
responses:
@@ -10260,22 +10359,44 @@ paths:
Example:
value:
data:
- id: '112'
- type: user
+ id: '44'
+ type: taxon
attributes:
- created_at: '2021-11-05T11:30:14.657Z'
- updated_at: '2021-11-05T11:30:14.670Z'
- public_metadata: {}
+ position: 0
+ name: T-Shirts
+ permalink: taxonomy-21/taxon-23
+ lft: 2
+ rgt: 3
+ description:
+ created_at: '2021-11-08T13:42:19.352Z'
+ updated_at: '2021-11-08T13:42:19.393Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 1
+ public_metadata:
+ profitability: 3
private_metadata: {}
- average_order_value: []
- lifetime_value: []
- store_credits: []
+ pretty_name: taxonomy_21 -> T-Shirts
+ seo_title: T-Shirts
+ is_root: false
+ is_child: true
+ is_leaf: true
relationships:
- bill_address:
+ parent:
data:
- ship_address:
+ id: '43'
+ type: taxon
+ taxonomy:
+ data:
+ id: '21'
+ type: taxonomy
+ children:
+ data: []
+ image:
data:
+ id: '98'
+ type: taxon_image
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -10285,10 +10406,10 @@ paths:
examples:
Example:
value:
- error: Bill address belongs to other user
+ error: Name can't be blank
errors:
- bill_address_id:
- - belongs to other user
+ name:
+ - can't be blank
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -10315,15 +10436,15 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/update_user_params"
+ "$ref": "#/components/schemas/update_taxon_params"
delete:
- summary: Delete a User
+ summary: Delete a Taxon
tags:
- - Users
+ - Taxons
security:
- bearer_auth: []
- description: Deletes a User
- operationId: delete-user
+ description: Deletes a Taxon
+ operationId: delete-taxon
parameters:
- name: id
in: path
@@ -10353,15 +10474,15 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/variants":
+ "/api/v2/platform/users":
get:
- summary: Return a list of Variants
+ summary: Return a list of Users
tags:
- - Variants
+ - Users
security:
- bearer_auth: []
- description: Returns a list of Variants
- operationId: variants-list
+ description: Returns a list of Users
+ operationId: users-list
parameters:
- name: page
in: query
@@ -10377,19 +10498,19 @@ paths:
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: product,tax_category,images,digitals
+ example: ship_address,bill_address
schema:
type: string
- - name: filter[product_id_eq]
+ - name: filter[user_id_eq]
in: query
description: ''
example: '1'
schema:
type: string
- - name: filter[sku_i_cont]
+ - name: filter[email_cont]
in: query
description: ''
- example: SKU123
schema:
type: string
responses:
@@ -10401,173 +10522,64 @@ paths:
Example:
value:
data:
- - id: '248'
- type: variant
+ - id: '119'
+ type: user
attributes:
- sku: SKU-248
- weight: '0.0'
- height:
- depth:
- deleted_at:
- is_master: true
- cost_price: '17.0'
- position: 1
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-11-05T11:30:15.051Z'
- discontinue_on:
- created_at: '2021-11-05T11:30:15.042Z'
+ created_at: '2021-11-08T13:42:20.225Z'
+ updated_at: '2021-11-08T13:42:20.225Z'
public_metadata: {}
private_metadata: {}
- display_compare_at_price:
- display_price: "$19.99"
- name: 'Product #181 - 533'
- options_text: ''
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
+ average_order_value: []
+ lifetime_value: []
+ store_credits: []
relationships:
- product:
- data:
- id: '181'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data: []
- stock_items:
+ bill_address:
data:
- - id: '303'
- type: stock_item
- stock_locations:
+ ship_address:
data:
- - id: '173'
- type: stock_location
- - id: '249'
- type: variant
+ - id: '120'
+ type: user
attributes:
- sku: SKU-249
- weight: '95.18'
- height: '88.5'
- depth: '90.78'
- deleted_at:
- is_master: false
- cost_price: '17.0'
- position: 2
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-11-05T11:30:15.099Z'
- discontinue_on:
- created_at: '2021-11-05T11:30:15.088Z'
+ created_at: '2021-11-08T13:42:20.237Z'
+ updated_at: '2021-11-08T13:42:20.237Z'
public_metadata: {}
private_metadata: {}
- display_compare_at_price:
- display_price: "$19.99"
- name: 'Product #181 - 533'
- options_text: 'Size: S'
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
+ average_order_value: []
+ lifetime_value: []
+ store_credits: []
relationships:
- product:
- data:
- id: '181'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data:
- - id: '80'
- type: option_value
- stock_items:
+ bill_address:
data:
- - id: '304'
- type: stock_item
- stock_locations:
+ ship_address:
data:
- - id: '173'
- type: stock_location
- - id: '250'
- type: variant
+ - id: '121'
+ type: user
attributes:
- sku: SKU-250
- weight: '75.74'
- height: '42.46'
- depth: '155.79'
- deleted_at:
- is_master: false
- cost_price: '17.0'
- position: 3
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-11-05T11:30:15.135Z'
- discontinue_on:
- created_at: '2021-11-05T11:30:15.125Z'
+ created_at: '2021-11-08T13:42:20.241Z'
+ updated_at: '2021-11-08T13:42:20.241Z'
public_metadata: {}
private_metadata: {}
- display_compare_at_price:
- display_price: "$19.99"
- name: 'Product #181 - 533'
- options_text: 'Size: S'
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
+ average_order_value: []
+ lifetime_value: []
+ store_credits: []
relationships:
- product:
- data:
- id: '181'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data:
- - id: '81'
- type: option_value
- stock_items:
+ bill_address:
data:
- - id: '305'
- type: stock_item
- stock_locations:
+ ship_address:
data:
- - id: '173'
- type: stock_location
meta:
count: 3
total_count: 3
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/variants?page=1&per_page=&include=&filter[product_id_eq]=&filter[sku_i_cont]=
- next: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/users?page=1&per_page=&include=&filter[user_id_eq]=&filter[email_cont]=
+ next: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/users?filter%5Bemail_cont%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -10580,15 +10592,76 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/variants/{id}":
+ post:
+ summary: Create a User
+ tags:
+ - Users
+ security:
+ - bearer_auth: []
+ description: Creates a User
+ operationId: create-user
+ 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: ship_address,bill_address
+ schema:
+ type: string
+ responses:
+ '201':
+ description: Record created
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '126'
+ type: user
+ attributes:
+ created_at: '2021-11-08T13:42:20.376Z'
+ updated_at: '2021-11-08T13:42:20.376Z'
+ public_metadata: {}
+ private_metadata: {}
+ average_order_value: []
+ lifetime_value: []
+ store_credits: []
+ relationships:
+ bill_address:
+ data:
+ ship_address:
+ data:
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Bill address belongs to other user
+ errors:
+ bill_address_id:
+ - belongs to other user
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/create_user_params"
+ "/api/v2/platform/users/{id}":
get:
- summary: Return a Variant
+ summary: Return a User
tags:
- - Variants
+ - Users
security:
- bearer_auth: []
- description: Returns a Variant
- operationId: show-variant
+ description: Returns a User
+ operationId: show-user
parameters:
- name: id
in: path
@@ -10599,7 +10672,7 @@ paths:
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: product,tax_category,images,digitals
+ example: ship_address,bill_address
schema:
type: string
responses:
@@ -10611,61 +10684,893 @@ paths:
Example:
value:
data:
- id: '255'
- type: variant
+ id: '129'
+ type: user
attributes:
- sku: SKU-255
- weight: '43.7'
- height: '197.47'
- depth: '98.48'
- deleted_at:
- is_master: false
- cost_price: '17.0'
- position: 2
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-11-05T11:30:15.505Z'
- discontinue_on:
- created_at: '2021-11-05T11:30:15.495Z'
+ created_at: '2021-11-08T13:42:20.519Z'
+ updated_at: '2021-11-08T13:42:20.519Z'
public_metadata: {}
private_metadata: {}
- display_compare_at_price:
- display_price: "$19.99"
- name: 'Product #183 - 2431'
- options_text: 'Size: S'
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
+ average_order_value: []
+ lifetime_value: []
+ store_credits: []
relationships:
- product:
- data:
- id: '183'
- type: product
- tax_category:
+ bill_address:
data:
- digitals:
- data: []
- images:
- data: []
- option_values:
+ ship_address:
data:
- - id: '84'
- type: option_value
- stock_items:
+ 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 User
+ tags:
+ - Users
+ security:
+ - bearer_auth: []
+ description: Updates a User
+ operationId: update-user
+ 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: ship_address,bill_address
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '134'
+ type: user
+ attributes:
+ created_at: '2021-11-08T13:42:20.661Z'
+ updated_at: '2021-11-08T13:42:20.673Z'
+ public_metadata: {}
+ private_metadata: {}
+ average_order_value: []
+ lifetime_value: []
+ store_credits: []
+ relationships:
+ bill_address:
data:
- - id: '310'
- type: stock_item
- stock_locations:
+ ship_address:
data:
- - id: '175'
- type: stock_location
schema:
"$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Bill address belongs to other user
+ errors:
+ bill_address_id:
+ - belongs to other user
+ 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_user_params"
+ delete:
+ summary: Delete a User
+ tags:
+ - Users
+ security:
+ - bearer_auth: []
+ description: Deletes a User
+ operationId: delete-user
+ 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/variants":
+ get:
+ summary: Return a list of Variants
+ tags:
+ - Variants
+ security:
+ - bearer_auth: []
+ description: Returns a list of Variants
+ operationId: variants-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: product,tax_category,images,digitals
+ schema:
+ type: string
+ - name: filter[product_id_eq]
+ in: query
+ description: ''
+ example: '1'
+ schema:
+ type: string
+ - name: filter[sku_i_cont]
+ in: query
+ description: ''
+ example: SKU123
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '248'
+ type: variant
+ attributes:
+ sku: SKU-248
+ weight: '0.0'
+ height:
+ depth:
+ deleted_at:
+ is_master: true
+ cost_price: '17.0'
+ position: 1
+ cost_currency: USD
+ track_inventory: true
+ updated_at: '2021-11-08T13:42:21.097Z'
+ discontinue_on:
+ created_at: '2021-11-08T13:42:21.087Z'
+ public_metadata: {}
+ private_metadata: {}
+ display_compare_at_price:
+ display_price: "$19.99"
+ name: 'Product #181 - 8934'
+ options_text: ''
+ total_on_hand: 0
+ purchasable: true
+ in_stock: false
+ backorderable: true
+ available: true
+ currency: USD
+ price: '19.99'
+ compare_at_price:
+ relationships:
+ product:
+ data:
+ id: '181'
+ type: product
+ tax_category:
+ data:
+ digitals:
+ data: []
+ images:
+ data: []
+ option_values:
+ data: []
+ stock_items:
+ data:
+ - id: '303'
+ type: stock_item
+ stock_locations:
+ data:
+ - id: '173'
+ type: stock_location
+ - id: '249'
+ type: variant
+ attributes:
+ sku: SKU-249
+ weight: '48.4'
+ height: '85.48'
+ depth: '79.77'
+ deleted_at:
+ is_master: false
+ cost_price: '17.0'
+ position: 2
+ cost_currency: USD
+ track_inventory: true
+ updated_at: '2021-11-08T13:42:21.140Z'
+ discontinue_on:
+ created_at: '2021-11-08T13:42:21.129Z'
+ public_metadata: {}
+ private_metadata: {}
+ display_compare_at_price:
+ display_price: "$19.99"
+ name: 'Product #181 - 8934'
+ options_text: 'Size: S'
+ total_on_hand: 0
+ purchasable: true
+ in_stock: false
+ backorderable: true
+ available: true
+ currency: USD
+ price: '19.99'
+ compare_at_price:
+ relationships:
+ product:
+ data:
+ id: '181'
+ type: product
+ tax_category:
+ data:
+ digitals:
+ data: []
+ images:
+ data: []
+ option_values:
+ data:
+ - id: '80'
+ type: option_value
+ stock_items:
+ data:
+ - id: '304'
+ type: stock_item
+ stock_locations:
+ data:
+ - id: '173'
+ type: stock_location
+ - id: '250'
+ type: variant
+ attributes:
+ sku: SKU-250
+ weight: '115.24'
+ height: '169.12'
+ depth: '132.61'
+ deleted_at:
+ is_master: false
+ cost_price: '17.0'
+ position: 3
+ cost_currency: USD
+ track_inventory: true
+ updated_at: '2021-11-08T13:42:21.200Z'
+ discontinue_on:
+ created_at: '2021-11-08T13:42:21.190Z'
+ public_metadata: {}
+ private_metadata: {}
+ display_compare_at_price:
+ display_price: "$19.99"
+ name: 'Product #181 - 8934'
+ options_text: 'Size: S'
+ total_on_hand: 0
+ purchasable: true
+ in_stock: false
+ backorderable: true
+ available: true
+ currency: USD
+ price: '19.99'
+ compare_at_price:
+ relationships:
+ product:
+ data:
+ id: '181'
+ type: product
+ tax_category:
+ data:
+ digitals:
+ data: []
+ images:
+ data: []
+ option_values:
+ data:
+ - id: '81'
+ type: option_value
+ stock_items:
+ data:
+ - id: '305'
+ type: stock_item
+ stock_locations:
+ data:
+ - id: '173'
+ type: stock_location
+ meta:
+ count: 3
+ total_count: 3
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/variants?page=1&per_page=&include=&filter[product_id_eq]=&filter[sku_i_cont]=
+ next: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_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"
+ "/api/v2/platform/variants/{id}":
+ get:
+ summary: Return a Variant
+ tags:
+ - Variants
+ security:
+ - bearer_auth: []
+ description: Returns a Variant
+ operationId: show-variant
+ 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: product,tax_category,images,digitals
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '255'
+ type: variant
+ attributes:
+ sku: SKU-255
+ weight: '197.35'
+ height: '33.87'
+ depth: '55.38'
+ deleted_at:
+ is_master: false
+ cost_price: '17.0'
+ position: 2
+ cost_currency: USD
+ track_inventory: true
+ updated_at: '2021-11-08T13:42:21.592Z'
+ discontinue_on:
+ created_at: '2021-11-08T13:42:21.582Z'
+ public_metadata: {}
+ private_metadata: {}
+ display_compare_at_price:
+ display_price: "$19.99"
+ name: 'Product #183 - 2404'
+ options_text: 'Size: S'
+ total_on_hand: 0
+ purchasable: true
+ in_stock: false
+ backorderable: true
+ available: true
+ currency: USD
+ price: '19.99'
+ compare_at_price:
+ relationships:
+ product:
+ data:
+ id: '183'
+ type: product
+ tax_category:
+ data:
+ digitals:
+ data: []
+ images:
+ data: []
+ option_values:
+ data:
+ - id: '84'
+ type: option_value
+ stock_items:
+ data:
+ - id: '310'
+ type: stock_item
+ stock_locations:
+ data:
+ - id: '175'
+ type: stock_location
+ 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"
+ delete:
+ summary: Delete a Variant
+ tags:
+ - Variants
+ security:
+ - bearer_auth: []
+ description: Deletes a Variant
+ operationId: delete-variant
+ 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/webhooks/events":
+ get:
+ summary: Return a list of Webhook Events
+ tags:
+ - Webhook Events
+ security:
+ - bearer_auth: []
+ description: Returns a list of Webhook Events
+ operationId: webhook-events-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: subscriber
+ schema:
+ type: string
+ - name: filter[name_eq]
+ in: query
+ description: ''
+ example: order.canceled
+ schema:
+ type: string
+ - name: filter[request_errors_cont]
+ in: query
+ description: ''
+ example: google
+ schema:
+ type: string
+ - name: filter[response_code_eq]
+ in: query
+ description: ''
+ example: '200'
+ schema:
+ type: string
+ - name: filter[success_eq]
+ in: query
+ description: ''
+ example: 'true'
+ schema:
+ type: string
+ - name: filter[url_cont]
+ in: query
+ description: ''
+ example: mysite
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '1'
+ type: event
+ attributes:
+ execution_time: 89252
+ name: order.canceled
+ request_errors: ''
+ response_code: '200'
+ success: true
+ url: https://www.url1.com/
+ created_at: '2021-11-08T13:42:22.159Z'
+ updated_at: '2021-11-08T13:42:22.159Z'
+ relationships:
+ subscriber:
+ data:
+ id: '1'
+ type: subscriber
+ - id: '2'
+ type: event
+ attributes:
+ execution_time: 35583
+ name: order.canceled
+ request_errors: ''
+ response_code: '200'
+ success: true
+ url: https://www.url2.com/
+ created_at: '2021-11-08T13:42:22.162Z'
+ updated_at: '2021-11-08T13:42:22.162Z'
+ relationships:
+ subscriber:
+ data:
+ id: '2'
+ type: subscriber
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/webhooks/events?page=1&per_page=&include=&filter[name_eq]=&filter[request_errors_cont]=&filter[response_code_eq]=&filter[success_eq]=&filter[url_cont]=
+ next: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_cont%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_cont%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_cont%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_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"
+ "/api/v2/platform/webhooks/subscribers":
+ get:
+ summary: Return a list of Webhook Subscribers
+ tags:
+ - Webhook Subscribers
+ security:
+ - bearer_auth: []
+ description: Returns a list of Webhook Subscribers
+ operationId: webhook-subscribers-list
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: filter[active_eq]
+ in: query
+ description: ''
+ example: 'true'
+ schema:
+ type: string
+ - name: filter[url_cont]
+ in: query
+ description: ''
+ example: mysite
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '5'
+ type: subscriber
+ attributes:
+ url: https://www.url5.com/
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-11-08T13:42:22.512Z'
+ updated_at: '2021-11-08T13:42:22.512Z'
+ - id: '6'
+ type: subscriber
+ attributes:
+ url: https://www.url6.com/
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-11-08T13:42:22.515Z'
+ updated_at: '2021-11-08T13:42:22.515Z'
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=&filter[active_eq]=&filter[url_cont]=
+ next: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&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 Webhook Subscriber
+ tags:
+ - Webhook Subscribers
+ security:
+ - bearer_auth: []
+ description: Creates a Webhook Subscriber
+ operationId: create-webhook-subscriber
+ parameters: []
+ responses:
+ '201':
+ description: Record created
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '9'
+ type: subscriber
+ attributes:
+ url: https://www.url9.com/
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-11-08T13:42:22.621Z'
+ updated_at: '2021-11-08T13:42:22.621Z'
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Url must be a valid URL, Url can't be blank, and Url the
+ URL must have a path
+ errors:
+ url:
+ - must be a valid URL
+ - can't be blank
+ - the URL must have a path
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/create_webhook_subscriber_params"
+ "/api/v2/platform/webhooks/subscribers/{id}":
+ get:
+ summary: Return a Webhook Subscriber
+ tags:
+ - Webhook Subscribers
+ security:
+ - bearer_auth: []
+ description: Returns a Webhook Subscriber
+ operationId: show-webhook-subscriber
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '10'
+ type: subscriber
+ attributes:
+ url: https://www.url10.com/
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-11-08T13:42:22.687Z'
+ updated_at: '2021-11-08T13:42:22.687Z'
+ 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 Webhook Subscriber
+ tags:
+ - Webhook Subscribers
+ security:
+ - bearer_auth: []
+ description: Updates a Webhook Subscriber
+ operationId: update-webhook-subscriber
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '12'
+ type: subscriber
+ attributes:
+ url: https://www.url12.com/
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-11-08T13:42:22.807Z'
+ updated_at: '2021-11-08T13:42:22.807Z'
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Url must be a valid URL, Url can't be blank, and Url the
+ URL must have a path
+ errors:
+ url:
+ - must be a valid URL
+ - can't be blank
+ - the URL must have a path
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
'404':
description: Record not found
content:
@@ -10686,14 +11591,19 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/update_webhook_subscriber_params"
delete:
- summary: Delete a Variant
+ summary: Delete a Webhook Subscriber
tags:
- - Variants
+ - Webhook Subscribers
security:
- bearer_auth: []
- description: Deletes a Variant
- operationId: delete-variant
+ description: Deletes a Webhook Subscriber
+ operationId: delete-webhook-subscriber
parameters:
- name: id
in: path
@@ -10723,15 +11633,15 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/webhooks/events":
+ "/api/v2/platform/wished_items":
get:
- summary: Return a list of Webhook Events
+ summary: Return a list of Wished Items
tags:
- - Webhook Events
+ - Wished Items
security:
- bearer_auth: []
- description: Returns a list of Webhook Events
- operationId: webhook-events-list
+ description: Returns a list of Wished Items
+ operationId: wished-items-list
parameters:
- name: page
in: query
@@ -10747,37 +11657,7 @@ paths:
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: subscriber
- schema:
- type: string
- - name: filter[name_eq]
- in: query
- description: ''
- example: order.canceled
- schema:
- type: string
- - name: filter[request_errors_cont]
- in: query
- description: ''
- example: google
- schema:
- type: string
- - name: filter[response_code_eq]
- in: query
- description: ''
- example: '200'
- schema:
- type: string
- - name: filter[success_eq]
- in: query
- description: ''
- example: 'true'
- schema:
- type: string
- - name: filter[url_cont]
- in: query
- description: ''
- example: mysite
+ example: variant
schema:
type: string
responses:
@@ -10790,128 +11670,75 @@ paths:
value:
data:
- id: '1'
- type: event
+ type: wished_item
attributes:
- execution_time: 97071
- name: order.canceled
- request_errors: ''
- response_code: '200'
- success: true
- url: https://www.url1.com/
- created_at: '2021-11-05T11:30:16.244Z'
- updated_at: '2021-11-05T11:30:16.244Z'
+ quantity: 1
+ created_at: '2021-11-08T13:42:23.365Z'
+ updated_at: '2021-11-08T13:42:23.365Z'
+ display_price: "$19.99"
+ display_total: "$19.99"
+ price: '19.99'
+ total: '19.99'
relationships:
- subscriber:
+ variant:
data:
- id: '1'
- type: subscriber
+ id: '265'
+ type: variant
- id: '2'
- type: event
+ type: wished_item
attributes:
- execution_time: 92841
- name: order.canceled
- request_errors: ''
- response_code: '200'
- success: true
- url: https://www.url2.com/
- created_at: '2021-11-05T11:30:16.247Z'
- updated_at: '2021-11-05T11:30:16.247Z'
+ quantity: 1
+ created_at: '2021-11-08T13:42:23.469Z'
+ updated_at: '2021-11-08T13:42:23.469Z'
+ display_price: "$19.99"
+ display_total: "$19.99"
+ price: '19.99'
+ total: '19.99'
relationships:
- subscriber:
+ variant:
data:
- id: '2'
- type: subscriber
- meta:
- count: 2
- total_count: 2
- total_pages: 1
- links:
- self: http://www.example.com/api/v2/platform/webhooks/events?page=1&per_page=&include=&filter[name_eq]=&filter[request_errors_cont]=&filter[response_code_eq]=&filter[success_eq]=&filter[url_cont]=
- next: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_cont%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_cont%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_cont%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/webhooks/events?filter%5Bname_eq%5D=&filter%5Brequest_errors_cont%5D=&filter%5Bresponse_code_eq%5D=&filter%5Bsuccess_eq%5D=&filter%5Burl_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"
- "/api/v2/platform/webhooks/subscribers":
- get:
- summary: Return a list of Webhook Subscribers
- tags:
- - Webhook Subscribers
- security:
- - bearer_auth: []
- description: Returns a list of Webhook Subscribers
- operationId: webhook-subscribers-list
- parameters:
- - name: page
- in: query
- example: 1
- schema:
- type: integer
- - name: per_page
- in: query
- example: 50
- schema:
- type: integer
- - name: filter[active_eq]
- in: query
- description: ''
- example: 'true'
- schema:
- type: string
- - name: filter[url_cont]
- in: query
- description: ''
- example: mysite
- schema:
- type: string
- responses:
- '200':
- description: Records returned
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- - id: '5'
- type: subscriber
+ id: '267'
+ type: variant
+ - id: '3'
+ type: wished_item
attributes:
- url: https://www.url5.com/
- active: true
- subscriptions:
- - "*"
- created_at: '2021-11-05T11:30:16.341Z'
- updated_at: '2021-11-05T11:30:16.341Z'
- - id: '6'
- type: subscriber
+ quantity: 1
+ created_at: '2021-11-08T13:42:23.551Z'
+ updated_at: '2021-11-08T13:42:23.551Z'
+ display_price: "$19.99"
+ display_total: "$19.99"
+ price: '19.99'
+ total: '19.99'
+ relationships:
+ variant:
+ data:
+ id: '269'
+ type: variant
+ - id: '4'
+ type: wished_item
attributes:
- url: https://www.url6.com/
- active: true
- subscriptions:
- - "*"
- created_at: '2021-11-05T11:30:16.343Z'
- updated_at: '2021-11-05T11:30:16.343Z'
+ quantity: 1
+ created_at: '2021-11-08T13:42:23.643Z'
+ updated_at: '2021-11-08T13:42:23.643Z'
+ display_price: "$19.99"
+ display_total: "$19.99"
+ price: '19.99'
+ total: '19.99'
+ relationships:
+ variant:
+ data:
+ id: '271'
+ type: variant
meta:
- count: 2
- total_count: 2
+ count: 4
+ total_count: 4
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=&filter[active_eq]=&filter[url_cont]=
- next: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/webhooks/subscribers?filter%5Bactive_eq%5D=&filter%5Burl_cont%5D=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/wished_items?page=1&per_page=&include=
+ next: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -10925,14 +11752,21 @@ paths:
schema:
"$ref": "#/components/schemas/error"
post:
- summary: Create a Webhook Subscriber
+ summary: Create a Wished Item
tags:
- - Webhook Subscribers
+ - Wished Items
security:
- bearer_auth: []
- description: Creates a Webhook Subscriber
- operationId: create-webhook-subscriber
- parameters: []
+ description: Creates a Wished Item
+ operationId: create-wished-item
+ 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: variant
+ schema:
+ type: string
responses:
'201':
description: Record created
@@ -10943,14 +11777,20 @@ paths:
value:
data:
id: '9'
- type: subscriber
+ type: wished_item
attributes:
- url: https://www.url9.com/
- active: true
- subscriptions:
- - "*"
- created_at: '2021-11-05T11:30:16.439Z'
- updated_at: '2021-11-05T11:30:16.439Z'
+ quantity: 1
+ created_at: '2021-11-08T13:42:24.347Z'
+ updated_at: '2021-11-08T13:42:24.347Z'
+ display_price: "$19.99"
+ display_total: "$19.99"
+ price: '19.99'
+ total: '19.99'
+ relationships:
+ variant:
+ data:
+ id: '283'
+ type: variant
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -10960,35 +11800,44 @@ paths:
examples:
Example:
value:
- error: Url must be a valid URL, Url can't be blank, and Url the
- URL must have a path
+ error: Variant can't be blank, Wishlist can't be blank, and Quantity
+ is not a number
errors:
- url:
- - must be a valid URL
+ variant:
- can't be blank
- - the URL must have a path
+ wishlist:
+ - can't be blank
+ quantity:
+ - is not a number
schema:
"$ref": "#/components/schemas/validation_errors"
requestBody:
content:
application/json:
schema:
- "$ref": "#/components/schemas/create_webhook_subscriber_params"
- "/api/v2/platform/webhooks/subscribers/{id}":
+ "$ref": "#/components/schemas/create_wished_item_params"
+ "/api/v2/platform/wished_items/{id}":
get:
- summary: Return a Webhook Subscriber
+ summary: Return a Wished Item
tags:
- - Webhook Subscribers
+ - Wished Items
security:
- bearer_auth: []
- description: Returns a Webhook Subscriber
- operationId: show-webhook-subscriber
+ description: Returns a Wished Item
+ operationId: show-wished-item
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: variant
+ schema:
+ type: string
responses:
'200':
description: Record found
@@ -10999,14 +11848,20 @@ paths:
value:
data:
id: '10'
- type: subscriber
+ type: wished_item
attributes:
- url: https://www.url10.com/
- active: true
- subscriptions:
- - "*"
- created_at: '2021-11-05T11:30:16.501Z'
- updated_at: '2021-11-05T11:30:16.501Z'
+ quantity: 1
+ created_at: '2021-11-08T13:42:24.849Z'
+ updated_at: '2021-11-08T13:42:24.849Z'
+ display_price: "$19.99"
+ display_total: "$19.99"
+ price: '19.99'
+ total: '19.99'
+ relationships:
+ variant:
+ data:
+ id: '289'
+ type: variant
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -11030,19 +11885,26 @@ paths:
schema:
"$ref": "#/components/schemas/error"
patch:
- summary: Update a Webhook Subscriber
+ summary: Update a Wished Item
tags:
- - Webhook Subscribers
+ - Wished Items
security:
- bearer_auth: []
- description: Updates a Webhook Subscriber
- operationId: update-webhook-subscriber
+ description: Updates a Wished Item
+ operationId: update-wished-item
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: variant
+ schema:
+ type: string
responses:
'200':
description: Record updated
@@ -11053,14 +11915,20 @@ paths:
value:
data:
id: '12'
- type: subscriber
+ type: wished_item
attributes:
- url: https://www.url12.com/
- active: true
- subscriptions:
- - "*"
- created_at: '2021-11-05T11:30:16.597Z'
- updated_at: '2021-11-05T11:30:16.597Z'
+ quantity: 3
+ created_at: '2021-11-08T13:42:25.515Z'
+ updated_at: '2021-11-08T13:42:25.527Z'
+ display_price: "$19.99"
+ display_total: "$59.97"
+ price: '19.99'
+ total: '59.97'
+ relationships:
+ variant:
+ data:
+ id: '299'
+ type: variant
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -11070,13 +11938,10 @@ paths:
examples:
Example:
value:
- error: Url must be a valid URL, Url can't be blank, and Url the
- URL must have a path
+ error: Quantity is not a number
errors:
- url:
- - must be a valid URL
- - can't be blank
- - the URL must have a path
+ quantity:
+ - is not a number
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -11103,15 +11968,15 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/update_webhook_subscriber_params"
+ "$ref": "#/components/schemas/update_wished_item_params"
delete:
- summary: Delete a Webhook Subscriber
+ summary: Delete a Wished Item
tags:
- - Webhook Subscribers
+ - Wished Items
security:
- bearer_auth: []
- description: Deletes a Webhook Subscriber
- operationId: delete-webhook-subscriber
+ description: Deletes a Wished Item
+ operationId: delete-wished-item
parameters:
- name: id
in: path
@@ -11141,15 +12006,15 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/wished_items":
+ "/api/v2/platform/wishlists":
get:
- summary: Return a list of Wished Items
+ summary: Return a list of Wishlists
tags:
- - Wished Items
+ - Wishlists
security:
- bearer_auth: []
- description: Returns a list of Wished Items
- operationId: wished-items-list
+ description: Returns a list of Wishlists
+ operationId: wishlists-list
parameters:
- name: page
in: query
@@ -11165,7 +12030,13 @@ paths:
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: variant
+ example: wished_items
+ schema:
+ type: string
+ - name: filter[name_cont]
+ in: query
+ description: ''
+ example: Birthday
schema:
type: string
responses:
@@ -11177,76 +12048,50 @@ paths:
Example:
value:
data:
- - id: '1'
- type: wished_item
- attributes:
- quantity: 1
- created_at: '2021-11-05T11:30:17.049Z'
- updated_at: '2021-11-05T11:30:17.049Z'
- display_price: "$19.99"
- display_total: "$19.99"
- price: '19.99'
- total: '19.99'
- relationships:
- variant:
- data:
- id: '265'
- type: variant
- - id: '2'
- type: wished_item
- attributes:
- quantity: 1
- created_at: '2021-11-05T11:30:17.134Z'
- updated_at: '2021-11-05T11:30:17.134Z'
- display_price: "$19.99"
- display_total: "$19.99"
- price: '19.99'
- total: '19.99'
- relationships:
- variant:
- data:
- id: '267'
- type: variant
- - id: '3'
- type: wished_item
+ - id: '22'
+ type: wishlist
attributes:
- quantity: 1
- created_at: '2021-11-05T11:30:17.222Z'
- updated_at: '2021-11-05T11:30:17.222Z'
- display_price: "$19.99"
- display_total: "$19.99"
- price: '19.99'
- total: '19.99'
+ name: Black Friday
+ is_private: true
+ is_default: false
+ created_at: '2021-11-08T13:42:27.058Z'
+ updated_at: '2021-11-08T13:42:27.058Z'
+ token: dB7kJXjQBQ37S7Re52MKxAJx
+ variant_included: false
relationships:
- variant:
+ wished_items:
data:
- id: '269'
- type: variant
- - id: '4'
- type: wished_item
+ - id: '17'
+ type: wished_item
+ - id: '18'
+ type: wished_item
+ - id: '23'
+ type: wishlist
attributes:
- quantity: 1
- created_at: '2021-11-05T11:30:17.301Z'
- updated_at: '2021-11-05T11:30:17.301Z'
- display_price: "$19.99"
- display_total: "$19.99"
- price: '19.99'
- total: '19.99'
+ name: Birthday
+ is_private: true
+ is_default: false
+ created_at: '2021-11-08T13:42:27.062Z'
+ updated_at: '2021-11-08T13:42:27.062Z'
+ token: 5suMCx825UjXnCXVSudfAy7n
+ variant_included: false
relationships:
- variant:
+ wished_items:
data:
- id: '271'
- type: variant
+ - id: '19'
+ type: wished_item
+ - id: '20'
+ type: wished_item
meta:
- count: 4
- total_count: 4
+ count: 2
+ total_count: 2
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/wished_items?page=1&per_page=&include=
- next: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/wished_items?include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/wishlists?page=1&per_page=&include=&filter[name_cont]=
+ next: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -11260,19 +12105,19 @@ paths:
schema:
"$ref": "#/components/schemas/error"
post:
- summary: Create a Wished Item
+ summary: Create a Wishlist
tags:
- - Wished Items
+ - Wishlists
security:
- bearer_auth: []
- description: Creates a Wished Item
- operationId: create-wished-item
+ description: Creates a Wishlist
+ operationId: create-wishlist
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: variant
+ example: wished_items
schema:
type: string
responses:
@@ -11284,21 +12129,19 @@ paths:
Example:
value:
data:
- id: '9'
- type: wished_item
+ id: '26'
+ type: wishlist
attributes:
- quantity: 1
- created_at: '2021-11-05T11:30:17.962Z'
- updated_at: '2021-11-05T11:30:17.962Z'
- display_price: "$19.99"
- display_total: "$19.99"
- price: '19.99'
- total: '19.99'
+ name: Wishlist_26
+ is_private: true
+ is_default: false
+ created_at: '2021-11-08T13:42:28.278Z'
+ updated_at: '2021-11-08T13:42:28.278Z'
+ token: thyAYmCXfpdcAchBgnVYbD23
+ variant_included: false
relationships:
- variant:
- data:
- id: '283'
- type: variant
+ wished_items:
+ data: []
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -11308,31 +12151,28 @@ paths:
examples:
Example:
value:
- error: Variant can't be blank, Wishlist can't be blank, and Quantity
- is not a number
+ error: Name can't be blank and User can't be blank
errors:
- variant:
+ name:
- can't be blank
- wishlist:
+ user:
- can't be blank
- quantity:
- - is not a number
schema:
"$ref": "#/components/schemas/validation_errors"
requestBody:
content:
application/json:
schema:
- "$ref": "#/components/schemas/create_wished_item_params"
- "/api/v2/platform/wished_items/{id}":
+ "$ref": "#/components/schemas/create_wishlist_params"
+ "/api/v2/platform/wishlists/{id}":
get:
- summary: Return a Wished Item
+ summary: Return a Wishlist
tags:
- - Wished Items
+ - Wishlists
security:
- bearer_auth: []
- description: Returns a Wished Item
- operationId: show-wished-item
+ description: Returns a Wishlist
+ operationId: show-wishlist
parameters:
- name: id
in: path
@@ -11343,7 +12183,7 @@ paths:
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: variant
+ example: wished_items
schema:
type: string
responses:
@@ -11355,21 +12195,19 @@ paths:
Example:
value:
data:
- id: '10'
- type: wished_item
+ id: '27'
+ type: wishlist
attributes:
- quantity: 1
- created_at: '2021-11-05T11:30:18.321Z'
- updated_at: '2021-11-05T11:30:18.321Z'
- display_price: "$19.99"
- display_total: "$19.99"
- price: '19.99'
- total: '19.99'
+ name: My Wishlist
+ is_private: true
+ is_default: false
+ created_at: '2021-11-08T13:42:28.387Z'
+ updated_at: '2021-11-08T13:42:28.387Z'
+ token: LVTm8bj6sBJ5rfoWY8quYhhT
+ variant_included: false
relationships:
- variant:
- data:
- id: '289'
- type: variant
+ wished_items:
+ data: []
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -11393,13 +12231,13 @@ paths:
schema:
"$ref": "#/components/schemas/error"
patch:
- summary: Update a Wished Item
+ summary: Update a Wishlist
tags:
- - Wished Items
+ - Wishlists
security:
- bearer_auth: []
- description: Updates a Wished Item
- operationId: update-wished-item
+ description: Updates a Wishlist
+ operationId: update-wishlist
parameters:
- name: id
in: path
@@ -11410,7 +12248,7 @@ paths:
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: variant
+ example: wished_items
schema:
type: string
responses:
@@ -11422,21 +12260,19 @@ paths:
Example:
value:
data:
- id: '12'
- type: wished_item
+ id: '29'
+ type: wishlist
attributes:
- quantity: 3
- created_at: '2021-11-05T11:30:18.883Z'
- updated_at: '2021-11-05T11:30:18.894Z'
- display_price: "$19.99"
- display_total: "$59.97"
- price: '19.99'
- total: '59.97'
+ name: My Super Wishlist
+ is_private: true
+ is_default: false
+ created_at: '2021-11-08T13:42:28.561Z'
+ updated_at: '2021-11-08T13:42:28.576Z'
+ token: uNU63uVD94kW1jTxpTosfQm1
+ variant_included: false
relationships:
- variant:
- data:
- id: '299'
- type: variant
+ wished_items:
+ data: []
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -11446,10 +12282,10 @@ paths:
examples:
Example:
value:
- error: Quantity is not a number
+ error: Name can't be blank
errors:
- quantity:
- - is not a number
+ name:
+ - can't be blank
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -11476,15 +12312,15 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/update_wished_item_params"
+ "$ref": "#/components/schemas/update_wishlist_params"
delete:
- summary: Delete a Wished Item
+ summary: Delete a Wishlist
tags:
- - Wished Items
+ - Wishlists
security:
- bearer_auth: []
- description: Deletes a Wished Item
- operationId: delete-wished-item
+ description: Deletes a Wishlist
+ operationId: delete-wishlist
parameters:
- name: id
in: path
@@ -11514,15 +12350,15 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
- "/api/v2/platform/wishlists":
+ "/api/v2/platform/zones":
get:
- summary: Return a list of Wishlists
+ summary: Return a list of Zones
tags:
- - Wishlists
+ - Zones
security:
- bearer_auth: []
- description: Returns a list of Wishlists
- operationId: wishlists-list
+ description: Returns a list of Zones
+ operationId: zones-list
parameters:
- name: page
in: query
@@ -11538,13 +12374,13 @@ paths:
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: wished_items
+ example: zone_members
schema:
type: string
- - name: filter[name_cont]
+ - name: filter[description_eq]
in: query
description: ''
- example: Birthday
+ example: The zone containing all EU countries
schema:
type: string
responses:
@@ -11556,50 +12392,44 @@ paths:
Example:
value:
data:
- - id: '22'
- type: wishlist
- attributes:
- name: Black Friday
- is_private: true
- is_default: false
- created_at: '2021-11-05T11:30:20.078Z'
- updated_at: '2021-11-05T11:30:20.078Z'
- token: oRf3ZN4KjxvbPodajVe7aeNd
- variant_included: false
- relationships:
- wished_items:
- data:
- - id: '17'
- type: wished_item
- - id: '18'
- type: wished_item
- - id: '23'
- type: wishlist
- attributes:
- name: Birthday
- is_private: true
- is_default: false
- created_at: '2021-11-05T11:30:20.080Z'
- updated_at: '2021-11-05T11:30:20.080Z'
- token: uByr8ZCMRhHpJY6TB8gcLDb1
- variant_included: false
- relationships:
- wished_items:
- data:
- - id: '19'
- type: wished_item
- - id: '20'
- type: wished_item
+ - id: '82'
+ type: zone
+ attributes:
+ name: Aut tempore iure dignissimos adipisci.
+ description: Corrupti voluptates recusandae provident cupiditate
+ officiis deserunt.
+ default_tax: false
+ zone_members_count: 0
+ created_at: '2021-11-08T13:42:28.941Z'
+ updated_at: '2021-11-08T13:42:28.941Z'
+ kind: state
+ relationships:
+ zone_members:
+ data: []
+ - id: '83'
+ type: zone
+ attributes:
+ name: Aut eveniet ab culpa aliquam alias impedit nostrum.
+ description: Fuga laudantium unde similique ipsum aut minima
+ cumque porro.
+ default_tax: false
+ zone_members_count: 0
+ created_at: '2021-11-08T13:42:28.944Z'
+ updated_at: '2021-11-08T13:42:28.944Z'
+ kind: state
+ relationships:
+ zone_members:
+ data: []
meta:
count: 2
total_count: 2
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/wishlists?page=1&per_page=&include=&filter[name_cont]=
- next: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/wishlists?filter%5Bname_cont%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/zones?page=1&per_page=&include=&filter[description_eq]=
+ next: http://www.example.com/api/v2/platform/zones?filter%5Bdescription_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/zones?filter%5Bdescription_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/zones?filter%5Bdescription_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/zones?filter%5Bdescription_eq%5D=&include=&page=1&per_page=
schema:
"$ref": "#/components/schemas/resources_list"
'401':
@@ -11613,19 +12443,19 @@ paths:
schema:
"$ref": "#/components/schemas/error"
post:
- summary: Create a Wishlist
+ summary: Create a Zone
tags:
- - Wishlists
+ - Zones
security:
- bearer_auth: []
- description: Creates a Wishlist
- operationId: create-wishlist
+ description: Creates a Zone
+ operationId: create-zone
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: wished_items
+ example: zone_members
schema:
type: string
responses:
@@ -11637,18 +12467,18 @@ paths:
Example:
value:
data:
- id: '26'
- type: wishlist
+ id: '86'
+ type: zone
attributes:
- name: Wishlist_26
- is_private: true
- is_default: false
- created_at: '2021-11-05T11:30:20.843Z'
- updated_at: '2021-11-05T11:30:20.843Z'
- token: 6Ld93JKaLHrRU2vd9u6ozvNy
- variant_included: false
+ name: Soluta repellendus quia praesentium odit illum.
+ description: Voluptatem vel soluta dicta consequuntur itaque.
+ default_tax: false
+ zone_members_count: 0
+ created_at: '2021-11-08T13:42:29.072Z'
+ updated_at: '2021-11-08T13:42:29.072Z'
+ kind: state
relationships:
- wished_items:
+ zone_members:
data: []
schema:
"$ref": "#/components/schemas/resource"
@@ -11659,28 +12489,26 @@ paths:
examples:
Example:
value:
- error: Name can't be blank and User can't be blank
+ error: Name can't be blank
errors:
name:
- can't be blank
- user:
- - can't be blank
schema:
"$ref": "#/components/schemas/validation_errors"
requestBody:
content:
application/json:
schema:
- "$ref": "#/components/schemas/create_wishlist_params"
- "/api/v2/platform/wishlists/{id}":
+ "$ref": "#/components/schemas/create_zone_params"
+ "/api/v2/platform/zones/{id}":
get:
- summary: Return a Wishlist
+ summary: Return a Zone
tags:
- - Wishlists
+ - Zones
security:
- bearer_auth: []
- description: Returns a Wishlist
- operationId: show-wishlist
+ description: Returns a Zone
+ operationId: show-zone
parameters:
- name: id
in: path
@@ -11691,7 +12519,7 @@ paths:
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: wished_items
+ example: zone_members
schema:
type: string
responses:
@@ -11703,18 +12531,20 @@ paths:
Example:
value:
data:
- id: '27'
- type: wishlist
+ id: '87'
+ type: zone
attributes:
- name: My Wishlist
- is_private: true
- is_default: false
- created_at: '2021-11-05T11:30:20.916Z'
- updated_at: '2021-11-05T11:30:20.916Z'
- token: xNuTT9BxGvZaT2Ug99Kr5CGQ
- variant_included: false
+ name: Possimus eos occaecati repellendus adipisci accusamus
+ minus natus.
+ description: Deleniti perferendis minima architecto ullam
+ nam.
+ default_tax: false
+ zone_members_count: 0
+ created_at: '2021-11-08T13:42:29.152Z'
+ updated_at: '2021-11-08T13:42:29.152Z'
+ kind: state
relationships:
- wished_items:
+ zone_members:
data: []
schema:
"$ref": "#/components/schemas/resource"
@@ -11739,13 +12569,13 @@ paths:
schema:
"$ref": "#/components/schemas/error"
patch:
- summary: Update a Wishlist
+ summary: Update a Zone
tags:
- - Wishlists
+ - Zones
security:
- bearer_auth: []
- description: Updates a Wishlist
- operationId: update-wishlist
+ description: Updates a Zone
+ operationId: update-zone
parameters:
- name: id
in: path
@@ -11756,7 +12586,7 @@ paths:
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: wished_items
+ example: zone_members
schema:
type: string
responses:
@@ -11768,18 +12598,18 @@ paths:
Example:
value:
data:
- id: '29'
- type: wishlist
+ id: '89'
+ type: zone
attributes:
- name: My Super Wishlist
- is_private: true
- is_default: false
- created_at: '2021-11-05T11:30:21.051Z'
- updated_at: '2021-11-05T11:30:21.062Z'
- token: rhHufUQzDv1sELtPf8kBdtUh
- variant_included: false
+ name: EU
+ description: The zone containing all EU countries
+ default_tax: false
+ zone_members_count: 0
+ created_at: '2021-11-08T13:42:29.294Z'
+ updated_at: '2021-11-08T13:42:29.308Z'
+ kind: state
relationships:
- wished_items:
+ zone_members:
data: []
schema:
"$ref": "#/components/schemas/resource"
@@ -11820,15 +12650,15 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/update_wishlist_params"
+ "$ref": "#/components/schemas/update_zone_params"
delete:
- summary: Delete a Wishlist
+ summary: Delete a Zone
tags:
- - Wishlists
+ - Zones
security:
- bearer_auth: []
- description: Deletes a Wishlist
- operationId: delete-wishlist
+ description: Deletes a Zone
+ operationId: delete-zone
parameters:
- name: id
in: path
@@ -11884,6 +12714,7 @@ tags:
- name: Shipments
- name: Shipping Categories
- name: Shipping Methods
+- name: Store Credits
- name: Taxons
- name: Users
- name: Webhook Events
@@ -11891,6 +12722,7 @@ tags:
- name: Wishlists
- name: Wished Items
- name: Variants
+- name: Zones
components:
securitySchemes:
bearer_auth:
@@ -13775,7 +14607,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-05 11:29:21 UTC
+ example: 2021-11-08 13:41:20 UTC
bill_address_id:
type: string
example: '1'
@@ -13843,7 +14675,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-05 11:29:21 UTC
+ example: 2021-11-08 13:41:20 UTC
confirmation_delivered:
type: boolean
example: true
@@ -13914,7 +14746,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-05 11:29:21 UTC
+ example: 2021-11-08 13:41:20 UTC
bill_address_id:
type: string
example: '1'
@@ -13982,7 +14814,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-05 11:29:21 UTC
+ example: 2021-11-08 13:41:20 UTC
confirmation_delivered:
type: boolean
example: true
@@ -14416,6 +15248,120 @@ components:
required:
- type
x-internal: true
+ create_store_credit_params:
+ type: object
+ properties:
+ store_credit:
+ type: object
+ required:
+ - user_id
+ - category_id
+ - type_id
+ - created_by_id
+ - currency
+ - store_id
+ - amount
+ properties:
+ user_id:
+ type: string
+ example: '2'
+ category_id:
+ type: string
+ example: '4'
+ created_by_id:
+ type: string
+ example: '5'
+ amount:
+ type: number
+ example: 25.0
+ amount_used:
+ type: number
+ example: 10.0
+ memo:
+ type: string
+ example: This credit was given as a refund
+ currency:
+ type: string
+ example: USD
+ amount_authorized:
+ type: number
+ example: 15.5
+ originator_id:
+ type: string
+ example: '3'
+ originator_type:
+ type: string
+ example: Refund
+ type_id:
+ type: string
+ example: '1'
+ store_id:
+ type: string
+ example: '2'
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
+ required:
+ - store_credit
+ x-internal: true
+ update_store_credit_params:
+ type: object
+ properties:
+ store_credit:
+ type: object
+ required:
+ - user_id
+ - category_id
+ - type_id
+ - created_by_id
+ - currency
+ - store_id
+ - amount
+ properties:
+ user_id:
+ type: string
+ example: '2'
+ category_id:
+ type: string
+ example: '4'
+ created_by_id:
+ type: string
+ example: '5'
+ amount:
+ type: number
+ example: 25.0
+ amount_used:
+ type: number
+ example: 10.0
+ memo:
+ type: string
+ example: This credit was given as a refund
+ currency:
+ type: string
+ example: USD
+ amount_authorized:
+ type: number
+ example: 15.5
+ originator_id:
+ type: string
+ example: '3'
+ originator_type:
+ type: string
+ example: Refund
+ type_id:
+ type: string
+ example: '1'
+ store_id:
+ type: string
+ example: '2'
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
+ required:
+ - store_credit
+ x-internal: true
create_taxon_params:
type: object
properties:
@@ -14646,6 +15592,54 @@ components:
required:
- wished_item
x-internal: true
+ create_zone_params:
+ type: object
+ properties:
+ zone:
+ type: object
+ required:
+ - name
+ properties:
+ name:
+ type: string
+ example: EU
+ description:
+ type: string
+ example: All countries in the EU
+ default_tax:
+ type: boolean
+ kind:
+ type: string
+ example: state
+ enum:
+ - state
+ - country
+ required:
+ - zone
+ x-internal: true
+ update_zone_params:
+ type: object
+ properties:
+ address:
+ type: object
+ properties:
+ name:
+ type: string
+ example: EU
+ description:
+ type: string
+ example: All countries in the EU
+ default_tax:
+ type: boolean
+ kind:
+ type: string
+ example: state
+ enum:
+ - state
+ - country
+ required:
+ - zone
+ x-internal: true
amount_param:
type: object
properties:
diff --git a/api/spec/integration/api/v2/platform/store_credits_spec.rb b/api/spec/integration/api/v2/platform/store_credits_spec.rb
new file mode 100644
index 0000000000..3be71d15e4
--- /dev/null
+++ b/api/spec/integration/api/v2/platform/store_credits_spec.rb
@@ -0,0 +1,35 @@
+require 'swagger_helper'
+
+describe 'Store Credits API', swagger: true do
+ include_context 'Platform API v2'
+
+ resource_name = 'Store Credit'
+ options = {
+ include_example: 'user,created_by,category,credit_type',
+ filter_examples: [{ name: 'filter[user_id_eq]', example: 5 },
+ { name: 'filter[created_by_id_eq]', example: 2 },
+ { name: 'filter[amount_gteq]', example: 50.0 },
+ { name: 'filter[currency_eq]', example: 'USD' }]
+ }
+
+ let(:user) { create(:user) }
+ let(:id) { create(:store_credit, user: user).id }
+ let(:records_list) { create_list(:store_credit, 2, user: user) }
+ let(:valid_create_param_value) { build(:store_credit, user: user).attributes }
+ let(:valid_update_param_value) do
+ {
+ amount: 500.0,
+ memo: 'The user is awarded',
+ currency: 'CAD',
+ public_metadata: { loyalty_reward: true }
+ }
+ end
+ let(:invalid_param_value) do
+ {
+ amount: -200,
+ store: nil
+ }
+ end
+
+ include_examples 'CRUD examples', resource_name, options
+end
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index b29b26af1d..5d483b63d1 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -60,6 +60,7 @@ RSpec.configure do |config|
{ name: 'Shipments' },
{ name: 'Shipping Categories' },
{ name: 'Shipping Methods' },
+ { name: 'Store Credits' },
{ name: 'Taxons' },
{ name: 'Users' },
{ name: 'Webhook Events' },
@@ -1283,6 +1284,62 @@ RSpec.configure do |config|
'x-internal': true
},
+ # Store Credit
+ create_store_credit_params: {
+ type: :object,
+ properties: {
+ store_credit: {
+ type: :object,
+ required: %w[user_id category_id type_id created_by_id currency store_id amount],
+ properties: {
+ user_id: { type: :string, example: '2' },
+ category_id: { type: :string, example: '4' },
+ created_by_id: { type: :string, example: '5' },
+ amount: { type: :number, example: 25.0 },
+ amount_used: { type: :number, example: 10.0 },
+ memo: { type: :string, example: 'This credit was given as a refund' },
+ currency: { type: :string, example: 'USD' },
+ amount_authorized: { type: :number, example: 15.5 },
+ originator_id: { type: :string, example: '3' },
+ originator_type: { type: :string, example: 'Refund' },
+ type_id: { type: :string, example: '1' },
+ store_id: { type: :string, example: '2' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
+ }
+ }
+ },
+ required: %w[store_credit],
+ 'x-internal': true
+ },
+ update_store_credit_params: {
+ type: :object,
+ properties: {
+ store_credit: {
+ type: :object,
+ required: %w[user_id category_id type_id created_by_id currency store_id amount],
+ properties: {
+ user_id: { type: :string, example: '2' },
+ category_id: { type: :string, example: '4' },
+ created_by_id: { type: :string, example: '5' },
+ amount: { type: :number, example: 25.0 },
+ amount_used: { type: :number, example: 10.0 },
+ memo: { type: :string, example: 'This credit was given as a refund' },
+ currency: { type: :string, example: 'USD' },
+ amount_authorized: { type: :number, example: 15.5 },
+ originator_id: { type: :string, example: '3' },
+ originator_type: { type: :string, example: 'Refund' },
+ type_id: { type: :string, example: '1' },
+ store_id: { type: :string, example: '2' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
+ }
+ }
+ },
+ required: %w[store_credit],
+ 'x-internal': true
+ },
+
# Taxon
create_taxon_params: {
type: :object,