This section describes how to manage products (offers) using the NWMS API. It includes retrieving, creating, updating, and deleting products.
GET /api/products?sku=ABC123&sort_by=of_price&sort_dir=desc&per_page=10
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /api/products
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json
{
"of_name": "Test Product",
"of_status": 1,
"of_sku": "SKU123",
"of_price": 199.99
}
All responses use the OfferResource
to format output:
{
"id": 1,
"name": "Test Product",
"sku": "SKU123",
"article": null,
"price": 199.99,
"status": 1,
"shop_id": 2,
"domain_id": 1,
"dimensions": {
"x": null,
"y": null,
"z": null
},
"weight": null,
"image": null,
"comment": null,
"created_at": "2025-04-17T14:00:00.000000Z",
"updated_at": "2025-04-17T14:00:00.000000Z"
}
All endpoints require a valid Bearer token obtained via the login API.