Nyehandel
  1. Product
Nyehandel
  • Introduction
  • Getting started
  • Webhooks
  • API Reference
  • Order
    • Get order
      GET
    • Get orders
      GET
    • Create order
      POST
    • Deliver order
      POST
  • Shipping Method
    • Get Shipping methods
      GET
  • Product
    • Relation between products and variants
    • Get products
      GET
    • Update products batch
      PUT
    • Create products batch
      POST
    • Create product
      POST
    • Update product
      PUT
    • Create variant
      POST
    • Find product by sku or id
      GET
    • Delete product
      DELETE
  • Variant
    • Update variant batch
      PUT
    • Update variant
      PUT
    • Delete product variant
      DELETE
    • Find variant
      GET
  • Payment Method
    • Get Payment methods
      GET
  • Customer
    • Get Customer
      GET
    • Get Customers
      GET
    • Create Customer
      POST
  • Category
    • Create category
    • Update category
    • Get category
    • Delete category
    • Get categories
  • Currency
    • Get currencies
  • Headless
    • Pages
      • Get Page
      • Get Pages
    • Categories
      • Get Category
      • Get Pages
    • Startpage
    • System
  1. Product

Create products batch

POST
/products/batch
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/products/batch' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "products": [
        {
            "status": "draft",
            "meta_title": "string",
            "meta_description": "string",
            "name": "string",
            "external_reference": "string",
            "description": "string",
            "short_description": "string",
            "slug": "string",
            "hs_code": "string",
            "country_of_origin": "string",
            "vat_rate": 2500,
            "variants": [
                {
                    "sku": "string",
                    "stock": 0,
                    "weight": 0,
                    "purchase_price": 0,
                    "stock_price": 0,
                    "package_size": 1,
                    "supplier_sku": "string",
                    "prices": [
                        {
                            "price": 0,
                            "compare_price": 0,
                            "customer_group_id": 1,
                            "currency_id": 1,
                            "tier": 0
                        }
                    ],
                    "gtin": "string",
                    "options": [
                        {
                            "type": "string",
                            "value": "string"
                        }
                    ]
                }
            ],
            "type": "standard",
            "categories": [
                {
                    "name": "string",
                    "external_identifier": "string",
                    "update_on_exists": true
                }
            ],
            "brand_name": "string",
            "supplier_name": "string",
            "attributes": [
                {
                    "key": "string",
                    "value": "string",
                    "is_featured": true,
                    "is_labeled": true
                }
            ],
            "specifications": [
                {
                    "section_title": "string",
                    "specifications": [
                        {
                            "key": "string",
                            "value": "string",
                            "is_featured": true
                        }
                    ]
                }
            ],
            "filter_tags": [
                "string"
            ],
            "images": [
                "string"
            ],
            "vehicle_data": [
                {
                    "tag": "string",
                    "model": "string",
                    "brand": "string",
                    "year": 0,
                    "metadata": {}
                }
            ]
        }
    ]
}'
Response Response Example
{}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
X-Identifier
string 
optional
Example:
{{x_identifier}}
Authorization
string 
optional
Example:
Bearer {{token}}
Accept
string 
optional
Example:
application/json
Content-Type
string 
optional
Example:
application/json
Body Params application/json
products
array [object {21}] 
required
status
enum<string> 
required
Allowed values:
draftpublishedinactivepending_retirementretired
meta_title
string 
optional
meta_description
string 
optional
name
string 
required
external_reference
string 
optional
description
string 
optional
short_description
string 
optional
slug
string 
optional
hs_code
string 
optional
country_of_origin
string 
optional
vat_rate
enum<integer> 
optional
Allowed values:
250012006000
variants
array [object {10}] 
required
type
enum<string> 
required
Allowed values:
standardinventory_itempre_order_item
categories
array [object {3}] 
optional
Set category or create if not found
brand_name
string 
optional
Set brand or create brand if not found
supplier_name
string 
optional
Set supplier or create supplier if not found
attributes
array [object {4}] 
optional
specifications
array [object {2}] 
optional
filter_tags
array[string]
optional
images
array[string]
optional
vehicle_data
array [object {5}] 
required
Examples

Responses

🟢200Success
application/json
Body
object {0}
Previous
Update products batch
Next
Create product
Built with