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 Webhooks Events list endpoint (#11438)

seb36eba228e443
diff --git a/api/app/controllers/spree/api/v2/platform/webhooks/events_controller.rb b/api/app/controllers/spree/api/v2/platform/webhooks/events_controller.rb
new file mode 100644
index 0000000000..f54f3f499c
--- /dev/null
+++ b/api/app/controllers/spree/api/v2/platform/webhooks/events_controller.rb
@@ -0,0 +1,21 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ module Webhooks
+ class EventsController < ResourceController
+ private
+
+ def model_class
+ Spree::Webhooks::Event
+ end
+
+ def scope_includes
+ %i[subscriber]
+ end
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/api/app/models/spree/webhooks/event.rb b/api/app/models/spree/webhooks/event.rb
index 4064dcca15..ee77b2dca5 100644
--- a/api/app/models/spree/webhooks/event.rb
+++ b/api/app/models/spree/webhooks/event.rb
@@ -4,6 +4,9 @@ module Spree
validates :name, :subscriber, presence: true
belongs_to :subscriber, inverse_of: :events, optional: false
+
+ self.whitelisted_ransackable_associations = %w[subscriber]
+ self.whitelisted_ransackable_attributes = %w[name request_errors response_code success url]
end
end
end
diff --git a/api/app/models/spree/webhooks/subscriber.rb b/api/app/models/spree/webhooks/subscriber.rb
index cbaea5d636..1296b2766e 100644
--- a/api/app/models/spree/webhooks/subscriber.rb
+++ b/api/app/models/spree/webhooks/subscriber.rb
@@ -7,7 +7,11 @@ module Spree
validate :check_uri_path
+ self.whitelisted_ransackable_attributes = %w[active subscriptions url]
+ self.whitelisted_ransackable_associations = %w[event]
+
scope :active, -> { where(active: true) }
+ scope :inactive, -> { where(active: false) }
def self.with_urls_for(event)
where(
diff --git a/api/app/serializers/spree/api/v2/platform/webhooks/event_serializer.rb b/api/app/serializers/spree/api/v2/platform/webhooks/event_serializer.rb
new file mode 100644
index 0000000000..2a6d19f373
--- /dev/null
+++ b/api/app/serializers/spree/api/v2/platform/webhooks/event_serializer.rb
@@ -0,0 +1,15 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ module Webhooks
+ class EventSerializer < BaseSerializer
+ include ResourceSerializerConcern
+
+ belongs_to :subscriber
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/api/app/serializers/spree/v2/storefront/product_serializer.rb b/api/app/serializers/spree/v2/storefront/product_serializer.rb
index 588e36e57a..3a7970d023 100644
--- a/api/app/serializers/spree/v2/storefront/product_serializer.rb
+++ b/api/app/serializers/spree/v2/storefront/product_serializer.rb
@@ -49,7 +49,7 @@ module Spree
has_many :product_properties
has_many :taxons, serializer: :taxon, record_type: :taxon do |object, params|
- object.taxons_for_store(params[:store])
+ object.taxons_for_store(params[:store]).order(:id)
end
# all images from all variants
diff --git a/api/config/routes.rb b/api/config/routes.rb
index 47fc5b6804..03b8c4951c 100644
--- a/api/config/routes.rb
+++ b/api/config/routes.rb
@@ -312,6 +312,7 @@ Spree::Core::Engine.add_routes do
# Webhooks API
namespace :webhooks do
+ resources :events, only: :index
resources :subscribers
end
end
diff --git a/api/db/migrate/20211025162826_create_spree_webhooks_events.rb b/api/db/migrate/20211025162826_create_spree_webhooks_events.rb
index da5c6e4411..e4703fd107 100644
--- a/api/db/migrate/20211025162826_create_spree_webhooks_events.rb
+++ b/api/db/migrate/20211025162826_create_spree_webhooks_events.rb
@@ -5,9 +5,10 @@ class CreateSpreeWebhooksEvents < ActiveRecord::Migration[5.2]
t.string "name", null: false
t.string "request_errors"
t.string "response_code", index: true
- t.belongs_to "subscriber", null: false
+ t.belongs_to "subscriber", null: false, index: true
t.boolean "success", index: true
t.string "url", null: false
+ t.timestamps
end
end
end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 1ab2a83d8d..99ad4922ed 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -66,13 +66,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-28T19:36:00.112Z'
- updated_at: '2021-10-28T19:36:00.112Z'
- deleted_at:
- label:
+ created_at: '2021-10-29T12:26:57.866Z'
+ updated_at: '2021-10-29T12:26:57.866Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -83,7 +83,7 @@ paths:
id: '1'
type: state
user:
- data:
+ data:
- id: '2'
type: address
attributes:
@@ -94,13 +94,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-28T19:36:00.116Z'
- updated_at: '2021-10-28T19:36:00.116Z'
- deleted_at:
- label:
+ created_at: '2021-10-29T12:26:57.876Z'
+ updated_at: '2021-10-29T12:26:57.876Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -111,7 +111,7 @@ paths:
id: '2'
type: state
user:
- data:
+ data:
meta:
count: 2
total_count: 2
@@ -165,13 +165,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-28T19:36:00.330Z'
- updated_at: '2021-10-28T19:36:00.330Z'
- deleted_at:
- label:
+ created_at: '2021-10-29T12:26:58.304Z'
+ updated_at: '2021-10-29T12:26:58.304Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -256,13 +256,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-28T19:36:00.361Z'
- updated_at: '2021-10-28T19:36:00.361Z'
- deleted_at:
- label:
+ created_at: '2021-10-29T12:26:58.388Z'
+ updated_at: '2021-10-29T12:26:58.388Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -273,7 +273,7 @@ paths:
id: '6'
type: state
user:
- data:
+ data:
'404':
description: Record not found
content:
@@ -330,13 +330,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-28T19:36:00.408Z'
- updated_at: '2021-10-28T19:36:00.416Z'
- deleted_at:
- label:
+ created_at: '2021-10-29T12:26:58.547Z'
+ updated_at: '2021-10-29T12:26:58.569Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -347,7 +347,7 @@ paths:
id: '8'
type: state
user:
- data:
+ data:
'422':
description: invalid request
content:
@@ -464,10 +464,10 @@ paths:
adjustable_type: Spree::Order
amount: '100.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-28T19:36:00.626Z'
- updated_at: '2021-10-28T19:36:00.626Z'
+ created_at: '2021-10-29T12:26:59.015Z'
+ updated_at: '2021-10-29T12:26:59.015Z'
state: open
included: false
display_amount: "$100.00"
@@ -491,10 +491,10 @@ paths:
adjustable_type: Spree::Order
amount: '100.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-28T19:36:00.646Z'
- updated_at: '2021-10-28T19:36:00.646Z'
+ created_at: '2021-10-29T12:26:59.066Z'
+ updated_at: '2021-10-29T12:26:59.066Z'
state: open
included: false
display_amount: "$100.00"
@@ -561,10 +561,10 @@ paths:
adjustable_type: Spree::LineItem
amount: '100.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-28T19:36:00.929Z'
- updated_at: '2021-10-28T19:36:00.929Z'
+ created_at: '2021-10-29T12:26:59.619Z'
+ updated_at: '2021-10-29T12:26:59.619Z'
state: open
included: false
display_amount: "$100.00"
@@ -578,7 +578,7 @@ paths:
id: '1'
type: line_item
source:
- data:
+ data:
'422':
description: invalid request
content:
@@ -640,10 +640,10 @@ paths:
adjustable_type: Spree::LineItem
amount: '1.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-28T19:36:01.030Z'
- updated_at: '2021-10-28T19:36:01.034Z'
+ created_at: '2021-10-29T12:26:59.873Z'
+ updated_at: '2021-10-29T12:26:59.885Z'
state: open
included: false
display_amount: "$1.00"
@@ -713,10 +713,10 @@ paths:
adjustable_type: Spree::LineItem
amount: '15.0'
label: New label
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-28T19:36:01.214Z'
- updated_at: '2021-10-28T19:36:01.234Z'
+ created_at: '2021-10-29T12:27:00.326Z'
+ updated_at: '2021-10-29T12:27:00.357Z'
state: open
included: false
display_amount: "$15.00"
@@ -844,8 +844,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-28T19:36:01.774Z'
- updated_at: '2021-10-28T19:36:01.774Z'
+ created_at: '2021-10-29T12:27:01.585Z'
+ updated_at: '2021-10-29T12:27:01.585Z'
relationships:
product:
data:
@@ -859,8 +859,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-28T19:36:01.848Z'
- updated_at: '2021-10-28T19:36:01.848Z'
+ created_at: '2021-10-29T12:27:01.765Z'
+ updated_at: '2021-10-29T12:27:01.765Z'
relationships:
product:
data:
@@ -917,8 +917,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-28T19:36:02.323Z'
- updated_at: '2021-10-28T19:36:02.323Z'
+ created_at: '2021-10-29T12:27:02.575Z'
+ updated_at: '2021-10-29T12:27:02.575Z'
relationships:
product:
data:
@@ -981,8 +981,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-28T19:36:02.483Z'
- updated_at: '2021-10-28T19:36:02.483Z'
+ created_at: '2021-10-29T12:27:02.889Z'
+ updated_at: '2021-10-29T12:27:02.889Z'
relationships:
product:
data:
@@ -1042,8 +1042,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-28T19:36:02.766Z'
- updated_at: '2021-10-28T19:36:02.766Z'
+ created_at: '2021-10-29T12:27:03.674Z'
+ updated_at: '2021-10-29T12:27:03.674Z'
relationships:
product:
data:
@@ -1153,8 +1153,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-10-28T19:36:03.427Z'
- updated_at: '2021-10-28T19:36:03.448Z'
+ created_at: '2021-10-29T12:27:05.168Z'
+ updated_at: '2021-10-29T12:27:05.215Z'
relationships:
product:
data:
@@ -1245,34 +1245,35 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Dolore omnis non voluptas nam optio.
- meta_title:
- content:
- meta_description:
+ title: Cum vitae autem laboriosam incidunt fuga natus quas
+ laborum.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: dolore-omnis-non-voluptas-nam-optio
+ slug: cum-vitae-autem-laboriosam-incidunt-fuga-natus-quas-laborum
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-28T19:36:03.849Z'
- updated_at: '2021-10-28T19:36:03.849Z'
+ deleted_at:
+ created_at: '2021-10-29T12:27:05.880Z'
+ updated_at: '2021-10-29T12:27:05.880Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Laboriosam esse assumenda rem modi odit pariatur asperiores.
- meta_title:
- content:
- meta_description:
+ title: Adipisci dolores eaque nemo hic alias delectus pariatur.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: laboriosam-esse-assumenda-rem-modi-odit-pariatur-asperiores
+ slug: adipisci-dolores-eaque-nemo-hic-alias-delectus-pariatur
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-28T19:36:03.852Z'
- updated_at: '2021-10-28T19:36:03.852Z'
+ deleted_at:
+ created_at: '2021-10-29T12:27:05.887Z'
+ updated_at: '2021-10-29T12:27:05.887Z'
relationships:
cms_sections:
data: []
@@ -1322,17 +1323,18 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Tenetur laudantium numquam corporis dolores id praesentium.
- meta_title:
- content:
- meta_description:
+ title: Repellendus suscipit quod explicabo itaque sequi dolores
+ odit.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: tenetur-laudantium-numquam-corporis-dolores-id-praesentium
+ slug: repellendus-suscipit-quod-explicabo-itaque-sequi-dolores-odit
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-28T19:36:03.931Z'
- updated_at: '2021-10-28T19:36:03.931Z'
+ deleted_at:
+ created_at: '2021-10-29T12:27:06.059Z'
+ updated_at: '2021-10-29T12:27:06.059Z'
relationships:
cms_sections:
data: []
@@ -1388,17 +1390,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: A qui reiciendis deleniti aperiam.
- meta_title:
- content:
- meta_description:
+ title: Id fugiat minima similique cumque qui dolor animi.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: a-qui-reiciendis-deleniti-aperiam
+ slug: id-fugiat-minima-similique-cumque-qui-dolor-animi
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-28T19:36:03.966Z'
- updated_at: '2021-10-28T19:36:03.966Z'
+ deleted_at:
+ created_at: '2021-10-29T12:27:06.148Z'
+ updated_at: '2021-10-29T12:27:06.148Z'
relationships:
cms_sections:
data: []
@@ -1452,16 +1454,16 @@ paths:
type: cms_page
attributes:
title: My Super Page
- meta_title:
- content:
- meta_description:
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: deleniti-eaque-amet-sequi-nihil-explicabo
+ slug: cum-incidunt-provident-pariatur-laborum-vitae-enim-eius
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-28T19:36:04.019Z'
- updated_at: '2021-10-28T19:36:04.029Z'
+ deleted_at:
+ created_at: '2021-10-29T12:27:06.293Z'
+ updated_at: '2021-10-29T12:27:06.318Z'
relationships:
cms_sections:
data: []
@@ -1575,28 +1577,28 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Impedit harum quae ratione pariatur culpa.
+ name: Error molestias quae est magni necessitatibus.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-10-28T19:36:04.193Z'
- updated_at: '2021-10-28T19:36:04.193Z'
+ created_at: '2021-10-29T12:27:06.765Z'
+ updated_at: '2021-10-29T12:27:06.765Z'
relationships:
cms_page:
data:
id: '13'
type: cms_page
linked_resource:
- data:
+ data:
- id: '2'
type: cms_section
attributes:
- name: Eaque occaecati cupiditate perferendis eius quo.
+ name: Repudiandae quidem excepturi suscipit id.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1604,55 +1606,55 @@ paths:
settings:
layout_style: Default
fit: Container
- destination:
+ destination:
type: Spree::Cms::Sections::ImageGallery
position: 2
- linked_resource_type:
- created_at: '2021-10-28T19:36:04.198Z'
- updated_at: '2021-10-28T19:36:04.198Z'
+ linked_resource_type:
+ created_at: '2021-10-29T12:27:06.775Z'
+ updated_at: '2021-10-29T12:27:06.775Z'
relationships:
cms_page:
data:
id: '13'
type: cms_page
linked_resource:
- data:
+ data:
- id: '3'
type: cms_section
attributes:
- name: Facilis doloribus ex blanditiis dolore.
+ name: Hic eveniet dicta architecto eum omnis doloribus quis.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-10-28T19:36:04.207Z'
- updated_at: '2021-10-28T19:36:04.207Z'
+ created_at: '2021-10-29T12:27:06.795Z'
+ updated_at: '2021-10-29T12:27:06.795Z'
relationships:
cms_page:
data:
id: '13'
type: cms_page
linked_resource:
- data:
+ data:
- id: '4'
type: cms_section
attributes:
- name: Tempore culpa sapiente minima explicabo dolores nemo
- laborum doloribus.
+ name: Iste tenetur voluptas unde velit voluptate facere quibusdam
+ voluptatem.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-28T19:36:04.215Z'
- updated_at: '2021-10-28T19:36:04.215Z'
+ created_at: '2021-10-29T12:27:06.825Z'
+ updated_at: '2021-10-29T12:27:06.825Z'
relationships:
cms_page:
data:
@@ -1665,17 +1667,17 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: A omnis in quas recusandae eaque tenetur impedit quibusdam.
+ name: Eos dolorum commodi atque in corporis.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-10-28T19:36:04.221Z'
- updated_at: '2021-10-28T19:36:04.221Z'
+ created_at: '2021-10-29T12:27:06.846Z'
+ updated_at: '2021-10-29T12:27:06.846Z'
relationships:
cms_page:
data:
@@ -1731,17 +1733,17 @@ paths:
id: '14'
type: cms_section
attributes:
- name: Amet dolore quasi voluptatem ea.
+ name: Ut doloremque esse maiores inventore nesciunt vitae.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-28T19:36:04.383Z'
- updated_at: '2021-10-28T19:36:04.383Z'
+ created_at: '2021-10-29T12:27:07.287Z'
+ updated_at: '2021-10-29T12:27:07.287Z'
relationships:
cms_page:
data:
@@ -1803,18 +1805,17 @@ paths:
id: '21'
type: cms_section
attributes:
- name: Dignissimos distinctio consequuntur nihil est saepe
- quasi sed accusantium.
+ name: Eius suscipit quas tempora quod.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-28T19:36:04.522Z'
- updated_at: '2021-10-28T19:36:04.522Z'
+ created_at: '2021-10-29T12:27:07.663Z'
+ updated_at: '2021-10-29T12:27:07.663Z'
relationships:
cms_page:
data:
@@ -1878,12 +1879,12 @@ paths:
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-28T19:36:04.810Z'
- updated_at: '2021-10-28T19:36:04.829Z'
+ created_at: '2021-10-29T12:27:08.375Z'
+ updated_at: '2021-10-29T12:27:08.406Z'
relationships:
cms_page:
data:
@@ -1985,17 +1986,18 @@ paths:
id: '58'
type: cms_section
attributes:
- name: Amet tempora harum pariatur hic.
+ name: Amet consequuntur aperiam enim dolorem maiores necessitatibus
+ illo.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-10-28T19:36:05.313Z'
- updated_at: '2021-10-28T19:36:05.323Z'
+ created_at: '2021-10-29T12:27:09.656Z'
+ updated_at: '2021-10-29T12:27:09.684Z'
relationships:
cms_page:
data:
@@ -2053,9 +2055,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-10-28T19:36:05.463Z'
+ updated_at: '2021-10-29T12:27:10.081Z'
zipcode_required: true
- created_at: '2021-10-28T19:36:05.463Z'
+ created_at: '2021-10-29T12:27:10.081Z'
relationships:
states:
data: []
@@ -2068,9 +2070,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-10-28T19:36:05.469Z'
+ updated_at: '2021-10-29T12:27:10.095Z'
zipcode_required: true
- created_at: '2021-10-28T19:36:05.469Z'
+ created_at: '2021-10-29T12:27:10.095Z'
relationships:
states:
data: []
@@ -2083,9 +2085,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-10-28T19:36:05.471Z'
+ updated_at: '2021-10-29T12:27:10.101Z'
zipcode_required: true
- created_at: '2021-10-28T19:36:05.471Z'
+ created_at: '2021-10-29T12:27:10.101Z'
relationships:
states:
data: []
@@ -2140,9 +2142,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-10-28T19:36:05.510Z'
+ updated_at: '2021-10-29T12:27:10.214Z'
zipcode_required: true
- created_at: '2021-10-28T19:36:05.510Z'
+ created_at: '2021-10-29T12:27:10.214Z'
relationships:
states:
data: []
@@ -2194,7 +2196,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: aSBxQqjkSXvDJzwUA5SUbk8K
+ token: 6BzHjv7A26F11w4mbwMiUkiq
access_counter: 0
relationships:
digital:
@@ -2208,7 +2210,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: AZiujVGj7SPFNXPjJz6UtDRs
+ token: zgD7D7B1r4L7DH3xwJEGkGmV
access_counter: 0
relationships:
digital:
@@ -2258,7 +2260,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: nUXNpsyUuE14h1LSizKX4x7M
+ token: C9Luz1KA8UwEZZEJA2ZV89kT
access_counter: 0
relationships:
digital:
@@ -2317,7 +2319,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: MvDvG541UMAgm4uYUkauXdjB
+ token: RvinbSvSedxWqb8WXRqvYp3w
access_counter: 0
relationships:
digital:
@@ -2370,7 +2372,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: dAUVht4WcrcC9VeuZt2AodNA
+ token: qZipRyp5nbM6j9FZUVAdSTz1
access_counter: 0
relationships:
digital:
@@ -2473,7 +2475,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: twKRGFk11Ld5fhKffEjFhGUP
+ token: ACk89jnJXCmy4Chpci51Kt9A
access_counter: 0
relationships:
digital:
@@ -2539,7 +2541,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--dba71ec5e8eaec88033f387a3c3652d6753dcde4/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c89c3b8be991b5f77b2265c9591395576c152635/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2551,7 +2553,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--8fb2ded70a1d5de2f63b5a15ae55021888f43459/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d25bc17f89426faf6de5dbde3fa81a492491ac98/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2563,7 +2565,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0b3834183fb39b0b9ec8b30a58c6832f4e8b7215/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3b5e1528e97f3af0c9ccecc1ce79851051063c03/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2618,7 +2620,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a00c31874a2fbbd25eeeb6d294e98173959ebc6a/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9c074b4426898450555609cebe367834b50a17ec/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2679,7 +2681,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0450498f672ac95244d63651faba92885baae421/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--58cdce85936459d70584247da67be7a362490b35/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2737,7 +2739,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f69bc41128f1c6a487edc467c429bc1207f1a5c7/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5a3f4a6fb177f7f5f7488128310985ee7dcf085d/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2858,8 +2860,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-28T19:36:12.350Z'
- updated_at: '2021-10-28T19:36:12.358Z'
+ created_at: '2021-10-29T12:27:25.569Z'
+ updated_at: '2021-10-29T12:27:25.587Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2869,18 +2871,18 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ 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_subtotal: "$10.00"
display_price: "$10.00"
single_display_amount: "$10.00"
- display_total: "$10.00"
display_discounted_amount: "$10.00"
+ display_total: "$10.00"
display_amount: "$10.00"
- display_subtotal: "$10.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
display_final_amount: "$10.00"
- display_promo_total: "$0.00"
- display_pre_tax_amount: "$10.00"
- display_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -2905,8 +2907,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-28T19:36:12.386Z'
- updated_at: '2021-10-28T19:36:12.390Z'
+ created_at: '2021-10-29T12:27:25.662Z'
+ updated_at: '2021-10-29T12:27:25.675Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2916,18 +2918,18 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ 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_subtotal: "$10.00"
display_price: "$10.00"
single_display_amount: "$10.00"
- display_total: "$10.00"
display_discounted_amount: "$10.00"
+ display_total: "$10.00"
display_amount: "$10.00"
- display_subtotal: "$10.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
display_final_amount: "$10.00"
- display_promo_total: "$0.00"
- display_pre_tax_amount: "$10.00"
- display_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -2995,8 +2997,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-28T19:36:12.596Z'
- updated_at: '2021-10-28T19:36:12.646Z'
+ created_at: '2021-10-29T12:27:26.163Z'
+ updated_at: '2021-10-29T12:27:26.225Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3006,18 +3008,18 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ 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_subtotal: "$10.00"
display_price: "$10.00"
single_display_amount: "$10.00"
- display_total: "$10.00"
display_discounted_amount: "$10.00"
+ display_total: "$10.00"
display_amount: "$10.00"
- display_subtotal: "$10.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
display_final_amount: "$10.00"
- display_promo_total: "$0.00"
- display_pre_tax_amount: "$10.00"
- display_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3094,8 +3096,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-28T19:36:12.788Z'
- updated_at: '2021-10-28T19:36:12.795Z'
+ created_at: '2021-10-29T12:27:26.561Z'
+ updated_at: '2021-10-29T12:27:26.579Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3105,18 +3107,18 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ 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_subtotal: "$10.00"
display_price: "$10.00"
single_display_amount: "$10.00"
- display_total: "$10.00"
display_discounted_amount: "$10.00"
+ display_total: "$10.00"
display_amount: "$10.00"
- display_subtotal: "$10.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
display_final_amount: "$10.00"
- display_promo_total: "$0.00"
- display_pre_tax_amount: "$10.00"
- display_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3187,8 +3189,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-10-28T19:36:13.015Z'
- updated_at: '2021-10-28T19:36:13.049Z'
+ created_at: '2021-10-29T12:27:27.127Z'
+ updated_at: '2021-10-29T12:27:27.227Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3198,18 +3200,18 @@ paths:
pre_tax_amount: '40.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ 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_subtotal: "$40.00"
display_price: "$10.00"
single_display_amount: "$10.00"
- display_total: "$40.00"
display_discounted_amount: "$40.00"
+ display_total: "$40.00"
display_amount: "$40.00"
- display_subtotal: "$40.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
display_final_amount: "$40.00"
- display_promo_total: "$0.00"
- display_pre_tax_amount: "$40.00"
- display_included_tax_total: "$0.00"
relationships:
order:
data:
@@ -3236,10 +3238,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #133 - 5950" is not available.'
+ error: 'Quantity selected of "Product #133 - 2384" is not available.'
errors:
quantity:
- - 'selected of "Product #133 - 5950" is not available.'
+ - 'selected of "Product #133 - 2384" is not available.'
'404':
description: Record not found
content:
@@ -3340,18 +3342,18 @@ paths:
type: menu_item
attributes:
name: Link no. 1 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-10-28T19:36:13.645Z'
- updated_at: '2021-10-28T19:36:13.649Z'
- link:
+ created_at: '2021-10-29T12:27:28.583Z'
+ updated_at: '2021-10-29T12:27:28.593Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3370,25 +3372,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '3'
type: menu_item
attributes:
name: Link no. 2 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-10-28T19:36:13.701Z'
- updated_at: '2021-10-28T19:36:13.705Z'
- link:
+ created_at: '2021-10-29T12:27:28.662Z'
+ updated_at: '2021-10-29T12:27:28.670Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3407,25 +3409,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '4'
type: menu_item
attributes:
name: Link no. 3 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-10-28T19:36:13.762Z'
- updated_at: '2021-10-28T19:36:13.766Z'
- link:
+ created_at: '2021-10-29T12:27:28.737Z'
+ updated_at: '2021-10-29T12:27:28.746Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3444,25 +3446,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '5'
type: menu_item
attributes:
name: Link no. 4 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-28T19:36:13.811Z'
- updated_at: '2021-10-28T19:36:13.816Z'
- link:
+ created_at: '2021-10-29T12:27:28.813Z'
+ updated_at: '2021-10-29T12:27:28.821Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3481,25 +3483,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '6'
type: menu_item
attributes:
name: Link no. 5 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-10-28T19:36:13.865Z'
- updated_at: '2021-10-28T19:36:13.870Z'
- link:
+ created_at: '2021-10-29T12:27:28.887Z'
+ updated_at: '2021-10-29T12:27:28.895Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3518,25 +3520,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '7'
type: menu_item
attributes:
name: Link no. 6 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-10-28T19:36:13.917Z'
- updated_at: '2021-10-28T19:36:13.921Z'
- link:
+ created_at: '2021-10-29T12:27:28.963Z'
+ updated_at: '2021-10-29T12:27:28.972Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3555,25 +3557,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '8'
type: menu_item
attributes:
name: Link no. 7 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-10-28T19:36:13.968Z'
- updated_at: '2021-10-28T19:36:13.972Z'
- link:
+ created_at: '2021-10-29T12:27:29.042Z'
+ updated_at: '2021-10-29T12:27:29.050Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3592,40 +3594,40 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '1'
type: menu_item
attributes:
- name: Doloremque dolorum in esse aliquid adipisci magnam veniam.
- subtitle:
- destination:
+ name: Odio eveniet saepe eaque at.
+ subtitle:
+ destination:
new_window: false
item_type: Container
linked_resource_type: URL
- code:
+ code:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-10-28T19:36:13.588Z'
- updated_at: '2021-10-28T19:36:13.980Z'
- link:
+ created_at: '2021-10-29T12:27:28.514Z'
+ updated_at: '2021-10-29T12:27:29.070Z'
+ link:
is_container: true
is_root: true
is_child: false
is_leaf: false
relationships:
icon:
- data:
+ data:
menu:
data:
id: '1'
type: menu
parent:
- data:
+ data:
linked_resource:
- data:
+ data:
children:
data:
- id: '2'
@@ -3689,25 +3691,25 @@ paths:
type: menu_item
attributes:
name: Link no. 18 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-28T19:36:14.590Z'
- updated_at: '2021-10-28T19:36:14.594Z'
- link:
+ created_at: '2021-10-29T12:27:30.039Z'
+ updated_at: '2021-10-29T12:27:30.048Z'
+ link:
is_container: false
is_root: false
is_child: true
is_leaf: true
relationships:
icon:
- data:
+ data:
menu:
data:
id: '3'
@@ -3717,7 +3719,7 @@ paths:
id: '17'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'422':
@@ -3776,18 +3778,18 @@ paths:
type: menu_item
attributes:
name: Link no. 25 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-28T19:36:15.004Z'
- updated_at: '2021-10-28T19:36:15.008Z'
- link:
+ created_at: '2021-10-29T12:27:30.694Z'
+ updated_at: '2021-10-29T12:27:30.703Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3806,7 +3808,7 @@ paths:
id: '26'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'404':
@@ -3859,18 +3861,18 @@ paths:
type: menu_item
attributes:
name: Menu Item One
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-28T19:36:15.794Z'
- updated_at: '2021-10-28T19:36:15.817Z'
- link:
+ created_at: '2021-10-29T12:27:31.726Z'
+ updated_at: '2021-10-29T12:27:31.782Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3889,7 +3891,7 @@ paths:
id: '40'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'422':
@@ -3985,18 +3987,18 @@ paths:
type: menu_item
attributes:
name: Link no. 62 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-10-28T19:36:17.434Z'
- updated_at: '2021-10-28T19:36:17.458Z'
- link:
+ created_at: '2021-10-29T12:27:34.188Z'
+ updated_at: '2021-10-29T12:27:34.245Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -4015,7 +4017,7 @@ paths:
id: '75'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'404':
@@ -4087,8 +4089,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-28T19:36:17.944Z'
- updated_at: '2021-10-28T19:36:18.085Z'
+ created_at: '2021-10-29T12:27:34.945Z'
+ updated_at: '2021-10-29T12:27:35.117Z'
relationships:
menu_items:
data:
@@ -4104,8 +4106,8 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-10-28T19:36:17.953Z'
- updated_at: '2021-10-28T19:36:18.230Z'
+ created_at: '2021-10-29T12:27:34.967Z'
+ updated_at: '2021-10-29T12:27:35.269Z'
relationships:
menu_items:
data:
@@ -4164,8 +4166,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-28T19:36:18.572Z'
- updated_at: '2021-10-28T19:36:18.581Z'
+ created_at: '2021-10-29T12:27:35.765Z'
+ updated_at: '2021-10-29T12:27:35.779Z'
relationships:
menu_items:
data:
@@ -4229,8 +4231,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-28T19:36:18.618Z'
- updated_at: '2021-10-28T19:36:18.625Z'
+ created_at: '2021-10-29T12:27:35.869Z'
+ updated_at: '2021-10-29T12:27:35.883Z'
relationships:
menu_items:
data:
@@ -4288,8 +4290,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-28T19:36:18.688Z'
- updated_at: '2021-10-28T19:36:18.695Z'
+ created_at: '2021-10-29T12:27:36.037Z'
+ updated_at: '2021-10-29T12:27:36.052Z'
relationships:
menu_items:
data:
@@ -4412,8 +4414,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-10-28T19:36:18.868Z'
- updated_at: '2021-10-28T19:36:18.868Z'
+ created_at: '2021-10-29T12:27:36.451Z'
+ updated_at: '2021-10-29T12:27:36.451Z'
filterable: true
relationships:
option_values:
@@ -4424,8 +4426,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-10-28T19:36:18.870Z'
- updated_at: '2021-10-28T19:36:18.870Z'
+ created_at: '2021-10-29T12:27:36.456Z'
+ updated_at: '2021-10-29T12:27:36.456Z'
filterable: true
relationships:
option_values:
@@ -4472,8 +4474,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-10-28T19:36:18.930Z'
- updated_at: '2021-10-28T19:36:18.930Z'
+ created_at: '2021-10-29T12:27:36.577Z'
+ updated_at: '2021-10-29T12:27:36.577Z'
filterable: true
relationships:
option_values:
@@ -4526,8 +4528,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-10-28T19:36:18.963Z'
- updated_at: '2021-10-28T19:36:18.963Z'
+ created_at: '2021-10-29T12:27:36.651Z'
+ updated_at: '2021-10-29T12:27:36.651Z'
filterable: true
relationships:
option_values:
@@ -4577,8 +4579,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-10-28T19:36:19.015Z'
- updated_at: '2021-10-28T19:36:19.021Z'
+ created_at: '2021-10-29T12:27:36.773Z'
+ updated_at: '2021-10-29T12:27:36.791Z'
filterable: true
relationships:
option_values:
@@ -4702,8 +4704,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-10-28T19:36:19.139Z'
- updated_at: '2021-10-28T19:36:19.139Z'
+ created_at: '2021-10-29T12:27:37.065Z'
+ updated_at: '2021-10-29T12:27:37.065Z'
relationships:
option_type:
data:
@@ -4715,8 +4717,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-10-28T19:36:19.145Z'
- updated_at: '2021-10-28T19:36:19.145Z'
+ created_at: '2021-10-29T12:27:37.078Z'
+ updated_at: '2021-10-29T12:27:37.078Z'
relationships:
option_type:
data:
@@ -4771,11 +4773,11 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-10-28T19:36:19.202Z'
- updated_at: '2021-10-28T19:36:19.202Z'
+ created_at: '2021-10-29T12:27:37.225Z'
+ updated_at: '2021-10-29T12:27:37.225Z'
relationships:
option_type:
- data:
+ data:
'422':
description: invalid request
content:
@@ -4831,8 +4833,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-10-28T19:36:19.240Z'
- updated_at: '2021-10-28T19:36:19.240Z'
+ created_at: '2021-10-29T12:27:37.306Z'
+ updated_at: '2021-10-29T12:27:37.306Z'
relationships:
option_type:
data:
@@ -4890,8 +4892,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-10-28T19:36:19.307Z'
- updated_at: '2021-10-28T19:36:19.317Z'
+ created_at: '2021-10-29T12:27:37.441Z'
+ updated_at: '2021-10-29T12:27:37.463Z'
relationships:
option_type:
data:
@@ -5007,38 +5009,34 @@ paths:
- id: '40'
type: order
attributes:
- number: R771309556
+ number: R132888680
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:19.447Z'
- updated_at: '2021-10-28T19:36:19.447Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:37.788Z'
+ updated_at: '2021-10-29T12:27:37.788Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$0.00"
- display_ship_total: "$0.00"
- display_shipment_total: "$0.00"
- display_total: "$0.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -5048,6 +5046,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$0.00"
+ display_ship_total: "$0.00"
+ display_shipment_total: "$0.00"
+ display_total: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
@@ -5059,17 +5061,17 @@ paths:
id: '41'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '52'
type: address
ship_address:
- data:
+ data:
line_items:
data: []
payments:
@@ -5091,38 +5093,34 @@ paths:
- id: '41'
type: order
attributes:
- number: R145875200
+ number: R908190917
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:19.455Z'
- updated_at: '2021-10-28T19:36:19.455Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:37.817Z'
+ updated_at: '2021-10-29T12:27:37.817Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$0.00"
- display_ship_total: "$0.00"
- display_shipment_total: "$0.00"
- display_total: "$0.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -5132,6 +5130,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$0.00"
+ display_ship_total: "$0.00"
+ display_shipment_total: "$0.00"
+ display_total: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
@@ -5143,17 +5145,17 @@ paths:
id: '42'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '53'
type: address
ship_address:
- data:
+ data:
line_items:
data: []
payments:
@@ -5218,38 +5220,34 @@ paths:
id: '44'
type: order
attributes:
- number: R525040329
+ number: R873621229
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- email:
- special_instructions:
- created_at: '2021-10-28T19:36:19.731Z'
- updated_at: '2021-10-28T19:36:19.747Z'
+ shipment_state:
+ payment_state:
+ email:
+ special_instructions:
+ created_at: '2021-10-29T12:27:38.402Z'
+ updated_at: '2021-10-29T12:27:38.431Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$20.00"
- display_ship_total: "$0.00"
- display_shipment_total: "$0.00"
- display_total: "$0.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -5259,6 +5257,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$20.00"
+ display_ship_total: "$0.00"
+ display_shipment_total: "$0.00"
+ display_total: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
@@ -5266,13 +5268,13 @@ paths:
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
- data:
+ data:
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '56'
@@ -5342,38 +5344,34 @@ paths:
id: '45'
type: order
attributes:
- number: R659926532
+ number: R388226215
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:19.783Z'
- updated_at: '2021-10-28T19:36:19.920Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:38.521Z'
+ updated_at: '2021-10-29T12:27:38.791Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$10.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5383,6 +5381,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$10.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
@@ -5394,11 +5396,11 @@ paths:
id: '45'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '57'
@@ -5478,38 +5480,34 @@ paths:
id: '47'
type: order
attributes:
- number: R627980813
+ number: R737605719
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
+ shipment_state:
+ payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:20.079Z'
- updated_at: '2021-10-28T19:36:20.173Z'
+ special_instructions:
+ created_at: '2021-10-29T12:27:39.249Z'
+ updated_at: '2021-10-29T12:27:39.483Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$10.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5519,6 +5517,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$10.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
@@ -5530,11 +5532,11 @@ paths:
id: '47'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '61'
@@ -5664,38 +5666,34 @@ paths:
id: '52'
type: order
attributes:
- number: R584600447
+ number: R959399030
item_total: '10.0'
total: '110.0'
state: payment
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:20.761Z'
- updated_at: '2021-10-28T19:36:20.889Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:40.882Z'
+ updated_at: '2021-10-29T12:27:41.202Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$110.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5705,6 +5703,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$110.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
@@ -5716,11 +5718,11 @@ paths:
id: '52'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '71'
@@ -5803,38 +5805,34 @@ paths:
id: '54'
type: order
attributes:
- number: R171333732
+ number: R650830972
item_total: '10.0'
total: '110.0'
state: payment
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:21.054Z'
- updated_at: '2021-10-28T19:36:21.183Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:41.633Z'
+ updated_at: '2021-10-29T12:27:41.946Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$110.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5844,6 +5842,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$110.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
@@ -5855,11 +5857,11 @@ paths:
id: '54'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '75'
@@ -5942,38 +5944,34 @@ paths:
id: '56'
type: order
attributes:
- number: R397365204
+ number: R303134357
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-10-28T19:36:21.561Z'
+ completed_at: '2021-10-29T12:27:42.866Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
- special_instructions:
- created_at: '2021-10-28T19:36:21.350Z'
- updated_at: '2021-10-28T19:36:21.561Z'
+ special_instructions:
+ created_at: '2021-10-29T12:27:42.354Z'
+ updated_at: '2021-10-29T12:27:42.866Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$110.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5983,6 +5981,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$110.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
@@ -5994,11 +5996,11 @@ paths:
id: '56'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '79'
@@ -6092,38 +6094,34 @@ paths:
id: '59'
type: order
attributes:
- number: R567534996
+ number: R792589869
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:21.861Z'
- updated_at: '2021-10-28T19:36:21.959Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:43.626Z'
+ updated_at: '2021-10-29T12:27:43.888Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$0.00"
- display_ship_total: "$0.00"
- display_shipment_total: "$0.00"
- display_total: "$0.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -6133,6 +6131,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$0.00"
+ display_ship_total: "$0.00"
+ display_shipment_total: "$0.00"
+ display_total: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
@@ -6144,11 +6146,11 @@ paths:
id: '59'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '85'
@@ -6226,38 +6228,34 @@ paths:
id: '61'
type: order
attributes:
- number: R513087009
+ number: R726534544
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:22.117Z'
- updated_at: '2021-10-28T19:36:22.197Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:44.288Z'
+ updated_at: '2021-10-29T12:27:44.507Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$10.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6267,6 +6265,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$10.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
@@ -6278,11 +6280,11 @@ paths:
id: '61'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '89'
@@ -6364,38 +6366,34 @@ paths:
id: '63'
type: order
attributes:
- number: R030462067
+ number: R929022865
item_total: '10.0'
total: '10.0'
state: canceled
adjustment_total: '0.0'
- completed_at: '2021-10-28T19:36:22.467Z'
+ completed_at: '2021-10-29T12:27:45.191Z'
payment_total: '0.0'
shipment_state: canceled
payment_state: void
- special_instructions:
- created_at: '2021-10-28T19:36:22.368Z'
- updated_at: '2021-10-28T19:36:22.523Z'
+ special_instructions:
+ created_at: '2021-10-29T12:27:44.935Z'
+ updated_at: '2021-10-29T12:27:45.359Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$10.00"
- display_ship_total: "$0.00"
- display_shipment_total: "$0.00"
- display_total: "$10.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$0.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6405,6 +6403,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$10.00"
+ display_ship_total: "$0.00"
+ display_shipment_total: "$0.00"
+ display_total: "$10.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$10.00"
@@ -6416,11 +6418,11 @@ paths:
id: '63'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '93'
@@ -6518,38 +6520,34 @@ paths:
id: '66'
type: order
attributes:
- number: R171698424
+ number: R393020213
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:22.802Z'
- updated_at: '2021-10-28T19:36:22.949Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:46.062Z'
+ updated_at: '2021-10-29T12:27:46.382Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$10.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$110.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6559,6 +6557,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$10.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$110.00"
display_total_applicable_store_credit: "-$15.00"
display_total_applied_store_credit: "-$15.00"
display_order_total_after_store_credit: "$95.00"
@@ -6570,11 +6572,11 @@ paths:
id: '66'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '99'
@@ -6671,38 +6673,34 @@ paths:
id: '69'
type: order
attributes:
- number: R756410421
+ number: R289962449
item_total: '10.0'
total: '10.0'
state: delivery
adjustment_total: "-100.0"
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-28T19:36:23.289Z'
- updated_at: '2021-10-28T19:36:23.427Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-29T12:27:47.214Z'
+ updated_at: '2021-10-29T12:27:47.519Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: "-100.0"
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
- display_pre_tax_total: "$10.00"
- display_ship_total: "$100.00"
- display_shipment_total: "$100.00"
- display_total: "$10.00"
+ store_owner_notification_delivered:
display_outstanding_balance: "$10.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6712,6 +6710,10 @@ paths:
display_additional_tax_total: "$0.00"
display_promo_total: "-$100.00"
display_included_tax_total: "$0.00"
+ display_pre_tax_total: "$10.00"
+ display_ship_total: "$100.00"
+ display_shipment_total: "$100.00"
+ display_total: "$10.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$10.00"
@@ -6723,11 +6725,11 @@ paths:
id: '70'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '105'
@@ -6846,12 +6848,12 @@ paths:
source_type: Spree::CreditCard
state: invalid
response_code: '12345'
- avs_response:
- created_at: '2021-10-28T19:36:23.750Z'
- updated_at: '2021-10-28T19:36:23.769Z'
- number: P3BSGRUO
- cvv_response_code:
- cvv_response_message:
+ avs_response:
+ created_at: '2021-10-29T12:27:48.346Z'
+ updated_at: '2021-10-29T12:27:48.394Z'
+ number: PXTIRYP1
+ cvv_response_code:
+ cvv_response_message:
display_amount: "$45.75"
relationships:
order:
@@ -6883,12 +6885,12 @@ paths:
source_type: Spree::CreditCard
state: checkout
response_code: '12345'
- avs_response:
- created_at: '2021-10-28T19:36:23.766Z'
- updated_at: '2021-10-28T19:36:23.766Z'
- number: P7BUW1FZ
- cvv_response_code:
- cvv_response_message:
+ avs_response:
+ created_at: '2021-10-29T12:27:48.386Z'
+ updated_at: '2021-10-29T12:27:48.386Z'
+ number: PL2ANSOD
+ cvv_response_code:
+ cvv_response_message:
display_amount: "$45.75"
relationships:
order:
@@ -6967,12 +6969,12 @@ paths:
source_type: Spree::CreditCard
state: checkout
response_code: '12345'
- avs_response:
- created_at: '2021-10-28T19:36:23.911Z'
- updated_at: '2021-10-28T19:36:23.911Z'
- number: PE7PXG20
- cvv_response_code:
- cvv_response_message:
+ avs_response:
+ created_at: '2021-10-29T12:27:48.942Z'
+ updated_at: '2021-10-29T12:27:48.942Z'
+ number: PL82ILVY
+ cvv_response_code:
+ cvv_response_message:
display_amount: "$45.75"
relationships:
order:
@@ -7096,8 +7098,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-28T19:36:24.117Z'
- updated_at: '2021-10-28T19:36:24.117Z'
+ created_at: '2021-10-29T12:27:49.462Z'
+ updated_at: '2021-10-29T12:27:49.462Z'
code: POP123
relationships:
promotions:
@@ -7106,8 +7108,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-28T19:36:24.119Z'
- updated_at: '2021-10-28T19:36:24.119Z'
+ created_at: '2021-10-29T12:27:49.465Z'
+ updated_at: '2021-10-29T12:27:49.465Z'
code: POP123
relationships:
promotions:
@@ -7159,8 +7161,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-28T19:36:24.164Z'
- updated_at: '2021-10-28T19:36:24.164Z'
+ created_at: '2021-10-29T12:27:49.585Z'
+ updated_at: '2021-10-29T12:27:49.585Z'
code: 2021-BFM
relationships:
promotions:
@@ -7216,8 +7218,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-28T19:36:24.193Z'
- updated_at: '2021-10-28T19:36:24.193Z'
+ created_at: '2021-10-29T12:27:49.673Z'
+ updated_at: '2021-10-29T12:27:49.673Z'
code: MJO
relationships:
promotions:
@@ -7272,8 +7274,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-10-28T19:36:24.243Z'
- updated_at: '2021-10-28T19:36:24.249Z'
+ created_at: '2021-10-29T12:27:49.795Z'
+ updated_at: '2021-10-29T12:27:49.810Z'
code: 2021-Promos
relationships:
promotions:
@@ -7389,12 +7391,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H15181615707
+ number: H98911867693
cost: '100.0'
- shipped_at:
+ shipped_at:
state: pending
- created_at: '2021-10-28T19:36:24.376Z'
- updated_at: '2021-10-28T19:36:24.379Z'
+ created_at: '2021-10-29T12:27:50.115Z'
+ updated_at: '2021-10-29T12:27:50.124Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7413,7 +7415,7 @@ paths:
id: '78'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '130'
@@ -7436,12 +7438,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H73918604530
+ number: H08081418866
cost: '100.0'
- shipped_at:
+ shipped_at:
state: pending
- created_at: '2021-10-28T19:36:24.407Z'
- updated_at: '2021-10-28T19:36:24.411Z'
+ created_at: '2021-10-29T12:27:50.204Z'
+ updated_at: '2021-10-29T12:27:50.213Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7460,7 +7462,7 @@ paths:
id: '79'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '131'
@@ -7532,12 +7534,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H98040698333
+ number: H89934123911
cost: '100.0'
- shipped_at:
+ shipped_at:
state: pending
- created_at: '2021-10-28T19:36:24.702Z'
- updated_at: '2021-10-28T19:36:24.721Z'
+ created_at: '2021-10-29T12:27:50.986Z'
+ updated_at: '2021-10-29T12:27:51.048Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7556,7 +7558,7 @@ paths:
id: '82'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '136'
@@ -7661,12 +7663,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H40076726626
+ number: H74498554108
cost: '100.0'
- shipped_at:
+ shipped_at:
state: ready
- created_at: '2021-10-28T19:36:25.513Z'
- updated_at: '2021-10-28T19:36:25.543Z'
+ created_at: '2021-10-29T12:27:53.165Z'
+ updated_at: '2021-10-29T12:27:53.238Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7685,7 +7687,7 @@ paths:
id: '86'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '148'
@@ -7759,12 +7761,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H16165867301
+ number: H53970506834
cost: '100.0'
- shipped_at: '2021-10-28T19:36:25.956Z'
+ shipped_at: '2021-10-29T12:27:54.325Z'
state: shipped
- created_at: '2021-10-28T19:36:25.924Z'
- updated_at: '2021-10-28T19:36:25.956Z'
+ created_at: '2021-10-29T12:27:54.239Z'
+ updated_at: '2021-10-29T12:27:54.325Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7783,7 +7785,7 @@ paths:
id: '88'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '154'
@@ -7857,12 +7859,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H53058550650
+ number: H01757237686
cost: '100.0'
- shipped_at:
+ shipped_at:
state: canceled
- created_at: '2021-10-28T19:36:26.349Z'
- updated_at: '2021-10-28T19:36:26.380Z'
+ created_at: '2021-10-29T12:27:55.311Z'
+ updated_at: '2021-10-29T12:27:55.391Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7881,7 +7883,7 @@ paths:
id: '90'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '160'
@@ -7955,12 +7957,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H08845897575
+ number: H50016964077
cost: '100.0'
- shipped_at:
+ shipped_at:
state: ready
- created_at: '2021-10-28T19:36:26.784Z'
- updated_at: '2021-10-28T19:36:26.809Z'
+ created_at: '2021-10-29T12:27:56.434Z'
+ updated_at: '2021-10-29T12:27:56.520Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7979,7 +7981,7 @@ paths:
id: '92'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '166'
@@ -8053,12 +8055,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H66582241380
+ number: H01786531820
cost: '100.0'
- shipped_at:
+ shipped_at:
state: pending
- created_at: '2021-10-28T19:36:27.197Z'
- updated_at: '2021-10-28T19:36:27.224Z'
+ created_at: '2021-10-29T12:27:57.562Z'
+ updated_at: '2021-10-29T12:27:57.636Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8077,7 +8079,7 @@ paths:
id: '94'
type: order
address:
- data:
+ data:
stock_location:
data:
id: '172'
@@ -8155,14 +8157,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #119'
- created_at: '2021-10-28T19:36:27.447Z'
- updated_at: '2021-10-28T19:36:27.447Z'
+ created_at: '2021-10-29T12:27:58.229Z'
+ updated_at: '2021-10-29T12:27:58.229Z'
- id: '120'
type: shipping_category
attributes:
name: 'ShippingCategory #120'
- created_at: '2021-10-28T19:36:27.448Z'
- updated_at: '2021-10-28T19:36:27.448Z'
+ created_at: '2021-10-29T12:27:58.232Z'
+ updated_at: '2021-10-29T12:27:58.232Z'
meta:
count: 2
total_count: 2
@@ -8203,8 +8205,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #123'
- created_at: '2021-10-28T19:36:27.491Z'
- updated_at: '2021-10-28T19:36:27.491Z'
+ created_at: '2021-10-29T12:27:58.349Z'
+ updated_at: '2021-10-29T12:27:58.349Z'
'422':
description: invalid request
content:
@@ -8249,8 +8251,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #124'
- created_at: '2021-10-28T19:36:27.526Z'
- updated_at: '2021-10-28T19:36:27.526Z'
+ created_at: '2021-10-29T12:27:58.424Z'
+ updated_at: '2021-10-29T12:27:58.424Z'
'404':
description: Record not found
content:
@@ -8294,8 +8296,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-10-28T19:36:27.581Z'
- updated_at: '2021-10-28T19:36:27.588Z'
+ created_at: '2021-10-29T12:27:58.556Z'
+ updated_at: '2021-10-29T12:27:58.573Z'
'422':
description: invalid request
content:
@@ -8414,12 +8416,12 @@ paths:
attributes:
name: UPS Ground
code: UPS_GROUND
- admin_name:
+ admin_name:
display_on: both
- tracking_url:
- created_at: '2021-10-28T19:36:27.705Z'
- updated_at: '2021-10-28T19:36:27.705Z'
- deleted_at:
+ tracking_url:
+ created_at: '2021-10-29T12:27:58.861Z'
+ updated_at: '2021-10-29T12:27:58.861Z'
+ deleted_at:
relationships:
shipping_categories:
data:
@@ -8428,7 +8430,7 @@ paths:
shipping_rates:
data: []
tax_category:
- data:
+ data:
calculator:
data:
id: '71'
@@ -8438,12 +8440,12 @@ paths:
attributes:
name: UPS Ground
code: UPS_GROUND
- admin_name:
+ admin_name:
display_on: both
- tracking_url:
- created_at: '2021-10-28T19:36:27.714Z'
- updated_at: '2021-10-28T19:36:27.714Z'
- deleted_at:
+ tracking_url:
+ created_at: '2021-10-29T12:27:58.890Z'
+ updated_at: '2021-10-29T12:27:58.890Z'
+ deleted_at:
relationships:
shipping_categories:
data:
@@ -8452,7 +8454,7 @@ paths:
shipping_rates:
data: []
tax_category:
- data:
+ data:
calculator:
data:
id: '72'
@@ -8507,10 +8509,10 @@ paths:
code: DDD
admin_name: DHL Express- Zone A
display_on: both
- tracking_url:
- created_at: '2021-10-28T19:36:27.797Z'
- updated_at: '2021-10-28T19:36:27.797Z'
- deleted_at:
+ tracking_url:
+ created_at: '2021-10-29T12:27:59.094Z'
+ updated_at: '2021-10-29T12:27:59.094Z'
+ deleted_at:
relationships:
shipping_categories:
data:
@@ -8586,12 +8588,12 @@ paths:
attributes:
name: UPS Ground
code: UPS_GROUND
- admin_name:
+ admin_name:
display_on: both
- tracking_url:
- created_at: '2021-10-28T19:36:27.838Z'
- updated_at: '2021-10-28T19:36:27.838Z'
- deleted_at:
+ tracking_url:
+ created_at: '2021-10-29T12:27:59.198Z'
+ updated_at: '2021-10-29T12:27:59.198Z'
+ deleted_at:
relationships:
shipping_categories:
data:
@@ -8600,7 +8602,7 @@ paths:
shipping_rates:
data: []
tax_category:
- data:
+ data:
calculator:
data:
id: '76'
@@ -8656,12 +8658,12 @@ paths:
attributes:
name: FedEx Expedited
code: UPS_GROUND
- admin_name:
+ admin_name:
display_on: both
- tracking_url:
- created_at: '2021-10-28T19:36:27.905Z'
- updated_at: '2021-10-28T19:36:27.918Z'
- deleted_at:
+ tracking_url:
+ created_at: '2021-10-29T12:27:59.393Z'
+ updated_at: '2021-10-29T12:27:59.429Z'
+ deleted_at:
relationships:
shipping_categories:
data:
@@ -8670,7 +8672,7 @@ paths:
shipping_rates:
data: []
tax_category:
- data:
+ data:
calculator:
data:
id: '79'
@@ -8796,12 +8798,12 @@ paths:
permalink: taxonomy-16/taxon-16
lft: 2
rgt: 3
- description:
- created_at: '2021-10-28T19:36:28.132Z'
- updated_at: '2021-10-28T19:36:28.136Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-29T12:27:59.912Z'
+ updated_at: '2021-10-29T12:27:59.920Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_16 -> taxon_16
seo_title: taxon_16
@@ -8831,12 +8833,12 @@ paths:
permalink: taxonomy-16/taxon-17
lft: 4
rgt: 5
- description:
- created_at: '2021-10-28T19:36:28.188Z'
- updated_at: '2021-10-28T19:36:28.193Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-29T12:27:59.990Z'
+ updated_at: '2021-10-29T12:28:00.000Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_16 -> taxon_17
seo_title: taxon_17
@@ -8866,12 +8868,12 @@ paths:
permalink: taxonomy-16
lft: 1
rgt: 6
- description:
- created_at: '2021-10-28T19:36:28.079Z'
- updated_at: '2021-10-28T19:36:28.202Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-29T12:27:59.839Z'
+ updated_at: '2021-10-29T12:28:00.023Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 0
pretty_name: taxonomy_16
seo_title: taxonomy_16
@@ -8880,7 +8882,7 @@ paths:
is_leaf: false
relationships:
parent:
- data:
+ data:
taxonomy:
data:
id: '16'
@@ -8892,7 +8894,7 @@ paths:
- id: '33'
type: taxon
image:
- data:
+ data:
meta:
count: 3
total_count: 3
@@ -8944,12 +8946,12 @@ paths:
permalink: taxonomy-18/taxon-20
lft: 2
rgt: 3
- description:
- created_at: '2021-10-28T19:36:28.432Z'
- updated_at: '2021-10-28T19:36:28.436Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-29T12:28:00.419Z'
+ updated_at: '2021-10-29T12:28:00.430Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_18 -> taxon_20
seo_title: taxon_20
@@ -8968,7 +8970,7 @@ paths:
children:
data: []
image:
- data:
+ data:
'422':
description: invalid request
content:
@@ -9026,12 +9028,12 @@ paths:
permalink: taxonomy-19/taxon-21
lft: 2
rgt: 3
- description:
- created_at: '2021-10-28T19:36:28.532Z'
- updated_at: '2021-10-28T19:36:28.535Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-29T12:28:00.604Z'
+ updated_at: '2021-10-29T12:28:00.612Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_19 -> taxon_21
seo_title: taxon_21
@@ -9109,12 +9111,12 @@ paths:
permalink: taxonomy-21/taxon-23
lft: 2
rgt: 3
- description:
- created_at: '2021-10-28T19:36:28.738Z'
- updated_at: '2021-10-28T19:36:28.762Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-29T12:28:00.964Z'
+ updated_at: '2021-10-29T12:28:01.020Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_21 -> T-Shirts
seo_title: T-Shirts
@@ -9252,45 +9254,45 @@ paths:
- id: '97'
type: user
attributes:
- created_at: '2021-10-28T19:36:29.210Z'
- updated_at: '2021-10-28T19:36:29.210Z'
+ created_at: '2021-10-29T12:28:01.803Z'
+ updated_at: '2021-10-29T12:28:01.803Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
- id: '98'
type: user
attributes:
- created_at: '2021-10-28T19:36:29.216Z'
- updated_at: '2021-10-28T19:36:29.216Z'
+ created_at: '2021-10-29T12:28:01.816Z'
+ updated_at: '2021-10-29T12:28:01.816Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
- id: '99'
type: user
attributes:
- created_at: '2021-10-28T19:36:29.217Z'
- updated_at: '2021-10-28T19:36:29.217Z'
+ created_at: '2021-10-29T12:28:01.820Z'
+ updated_at: '2021-10-29T12:28:01.820Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
meta:
count: 3
total_count: 3
@@ -9337,17 +9339,17 @@ paths:
id: '104'
type: user
attributes:
- created_at: '2021-10-28T19:36:29.280Z'
- updated_at: '2021-10-28T19:36:29.280Z'
+ created_at: '2021-10-29T12:28:01.982Z'
+ updated_at: '2021-10-29T12:28:01.982Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
'422':
description: invalid request
content:
@@ -9398,17 +9400,17 @@ paths:
id: '107'
type: user
attributes:
- created_at: '2021-10-28T19:36:29.324Z'
- updated_at: '2021-10-28T19:36:29.324Z'
+ created_at: '2021-10-29T12:28:02.098Z'
+ updated_at: '2021-10-29T12:28:02.098Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
'404':
description: Record not found
content:
@@ -9459,16 +9461,16 @@ paths:
type: user
attributes:
- created_at: '2021-10-28T19:36:29.398Z'
- updated_at: '2021-10-28T19:36:29.407Z'
+ created_at: '2021-10-29T12:28:02.276Z'
+ updated_at: '2021-10-29T12:28:02.297Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
'422':
description: invalid request
content:
@@ -9587,20 +9589,20 @@ paths:
attributes:
sku: SKU-251
weight: '0.0'
- height:
- depth:
- deleted_at:
+ height:
+ depth:
+ deleted_at:
is_master: true
cost_price: '17.0'
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-28T19:36:29.606Z'
- discontinue_on:
- created_at: '2021-10-28T19:36:29.600Z'
+ updated_at: '2021-10-29T12:28:02.753Z'
+ discontinue_on:
+ created_at: '2021-10-29T12:28:02.740Z'
+ display_compare_at_price:
display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #184 - 5142'
+ name: 'Product #184 - 3665'
options_text: ''
total_on_hand: 0
purchasable: true
@@ -9609,14 +9611,14 @@ paths:
available: true
currency: USD
price: '19.99'
- compare_at_price:
+ compare_at_price:
relationships:
product:
data:
id: '184'
type: product
tax_category:
- data:
+ data:
digitals:
data: []
images:
@@ -9635,21 +9637,21 @@ paths:
type: variant
attributes:
sku: SKU-252
- weight: '195.33'
- height: '104.9'
- depth: '88.92'
- deleted_at:
+ weight: '16.19'
+ height: '142.25'
+ depth: '52.51'
+ deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-28T19:36:29.634Z'
- discontinue_on:
- created_at: '2021-10-28T19:36:29.628Z'
+ updated_at: '2021-10-29T12:28:02.822Z'
+ discontinue_on:
+ created_at: '2021-10-29T12:28:02.806Z'
+ display_compare_at_price:
display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #184 - 5142'
+ name: 'Product #184 - 3665'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -9658,14 +9660,14 @@ paths:
available: true
currency: USD
price: '19.99'
- compare_at_price:
+ compare_at_price:
relationships:
product:
data:
id: '184'
type: product
tax_category:
- data:
+ data:
digitals:
data: []
images:
@@ -9686,21 +9688,21 @@ paths:
type: variant
attributes:
sku: SKU-253
- weight: '128.46'
- height: '194.81'
- depth: '80.57'
- deleted_at:
+ weight: '30.56'
+ height: '69.45'
+ depth: '69.42'
+ deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-28T19:36:29.661Z'
- discontinue_on:
- created_at: '2021-10-28T19:36:29.654Z'
+ updated_at: '2021-10-29T12:28:02.874Z'
+ discontinue_on:
+ created_at: '2021-10-29T12:28:02.858Z'
+ display_compare_at_price:
display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #184 - 5142'
+ name: 'Product #184 - 3665'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -9709,14 +9711,14 @@ paths:
available: true
currency: USD
price: '19.99'
- compare_at_price:
+ compare_at_price:
relationships:
product:
data:
id: '184'
type: product
tax_category:
- data:
+ data:
digitals:
data: []
images:
@@ -9786,21 +9788,21 @@ paths:
type: variant
attributes:
sku: SKU-258
- weight: '56.86'
- height: '67.95'
- depth: '51.88'
- deleted_at:
+ weight: '156.82'
+ height: '0.28'
+ depth: '80.52'
+ deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-28T19:36:29.868Z'
- discontinue_on:
- created_at: '2021-10-28T19:36:29.861Z'
+ updated_at: '2021-10-29T12:28:03.421Z'
+ discontinue_on:
+ created_at: '2021-10-29T12:28:03.406Z'
+ display_compare_at_price:
display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #186 - 7905'
+ name: 'Product #186 - 8007'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -9809,14 +9811,14 @@ paths:
available: true
currency: USD
price: '19.99'
- compare_at_price:
+ compare_at_price:
relationships:
product:
data:
id: '186'
type: product
tax_category:
- data:
+ data:
digitals:
data: []
images:
@@ -9882,15 +9884,15 @@ paths:
Example:
value:
error: The access token is invalid
- "/api/v2/platform/webhooks/subscribers":
+ "/api/v2/platform/webhooks/events":
get:
- summary: Return a list of Webhook Subscribers
+ summary: Return a list of Webhook Events
tags:
- - Webhook Subscribers
+ - Webhook Events
security:
- bearer_auth: []
- description: Returns a list of Webhook Subscribers
- operationId: webhook-subscribers-list
+ description: Returns a list of Webhook Events
+ operationId: webhook-events-list
parameters:
- name: page
in: query
@@ -9902,6 +9904,43 @@ paths:
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
@@ -9912,33 +9951,124 @@ paths:
value:
data:
- id: '1'
- type: subscriber
+ type: event
attributes:
+ execution_time: 66190
+ name: order.canceled
+ request_errors: ''
+ response_code: '200'
+ success: true
url: https://www.url1.com/
+ created_at: '2021-10-29T12:28:04.234Z'
+ updated_at: '2021-10-29T12:28:04.234Z'
+ relationships:
+ subscriber:
+ data:
+ id: '1'
+ type: subscriber
+ - id: '2'
+ type: event
+ attributes:
+ execution_time: 16446
+ name: order.canceled
+ request_errors: ''
+ response_code: '200'
+ success: true
+ url: https://www.url2.com/
+ created_at: '2021-10-29T12:28:04.239Z'
+ updated_at: '2021-10-29T12:28:04.239Z'
+ 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=
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ "/api/v2/platform/webhooks/subscribers":
+ get:
+ summary: Return a list of Webhooks Subscribers
+ tags:
+ - Webhooks Subscribers
+ security:
+ - bearer_auth: []
+ description: Returns a list of Webhooks Subscribers
+ operationId: webhooks-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-10-28T19:36:30.208Z'
- updated_at: '2021-10-28T19:36:30.208Z'
- - id: '2'
+ created_at: '2021-10-29T12:28:04.346Z'
+ updated_at: '2021-10-29T12:28:04.346Z'
+ - id: '6'
type: subscriber
attributes:
- url: https://www.url2.com/
+ url: https://www.url6.com/
active: true
subscriptions:
- "*"
- created_at: '2021-10-28T19:36:30.211Z'
- updated_at: '2021-10-28T19:36:30.211Z'
+ created_at: '2021-10-29T12:28:04.348Z'
+ updated_at: '2021-10-29T12:28:04.348Z'
meta:
count: 2
total_count: 2
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
- next: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
- prev: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
- last: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
- first: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
+ 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=
'401':
description: Authentication Failed
content:
@@ -9948,13 +10078,13 @@ paths:
value:
error: The access token is invalid
post:
- summary: Create a Webhook Subscriber
+ summary: Create a Webhooks Subscriber
tags:
- - Webhook Subscribers
+ - Webhooks Subscribers
security:
- bearer_auth: []
- description: Creates a Webhook Subscriber
- operationId: create-webhook-subscriber
+ description: Creates a Webhooks Subscriber
+ operationId: create-webhooks-subscriber
parameters: []
responses:
'201':
@@ -9965,15 +10095,15 @@ paths:
Example:
value:
data:
- id: '5'
+ id: '9'
type: subscriber
attributes:
- url: https://www.url5.com/
+ url: https://www.url9.com/
active: true
subscriptions:
- "*"
- created_at: '2021-10-28T19:36:30.344Z'
- updated_at: '2021-10-28T19:36:30.344Z'
+ created_at: '2021-10-29T12:28:04.460Z'
+ updated_at: '2021-10-29T12:28:04.460Z'
'422':
description: invalid request
content:
@@ -9992,16 +10122,16 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook_subscriber_params"
+ "$ref": "#/components/schemas/webhooks_subscriber_params"
"/api/v2/platform/webhooks/subscribers/{id}":
get:
- summary: Return a Webhook Subscriber
+ summary: Return a Webhooks Subscriber
tags:
- - Webhook Subscribers
+ - Webhooks Subscribers
security:
- bearer_auth: []
- description: Returns a Webhook Subscriber
- operationId: show-webhook-subscriber
+ description: Returns a Webhooks Subscriber
+ operationId: show-webhooks-subscriber
parameters:
- name: id
in: path
@@ -10017,15 +10147,15 @@ paths:
Example:
value:
data:
- id: '6'
+ id: '10'
type: subscriber
attributes:
- url: https://www.url6.com/
+ url: https://www.url10.com/
active: true
subscriptions:
- "*"
- created_at: '2021-10-28T19:36:30.377Z'
- updated_at: '2021-10-28T19:36:30.377Z'
+ created_at: '2021-10-29T12:28:04.532Z'
+ updated_at: '2021-10-29T12:28:04.532Z'
'404':
description: Record not found
content:
@@ -10043,13 +10173,13 @@ paths:
value:
error: The access token is invalid
patch:
- summary: Update a Webhook Subscriber
+ summary: Update a Webhooks Subscriber
tags:
- - Webhook Subscribers
+ - Webhooks Subscribers
security:
- bearer_auth: []
- description: Updates a Webhook Subscriber
- operationId: update-webhook-subscriber
+ description: Updates a Webhooks Subscriber
+ operationId: update-webhooks-subscriber
parameters:
- name: id
in: path
@@ -10065,15 +10195,15 @@ paths:
Example:
value:
data:
- id: '8'
+ id: '12'
type: subscriber
attributes:
- url: https://www.url8.com/
+ url: https://www.url12.com/
active: true
subscriptions:
- "*"
- created_at: '2021-10-28T19:36:30.424Z'
- updated_at: '2021-10-28T19:36:30.424Z'
+ created_at: '2021-10-29T12:28:04.648Z'
+ updated_at: '2021-10-29T12:28:04.648Z'
'422':
description: invalid request
content:
@@ -10108,15 +10238,15 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/webhook_subscriber_params"
+ "$ref": "#/components/schemas/webhooks_subscriber_params"
delete:
- summary: Delete a Webhook Subscriber
+ summary: Delete a Webhooks Subscriber
tags:
- - Webhook Subscribers
+ - Webhooks Subscribers
security:
- bearer_auth: []
- description: Deletes a Webhook Subscriber
- operationId: delete-webhook-subscriber
+ description: Deletes a Webhooks Subscriber
+ operationId: delete-webhooks-subscriber
parameters:
- name: id
in: path
@@ -10182,8 +10312,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-28T19:36:30.673Z'
- updated_at: '2021-10-28T19:36:30.673Z'
+ created_at: '2021-10-29T12:28:05.226Z'
+ updated_at: '2021-10-29T12:28:05.226Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -10197,8 +10327,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-28T19:36:30.727Z'
- updated_at: '2021-10-28T19:36:30.727Z'
+ created_at: '2021-10-29T12:28:05.350Z'
+ updated_at: '2021-10-29T12:28:05.350Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -10212,8 +10342,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-28T19:36:30.787Z'
- updated_at: '2021-10-28T19:36:30.787Z'
+ created_at: '2021-10-29T12:28:05.484Z'
+ updated_at: '2021-10-29T12:28:05.484Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -10227,8 +10357,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-28T19:36:30.842Z'
- updated_at: '2021-10-28T19:36:30.842Z'
+ created_at: '2021-10-29T12:28:05.607Z'
+ updated_at: '2021-10-29T12:28:05.607Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -10285,8 +10415,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-28T19:36:31.223Z'
- updated_at: '2021-10-28T19:36:31.223Z'
+ created_at: '2021-10-29T12:28:06.573Z'
+ updated_at: '2021-10-29T12:28:06.573Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -10352,8 +10482,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-28T19:36:31.448Z'
- updated_at: '2021-10-28T19:36:31.448Z'
+ created_at: '2021-10-29T12:28:07.118Z'
+ updated_at: '2021-10-29T12:28:07.118Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -10413,8 +10543,8 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-10-28T19:36:31.809Z'
- updated_at: '2021-10-28T19:36:31.818Z'
+ created_at: '2021-10-29T12:28:07.995Z'
+ updated_at: '2021-10-29T12:28:08.015Z'
display_total: "$59.97"
display_price: "$19.99"
price: '19.99'
@@ -10537,9 +10667,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-10-28T19:36:32.548Z'
- updated_at: '2021-10-28T19:36:32.548Z'
- token: iasvTx1u4sDaMccwZiXMC3ay
+ created_at: '2021-10-29T12:28:09.999Z'
+ updated_at: '2021-10-29T12:28:09.999Z'
+ token: c765mzZHkXZ3scoTJR8dNNXT
variant_included: false
relationships:
wished_items:
@@ -10554,9 +10684,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-10-28T19:36:32.550Z'
- updated_at: '2021-10-28T19:36:32.550Z'
- token: cGDi7CgzXBMV3o3oexukDW9g
+ created_at: '2021-10-29T12:28:10.004Z'
+ updated_at: '2021-10-29T12:28:10.004Z'
+ token: JFszEEqa1o1Fgk1fvGeoaSqz
variant_included: false
relationships:
wished_items:
@@ -10614,9 +10744,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-10-28T19:36:33.035Z'
- updated_at: '2021-10-28T19:36:33.035Z'
- token: hTi5Twg4Rx7meBiZpHrL8Nb1
+ created_at: '2021-10-29T12:28:11.229Z'
+ updated_at: '2021-10-29T12:28:11.229Z'
+ token: z5MJxu15E5hJtEko3jhd6fti
variant_included: false
relationships:
wished_items:
@@ -10676,9 +10806,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-10-28T19:36:33.072Z'
- updated_at: '2021-10-28T19:36:33.072Z'
- token: y8mYjhJJNihWuynKd9jW3PJy
+ created_at: '2021-10-29T12:28:11.323Z'
+ updated_at: '2021-10-29T12:28:11.323Z'
+ token: xNznXcbUTZGJ7LMm4AH7Rxfq
variant_included: false
relationships:
wished_items:
@@ -10735,9 +10865,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-10-28T19:36:33.139Z'
- updated_at: '2021-10-28T19:36:33.148Z'
- token: wfSqdXfQxxM7Y2DJ7GjKkL9H
+ created_at: '2021-10-29T12:28:11.473Z'
+ updated_at: '2021-10-29T12:28:11.502Z'
+ token: zXSBRFPzi9BnnTk5JMvyew3h
variant_included: false
relationships:
wished_items:
@@ -10834,6 +10964,7 @@ tags:
- name: Shipping Methods
- name: Taxons
- name: Users
+- name: Webhook Events
- name: Webhook Subscribers
- name: Wishlists
- name: Wished Items
@@ -10994,7 +11125,35 @@ components:
- name
- presentation
x-internal: true
- webhook_subscriber_params:
+ webhooks_event_params:
+ type: object
+ properties:
+ execution_time:
+ type: integer
+ example: 1234
+ name:
+ type: string
+ example: order.canceled
+ request_errors:
+ type: string
+ example: "[SPREE WEBHOOKS] 'order.canceled' can not make a request to 'http://google.com/'"
+ response_code:
+ type: string
+ example: '200'
+ subscriber_id:
+ type: string
+ success:
+ type: boolean
+ example: true
+ url:
+ type: string
+ example: https://www.url.com/
+ required:
+ - name
+ - subscriber_id
+ - url
+ x-internal: true
+ webhooks_subscriber_params:
type: object
properties:
active:
@@ -11003,14 +11162,20 @@ components:
default: false
subscriptions:
type: array
+ items:
+ allOf:
+ - type: string
+ example: order.completed
example:
- - order.create
- - order.complete
- - product.update
+ - order.created
+ - order.completed
+ - product.updated
default: []
url:
type: string
example: https://www.url.com/
+ required:
+ - url
x-internal: true
order_params:
type: object
@@ -11041,7 +11206,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-10-28 19:35:59 UTC
+ example: 2021-10-29 12:26:54 UTC
bill_address_id:
type: string
example: '1'
@@ -11109,7 +11274,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-10-28 19:35:59 UTC
+ example: 2021-10-29 12:26:54 UTC
confirmation_delivered:
type: boolean
example: true
diff --git a/api/spec/factories/spree/webhooks/event_factory.rb b/api/spec/factories/spree/webhooks/event_factory.rb
index 3c1434e90f..77576e22ed 100644
--- a/api/spec/factories/spree/webhooks/event_factory.rb
+++ b/api/spec/factories/spree/webhooks/event_factory.rb
@@ -7,6 +7,11 @@ FactoryBot.define do
request_errors { '' }
sequence(:url) { |n| "https://www.url#{n}.com/" }
+ trait :failed do
+ response_code { '500' }
+ success { false }
+ end
+
trait :successful do
response_code { '200' }
success { true }
diff --git a/api/spec/factories/spree/webhooks/subscriber_factory.rb b/api/spec/factories/spree/webhooks/subscriber_factory.rb
index c9251d3d52..431d12a674 100644
--- a/api/spec/factories/spree/webhooks/subscriber_factory.rb
+++ b/api/spec/factories/spree/webhooks/subscriber_factory.rb
@@ -5,5 +5,9 @@ FactoryBot.define do
trait :active do
active { true }
end
+
+ trait :inactive do
+ active { false }
+ end
end
end
diff --git a/api/spec/integration/api/v2/platform/webhooks/events_spec.rb b/api/spec/integration/api/v2/platform/webhooks/events_spec.rb
new file mode 100644
index 0000000000..810eb120a3
--- /dev/null
+++ b/api/spec/integration/api/v2/platform/webhooks/events_spec.rb
@@ -0,0 +1,23 @@
+require 'swagger_helper'
+require 'spec_helper'
+
+describe 'WebhooksEvents API', swagger: true do
+ include_context 'Platform API v2'
+
+ resource_name = 'Webhook Event'
+ options = {
+ include_example: 'subscriber',
+ filter_examples: [{ name: 'filter[name_eq]', example: 'order.canceled' },
+ { name: 'filter[request_errors_cont]', example: 'google' },
+ { name: 'filter[response_code_eq]', example: '200' },
+ { name: 'filter[success_eq]', example: true },
+ { name: 'filter[url_cont]', example: 'mysite' }]
+ }
+
+ let(:records_list) { create_list(:event, 2, :successful) }
+ let(:event) { build(:event, :successful) }
+
+ path '/api/v2/platform/webhooks/events' do
+ include_examples 'GET records list', resource_name, options
+ end
+end
diff --git a/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb b/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb
index a8276b6097..e8f3d9afcc 100644
--- a/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb
+++ b/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb
@@ -4,8 +4,12 @@ require 'spec_helper'
describe 'WebhooksSubscribers API', swagger: true do
include_context 'Platform API v2'
- resource_name = 'Webhook Subscriber'
- options = {}
+ resource_name = 'Webhooks Subscriber'
+ options = {
+ include_examples: 'events',
+ filter_examples: [{ name: 'filter[active_eq]', example: true },
+ { name: 'filter[url_cont]', example: 'mysite' }]
+ }
let(:id) { subscriber.tap(&:save).id }
let(:invalid_param_value) { { url: '' } }
diff --git a/api/spec/requests/spree/api/v2/platform/webhooks/events_spec.rb b/api/spec/requests/spree/api/v2/platform/webhooks/events_spec.rb
new file mode 100644
index 0000000000..959b4ebd36
--- /dev/null
+++ b/api/spec/requests/spree/api/v2/platform/webhooks/events_spec.rb
@@ -0,0 +1,99 @@
+require 'spec_helper'
+
+describe 'Platform API v2 Webhooks Events spec', type: :request do
+ include_context 'API v2 tokens'
+ include_context 'Platform API v2'
+
+ let(:bearer_token) { { 'Authorization' => valid_authorization } }
+ let(:type) { 'event' }
+
+ describe '#index' do
+ context 'filtering' do
+ let(:data_ids) { json_response['data'].pluck(:id) }
+
+ context 'with no params' do
+ before do
+ create_list(:event, 2)
+ get "/api/v2/platform/webhooks/events", headers: bearer_token
+ end
+
+ it_behaves_like 'returns 200 HTTP status'
+
+ it 'returns all events' do
+ expect(json_response['data'].count).to eq(2)
+ expect(json_response['data'].first).to have_type(type)
+ expect(json_response['data'].second).to have_type(type)
+ end
+ end
+
+ context 'by name' do
+ let!(:event_1) { create(:event, name: name_filter) }
+ let!(:event_2) { create(:event, name: 'order.created') }
+ let(:name_filter) { 'order.canceled' }
+
+ before { get "/api/v2/platform/webhooks/events?filter[name_eq]=#{name_filter}", headers: bearer_token }
+
+ it 'returns only the event matching the given name' do
+ expect(json_response['data'].count).to eq(1)
+ expect(data_ids).not_to include(event_2.id)
+ expect(data_ids).to match_array([event_1.id.to_s])
+ end
+ end
+
+ context 'by request_errors' do
+ let!(:event_1) { create(:event, :failed, request_errors: "[SPREE WEBHOOKS] 'order.canceled' can not make a request to 'http://google.com/'") }
+ let!(:event_2) { create(:event, :successful) }
+
+ before { get "/api/v2/platform/webhooks/events?filter[request_errors_cont]=google", headers: bearer_token }
+
+ it 'returns only the event matching the given name' do
+ expect(json_response['data'].count).to eq(1)
+ expect(data_ids).not_to include(event_2.id)
+ expect(data_ids).to match_array([event_1.id.to_s])
+ end
+ end
+
+ context 'by response_code' do
+ let!(:event_1) { create(:event, response_code: response_code_filter) }
+ let!(:event_2) { create(:event, response_code: '301') }
+ let(:response_code_filter) { '200' }
+
+ before { get "/api/v2/platform/webhooks/events?filter[response_code_eq]=#{response_code_filter}", headers: bearer_token }
+
+ it 'returns only the event matching the given name' do
+ expect(json_response['data'].count).to eq(1)
+ expect(data_ids).not_to include(event_2.id)
+ expect(data_ids).to match_array([event_1.id.to_s])
+ end
+ end
+
+ context 'by success' do
+ let!(:event_success) { create(:event, :successful) }
+ let!(:event_fail) { create(:event, :failed) }
+ let(:success_filter) { true }
+
+ before { get "/api/v2/platform/webhooks/events?filter[success_eq]=#{success_filter}", headers: bearer_token }
+
+ it 'returns only the event matching the given name' do
+ expect(json_response['data'].count).to eq(1)
+ expect(data_ids).not_to include(event_fail.id)
+ expect(data_ids).to match_array([event_success.id.to_s])
+ end
+ end
+
+ context 'by url' do
+ let!(:event_1) { create(:event, url: 'https://mysite.com/spree_webhooks') }
+ let!(:event_2) { create(:event, url: 'http://localhost.com/') }
+ let(:url_filter) { 'mysite' }
+
+ before { get "/api/v2/platform/webhooks/events?filter[url_cont]=#{url_filter}", headers: bearer_token }
+
+ it 'returns only the event matching the given name' do
+ expect(json_response['data'].count).to eq(1)
+ expect(data_ids).not_to include(event_2.id)
+ expect(data_ids).to match_array([event_1.id.to_s])
+ end
+ end
+ end
+ end
+end
diff --git a/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb b/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb
index 3b2280c544..b552459d51 100644
--- a/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb
+++ b/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb
@@ -1,31 +1,97 @@
require 'spec_helper'
describe 'Platform API v2 Webhooks Subscribers spec', type: :request do
- subject { post '/api/v2/platform/webhooks/subscribers', headers: bearer_token, params: params }
-
include_context 'API v2 tokens'
include_context 'Platform API v2'
- let(:active) { true }
let(:bearer_token) { { 'Authorization' => valid_authorization } }
- let(:events) { ['order.created', 'order.placed', 'product.updated'] }
- let(:params) { { subscriber: { active: true, url: url, subscriptions: events } } }
- let(:url) { 'https://www.url.com/' }
+ let(:type) { 'subscriber' }
+ let(:url) { 'https://www.mysite.com/spree_webhooks' }
+
+ describe '#index' do
+ context 'filtering' do
+ let(:data_ids) { json_response['data'].pluck(:id) }
+
+ context 'with no params' do
+ before do
+ create_list(:subscriber, 2)
+ get "/api/v2/platform/webhooks/subscribers", headers: bearer_token
+ end
+
+ it_behaves_like 'returns 200 HTTP status'
+
+ it 'returns all subscribers' do
+ expect(json_response['data'].count).to eq(2)
+ expect(json_response['data'].first).to have_type(type)
+ expect(json_response['data'].second).to have_type(type)
+ end
+ end
+
+ context 'by active' do
+ let!(:subscriber_active) { create(:subscriber, :active) }
+ let!(:subscriber_inactive) { create(:subscriber, :inactive) }
+
+ before { get "/api/v2/platform/webhooks/subscribers?filter[active_eq]=#{active}", headers: bearer_token }
+
+ context 'active' do
+ let(:active) { true }
+ let(:active_subscribers) { Spree::Webhooks::Subscriber.active }
+
+ it 'returns only active subscribers' do
+ expect(json_response['data'].count).to eq(active_subscribers.count)
+ expect(data_ids).not_to include(subscriber_inactive.id)
+ expect(data_ids).to match_array(active_subscribers.ids.map(&:to_s))
+ end
+ end
+
+ context 'inactive' do
+ let(:active) { false }
+ let(:inactive_subscribers) { Spree::Webhooks::Subscriber.inactive }
+
+ it 'returns only active subscribers' do
+ expect(json_response['data'].count).to eq(inactive_subscribers.count)
+ expect(data_ids).not_to include(subscriber_active.id)
+ expect(data_ids).to match_array(inactive_subscribers.ids.map(&:to_s))
+ end
+ end
+ end
+
+ context 'by url' do
+ let!(:subscriber) { create(:subscriber, url: url) }
+ let!(:another_subscriber) { create(:subscriber, url: 'http://localhost/') }
+
+ before { get "/api/v2/platform/webhooks/subscribers?filter[url_cont]=spree_webhooks", headers: bearer_token }
+
+ context 'matching the given term' do
+ it 'returns subscribers only for the given url' do
+ expect(json_response['data'].count).to eq(1)
+ expect(data_ids).not_to include(another_subscriber.id)
+ expect(data_ids).to match_array([subscriber.id.to_s])
+ end
+ end
+ end
+ end
+ end
+
+ context '#create' do
+ let(:active) { true }
+ let(:events) { ['order.created', 'order.placed', 'product.updated'] }
+ let(:params) { { subscriber: { active: true, url: url, subscriptions: events } } }
- context 'valid request' do
it 'returns status created' do
- subject
+ post '/api/v2/platform/webhooks/subscribers', headers: bearer_token, params: params
expect(response).to have_http_status :created
end
it 'creates a subscriber' do
- expect { subject }.to(
- change { Spree::Webhooks::Subscriber.count }.from(0).to(1).and(
- change { Spree::Webhooks::Subscriber.pluck(:active, :url, :subscriptions) }.
- from([]).
- to([[active, url, events]])
- )
- )
+ expect {
+ post '/api/v2/platform/webhooks/subscribers', headers: bearer_token, params: params
+ }.to change {
+ Spree::Webhooks::Subscriber.
+ all.
+ as_json(except: %i[created_at id preferences updated_at]).
+ map(&:values)
+ }.from([]).to([[url, active, events]])
end
end
end
diff --git a/api/spec/serializers/spree/api/v2/platform/webhooks/event_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/webhooks/event_serializer_spec.rb
new file mode 100644
index 0000000000..199326881a
--- /dev/null
+++ b/api/spec/serializers/spree/api/v2/platform/webhooks/event_serializer_spec.rb
@@ -0,0 +1,38 @@
+require 'spec_helper'
+
+describe Spree::Api::V2::Platform::Webhooks::EventSerializer do
+ include_context 'API v2 serializers params'
+
+ subject { described_class.new(resource, params: serializer_params).serializable_hash }
+
+ let(:resource) { create(type, subscriber: subscriber) }
+ let(:subscriber) { create(:subscriber) }
+ let(:type) { :event }
+
+ it do
+ expect(subject).to eq(
+ data: {
+ id: resource.id.to_s,
+ type: type,
+ attributes: {
+ created_at: resource.created_at,
+ execution_time: resource.execution_time,
+ name: resource.name,
+ request_errors: resource.request_errors,
+ response_code: resource.response_code,
+ success: resource.success,
+ updated_at: resource.updated_at,
+ url: resource.url
+ },
+ relationships: {
+ subscriber: {
+ data: {
+ id: subscriber.id.to_s,
+ type: :subscriber
+ }
+ }
+ }
+ }
+ )
+ end
+end
diff --git a/api/spec/serializers/spree/api/v2/platform/webhooks/subscriber_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/webhooks/subscriber_serializer_spec.rb
index b9bad664bd..ad7384c65a 100644
--- a/api/spec/serializers/spree/api/v2/platform/webhooks/subscriber_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/webhooks/subscriber_serializer_spec.rb
@@ -5,7 +5,7 @@ describe Spree::Api::V2::Platform::Webhooks::SubscriberSerializer do
subject { described_class.new(resource, params: serializer_params).serializable_hash }
- let(:resource) { create(:subscriber) }
+ let(:resource) { create(type) }
let(:type) { :subscriber }
it do
diff --git a/api/spec/services/spree/webhooks/subscribers/handle_request_spec.rb b/api/spec/services/spree/webhooks/subscribers/handle_request_spec.rb
index 4d55e302c3..b45b3b4b43 100644
--- a/api/spec/services/spree/webhooks/subscribers/handle_request_spec.rb
+++ b/api/spec/services/spree/webhooks/subscribers/handle_request_spec.rb
@@ -6,10 +6,8 @@ describe Spree::Webhooks::Subscribers::HandleRequest do
let(:body) { { data: {} }.to_json }
let(:event) { 'order.canceled' }
- let(:headers) { { 'Content-Type' => 'application/json' } }
let(:request_double) { instance_double(Spree::Webhooks::Subscribers::MakeRequest) }
let(:subscriber) { create(:subscriber, url: url) }
- let(:subscriber_id) { subscriber.id }
let(:url) { 'http://google.com/' }
shared_examples 'logging and creating a webhooks event' do |with_log_level:|
@@ -26,6 +24,15 @@ describe Spree::Webhooks::Subscribers::HandleRequest do
)
end
+ it 'debug logs before the request' do
+ allow(Rails.logger).to receive(:debug)
+ subject.call
+ message_fst = "[SPREE WEBHOOKS] 'order.canceled' sending to 'http://google.com/'"
+ message_snd = "[SPREE WEBHOOKS] 'order.canceled' body: #{body}"
+ expect(Rails.logger).to have_received(:debug).with(message_fst)
+ expect(Rails.logger).to have_received(:debug).with(message_snd)
+ end
+
it "#{with_log_level} logs before the request" do
allow(Rails.logger).to receive(with_log_level)
subject.call
@@ -35,7 +42,7 @@ describe Spree::Webhooks::Subscribers::HandleRequest do
it 'creates a webhooks event with the process info' do
expect { subject.call }.to change {
Spree::Webhooks::Event.all.as_json(except: %i[created_at id preferences updated_at]).map(&:values)
- }.from([]).to([[execution_time, event, log_msg, response_code.to_s, subscriber_id, success, url]])
+ }.from([]).to([[execution_time, event, log_msg, response_code.to_s, subscriber.id, success, url]])
end
it { expect(subject.call).to eq(nil) }
@@ -57,15 +64,6 @@ describe Spree::Webhooks::Subscribers::HandleRequest do
before { stub_request(:post, url) }
- it 'debug logs before the request' do
- allow(Rails.logger).to receive(:debug)
- subject.call
- message_fst = "[SPREE WEBHOOKS] 'order.canceled' sending to 'http://google.com/'"
- message_snd = "[SPREE WEBHOOKS] 'order.canceled' body: #{body}"
- expect(Rails.logger).to have_received(:debug).with(message_fst)
- expect(Rails.logger).to have_received(:debug).with(message_snd)
- end
-
context 'with a failed request' do
let(:execution_time) { 0 }
let(:failed_request) { true }
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 2d6f56142e..3d76937fd1 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -61,6 +61,7 @@ RSpec.configure do |config|
{ name: 'Shipping Methods' },
{ name: 'Taxons' },
{ name: 'Users' },
+ { name: 'Webhook Events' },
{ name: 'Webhook Subscribers' },
{ name: 'Wishlists' },
{ name: 'Wished Items' },
@@ -150,13 +151,37 @@ RSpec.configure do |config|
required: %w[name presentation],
'x-internal': true
},
- webhook_subscriber_params: {
+ webhooks_event_params: {
+ type: :object,
+ properties: {
+ execution_time: { type: :integer, example: 1_234 },
+ name: { type: :string, example: 'order.canceled' },
+ request_errors: { type: :string, example: "[SPREE WEBHOOKS] 'order.canceled' can not make a request to 'http://google.com/'" },
+ response_code: { type: :string, example: '200' },
+ subscriber_id: { type: :string },
+ success: { type: :boolean, example: true },
+ url: { type: :string, example: 'https://www.url.com/' }
+ },
+ required: %w[name subscriber_id url],
+ 'x-internal': true
+ },
+ webhooks_subscriber_params: {
type: :object,
properties: {
active: { type: :boolean, example: true, default: false },
- subscriptions: { type: :array, example: ['order.create', 'order.complete', 'product.update'], default: [] },
+ subscriptions: {
+ type: :array,
+ items: {
+ allOf: [
+ { type: :string, example: 'order.completed' }
+ ]
+ },
+ example: ['order.created', 'order.completed', 'product.updated'],
+ default: []
+ },
url: { type: :string, example: 'https://www.url.com/' }
},
+ required: %w[url],
'x-internal': true
},
order_params: {