SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Products

List a shop's products

GET/api/v1/products/shop/:shopId

Lists every product — any status — in one of the seller's own shops.

Requires Authorization
SELLER only
Session

Path parameters

shopIdstringrequired
Must belong to the authenticated seller.

Query parameters

pagenumber
Defaults to 1.
limitnumber
Max 100. Defaults to 20.
statusstring
DRAFT, PUBLISHED, or ARCHIVED.
Request
curl --request GET \
  --url https://api.swiftgoma.com/api/v1/products/shop/:shopId \
  --header 'Authorization: Bearer <access_token>'
200Example response
{
  "success": true,
  "data": {
    "products": [
      {
        "id": "prod_7c8d9e",
        "shopId": "shop_2b3c4d",
        "subcategoryId": "sub_1a2b3c",
        "name": "Riz parfumé 25kg",
        "slug": "riz-parfume-25kg",
        "description": "Riz parfumé de qualité supérieure, sac de 25kg, idéal pour la revente ou la consommation familiale.",
        "brand": "Uncle Sam",
        "unit": "piece",
        "weightGrams": 25000,
        "currency": "USD",
        "status": "PUBLISHED",
        "hasVariants": false,
        "images": [
          {
            "id": "img_1",
            "url": "https://res.cloudinary.com/dx3wclabo/image/upload/v1/products/riz-1.jpg",
            "position": 0
          }
        ],
        "variants": [
          {
            "id": "var_4d5e6f",
            "name": null,
            "attributes": null,
            "sku": null,
            "price": "12.50",
            "stock": 40,
            "isDefault": true
          }
        ],
        "createdAt": "2026-01-10T09:00:00.000Z",
        "updatedAt": "2026-01-14T10:32:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 1,
      "totalPages": 1
    }
  }
}