Commerce
Post v1commerceproductsimport
POST
/
v1
/
commerce
/
products
/
import
cURL
curl --request POST \
--url https://api.wazapin.com/v1/commerce/products/import \
--header 'Content-Type: text/csv' \
--data '<string>'const options = {method: 'POST', headers: {'Content-Type': 'text/csv'}, body: '<string>'};
fetch('https://api.wazapin.com/v1/commerce/products/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/products/import"
payload = "<string>"
headers = {"Content-Type": "text/csv"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"created": 123,
"skipped": 123,
"updated": 123,
"variants_created": 123,
"variants_updated": 123,
"errors": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
cURL
curl --request POST \
--url https://api.wazapin.com/v1/commerce/products/import \
--header 'Content-Type: text/csv' \
--data '<string>'const options = {method: 'POST', headers: {'Content-Type': 'text/csv'}, body: '<string>'};
fetch('https://api.wazapin.com/v1/commerce/products/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/products/import"
payload = "<string>"
headers = {"Content-Type": "text/csv"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"created": 123,
"skipped": 123,
"updated": 123,
"variants_created": 123,
"variants_updated": 123,
"errors": [
"<string>"
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}