Nyehandel
  1. Variant
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. Variant

Find variant

GET
/variants/find
ID, sku and GTIN are available as search parameters
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/variants/find?id=1258&sku=abc-123&gtin=012345678905' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Response Response Example
Success
{
  "data": {
    "id": 36120,
    "status": "published",
    "type": "Ej lagerförd",
    "name": "Ledlampa NEDIS E14 4,5W",
    "meta_title": "Ledlampa NEDIS E14 4,5W",
    "meta_description": "",
    "external_reference": "548289 75001224",
    "description": "Kronljusformad LED-LAMPA med E14-sockel, 470 lumen och låg strömförbrukning på 4.5 W som ersätter traditionella 42-Watts glödlampor.  Den energieffektiva LED-lampan sprider ett varmt vitt ljus med en färgtemperatur på 2 700 Kelvin",
    "hs_code": null,
    "country_of_origin": null,
    "filterTags": null,
    "variants": [
      {
        "id": 36115,
        "product_id": 36120,
        "sku": "75001224",
        "gtin": null,
        "stock": "0.00",
        "weight": 0,
        "purchase_price": 0,
        "stock_price": 0,
        "price": 0,
        "compare_price": 0,
        "package_size": 1,
        "supplier_sku": null,
        "external_reference": "548289",
        "always_orderable": true,
        "created_at": "2024-08-28T08:09:21.000000Z"
      }
    ],
    "categories": [
      {
        "id": 50,
        "external_reference": null,
        "name": "Möbler & Inredning"
      },
      {
        "id": 51,
        "external_reference": null,
        "name": "Lampor och tillbehör"
      },
      {
        "id": 1331,
        "external_reference": null,
        "name": "Glödlampor"
      },
      {
        "id": 36,
        "external_reference": null,
        "name": "Kontor & Lager"
      }
    ],
    "brand": null,
    "supplier": null,
    "created_at": "2024-08-28T08:09:21.000000Z"
  }
}

Request

Query Params
id
integer  | null 
optional
ID
Example:
1258
sku
string  | null 
optional
SKU
Example:
abc-123
gtin
string  | null 
optional
EAN/GTIN
Example:
012345678905
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

Responses

🟢200OK
application/json
Body
data
object 
required
id
integer 
required
product_id
integer 
required
sku
string 
required
gtin
null 
required
stock
string 
required
weight
integer 
required
purchase_price
integer 
required
stock_price
integer 
required
price
integer 
required
compare_price
integer 
required
package_size
integer 
required
supplier_sku
null 
required
external_reference
string 
required
always_orderable
boolean 
required
created_at
string 
required
Previous
Delete product variant
Next
Get Payment methods
Built with