Cart
Get cart for a shop
GET
/api/v1/cart/shop/:shopIdReturns the buyer's cart for one shop, with line items priced in the shop's currency by default.
Requires Authorization
Session
Path parameters
shopIdstringrequired | Shop ID. |
Query parameters
currencystring | USD or CDF — converts displayed totals using the configured exchange rate. |
Request
curl --request GET \
--url https://api.swiftgoma.com/api/v1/cart/shop/:shopId \
--header 'Authorization: Bearer <access_token>'200Example response
{
"success": true,
"data": {
"id": "cart_9f8e7d",
"shopId": "shop_2b3c4d",
"buyerId": "3f2a1c9e",
"currency": "USD",
"items": [
{
"id": "item_1a2b3c",
"variantId": "var_4d5e6f",
"productName": "Riz parfumé 25kg",
"quantity": 2,
"unitPrice": "12.50"
}
],
"subtotal": "25.00"
}
}