Nyehandel
  1. Product
Nyehandel
  • Introduction
  • Getting started
  • Webhooks
  • Filtering
  • API Reference
  • Order
    • Get order
      GET
    • Get orders
      GET
    • Create order
      POST
    • Deliver order
      POST
    • Update order
      POST
    • Get delivery notes
      GET
  • 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
  • Customer
    • Get Customer
    • Get Customers
    • Create Customer
  • Category
    • Create category
    • Update category
    • Get category
    • Delete category
    • Get categories
  • Currency
    • Get currencies
  • Headless
    • Pages
      • Get Page
      • Get Pages
    • Categories
      • Get Pages
      • Get Category
    • Startpage
    • System
  • Purchase
    • Get purchases
  1. Product

Create product

POST
/products
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/products' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "status": "draft",
    "name": "namn 2024-09-03",
    "meta_title": "Metis titilus",
    "meta_description": "Metus deskriptus",
    "external_reference": "Ext reffe",
    "description": "produktbeskrivningen",
    "hs_code": "12312321",
    "country_of_origin": "SE",
    "vat_rate": 1200,
    "variants": [
        {
            "sku": "20240901-hej57ad39",
            "stock": "291",
            "weight": "2500",
            "stock_price": 10000,
            "purchase_price": 1000,
            "supplier_sku": "Lev-art-100",
            "gtin": "Gtion-valle",
            "prices": [
                {
                    "price": 15000,
                    "tier": 1,
                    "compare_price": 20000
                },
                {
                    "price": 14000,
                    "tier": 5,
                    "compare_price": 20000
                },
                {
                    "price": 14000,
                    "tier": 10,
                    "compare_price": 20000,
                    "currency_id": 1
                }
            ],
            "options": [
                {
                    "type": "Färg",
                    "value": "Blå"
                },
                {
                    "type": "Storlek",
                    "value": "S"
                }
            ]
        }
    ],
    "categories": [
        {
            "name": "Jul",
            "update_on_exists": false
        },
        {
            "name": "kaosdkasd",
            "external_identifier": "api-1",
            "update_on_exists": false
        },
        {
            "name": "hejsan",
            "external_identifier": "api-1",
            "update_on_exists": false
        }
    ],
    "type": "inventory_item"
}'
Response Response Example
{}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-04-28 06:33:11
Previous
Create products batch
Next
Update product
Built with