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 tracking_url to shipment serializer

Damian Legawiec45e1a2eedc1e
diff --git a/api/app/serializers/spree/api/v2/platform/shipment_serializer.rb b/api/app/serializers/spree/api/v2/platform/shipment_serializer.rb
index 75fc8953ab..8732638f50 100644
--- a/api/app/serializers/spree/api/v2/platform/shipment_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/shipment_serializer.rb
@@ -5,6 +5,8 @@ module Spree
class ShipmentSerializer < BaseSerializer
include ResourceSerializerConcern
+ attribute :tracking_url
+
belongs_to :order
belongs_to :address
belongs_to :stock_location