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_shop_id": 2,
"of_name": "Test Product",
"of_status": 1,
"of_sku": "SKU123",
"of_price": 199.99,
"of_dimensions": {
"x": 105,
"y": 200,
"z": 32
},
"of_weight": 250
}
]
All responses use the OfferResource to format output:
{
"of_id": 1,
"of_name": "Test Product",
"of_sku": "SKU123",
"of_article": null,
"of_price": 199.99,
"of_status": 1,
"of_shop_id": 2,
"of_domain_id": 1,
"of_dimensions": {
"x": null,
"y": null,
"z": null
},
"of_weight": null,
"of_image": null,
"of_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.