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 payment source in Order & Payment JSON responses (#13609)

Damian Legawiecd1aa5630d186
diff --git a/backend/engines/api/app/serializers/spree/api/v3/payment_serializer.rb b/backend/engines/api/app/serializers/spree/api/v3/payment_serializer.rb
index 116dd452d1..d386cb25c3 100644
--- a/backend/engines/api/app/serializers/spree/api/v3/payment_serializer.rb
+++ b/backend/engines/api/app/serializers/spree/api/v3/payment_serializer.rb
@@ -3,7 +3,10 @@ module Spree
module V3
class PaymentSerializer < BaseSerializer
typelize state: :string, payment_method_id: :string, response_code: 'string | null',
- number: :string, amount: :string, display_amount: :string
+ number: :string, amount: :string, display_amount: :string,
+ source_type: "'credit_card' | 'store_credit' | 'payment_source' | null",
+ source_id: 'string | null',
+ source: 'StoreCreditCard | StoreStoreCredit | StorePaymentSource | null'
attribute :payment_method_id do |payment|
payment.payment_method&.prefixed_id
@@ -12,6 +15,38 @@ module Spree
attributes :state, :response_code, :number, :amount, :display_amount,
created_at: :iso8601, updated_at: :iso8601
+ attribute :source_type do |payment|
+ case payment.source_type
+ when 'Spree::CreditCard'
+ 'credit_card'
+ when 'Spree::StoreCredit'
+ 'store_credit'
+ when nil
+ nil
+ else
+ 'payment_source'
+ end
+ end
+
+ attribute :source_id do |payment|
+ payment.source&.prefixed_id
+ end
+
+ attribute :source do |payment|
+ next nil if payment.source.blank?
+
+ serializer = case payment.source_type
+ when 'Spree::CreditCard'
+ Spree.api.credit_card_serializer
+ when 'Spree::StoreCredit'
+ Spree.api.store_credit_serializer
+ else
+ Spree.api.payment_source_serializer
+ end
+
+ serializer.new(payment.source).to_h
+ end
+
one :payment_method, resource: Spree.api.payment_method_serializer
end
end
diff --git a/backend/engines/api/app/serializers/spree/api/v3/payment_source_serializer.rb b/backend/engines/api/app/serializers/spree/api/v3/payment_source_serializer.rb
new file mode 100644
index 0000000000..186464879a
--- /dev/null
+++ b/backend/engines/api/app/serializers/spree/api/v3/payment_source_serializer.rb
@@ -0,0 +1,18 @@
+module Spree
+ module Api
+ module V3
+ class PaymentSourceSerializer < BaseSerializer
+ typelize gateway_payment_profile_id: 'string | null',
+ public_metadata: 'Record<string, unknown> | null'
+
+ attribute :gateway_payment_profile_id do |source|
+ source.try(:gateway_payment_profile_id)
+ end
+
+ attribute :public_metadata do |source|
+ source.try(:public_metadata)
+ end
+ end
+ end
+ end
+end
diff --git a/backend/engines/api/app/serializers/spree/api/v3/store_credit_serializer.rb b/backend/engines/api/app/serializers/spree/api/v3/store_credit_serializer.rb
new file mode 100644
index 0000000000..2a87963dff
--- /dev/null
+++ b/backend/engines/api/app/serializers/spree/api/v3/store_credit_serializer.rb
@@ -0,0 +1,37 @@
+module Spree
+ module Api
+ module V3
+ class StoreCreditSerializer < BaseSerializer
+ typelize amount: :string, amount_used: :string, amount_remaining: :string,
+ display_amount: :string, display_amount_used: :string, display_amount_remaining: :string,
+ currency: :string
+
+ attribute :amount do |store_credit|
+ store_credit.amount.to_s
+ end
+
+ attribute :amount_used do |store_credit|
+ store_credit.amount_used.to_s
+ end
+
+ attribute :amount_remaining do |store_credit|
+ store_credit.amount_remaining.to_s
+ end
+
+ attribute :display_amount do |store_credit|
+ store_credit.display_amount.to_s
+ end
+
+ attribute :display_amount_used do |store_credit|
+ store_credit.display_amount_used.to_s
+ end
+
+ attribute :display_amount_remaining do |store_credit|
+ store_credit.display_amount_remaining.to_s
+ end
+
+ attributes :currency
+ end
+ end
+ end
+end
diff --git a/backend/engines/api/lib/spree/api/dependencies.rb b/backend/engines/api/lib/spree/api/dependencies.rb
index 58279b3019..cb735826b2 100644
--- a/backend/engines/api/lib/spree/api/dependencies.rb
+++ b/backend/engines/api/lib/spree/api/dependencies.rb
@@ -103,6 +103,7 @@ module Spree
payment_serializer: 'Spree::Api::V3::PaymentSerializer',
payment_session_serializer: 'Spree::Api::V3::PaymentSessionSerializer',
payment_source_serializer: 'Spree::Api::V3::PaymentSourceSerializer',
+ store_credit_serializer: 'Spree::Api::V3::StoreCreditSerializer',
shipment_serializer: 'Spree::Api::V3::ShipmentSerializer',
address_serializer: 'Spree::Api::V3::AddressSerializer',
customer_serializer: 'Spree::Api::V3::CustomerSerializer',
diff --git a/backend/engines/api/lib/spree/api/openapi/typelizer_converter.rb b/backend/engines/api/lib/spree/api/openapi/typelizer_converter.rb
index 308cfe320e..8dcf7c7765 100644
--- a/backend/engines/api/lib/spree/api/openapi/typelizer_converter.rb
+++ b/backend/engines/api/lib/spree/api/openapi/typelizer_converter.rb
@@ -173,9 +173,17 @@ module Spree
return schema
end
- # Multiple non-null types - use oneOf
+ # String literal unions (e.g., 'credit_card' | 'store_credit' | 'payment_source')
+ if types.all? { |t| t.match?(/\A'[^']*'\z/) }
+ schema = { type: :string, enum: types.map { |t| t.delete("'") } }
+ schema[:nullable] = true if nullable
+ return schema
+ end
+
+ # Multiple non-null types - use anyOf (allows overlapping schemas
+ # which is common with polymorphic associations)
{
- oneOf: types.map { |t| property_type_to_schema(t) },
+ anyOf: types.map { |t| property_type_to_schema(t) },
nullable: nullable || nil
}.compact
end
diff --git a/backend/engines/api/spec/serializers/spree/api/v3/payment_serializer_spec.rb b/backend/engines/api/spec/serializers/spree/api/v3/payment_serializer_spec.rb
new file mode 100644
index 0000000000..4623c22919
--- /dev/null
+++ b/backend/engines/api/spec/serializers/spree/api/v3/payment_serializer_spec.rb
@@ -0,0 +1,119 @@
+require 'spec_helper'
+
+RSpec.describe Spree::Api::V3::PaymentSerializer do
+ let(:store) { @default_store }
+ let(:base_params) { { store: store, currency: store.default_currency } }
+
+ subject { described_class.new(payment, params: base_params).to_h }
+
+ describe 'serialized attributes' do
+ let(:payment) { create(:payment) }
+
+ it 'includes standard attributes' do
+ expect(subject).to include(
+ 'id' => payment.prefixed_id,
+ 'state' => 'checkout',
+ 'number' => payment.number,
+ 'response_code' => '12345'
+ )
+ expect(subject['amount']).to be_present
+ end
+
+ it 'includes prefixed payment_method_id' do
+ expect(subject['payment_method_id']).to eq(payment.payment_method.prefixed_id)
+ end
+
+ it 'includes display_amount' do
+ expect(subject['display_amount']).to be_present
+ end
+
+ it 'includes timestamp attributes' do
+ expect(subject).to have_key('created_at')
+ expect(subject).to have_key('updated_at')
+ end
+
+ it 'includes payment_method association' do
+ expect(subject['payment_method']).to be_a(Hash)
+ expect(subject['payment_method']['id']).to eq(payment.payment_method.prefixed_id)
+ end
+ end
+
+ describe 'source serialization' do
+ context 'with credit card source' do
+ let(:payment) { create(:payment) }
+
+ it 'returns credit_card as source_type' do
+ expect(subject['source_type']).to eq('credit_card')
+ end
+
+ it 'returns prefixed source_id' do
+ expect(subject['source_id']).to eq(payment.source.prefixed_id)
+ end
+
+ it 'serializes the credit card source' do
+ expect(subject['source']).to be_a(Hash)
+ expect(subject['source']['id']).to eq(payment.source.prefixed_id)
+ expect(subject['source']).to have_key('cc_type')
+ expect(subject['source']).to have_key('last_digits')
+ expect(subject['source']).to have_key('month')
+ expect(subject['source']).to have_key('year')
+ expect(subject['source']).to have_key('name')
+ end
+ end
+
+ context 'with payment source (non-credit card)' do
+ let(:payment) { create(:custom_payment) }
+
+ it 'returns payment_source as source_type' do
+ expect(subject['source_type']).to eq('payment_source')
+ end
+
+ it 'returns prefixed source_id' do
+ expect(subject['source_id']).to eq(payment.source.prefixed_id)
+ end
+
+ it 'serializes the payment source' do
+ expect(subject['source']).to be_a(Hash)
+ expect(subject['source']['id']).to eq(payment.source.prefixed_id)
+ expect(subject['source']).to have_key('gateway_payment_profile_id')
+ expect(subject['source']).to have_key('public_metadata')
+ end
+ end
+
+ context 'with store credit source' do
+ let(:payment) { create(:store_credit_payment) }
+
+ it 'returns store_credit as source_type' do
+ expect(subject['source_type']).to eq('store_credit')
+ end
+
+ it 'returns prefixed source_id' do
+ expect(subject['source_id']).to eq(payment.source.prefixed_id)
+ end
+
+ it 'serializes the store credit source' do
+ expect(subject['source']).to be_a(Hash)
+ expect(subject['source']['id']).to eq(payment.source.prefixed_id)
+ expect(subject['source']).to have_key('amount_remaining')
+ expect(subject['source']).to have_key('display_amount_remaining')
+ expect(subject['source']).to have_key('currency')
+ end
+ end
+
+ context 'without source (e.g. check payment)' do
+ let(:payment) { create(:check_payment) }
+
+ it 'returns nil for source_type' do
+ expect(subject['source_type']).to be_nil
+ end
+
+ it 'returns nil for source_id' do
+ expect(subject['source_id']).to be_nil
+ end
+
+ it 'returns nil for source' do
+ expect(subject['source']).to be_nil
+ end
+ end
+ end
+end
diff --git a/backend/engines/api/spec/serializers/spree/api/v3/payment_source_serializer_spec.rb b/backend/engines/api/spec/serializers/spree/api/v3/payment_source_serializer_spec.rb
new file mode 100644
index 0000000000..de386024f6
--- /dev/null
+++ b/backend/engines/api/spec/serializers/spree/api/v3/payment_source_serializer_spec.rb
@@ -0,0 +1,50 @@
+require 'spec_helper'
+
+RSpec.describe Spree::Api::V3::PaymentSourceSerializer do
+ let(:store) { @default_store }
+ let(:payment_method) { create(:custom_payment_method, stores: [store]) }
+ let(:payment_source) do
+ create(:payment_source,
+ payment_method: payment_method,
+ gateway_payment_profile_id: 'pp_abc123')
+ end
+ let(:base_params) { { store: store, currency: store.default_currency } }
+
+ subject { described_class.new(payment_source, params: base_params).to_h }
+
+ it 'includes all expected attributes' do
+ expect(subject.keys).to match_array(%w[
+ id gateway_payment_profile_id public_metadata
+ ])
+ end
+
+ it 'returns the prefixed id' do
+ expect(subject['id']).to eq(payment_source.prefixed_id)
+ end
+
+ it 'returns correct attribute values' do
+ expect(subject['gateway_payment_profile_id']).to eq('pp_abc123')
+ end
+
+ context 'without gateway_payment_profile_id' do
+ let(:payment_source) { create(:payment_source, payment_method: payment_method, gateway_payment_profile_id: nil) }
+
+ it 'returns nil for gateway_payment_profile_id' do
+ expect(subject['gateway_payment_profile_id']).to be_nil
+ end
+ end
+
+ context 'with public_metadata' do
+ before { payment_source.update!(public_metadata: { 'email' => '[email protected]' }) }
+
+ it 'returns the public_metadata' do
+ expect(subject['public_metadata']).to eq({ 'email' => '[email protected]' })
+ end
+ end
+
+ context 'without public_metadata' do
+ it 'returns nil or empty for public_metadata' do
+ expect(subject['public_metadata']).to be_blank
+ end
+ end
+end
diff --git a/backend/engines/api/spec/serializers/spree/api/v3/store_credit_serializer_spec.rb b/backend/engines/api/spec/serializers/spree/api/v3/store_credit_serializer_spec.rb
new file mode 100644
index 0000000000..8795e8b439
--- /dev/null
+++ b/backend/engines/api/spec/serializers/spree/api/v3/store_credit_serializer_spec.rb
@@ -0,0 +1,43 @@
+require 'spec_helper'
+
+RSpec.describe Spree::Api::V3::StoreCreditSerializer do
+ let(:store) { @default_store }
+ let(:store_credit) { create(:store_credit, amount: 100.00, currency: 'USD', store: store) }
+ let(:base_params) { { store: store, currency: store.default_currency } }
+
+ subject { described_class.new(store_credit, params: base_params).to_h }
+
+ it 'includes all expected attributes' do
+ expect(subject.keys).to match_array(%w[
+ id amount amount_used amount_remaining
+ display_amount display_amount_used display_amount_remaining
+ currency
+ ])
+ end
+
+ it 'returns the prefixed id' do
+ expect(subject['id']).to eq(store_credit.prefixed_id)
+ end
+
+ it 'returns correct attribute values' do
+ expect(subject['amount']).to eq('100.0')
+ expect(subject['amount_used']).to eq('0.0')
+ expect(subject['amount_remaining']).to eq('100.0')
+ expect(subject['display_amount']).to be_present
+ expect(subject['display_amount_used']).to be_present
+ expect(subject['display_amount_remaining']).to be_present
+ expect(subject['currency']).to eq('USD')
+ end
+
+ context 'with partially used credit' do
+ before do
+ store_credit.update!(amount_used: 40.00)
+ end
+
+ it 'returns correct amounts' do
+ expect(subject['amount']).to eq('100.0')
+ expect(subject['amount_used']).to eq('40.0')
+ expect(subject['amount_remaining']).to eq('60.0')
+ end
+ end
+end
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yaml
index a81a564ef6..06b277df81 100644
--- a/docs/api-reference/store.yaml
+++ b/docs/api-reference/store.yaml
@@ -530,14 +530,14 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTQwMjE2N30.8xdoglNuQoDNx7rRp25qUIZEOhjCE-79TJFiJ5LG6Gs
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTQ0MjY4OH0.OQxeO3Uw0RMb2DR3z93fHl4WQY9_2Bna0kNMBY2swH0
user:
id: cus_UkLWZg9DAJ
- first_name: Kalyn
- last_name: Lueilwitz
- created_at: '2026-02-17T08:09:26.982Z'
- updated_at: '2026-02-17T08:09:26.982Z'
+ first_name: Virgie
+ last_name: Bergstrom
+ created_at: '2026-02-17T19:24:48.560Z'
+ updated_at: '2026-02-17T19:24:48.560Z'
addresses: []
default_billing_address:
default_shipping_address:
@@ -593,14 +593,14 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTQwMjE2OH0.03mgls-exbz36sh2md4Yq-1G-MTUXDNLWcC8qVp2piM
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTQ0MjY5MH0.hdzPNDOKZM8dYCBHpUdsFUB7yeHsyMTKGf2mbJEq8LA
user:
id: cus_UkLWZg9DAJ
first_name: John
last_name: Doe
- created_at: '2026-02-17T08:09:28.354Z'
- updated_at: '2026-02-17T08:09:28.354Z'
+ created_at: '2026-02-17T19:24:50.020Z'
+ updated_at: '2026-02-17T19:24:50.020Z'
addresses: []
default_billing_address:
default_shipping_address:
@@ -672,14 +672,14 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTQwMjE2OH0.03mgls-exbz36sh2md4Yq-1G-MTUXDNLWcC8qVp2piM
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTQ0MjY5MH0.hdzPNDOKZM8dYCBHpUdsFUB7yeHsyMTKGf2mbJEq8LA
user:
id: cus_UkLWZg9DAJ
- first_name: Ginette
- last_name: Kirlin
- created_at: '2026-02-17T08:09:28.909Z'
- updated_at: '2026-02-17T08:09:28.909Z'
+ first_name: Rosena
+ last_name: Friesen
+ created_at: '2026-02-17T19:24:50.796Z'
+ updated_at: '2026-02-17T19:24:50.796Z'
addresses: []
default_billing_address:
default_shipping_address:
@@ -731,10 +731,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R581773901
+ number: R583280854
state: cart
- token: yWJJfgBquuP1eJFDkzKMYcEggaHFNM55KnE
+ token: Wi1UQKhBmGmLU81neav8sAjcXDDy7QfosZ5
special_instructions:
currency: USD
item_count: 1
@@ -757,15 +757,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:30.010Z'
- updated_at: '2026-02-17T08:09:30.129Z'
+ created_at: '2026-02-17T19:24:52.091Z'
+ updated_at: '2026-02-17T19:24:52.256Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 24297
- slug: product-24297
+ name: Product 23242
+ slug: product-23242
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -784,23 +784,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:30.077Z'
- updated_at: '2026-02-17T08:09:30.077Z'
+ created_at: '2026-02-17T19:24:52.193Z'
+ updated_at: '2026-02-17T19:24:52.193Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H45402098062
+ number: H61149080451
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:30.091Z'
- updated_at: '2026-02-17T08:09:30.116Z'
+ created_at: '2026-02-17T19:24:52.208Z'
+ updated_at: '2026-02-17T19:24:52.238Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -808,7 +808,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_39
- name: Ronda Ebert
+ name: Santa Batz
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -921,10 +921,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R074082999
+ number: R964697181
state: cart
- token: FwccuRgGecmrYZb74kzjhhn7jZopL2egYeg
+ token: n1QUueEgfyzRdXyj479s1qQRjs4gKWLQ28D
special_instructions:
currency: USD
item_count: 1
@@ -947,15 +947,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:30.230Z'
- updated_at: '2026-02-17T08:09:30.344Z'
+ created_at: '2026-02-17T19:24:52.300Z'
+ updated_at: '2026-02-17T19:24:52.432Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 34013
- slug: product-34013
+ name: Product 33613
+ slug: product-33613
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -974,23 +974,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:30.296Z'
- updated_at: '2026-02-17T08:09:30.296Z'
+ created_at: '2026-02-17T19:24:52.385Z'
+ updated_at: '2026-02-17T19:24:52.385Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H16336414031
+ number: H06046394202
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:30.310Z'
- updated_at: '2026-02-17T08:09:30.333Z'
+ created_at: '2026-02-17T19:24:52.399Z'
+ updated_at: '2026-02-17T19:24:52.421Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -998,7 +998,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_43
- name: Jacquetta Rodriguez
+ name: Sha Moen
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -1277,10 +1277,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R056875104
+ number: R510873096
state: cart
- token: F7pwLgyZBrsxyM6xAZVNiPNTzAZdBSfHEg8
+ token: akd8SvtkLYcH3Lh3QCQguNNhhrQWWkdW65u
special_instructions:
currency: USD
item_count: 1
@@ -1303,15 +1303,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:34.549Z'
- updated_at: '2026-02-17T08:09:34.701Z'
+ created_at: '2026-02-17T19:24:56.743Z'
+ updated_at: '2026-02-17T19:24:56.909Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 89014
- slug: product-89014
+ name: Product 87524
+ slug: product-87524
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1330,23 +1330,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:34.606Z'
- updated_at: '2026-02-17T08:09:34.606Z'
+ created_at: '2026-02-17T19:24:56.809Z'
+ updated_at: '2026-02-17T19:24:56.809Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H76988125146
+ number: H14422393259
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:34.620Z'
- updated_at: '2026-02-17T08:09:34.641Z'
+ created_at: '2026-02-17T19:24:56.823Z'
+ updated_at: '2026-02-17T19:24:56.847Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -1354,7 +1354,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_63
- name: Rogelio Dibbert
+ name: Josef Larkin
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -1376,12 +1376,23 @@ paths:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
state: checkout
- response_code: 1-SC-20260217080934696555
- number: P2V2RT00
+ response_code: 1-SC-20260217192456904204
+ number: P79RVZAS
amount: '50.0'
display_amount: "$50.00"
- created_at: '2026-02-17T08:09:34.700Z'
- updated_at: '2026-02-17T08:09:34.700Z'
+ created_at: '2026-02-17T19:24:56.909Z'
+ updated_at: '2026-02-17T19:24:56.909Z'
+ source_type: store_credit
+ source_id: credit_UkLWZg9DAJ
+ source:
+ id: credit_UkLWZg9DAJ
+ amount: '50.0'
+ amount_used: '0.0'
+ amount_remaining: '50.0'
+ display_amount: "$50.00"
+ display_amount_used: "$0.00"
+ display_amount_remaining: "$50.00"
+ currency: USD
payment_method:
id: pm_UkLWZg9DAJ
name: Store Credit
@@ -1506,10 +1517,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R136925616
+ number: R633165399
state: cart
- token: pnatTjZeGLaa4FKGGaDrhwd3VbAfYDk8mNY
+ token: NVPcNrAndQKRDuop2gxK1w1pUdtgecdhMhN
special_instructions:
currency: USD
item_count: 1
@@ -1532,15 +1543,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:36.588Z'
- updated_at: '2026-02-17T08:09:36.765Z'
+ created_at: '2026-02-17T19:24:58.900Z'
+ updated_at: '2026-02-17T19:24:59.073Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 119644
- slug: product-119644
+ name: Product 113548
+ slug: product-113548
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1559,23 +1570,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:36.646Z'
- updated_at: '2026-02-17T08:09:36.753Z'
+ created_at: '2026-02-17T19:24:58.960Z'
+ updated_at: '2026-02-17T19:24:59.062Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H50322539977
+ number: H50877894357
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:36.659Z'
- updated_at: '2026-02-17T08:09:36.680Z'
+ created_at: '2026-02-17T19:24:58.971Z'
+ updated_at: '2026-02-17T19:24:58.991Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -1583,7 +1594,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_75
- name: Adell Bernier
+ name: Adah Graham
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -1837,11 +1848,11 @@ paths:
application/json:
example:
id: cus_UkLWZg9DAJ
- first_name: Deanna
- last_name: Marks
- created_at: '2026-02-17T08:09:41.035Z'
- updated_at: '2026-02-17T08:09:41.318Z'
+ first_name: Deeann
+ last_name: Green
+ created_at: '2026-02-17T19:25:03.443Z'
+ updated_at: '2026-02-17T19:25:03.721Z'
addresses:
- id: addr_gbHJdmfrXB
firstname: John
@@ -1943,11 +1954,11 @@ paths:
application/json:
example:
id: cus_UkLWZg9DAJ
first_name: Updated
last_name: Name
- created_at: '2026-02-17T08:09:41.612Z'
- updated_at: '2026-02-17T08:09:41.895Z'
+ created_at: '2026-02-17T19:25:04.021Z'
+ updated_at: '2026-02-17T19:25:04.308Z'
addresses:
- id: addr_gbHJdmfrXB
firstname: John
@@ -2163,10 +2174,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R052803286
+ number: R871324435
state: cart
- token: Adsrp98gbQcTa2Tekbt35NUP5ugcaw1qwTS
+ token: 67hZ9WWvtzr23ude1fWKphFyWvXTZL9reSk
special_instructions:
currency: USD
item_count: 3
@@ -2189,15 +2200,15 @@ paths:
total: '49.98'
display_total: "$49.98"
completed_at:
- created_at: '2026-02-17T08:09:46.020Z'
- updated_at: '2026-02-17T08:09:46.174Z'
+ created_at: '2026-02-17T19:25:08.827Z'
+ updated_at: '2026-02-17T19:25:09.028Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 218136
- slug: product-218136
+ name: Product 217954
+ slug: product-217954
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2216,8 +2227,8 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:46.089Z'
- updated_at: '2026-02-17T08:09:46.089Z'
+ created_at: '2026-02-17T19:25:08.915Z'
+ updated_at: '2026-02-17T19:25:08.915Z'
compare_at_amount:
thumbnail_url:
option_values: []
@@ -2225,8 +2236,8 @@ paths:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 2
- name: Product 228197
- slug: product-228197
+ name: Product 225081
+ slug: product-225081
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -2245,8 +2256,8 @@ paths:
discounted_amount: '39.98'
display_discounted_amount: "$39.98"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:46.174Z'
- updated_at: '2026-02-17T08:09:46.174Z'
+ created_at: '2026-02-17T19:25:09.027Z'
+ updated_at: '2026-02-17T19:25:09.027Z'
compare_at_amount:
thumbnail_url:
option_values: []
@@ -2342,10 +2353,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R949177962
+ number: R044751422
state: cart
- token: T6RFhRcszKdsh6f1ccyNvXKC5f4EWnJbZXK
+ token: dorh3XAYb1JwCMoYYbUQxizYLb1RVrD4MBZ
special_instructions:
currency: USD
item_count: 5
@@ -2368,15 +2379,15 @@ paths:
total: '99.95'
display_total: "$99.95"
completed_at:
- created_at: '2026-02-17T08:09:48.002Z'
- updated_at: '2026-02-17T08:09:48.093Z'
+ created_at: '2026-02-17T19:25:10.987Z'
+ updated_at: '2026-02-17T19:25:11.076Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 5
- name: Product 255525
- slug: product-255525
+ name: Product 254413
+ slug: product-254413
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -2395,8 +2406,8 @@ paths:
discounted_amount: '99.95'
display_discounted_amount: "$99.95"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:48.071Z'
- updated_at: '2026-02-17T08:09:48.100Z'
+ created_at: '2026-02-17T19:25:11.054Z'
+ updated_at: '2026-02-17T19:25:11.083Z'
compare_at_amount:
thumbnail_url:
option_values: []
@@ -2476,10 +2487,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R053395189
+ number: R477418870
state: cart
- token: k67K3bUedwJDb1coiDwguVzmGm3hbcVrC7Q
+ token: pbPHcyeSTYJE7Wvn573Hm49J4Ej5GJz3f7S
special_instructions:
currency: USD
item_count: 0
@@ -2502,8 +2513,8 @@ paths:
total: '0.0'
display_total: "$0.00"
completed_at:
- created_at: '2026-02-17T08:09:48.667Z'
- updated_at: '2026-02-17T08:09:48.752Z'
+ created_at: '2026-02-17T19:25:11.690Z'
+ updated_at: '2026-02-17T19:25:11.784Z'
order_promotions: []
line_items: []
shipments: []
@@ -2588,10 +2599,10 @@ paths:
example:
data:
- id: or_UkLWZg9DAJ
- number: R827612350
+ number: R785375026
state: cart
- token: iTJhhS8FZrn1Rqfok51cmpzm724P9LFpqiV
+ token: zvpfvyRF3pYiFYhMXFMZapboVVZZsmda26u
special_instructions:
currency: USD
item_count: 1
@@ -2614,15 +2625,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:49.940Z'
- updated_at: '2026-02-17T08:09:50.062Z'
+ created_at: '2026-02-17T19:25:13.112Z'
+ updated_at: '2026-02-17T19:25:13.231Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 285500
- slug: product-285500
+ name: Product 28820
+ slug: product-28820
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2641,23 +2652,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:50.012Z'
- updated_at: '2026-02-17T08:09:50.012Z'
+ created_at: '2026-02-17T19:25:13.185Z'
+ updated_at: '2026-02-17T19:25:13.185Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H51054324633
+ number: H66606773852
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:50.027Z'
- updated_at: '2026-02-17T08:09:50.051Z'
+ created_at: '2026-02-17T19:25:13.199Z'
+ updated_at: '2026-02-17T19:25:13.220Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -2665,7 +2676,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_135
- name: Eryn Bahringer
+ name: Orville Ritchie
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -2774,10 +2785,10 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R713758353
+ number: R036180477
state: cart
- token: 8ZT4jX5vVAAazVE47ZabqhwSMWoqeTJtF4H
+ token: 12hR5Bf4gWFz8iUmV1pqEi4CxQijoYjqWSH
special_instructions:
currency: USD
item_count: 0
@@ -2800,8 +2811,8 @@ paths:
total: '0.0'
display_total: "$0.00"
completed_at:
- created_at: '2026-02-17T08:09:52.087Z'
- updated_at: '2026-02-17T08:09:52.087Z'
+ created_at: '2026-02-17T19:25:15.274Z'
+ updated_at: '2026-02-17T19:25:15.274Z'
order_promotions: []
line_items: []
shipments: []
@@ -2809,7 +2820,7 @@ paths:
bill_address:
ship_address:
payment_methods: []
- order_token: 8ZT4jX5vVAAazVE47ZabqhwSMWoqeTJtF4H
+ order_token: 12hR5Bf4gWFz8iUmV1pqEi4CxQijoYjqWSH
schema:
type: object
allOf:
@@ -2873,9 +2884,9 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R165672588
+ number: R928256158
state: cart
- token: j1aewwjdHun1nxxLGfKvBc4TxBoZD1sEjom
+ token: yeyLz4qgAWitexKnrNaWvmKuC439APGUDeF
email:
special_instructions:
currency: USD
@@ -2899,15 +2910,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:54.068Z'
- updated_at: '2026-02-17T08:09:54.156Z'
+ created_at: '2026-02-17T19:25:17.287Z'
+ updated_at: '2026-02-17T19:25:17.406Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
- name: Product 351354
- slug: product-351354
+ name: Product 352156
+ slug: product-352156
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2926,23 +2937,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:54.119Z'
- updated_at: '2026-02-17T08:09:54.119Z'
+ created_at: '2026-02-17T19:25:17.352Z'
+ updated_at: '2026-02-17T19:25:17.352Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_gbHJdmfrXB
- number: H12152073249
+ number: H62173674634
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:54.131Z'
- updated_at: '2026-02-17T08:09:54.147Z'
+ created_at: '2026-02-17T19:25:17.373Z'
+ updated_at: '2026-02-17T19:25:17.394Z'
shipping_method:
id: shpm_gbHJdmfrXB
name: UPS Ground
@@ -2950,7 +2961,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_159
- name: Adah Predovic
+ name: Florencio Wisozk
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3050,10 +3061,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R951683072
+ number: R837606828
state: cart
- token: oActQuGdhnkKSjk4pWqXp2vh5mvgQqc2bvw
+ token: sZsevNtMuEbyFF4fThQYP1m3sHBCd2qkFND
special_instructions: Leave at door
currency: USD
item_count: 1
@@ -3076,15 +3087,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:56.296Z'
- updated_at: '2026-02-17T08:09:56.419Z'
+ created_at: '2026-02-17T19:25:19.618Z'
+ updated_at: '2026-02-17T19:25:19.813Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 384919
- slug: product-384919
+ name: Product 383108
+ slug: product-383108
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3103,23 +3114,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:56.367Z'
- updated_at: '2026-02-17T08:09:56.367Z'
+ created_at: '2026-02-17T19:25:19.750Z'
+ updated_at: '2026-02-17T19:25:19.750Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H92319738586
+ number: H37254553909
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:56.381Z'
- updated_at: '2026-02-17T08:09:56.401Z'
+ created_at: '2026-02-17T19:25:19.766Z'
+ updated_at: '2026-02-17T19:25:19.792Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -3127,7 +3138,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_174
- name: Trudie Ratke
+ name: Arthur Feil
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3306,10 +3317,10 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R856679181
+ number: R438644715
state: address
- token: XATsZgmbUy7WFtV1BtTVUf4YiPUDz4X75wf
+ token: AuWCzf7DZXQWTYoJmsakisGMKeKtanBHFyz
special_instructions:
currency: USD
item_count: 1
@@ -3332,15 +3343,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:09:57.859Z'
- updated_at: '2026-02-17T08:09:57.961Z'
+ created_at: '2026-02-17T19:25:21.344Z'
+ updated_at: '2026-02-17T19:25:21.470Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
- name: Product 422327
- slug: product-422327
+ name: Product 426868
+ slug: product-426868
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3359,23 +3370,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:57.912Z'
- updated_at: '2026-02-17T08:09:57.912Z'
+ created_at: '2026-02-17T19:25:21.412Z'
+ updated_at: '2026-02-17T19:25:21.412Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_gbHJdmfrXB
- number: H68990893922
+ number: H76951365409
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:09:57.926Z'
- updated_at: '2026-02-17T08:09:57.944Z'
+ created_at: '2026-02-17T19:25:21.427Z'
+ updated_at: '2026-02-17T19:25:21.449Z'
shipping_method:
id: shpm_gbHJdmfrXB
name: UPS Ground
@@ -3383,7 +3394,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_184
- name: January Bahringer
+ name: Edmund Schmeler
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3485,10 +3496,10 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R099841775
+ number: R094067239
state: payment
- token: fiNpW3HXT1n4wXBsb2k89PJJ529KtxR2vW3
+ token: zTxHMd8N1xdkPw9XqqYWjM2HuPtyCfZGcMC
special_instructions:
currency: USD
item_count: 1
@@ -3511,15 +3522,15 @@ paths:
total: '29.99'
display_total: "$29.99"
completed_at:
- created_at: '2026-02-17T08:09:59.298Z'
- updated_at: '2026-02-17T08:09:59.501Z'
+ created_at: '2026-02-17T19:25:22.865Z'
+ updated_at: '2026-02-17T19:25:23.084Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
- name: Product 457349
- slug: product-457349
+ name: Product 455562
+ slug: product-455562
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -3538,23 +3549,23 @@ paths:
discounted_amount: '19.99'
display_discounted_amount: "$19.99"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:09:59.354Z'
- updated_at: '2026-02-17T08:09:59.432Z'
+ created_at: '2026-02-17T19:25:22.926Z'
+ updated_at: '2026-02-17T19:25:23.002Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_EfhxLZ9ck8
- number: H50215305044
+ number: H56071118347
state: pending
tracking:
tracking_url:
cost: '10.0'
display_cost: "$10.00"
shipped_at:
- created_at: '2026-02-17T08:09:59.453Z'
- updated_at: '2026-02-17T08:09:59.474Z'
+ created_at: '2026-02-17T19:25:23.022Z'
+ updated_at: '2026-02-17T19:25:23.044Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -3562,7 +3573,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_194
- name: Else Hettinger
+ name: Mauricio Lesch
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3663,10 +3674,10 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R561041500
+ number: R385481093
state: complete
- token: JaNoqYLUnLpXpLySS3JXhWoCNq2CULLWtNc
+ token: HF87ZsCJrMvWASFCyHvFiM41k3XsRxvr1Er
special_instructions:
currency: USD
item_count: 1
@@ -3688,9 +3699,9 @@ paths:
display_additional_tax_total: "$0.00"
total: '29.99'
display_total: "$29.99"
- completed_at: '2026-02-17T08:10:00.444Z'
- created_at: '2026-02-17T08:10:00.166Z'
- updated_at: '2026-02-17T08:10:00.444Z'
+ completed_at: '2026-02-17T19:25:24.108Z'
+ created_at: '2026-02-17T19:25:23.784Z'
+ updated_at: '2026-02-17T19:25:24.108Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
@@ -3716,23 +3727,23 @@ paths:
discounted_amount: '19.99'
display_discounted_amount: "$19.99"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:10:00.224Z'
- updated_at: '2026-02-17T08:10:00.439Z'
+ created_at: '2026-02-17T19:25:23.842Z'
+ updated_at: '2026-02-17T19:25:24.103Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_EfhxLZ9ck8
- number: H42609382252
+ number: H37213394817
state: pending
tracking:
tracking_url:
cost: '10.0'
display_cost: "$10.00"
shipped_at:
- created_at: '2026-02-17T08:10:00.315Z'
- updated_at: '2026-02-17T08:10:00.423Z'
+ created_at: '2026-02-17T19:25:23.948Z'
+ updated_at: '2026-02-17T19:25:24.083Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -3740,7 +3751,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_200
- name: Claudette Dibbert
+ name: Katy Schumm
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3773,11 +3784,22 @@ paths:
payment_method_id: pm_UkLWZg9DAJ
state: checkout
response_code: '12345'
- number: P7V9UW4S
+ number: PX5F5C33
amount: '29.99'
display_amount: "$29.99"
- created_at: '2026-02-17T08:10:00.393Z'
- updated_at: '2026-02-17T08:10:00.393Z'
+ created_at: '2026-02-17T19:25:24.048Z'
+ updated_at: '2026-02-17T19:25:24.048Z'
+ source_type: credit_card
+ source_id: card_UkLWZg9DAJ
+ source:
+ id: card_UkLWZg9DAJ
+ cc_type: visa
+ last_digits: '1111'
+ month: 12
+ year: 2027
+ name: Spree Commerce
+ default: true
+ gateway_payment_profile_id:
payment_method:
id: pm_UkLWZg9DAJ
name: Check
@@ -3876,10 +3898,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R375249151
+ number: R046163448
state: cart
- token: 1fewmTeRf2yYoDigdbYNSRFa7BYExd9fstw
+ token: JtB1mh6UumKubHtxm6xqXAHwyzEJno76mDx
special_instructions:
currency: USD
item_count: 1
@@ -3902,15 +3924,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:10:01.876Z'
- updated_at: '2026-02-17T08:10:02.285Z'
+ created_at: '2026-02-17T19:25:25.572Z'
+ updated_at: '2026-02-17T19:25:25.993Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 503668
- slug: product-503668
+ name: Product 501630
+ slug: product-501630
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3929,23 +3951,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:10:01.935Z'
- updated_at: '2026-02-17T08:10:01.935Z'
+ created_at: '2026-02-17T19:25:25.638Z'
+ updated_at: '2026-02-17T19:25:25.638Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H11021166776
+ number: H91021843116
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:10:01.949Z'
- updated_at: '2026-02-17T08:10:01.970Z'
+ created_at: '2026-02-17T19:25:25.652Z'
+ updated_at: '2026-02-17T19:25:25.678Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -3953,7 +3975,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_212
- name: Genesis Rempel
+ name: Tracey Kreiger
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3975,12 +3997,23 @@ paths:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
state: checkout
- response_code: 1-SC-20260217081002281515
- number: PKHJBDO6
+ response_code: 1-SC-20260217192525989905
+ number: PXVHX7LH
amount: '10.0'
display_amount: "$10.00"
- created_at: '2026-02-17T08:10:02.284Z'
- updated_at: '2026-02-17T08:10:02.284Z'
+ created_at: '2026-02-17T19:25:25.993Z'
+ updated_at: '2026-02-17T19:25:25.993Z'
+ source_type: store_credit
+ source_id: credit_UkLWZg9DAJ
+ source:
+ id: credit_UkLWZg9DAJ
+ amount: '50.0'
+ amount_used: '0.0'
+ amount_remaining: '50.0'
+ display_amount: "$50.00"
+ display_amount_used: "$0.00"
+ display_amount_remaining: "$50.00"
+ currency: USD
payment_method:
id: pm_UkLWZg9DAJ
name: Store Credit
@@ -4083,10 +4116,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R906819490
+ number: R624402698
state: cart
- token: 9ffUQZpusKzjRevTHKhuH9fHNYbrGXTjNBK
+ token: mfxtnUkZCbhimi6fujRxSMzngNASsqkACc1
special_instructions:
currency: USD
item_count: 1
@@ -4109,15 +4142,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:10:03.505Z'
- updated_at: '2026-02-17T08:10:03.610Z'
+ created_at: '2026-02-17T19:25:27.262Z'
+ updated_at: '2026-02-17T19:25:27.369Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 529794
- slug: product-529794
+ name: Product 526664
+ slug: product-526664
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -4136,23 +4169,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:10:03.564Z'
- updated_at: '2026-02-17T08:10:03.564Z'
+ created_at: '2026-02-17T19:25:27.325Z'
+ updated_at: '2026-02-17T19:25:27.325Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H15177271962
+ number: H39247857925
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:10:03.578Z'
- updated_at: '2026-02-17T08:10:03.599Z'
+ created_at: '2026-02-17T19:25:27.339Z'
+ updated_at: '2026-02-17T19:25:27.360Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -4160,7 +4193,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_220
- name: Devin Collier
+ name: Star Paucek
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -4335,13 +4368,13 @@ paths:
id: ps_gbHJdmfrXB
status: pending
currency: USD
- external_id: bogus_a19e355691bd939f24227a78
+ external_id: bogus_3e7d7077c129609933f0ecbb
external_data:
- client_secret: bogus_secret_12c930078c3e9d36
+ client_secret: bogus_secret_32e67dff904cfaab
customer_external_id:
expires_at:
- created_at: '2026-02-17T08:10:05.475Z'
- updated_at: '2026-02-17T08:10:05.475Z'
+ created_at: '2026-02-17T19:25:29.288Z'
+ updated_at: '2026-02-17T19:25:29.288Z'
amount: '110.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4432,13 +4465,13 @@ paths:
id: ps_UkLWZg9DAJ
status: pending
currency: USD
- external_id: bogus_122207be64ed026190c8b4ff
+ external_id: bogus_d69726fbf0af1df5addb808c
external_data:
client_secret: secret_123
customer_external_id:
expires_at:
- created_at: '2026-02-17T08:10:06.812Z'
- updated_at: '2026-02-17T08:10:06.812Z'
+ created_at: '2026-02-17T19:25:30.695Z'
+ updated_at: '2026-02-17T19:25:30.695Z'
amount: '110.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4479,13 +4512,13 @@ paths:
id: ps_UkLWZg9DAJ
status: pending
currency: USD
- external_id: bogus_a30cb190c35e22051bbac598
+ external_id: bogus_032b639c99a3b5d596b9f2ac
external_data:
client_secret: secret_123
customer_external_id:
expires_at:
- created_at: '2026-02-17T08:10:08.152Z'
- updated_at: '2026-02-17T08:10:08.163Z'
+ created_at: '2026-02-17T19:25:32.126Z'
+ updated_at: '2026-02-17T19:25:32.139Z'
amount: '50.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4560,13 +4593,13 @@ paths:
id: ps_UkLWZg9DAJ
status: completed
currency: USD
- external_id: bogus_62b2275beff9fe2941bf67ce
+ external_id: bogus_e09cb41d0b879e86266d1573
external_data:
client_secret: secret_123
customer_external_id:
expires_at:
- created_at: '2026-02-17T08:10:08.827Z'
- updated_at: '2026-02-17T08:10:08.838Z'
+ created_at: '2026-02-17T19:25:32.827Z'
+ updated_at: '2026-02-17T19:25:32.839Z'
amount: '110.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4637,11 +4670,22 @@ paths:
payment_method_id: pm_UkLWZg9DAJ
state: checkout
response_code: '12345'
- number: PLNUXOS2
+ number: PEE7ILQ9
amount: '110.0'
display_amount: "$110.00"
- created_at: '2026-02-17T08:10:10.163Z'
- updated_at: '2026-02-17T08:10:10.163Z'
+ created_at: '2026-02-17T19:25:34.246Z'
+ updated_at: '2026-02-17T19:25:34.246Z'
+ source_type: credit_card
+ source_id: card_UkLWZg9DAJ
+ source:
+ id: card_UkLWZg9DAJ
+ cc_type: visa
+ last_digits: '1111'
+ month: 12
+ year: 2027
+ name: Spree Commerce
+ default: false
+ gateway_payment_profile_id:
payment_method:
id: pm_UkLWZg9DAJ
name: Credit Card
@@ -4710,11 +4754,22 @@ paths:
payment_method_id: pm_UkLWZg9DAJ
state: checkout
response_code: '12345'
- number: PWCARV0A
+ number: PRFVT59T
amount: '110.0'
display_amount: "$110.00"
- created_at: '2026-02-17T08:10:11.589Z'
- updated_at: '2026-02-17T08:10:11.589Z'
+ created_at: '2026-02-17T19:25:35.645Z'
+ updated_at: '2026-02-17T19:25:35.645Z'
+ source_type: credit_card
+ source_id: card_UkLWZg9DAJ
+ source:
+ id: card_UkLWZg9DAJ
+ cc_type: visa
+ last_digits: '1111'
+ month: 12
+ year: 2027
+ name: Spree Commerce
+ default: false
+ gateway_payment_profile_id:
payment_method:
id: pm_UkLWZg9DAJ
name: Credit Card
@@ -4787,19 +4842,20 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 678691
+ name: Product 671077
description: |-
- Molestias excepturi sed minima corporis iure ullam quos. Veritatis quia autem quaerat eligendi. Explicabo nemo illum quis esse nulla.
- Ipsam voluptates sapiente quod ratione nobis possimus nemo dignissimos. Explicabo architecto aspernatur possimus mollitia sequi recusandae maiores. Quia atque earum a nam explicabo accusantium fugiat. Adipisci quis harum nemo maiores nesciunt eius.
- Nulla dolore perferendis expedita totam enim. Assumenda amet minus repellat labore beatae. Tempora dignissimos eveniet consectetur facere numquam repudiandae praesentium. Perspiciatis vitae voluptates temporibus impedit ipsam. Tempora voluptates fuga totam iste.
- Cumque perferendis quod soluta tempore. Ipsam in cumque nam eius. In atque unde eaque error ipsum sit. Enim amet eum illo eius.
- slug: product-678691
+ Tenetur minima dolorum velit laudantium libero. Iure recusandae unde labore nisi natus dicta. Quam beatae tempora distinctio tempore.
+ Esse ducimus explicabo omnis illo nisi. Delectus facere distinctio reiciendis sed ratione quod. Sint voluptates culpa ducimus distinctio nostrum. Porro enim cumque explicabo veniam ab vero accusamus.
+ Itaque perspiciatis quidem ea odit. Sint hic quae deserunt quasi maxime itaque possimus. Nulla rerum delectus ipsum a ea fugit.
+ Omnis dolor quas porro totam similique impedit. Facere doloremque neque debitis sint consequuntur nihil placeat. Molestiae reiciendis dolorum assumenda perferendis voluptatem temporibus eius.
+ Cumque unde non ex numquam sunt mollitia velit illo. Quas inventore error veniam magni. Nihil provident dignissimos fuga aut iste nam possimus. Harum optio temporibus consequatur voluptatibus occaecati.
+ slug: product-671077
meta_description:
meta_keywords:
variant_count: 1
- available_on: '2025-02-17T08:10:12.320Z'
- created_at: '2026-02-17T08:10:12.335Z'
- updated_at: '2026-02-17T08:10:12.415Z'
+ available_on: '2025-02-17T19:25:36.407Z'
+ created_at: '2026-02-17T19:25:36.425Z'
+ updated_at: '2026-02-17T19:25:36.514Z'
purchasable: true
in_stock: false
backorderable: true
@@ -4819,19 +4875,20 @@ paths:
price_list_id:
original_price:
- id: prod_gbHJdmfrXB
- name: Product 685964
- description: Consequatur eveniet necessitatibus atque quos quas
- incidunt. Incidunt autem officiis quaerat voluptate dolor aliquam
- aspernatur nihil. Nam maxime magnam dolorem facere quasi nihil
- quis dolorum. Ipsum officia doloribus aut corporis dolorum cumque.
- Recusandae error omnis vel voluptas rerum rem cupiditate.
- slug: product-685964
+ name: Product 681206
+ description: |-
+ Similique unde tenetur fuga vero voluptatem reiciendis. Quod facilis officiis blanditiis illo perspiciatis distinctio. Quas nam temporibus sequi expedita praesentium iusto aperiam beatae. Explicabo consectetur nihil aliquam eum. Assumenda sunt explicabo ab aperiam eveniet molestiae labore quo.
+ Eius at sapiente corporis possimus perferendis aliquid. Dolorem reiciendis id nisi quos architecto molestiae odio autem. Minus quam impedit expedita laborum minima assumenda occaecati.
+ Doloribus numquam quas voluptas quaerat. Fuga aut modi voluptatibus cumque sunt est fugit. Ex alias eligendi sequi saepe aspernatur enim. Suscipit cumque tempora inventore et.
+ Debitis aut dolore optio odio aperiam quia veniam. Reiciendis ratione eligendi suscipit at consequuntur consectetur deserunt. Nemo tenetur maiores cumque deleniti totam. Accusamus saepe explicabo possimus quibusdam. Molestias commodi tenetur minima vel cum perferendis nobis aliquid.
+ Voluptatibus alias ratione rem impedit inventore iure porro. Incidunt consequuntur assumenda qui natus consequatur doloremque hic. Excepturi ea ullam officiis perferendis est corporis dolores eius.
+ slug: product-681206
meta_description:
meta_keywords:
variant_count: 0
- available_on: '2025-02-17T08:10:12.431Z'
- created_at: '2026-02-17T08:10:12.440Z'
- updated_at: '2026-02-17T08:10:12.470Z'
+ available_on: '2025-02-17T19:25:36.532Z'
+ created_at: '2026-02-17T19:25:36.544Z'
+ updated_at: '2026-02-17T19:25:36.569Z'
purchasable: true
in_stock: false
backorderable: true
@@ -4916,18 +4973,19 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 796226
+ name: Product 799073
description: |-
- Dicta quisquam quae repellat officia distinctio eius illo animi. Sed nobis recusandae deserunt repudiandae sapiente esse quisquam maxime. Pariatur corporis alias recusandae dignissimos. Ullam quas voluptas nulla dicta consectetur voluptate.
- Laboriosam aliquid sunt eius rerum. Voluptas cumque exercitationem tempore maxime labore modi est. Debitis eius nisi illo aperiam fugit.
- Quis itaque neque consectetur dolor. Optio debitis quia ab itaque provident ex sed fuga. Eaque error beatae saepe vero natus. Exercitationem optio vitae dignissimos rem dolorem consequatur sed.
- slug: product-796226
+ Iure asperiores expedita labore quos aliquid voluptatibus quidem alias. Sint minus tempore placeat dolorem dolorum expedita aspernatur omnis. Consequatur quasi consequuntur quisquam occaecati at voluptate. Sint culpa delectus autem voluptatum nesciunt. Esse deleniti dicta veniam voluptas.
+ Ipsam rem nihil fuga veniam qui quas ut. Sequi qui unde totam consequuntur blanditiis sint sapiente dolore. Ducimus recusandae doloribus quos et.
+ Beatae suscipit quia commodi voluptatum quaerat laborum. Rem temporibus vero deserunt vitae quod doloremque nulla impedit. Adipisci dolores fuga beatae omnis eius suscipit magnam doloremque.
+ Commodi quidem autem hic quo consectetur tempora quod. Natus deserunt et eum corporis aspernatur. Officiis soluta a dolores saepe nostrum voluptas. Esse exercitationem quae neque molestias.
+ slug: product-799073
meta_description:
meta_keywords:
variant_count: 1
- available_on: '2025-02-17T08:10:13.490Z'
- created_at: '2026-02-17T08:10:13.503Z'
- updated_at: '2026-02-17T08:10:13.568Z'
+ available_on: '2025-02-17T19:25:37.832Z'
+ created_at: '2026-02-17T19:25:37.847Z'
+ updated_at: '2026-02-17T19:25:37.931Z'
purchasable: true
in_stock: false
backorderable: true
@@ -5132,15 +5190,15 @@ paths:
example:
data:
- id: ship_UkLWZg9DAJ
- number: H25483343456
+ number: H27362422771
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:10:16.803Z'
- updated_at: '2026-02-17T08:10:16.830Z'
+ created_at: '2026-02-17T19:25:41.701Z'
+ updated_at: '2026-02-17T19:25:41.734Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -5148,7 +5206,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_284
- name: Giselle Walker
+ name: Marivel Wolff
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -5245,15 +5303,15 @@ paths:
application/json:
example:
id: ship_UkLWZg9DAJ
- number: H59797332746
+ number: H81909682950
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:10:18.185Z'
- updated_at: '2026-02-17T08:10:18.205Z'
+ created_at: '2026-02-17T19:25:43.079Z'
+ updated_at: '2026-02-17T19:25:43.102Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -5261,7 +5319,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_292
- name: Ludie Beer
+ name: Irena Raynor
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -5334,10 +5392,10 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R103533673
+ number: R003729769
state: delivery
- token: TbjpEJWTXvvskACZR6gm4cGqwr28oATF43W
+ token: uMtaSWypFkRBaumyfWZSHoToFWwDPpG9JKg
special_instructions:
currency: USD
item_count: 1
@@ -5360,15 +5418,15 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-17T08:10:19.444Z'
- updated_at: '2026-02-17T08:10:19.564Z'
+ created_at: '2026-02-17T19:25:44.404Z'
+ updated_at: '2026-02-17T19:25:44.524Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
- name: Product 1119274
- slug: product-1119274
+ name: Product 1112928
+ slug: product-1112928
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -5387,23 +5445,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-17T08:10:19.503Z'
- updated_at: '2026-02-17T08:10:19.503Z'
+ created_at: '2026-02-17T19:25:44.463Z'
+ updated_at: '2026-02-17T19:25:44.463Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H20842600768
+ number: H26496424751
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-17T08:10:19.516Z'
- updated_at: '2026-02-17T08:10:19.563Z'
+ created_at: '2026-02-17T19:25:44.476Z'
+ updated_at: '2026-02-17T19:25:44.523Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -5411,7 +5469,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_300
- name: Brenna Hudson
+ name: Moses Zieme
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -5521,8 +5579,8 @@ paths:
instagram: spreecommerce
customer_support_email: [email protected]
default_locale: en
- created_at: '2026-02-17T08:09:19.595Z'
- updated_at: '2026-02-17T08:09:19.756Z'
+ created_at: '2026-02-17T19:24:40.742Z'
+ updated_at: '2026-02-17T19:24:40.853Z'
default_country_iso: US
supported_currencies:
- USD
@@ -5587,32 +5645,32 @@ paths:
- id: txnmy_UkLWZg9DAJ
name: Categories
position: 1
- created_at: '2026-02-17T08:09:19.619Z'
- updated_at: '2026-02-17T08:09:19.670Z'
+ created_at: '2026-02-17T19:24:40.750Z'
+ updated_at: '2026-02-17T19:24:40.778Z'
root_id: txn_UkLWZg9DAJ
- id: txnmy_gbHJdmfrXB
name: Brands
position: 2
- created_at: '2026-02-17T08:09:19.671Z'
- updated_at: '2026-02-17T08:09:19.683Z'
+ created_at: '2026-02-17T19:24:40.780Z'
+ updated_at: '2026-02-17T19:24:40.787Z'
root_id: txn_gbHJdmfrXB
- id: txnmy_EfhxLZ9ck8
name: Collections
position: 3
- created_at: '2026-02-17T08:09:19.685Z'
- updated_at: '2026-02-17T08:09:19.759Z'
+ created_at: '2026-02-17T19:24:40.788Z'
+ updated_at: '2026-02-17T19:24:40.856Z'
root_id: txn_EfhxLZ9ck8
- id: txnmy_VqXmZF31wY
name: taxonomy_11
position: 4
- created_at: '2026-02-17T08:10:20.259Z'
- updated_at: '2026-02-17T08:10:20.267Z'
+ created_at: '2026-02-17T19:25:45.261Z'
+ updated_at: '2026-02-17T19:25:45.269Z'
root_id: txn_OIJLhNcSbf
- id: txnmy_uw2YK1rnl0
name: taxonomy_12
position: 5
- created_at: '2026-02-17T08:10:20.268Z'
- updated_at: '2026-02-17T08:10:20.274Z'
+ created_at: '2026-02-17T19:25:45.270Z'
+ updated_at: '2026-02-17T19:25:45.278Z'
root_id: txn_AXs1igzRC6
meta:
page: 1
@@ -5678,8 +5736,8 @@ paths:
id: txnmy_VqXmZF31wY
name: taxonomy_17
position: 4
- created_at: '2026-02-17T08:10:20.511Z'
- updated_at: '2026-02-17T08:10:20.518Z'
+ created_at: '2026-02-17T19:25:45.562Z'
+ updated_at: '2026-02-17T19:25:45.572Z'
root_id: txn_OIJLhNcSbf
schema:
"$ref": "#/components/schemas/StoreTaxonomy"
@@ -5735,8 +5793,8 @@ paths:
meta_description:
meta_keywords:
children_count: 1
- created_at: '2026-02-17T08:10:21.143Z'
- updated_at: '2026-02-17T08:10:21.159Z'
+ created_at: '2026-02-17T19:25:46.254Z'
+ updated_at: '2026-02-17T19:25:46.271Z'
parent_id: txn_OIJLhNcSbf
taxonomy_id: txnmy_VqXmZF31wY
description: ''
@@ -5807,9 +5865,9 @@ paths:
data:
- id: wl_UkLWZg9DAJ
name: My Wishlist
- token: YdjrpHEGPxh4dGii9UsqUM8i
- created_at: '2026-02-17T08:10:22.339Z'
- updated_at: '2026-02-17T08:10:22.339Z'
+ token: 5X6AMEMnsCF8dHoRnEraDftC
+ created_at: '2026-02-17T19:25:47.450Z'
+ updated_at: '2026-02-17T19:25:47.450Z'
is_default: false
is_private: true
meta:
@@ -5868,9 +5926,9 @@ paths:
example:
id: wl_gbHJdmfrXB
name: Birthday Ideas
- token: MizzGcayt1RFBnZYk2Zx1yua
- created_at: '2026-02-17T08:10:23.671Z'
- updated_at: '2026-02-17T08:10:23.671Z'
+ token: HesfFKP6FsMdQnWKusJLnLVB
+ created_at: '2026-02-17T19:25:48.817Z'
+ updated_at: '2026-02-17T19:25:48.817Z'
is_default: false
is_private: true
schema:
@@ -5943,9 +6001,9 @@ paths:
example:
id: wl_UkLWZg9DAJ
name: My Wishlist
- token: DuBigu5KJ7wfwgGtQkYkVuLT
- created_at: '2026-02-17T08:10:24.930Z'
- updated_at: '2026-02-17T08:10:24.930Z'
+ token: hxzxNzxy7BvSftuYUWdGE8kp
+ created_at: '2026-02-17T19:25:49.993Z'
+ updated_at: '2026-02-17T19:25:49.993Z'
is_default: false
is_private: true
schema:
@@ -5991,9 +6049,9 @@ paths:
example:
id: wl_UkLWZg9DAJ
name: Updated Name
- token: LxynTticaxLx9iPBsEw32yRA
- created_at: '2026-02-17T08:10:26.171Z'
- updated_at: '2026-02-17T08:10:26.242Z'
+ token: zsjNesBK7U2uQTntcT8kEHxo
+ created_at: '2026-02-17T19:25:51.231Z'
+ updated_at: '2026-02-17T19:25:51.305Z'
is_default: false
is_private: true
schema:
@@ -6074,8 +6132,8 @@ paths:
variant_id: variant_gbHJdmfrXB
wishlist_id: wl_UkLWZg9DAJ
quantity: 1
- created_at: '2026-02-17T08:10:27.556Z'
- updated_at: '2026-02-17T08:10:27.556Z'
+ created_at: '2026-02-17T19:25:52.626Z'
+ updated_at: '2026-02-17T19:25:52.626Z'
variant:
id: variant_gbHJdmfrXB
product_id: prod_gbHJdmfrXB
@@ -6084,8 +6142,8 @@ paths:
options_text: ''
track_inventory: true
image_count: 0
- created_at: '2026-02-17T08:10:27.510Z'
- updated_at: '2026-02-17T08:10:27.534Z'
+ created_at: '2026-02-17T19:25:52.579Z'
+ updated_at: '2026-02-17T19:25:52.601Z'
thumbnail:
purchasable: true
in_stock: false
@@ -7568,6 +7626,22 @@ components:
type: string
updated_at:
type: string
+ source_type:
+ type: string
+ enum:
+ - credit_card
+ - store_credit
+ - payment_source
+ nullable: true
+ source_id:
+ type: string
+ nullable: true
+ source:
+ anyOf:
+ - "$ref": "#/components/schemas/StoreCreditCard"
+ - "$ref": "#/components/schemas/StoreStoreCredit"
+ - "$ref": "#/components/schemas/StorePaymentSource"
+ nullable: true
payment_method:
"$ref": "#/components/schemas/StorePaymentMethod"
x-typelizer: true
@@ -7627,6 +7701,21 @@ components:
- payment_method_id
- order_id
- payment_method
+ StorePaymentSource:
+ type: object
+ properties:
+ id:
+ type: string
+ gateway_payment_profile_id:
+ type: string
+ nullable: true
+ public_metadata:
+ allOf:
+ - "$ref": "#/components/schemas/Record<string, unknown>"
+ nullable: true
+ x-typelizer: true
+ required:
+ - id
StorePrice:
type: object
properties:
@@ -7877,6 +7966,35 @@ components:
required:
- id
- name
+ StoreStoreCredit:
+ type: object
+ properties:
+ id:
+ type: string
+ amount:
+ type: string
+ amount_used:
+ type: string
+ amount_remaining:
+ type: string
+ display_amount:
+ type: string
+ display_amount_used:
+ type: string
+ display_amount_remaining:
+ type: string
+ currency:
+ type: string
+ x-typelizer: true
+ required:
+ - id
+ - amount
+ - amount_used
+ - amount_remaining
+ - display_amount
+ - display_amount_used
+ - display_amount_remaining
+ - currency
StoreStore:
type: object
properties:
diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md
index f535fa1f1f..17c34a9120 100644
--- a/packages/sdk/CHANGELOG.md
+++ b/packages/sdk/CHANGELOG.md
@@ -1,5 +1,11 @@
# @spree/sdk
+## 0.2.4
+
+### Patch Changes
+
+- Add payment source to `StorePayment` type — payments now include `source_type` (`'credit_card' | 'store_credit' | 'payment_source' | null`) and `source` (polymorphic union of `StoreCreditCard | StoreStoreCredit | StorePaymentSource | null`) for frontend payment source display. Add new `StorePaymentSource` and `StoreStoreCredit` types.
+
## 0.2.3
### Patch Changes
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index eabe387d75..2ab841bcae 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@spree/sdk",
- "version": "0.2.3",
+ "version": "0.2.4",
"description": "Official TypeScript SDK for Spree Commerce API",
"type": "module",
"main": "./dist/index.cjs",
diff --git a/packages/sdk/src/types/generated/StorePayment.ts b/packages/sdk/src/types/generated/StorePayment.ts
index 2389def05d..df179e6a98 100644
--- a/packages/sdk/src/types/generated/StorePayment.ts
+++ b/packages/sdk/src/types/generated/StorePayment.ts
@@ -1,7 +1,7 @@
-// Typelizer digest 7a21e92c1fb7baff425d01d268049be6
+// Typelizer digest 92c0180e9e1eb4ce89e9c158bb1dd039
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
-import type {StorePaymentMethod} from '@/types'
+import type {StoreCreditCard, StoreStoreCredit, StorePaymentSource, StorePaymentMethod} from '@/types'
type StorePayment = {
id: string;
@@ -13,6 +13,9 @@ type StorePayment = {
display_amount: string;
created_at: string;
updated_at: string;
+ source_type: 'credit_card' | 'store_credit' | 'payment_source' | null;
+ source_id: string | null;
+ source: StoreCreditCard | StoreStoreCredit | StorePaymentSource | null;
payment_method: StorePaymentMethod;
}
diff --git a/packages/sdk/src/types/generated/StorePaymentSource.ts b/packages/sdk/src/types/generated/StorePaymentSource.ts
new file mode 100644
index 0000000000..8970d8b81c
--- /dev/null
+++ b/packages/sdk/src/types/generated/StorePaymentSource.ts
@@ -0,0 +1,11 @@
+// Typelizer digest dffaea8afd84d44988f1d87e871c869b
+//
+// DO NOT MODIFY: This file was automatically generated by Typelizer.
+
+type StorePaymentSource = {
+ id: string;
+ gateway_payment_profile_id: string | null;
+ public_metadata: Record<string, unknown> | null;
+}
+
+export default StorePaymentSource;
diff --git a/packages/sdk/src/types/generated/StoreStoreCredit.ts b/packages/sdk/src/types/generated/StoreStoreCredit.ts
new file mode 100644
index 0000000000..ee5cd3315d
--- /dev/null
+++ b/packages/sdk/src/types/generated/StoreStoreCredit.ts
@@ -0,0 +1,16 @@
+// Typelizer digest 189a8380073a95ce17eeab5a228ea4d1
+//
+// DO NOT MODIFY: This file was automatically generated by Typelizer.
+
+type StoreStoreCredit = {
+ id: string;
+ amount: string;
+ amount_used: string;
+ amount_remaining: string;
+ display_amount: string;
+ display_amount_used: string;
+ display_amount_remaining: string;
+ currency: string;
+}
+
+export default StoreStoreCredit;
diff --git a/packages/sdk/src/types/generated/index.ts b/packages/sdk/src/types/generated/index.ts
index 3bf3e8e219..d0a9cbcf96 100644
--- a/packages/sdk/src/types/generated/index.ts
+++ b/packages/sdk/src/types/generated/index.ts
@@ -1,4 +1,4 @@
-// Typelizer digest 4db1ab7a8a6084893650abac3ad9657d
+// Typelizer digest 48ded714555a5de588c64dd51726f82b
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
export type { default as StoreAddress } from './StoreAddress'
@@ -26,6 +26,7 @@ export type { default as StoreOrder } from './StoreOrder'
export type { default as StorePaymentMethod } from './StorePaymentMethod'
export type { default as StorePayment } from './StorePayment'
export type { default as StorePaymentSession } from './StorePaymentSession'
+export type { default as StorePaymentSource } from './StorePaymentSource'
export type { default as StorePrice } from './StorePrice'
export type { default as StoreProduct } from './StoreProduct'
export type { default as StoreShipment } from './StoreShipment'
@@ -33,6 +34,7 @@ export type { default as StoreShippingMethod } from './StoreShippingMethod'
export type { default as StoreShippingRate } from './StoreShippingRate'
export type { default as StoreState } from './StoreState'
export type { default as StoreStockLocation } from './StoreStockLocation'
+export type { default as StoreStoreCredit } from './StoreStoreCredit'
export type { default as StoreStore } from './StoreStore'
export type { default as StoreTaxon } from './StoreTaxon'
export type { default as StoreTaxonomy } from './StoreTaxonomy'
diff --git a/packages/sdk/src/zod/generated/AdminOrder.ts b/packages/sdk/src/zod/generated/AdminOrder.ts
index 3e8e803e17..1982a7a6ad 100644
--- a/packages/sdk/src/zod/generated/AdminOrder.ts
+++ b/packages/sdk/src/zod/generated/AdminOrder.ts
@@ -38,12 +38,12 @@ export const AdminOrderSchema: z.ZodObject<any> = z.object({
completed_at: z.string().nullable(),
created_at: z.string(),
updated_at: z.string(),
- order_promotions: z.array(StoreOrderPromotionSchema).optional(),
- line_items: z.array(StoreLineItemSchema).optional(),
- shipments: z.array(StoreShipmentSchema).optional(),
- payments: z.array(StorePaymentSchema).optional(),
- bill_address: StoreAddressSchema.optional(),
- ship_address: StoreAddressSchema.optional(),
+ order_promotions: z.array(StoreOrderPromotionSchema),
+ line_items: z.array(StoreLineItemSchema),
+ shipments: z.array(StoreShipmentSchema),
+ payments: z.array(StorePaymentSchema),
+ bill_address: StoreAddressSchema.nullable(),
+ ship_address: StoreAddressSchema.nullable(),
payment_methods: z.array(StorePaymentMethodSchema),
channel: z.string().nullable(),
last_ip_address: z.string().nullable(),
diff --git a/packages/sdk/src/zod/generated/StoreCreditCard.ts b/packages/sdk/src/zod/generated/StoreCreditCard.ts
index aba8f9626c..8451b93c4e 100644
--- a/packages/sdk/src/zod/generated/StoreCreditCard.ts
+++ b/packages/sdk/src/zod/generated/StoreCreditCard.ts
@@ -9,6 +9,7 @@ export const StoreCreditCardSchema = z.object({
year: z.number(),
name: z.string().nullable(),
default: z.boolean(),
+ gateway_payment_profile_id: z.string().nullable(),
});
export type StoreCreditCard = z.infer<typeof StoreCreditCardSchema>;
diff --git a/packages/sdk/src/zod/generated/StoreLineItem.ts b/packages/sdk/src/zod/generated/StoreLineItem.ts
index 305371f4b5..e7d44fe292 100644
--- a/packages/sdk/src/zod/generated/StoreLineItem.ts
+++ b/packages/sdk/src/zod/generated/StoreLineItem.ts
@@ -1,7 +1,7 @@
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
-import { StoreOptionValueSchema } from './StoreOptionValue';
import { StoreDigitalLinkSchema } from './StoreDigitalLink';
+import { StoreOptionValueSchema } from './StoreOptionValue';
export const StoreLineItemSchema = z.object({
id: z.string(),
diff --git a/packages/sdk/src/zod/generated/StoreOrder.ts b/packages/sdk/src/zod/generated/StoreOrder.ts
index 9ad16f43d1..3236581f81 100644
--- a/packages/sdk/src/zod/generated/StoreOrder.ts
+++ b/packages/sdk/src/zod/generated/StoreOrder.ts
@@ -37,12 +37,12 @@ export const StoreOrderSchema = z.object({
completed_at: z.string().nullable(),
created_at: z.string(),
updated_at: z.string(),
- order_promotions: z.array(StoreOrderPromotionSchema).optional(),
- line_items: z.array(StoreLineItemSchema).optional(),
- shipments: z.array(StoreShipmentSchema).optional(),
- payments: z.array(StorePaymentSchema).optional(),
- bill_address: StoreAddressSchema.optional(),
- ship_address: StoreAddressSchema.optional(),
+ order_promotions: z.array(StoreOrderPromotionSchema),
+ line_items: z.array(StoreLineItemSchema),
+ shipments: z.array(StoreShipmentSchema),
+ payments: z.array(StorePaymentSchema),
+ bill_address: StoreAddressSchema.nullable(),
+ ship_address: StoreAddressSchema.nullable(),
payment_methods: z.array(StorePaymentMethodSchema),
});
diff --git a/packages/sdk/src/zod/generated/StorePayment.ts b/packages/sdk/src/zod/generated/StorePayment.ts
index ef289c965a..012cc8a23b 100644
--- a/packages/sdk/src/zod/generated/StorePayment.ts
+++ b/packages/sdk/src/zod/generated/StorePayment.ts
@@ -12,6 +12,9 @@ export const StorePaymentSchema = z.object({
display_amount: z.string(),
created_at: z.string(),
updated_at: z.string(),
+ source_type: z.string().nullable(),
+ source_id: z.string().nullable(),
+ source: z.any(),
payment_method: StorePaymentMethodSchema,
});
diff --git a/packages/sdk/src/zod/generated/StorePaymentMethod.ts b/packages/sdk/src/zod/generated/StorePaymentMethod.ts
index e8c51bfe05..ad3630a8c2 100644
--- a/packages/sdk/src/zod/generated/StorePaymentMethod.ts
+++ b/packages/sdk/src/zod/generated/StorePaymentMethod.ts
@@ -6,6 +6,7 @@ export const StorePaymentMethodSchema = z.object({
name: z.string(),
description: z.string().nullable(),
type: z.string(),
+ session_required: z.boolean(),
});
export type StorePaymentMethod = z.infer<typeof StorePaymentMethodSchema>;
diff --git a/packages/sdk/src/zod/generated/StorePaymentSession.ts b/packages/sdk/src/zod/generated/StorePaymentSession.ts
new file mode 100644
index 0000000000..ee7013938f
--- /dev/null
+++ b/packages/sdk/src/zod/generated/StorePaymentSession.ts
@@ -0,0 +1,23 @@
+// This file is auto-generated. Do not edit directly.
+import { z } from 'zod';
+import { StorePaymentSchema } from './StorePayment';
+import { StorePaymentMethodSchema } from './StorePaymentMethod';
+
+export const StorePaymentSessionSchema = z.object({
+ id: z.string(),
+ status: z.string(),
+ currency: z.string(),
+ external_id: z.string(),
+ external_data: z.record(z.string(), z.unknown()),
+ customer_external_id: z.string().nullable(),
+ expires_at: z.string().nullable(),
+ created_at: z.string(),
+ updated_at: z.string(),
+ amount: z.string(),
+ payment_method_id: z.string(),
+ order_id: z.string(),
+ payment_method: StorePaymentMethodSchema,
+ payment: StorePaymentSchema.optional(),
+});
+
+export type StorePaymentSession = z.infer<typeof StorePaymentSessionSchema>;
diff --git a/packages/sdk/src/zod/generated/StorePaymentSource.ts b/packages/sdk/src/zod/generated/StorePaymentSource.ts
new file mode 100644
index 0000000000..87c0e8814d
--- /dev/null
+++ b/packages/sdk/src/zod/generated/StorePaymentSource.ts
@@ -0,0 +1,10 @@
+// This file is auto-generated. Do not edit directly.
+import { z } from 'zod';
+
+export const StorePaymentSourceSchema = z.object({
+ id: z.string(),
+ gateway_payment_profile_id: z.string().nullable(),
+ public_metadata: z.record(z.string(), z.unknown()).nullable(),
+});
+
+export type StorePaymentSource = z.infer<typeof StorePaymentSourceSchema>;
diff --git a/packages/sdk/src/zod/generated/StoreStoreCredit.ts b/packages/sdk/src/zod/generated/StoreStoreCredit.ts
new file mode 100644
index 0000000000..7631cce200
--- /dev/null
+++ b/packages/sdk/src/zod/generated/StoreStoreCredit.ts
@@ -0,0 +1,15 @@
+// This file is auto-generated. Do not edit directly.
+import { z } from 'zod';
+
+export const StoreStoreCreditSchema = z.object({
+ id: z.string(),
+ amount: z.string(),
+ amount_used: z.string(),
+ amount_remaining: z.string(),
+ display_amount: z.string(),
+ display_amount_used: z.string(),
+ display_amount_remaining: z.string(),
+ currency: z.string(),
+});
+
+export type StoreStoreCredit = z.infer<typeof StoreStoreCreditSchema>;
diff --git a/packages/sdk/src/zod/generated/index.ts b/packages/sdk/src/zod/generated/index.ts
index 1c9d61beff..c4cdd0fe8d 100644
--- a/packages/sdk/src/zod/generated/index.ts
+++ b/packages/sdk/src/zod/generated/index.ts
@@ -23,6 +23,8 @@ export { StoreOrderSchema, type StoreOrder } from './StoreOrder';
export { StoreOrderPromotionSchema, type StoreOrderPromotion } from './StoreOrderPromotion';
export { StorePaymentSchema, type StorePayment } from './StorePayment';
export { StorePaymentMethodSchema, type StorePaymentMethod } from './StorePaymentMethod';
+export { StorePaymentSessionSchema, type StorePaymentSession } from './StorePaymentSession';
+export { StorePaymentSourceSchema, type StorePaymentSource } from './StorePaymentSource';
export { StorePriceSchema, type StorePrice } from './StorePrice';
export { StoreProductSchema, type StoreProduct } from './StoreProduct';
export { StoreShipmentSchema, type StoreShipment } from './StoreShipment';
@@ -31,6 +33,7 @@ export { StoreShippingRateSchema, type StoreShippingRate } from './StoreShipping
export { StoreStateSchema, type StoreState } from './StoreState';
export { StoreStockLocationSchema, type StoreStockLocation } from './StoreStockLocation';
export { StoreStoreSchema, type StoreStore } from './StoreStore';
+export { StoreStoreCreditSchema, type StoreStoreCredit } from './StoreStoreCredit';
export { StoreTaxonSchema, type StoreTaxon } from './StoreTaxon';
export { StoreTaxonomySchema, type StoreTaxonomy } from './StoreTaxonomy';
export { StoreVariantSchema, type StoreVariant } from './StoreVariant';
diff --git a/packages/sdk/tests/mocks/handlers.ts b/packages/sdk/tests/mocks/handlers.ts
index a906a9c0d2..d278d74910 100644
--- a/packages/sdk/tests/mocks/handlers.ts
+++ b/packages/sdk/tests/mocks/handlers.ts
@@ -205,11 +205,62 @@ export const handlers = [
// Payments
http.get(`${API_PREFIX}/orders/:orderId/payments`, () =>
- HttpResponse.json({ data: [], meta: {} })
+ HttpResponse.json({
+ data: [
+ {
+ id: 'py_1',
+ payment_method_id: 'pm_1',
+ state: 'checkout',
+ response_code: '12345',
+ number: 'P1234',
+ amount: '19.99',
+ display_amount: '$19.99',
+ source_type: 'credit_card',
+ source_id: 'card_1',
+ source: {
+ id: 'card_1',
+ cc_type: 'visa',
+ last_digits: '4242',
+ month: 12,
+ year: 2028,
+ name: 'John Doe',
+ default: true,
+ gateway_payment_profile_id: 'pm_stripe_123',
+ },
+ created_at: '2026-02-17T00:00:00.000Z',
+ updated_at: '2026-02-17T00:00:00.000Z',
+ payment_method: { id: 'pm_1', name: 'Credit Card', description: null, type: 'Spree::Gateway::Bogus', session_required: false },
+ },
+ ],
+ meta: paginationMeta,
+ })
),
http.get(`${API_PREFIX}/orders/:orderId/payments/:id`, () =>
- HttpResponse.json({ id: 'pay_1', state: 'checkout', amount: '19.99' })
+ HttpResponse.json({
+ id: 'py_1',
+ payment_method_id: 'pm_1',
+ state: 'checkout',
+ response_code: '12345',
+ number: 'P1234',
+ amount: '19.99',
+ display_amount: '$19.99',
+ source_type: 'credit_card',
+ source_id: 'card_1',
+ source: {
+ id: 'card_1',
+ cc_type: 'visa',
+ last_digits: '4242',
+ month: 12,
+ year: 2028,
+ name: 'John Doe',
+ default: true,
+ gateway_payment_profile_id: 'pm_stripe_123',
+ },
+ created_at: '2026-02-17T00:00:00.000Z',
+ updated_at: '2026-02-17T00:00:00.000Z',
+ payment_method: { id: 'pm_1', name: 'Credit Card', description: null, type: 'Spree::Gateway::Bogus', session_required: false },
+ })
),
// Payment Methods
diff --git a/packages/sdk/tests/payments.test.ts b/packages/sdk/tests/payments.test.ts
new file mode 100644
index 0000000000..6c5506e8e5
--- /dev/null
+++ b/packages/sdk/tests/payments.test.ts
@@ -0,0 +1,57 @@
+import { describe, it, expect, beforeAll } from 'vitest';
+import { createTestClient } from './helpers';
+import type { SpreeClient } from '../src';
+
+describe('payments', () => {
+ let client: SpreeClient;
+ beforeAll(() => { client = createTestClient(); });
+ const opts = { token: 'user-jwt' };
+
+ describe('list', () => {
+ it('returns payments for an order', async () => {
+ const result = await client.store.orders.payments.list('order_1', opts);
+ expect(result.data).toHaveLength(1);
+ expect(result.data[0].id).toBe('py_1');
+ expect(result.data[0].state).toBe('checkout');
+ expect(result.data[0].amount).toBe('19.99');
+ });
+
+ it('includes source_type, source_id, and source for credit card payments', async () => {
+ const result = await client.store.orders.payments.list('order_1', opts);
+ const payment = result.data[0];
+ expect(payment.source_type).toBe('credit_card');
+ expect(payment.source_id).toBe('card_1');
+ expect(payment.source).toBeDefined();
+ expect(payment.source!.id).toBe('card_1');
+ if (payment.source_type === 'credit_card') {
+ const source = payment.source as { cc_type: string; last_digits: string };
+ expect(source.cc_type).toBe('visa');
+ expect(source.last_digits).toBe('4242');
+ }
+ });
+
+ it('includes payment_method association', async () => {
+ const result = await client.store.orders.payments.list('order_1', opts);
+ expect(result.data[0].payment_method.id).toBe('pm_1');
+ expect(result.data[0].payment_method.name).toBe('Credit Card');
+ });
+ });
+
+ describe('get', () => {
+ it('returns a payment by ID', async () => {
+ const result = await client.store.orders.payments.get('order_1', 'py_1', opts);
+ expect(result.id).toBe('py_1');
+ expect(result.state).toBe('checkout');
+ expect(result.number).toBe('P1234');
+ expect(result.payment_method_id).toBe('pm_1');
+ });
+
+ it('includes source details', async () => {
+ const result = await client.store.orders.payments.get('order_1', 'py_1', opts);
+ expect(result.source_type).toBe('credit_card');
+ expect(result.source_id).toBe('card_1');
+ expect(result.source).toBeDefined();
+ expect(result.source!.id).toBe('card_1');
+ });
+ });
+});