Create a product
curl --request POST \
--url https://wisepim.com/api/public/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sku": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/products"
payload = { "sku": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sku: '<string>'})
};
fetch('https://wisepim.com/api/public/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"sku": "<string>",
"name": "<string>",
"name_long": "<string>",
"name_localized": {},
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"product_type": "<string>",
"category_ids": [
123
],
"attributes": [
{
"code": "<string>",
"label": "<string>",
"type": "<string>",
"value": "<unknown>",
"unit": "<string>"
}
],
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"description": "<string>",
"short_description": "<string>",
"parent_id": 123,
"family": {
"id": 123,
"code": "<string>",
"name": "<string>"
},
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"main_image": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Create a product
POST /products on the WISEPIM Public API: create one product by SKU with content, prices, SEO fields, categories and attributes. Requires products:write.
POST
/
api
/
public
/
v1
/
products
Create a product
curl --request POST \
--url https://wisepim.com/api/public/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sku": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/products"
payload = { "sku": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sku: '<string>'})
};
fetch('https://wisepim.com/api/public/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"sku": "<string>",
"name": "<string>",
"name_long": "<string>",
"name_localized": {},
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"product_type": "<string>",
"category_ids": [
123
],
"attributes": [
{
"code": "<string>",
"label": "<string>",
"type": "<string>",
"value": "<unknown>",
"unit": "<string>"
}
],
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"description": "<string>",
"short_description": "<string>",
"parent_id": 123,
"family": {
"id": 123,
"code": "<string>",
"name": "<string>"
},
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"main_image": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Authorizations
Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.
Headers
Body
application/json
Response
Created

