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.

Update API::V2 GET cart docs (#11684)

Kacper Mękarskid5b02e6ed2a1
diff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yaml
index ad5e0bf68f..27d68a7ea0 100644
--- a/api/docs/v2/storefront/index.yaml
+++ b/api/docs/v2/storefront/index.yaml
@@ -437,6 +437,7 @@ paths:
parameters:
- $ref: '#/components/parameters/CartIncludeParam'
- $ref: '#/components/parameters/SparseFieldsCart'
+ - $ref: '#/components/parameters/CartCurrencyParam'
summary: Retrieve a Cart
/api/v2/storefront/cart/add_item:
post:
@@ -3978,6 +3979,13 @@ components:
type: string
description: 'Specify the related resources you would like to receive in the response body. [More Information](https://jsonapi.org/format/#fetching-includes).'
example: 'line_items,variants,variants.images,billing_address,shipping_address,user,payments,shipments,promotions'
+ CartCurrencyParam:
+ name: currency
+ in: query
+ schema:
+ type: string
+ description: 'Must be specified when is different than current store default currency.'
+ example: 'USD'
ProductIncludeParam:
name: include
in: query