Moderation
List all products
GET
/api/v1/products/adminLists products across every shop on the platform, for moderation. Staff-only.
Requires Authorization
ADMIN, SUPPORT only
Session
Query parameters
pagenumber | Defaults to 1. |
limitnumber | Max 100. Defaults to 20. |
statusstring | DRAFT, PUBLISHED, or ARCHIVED. |
shopIdstring | Filter by shop. |
searchstring | Matches product name, slug, description, and shop name. |
Request
curl --request GET \
--url https://api.swiftgoma.com/api/v1/products/admin \
--header 'Authorization: Bearer <access_token>'200Example response
{
"success": true,
"data": {
"items": [
{
"id": "prod_7c8d9e",
"name": "Riz parfumé 25kg",
"slug": "riz-parfume-25kg",
"status": "PUBLISHED",
"currency": "USD",
"minPrice": 12.5,
"variantCount": 1,
"shop": {
"id": "shop_2b3c4d",
"name": "Boutique Aline"
}
}
],
"total": 1,
"page": 1,
"limit": 20,
"totalPages": 1
}
}