Download OpenAPI specification:Download
You can use the MyCashflow API to integrate your MyCashflow online store with a number of third-party applications, for example CRMs and accounting software.
MyCashflow API is only available for the following plans:
NOTE: MyCashflow also has support for Zapier for your more lightweight integration needs. See further info at https://support.mycashflow.com/en/user-guide/zapier.
MyCashflow API is recommended to be used in backend clients. Making API credentials public in frontend clients carries many security issues.
Get started using the API by going through the following documentation. This document will be updated whenever changes to the API are made.
All major versions of the API have their own endpoints. The endpoint defines the server path that receives your API requests and responds to them. The MyCashflow API endpoints are defined according to the following scheme:
https://STORENAME.mycashflow.fi/api/v1
The last part of the endpoint address defines the targeted API version.
The API is only available over the default domain
https://STORENAME.mycashflow.fi. Calls to custom domains are
ignored.
Do not include a trailing slash in the request URL. The API will return an error if a trailing slash is present.
First, install the API extension on the Account » Extensions » API page of your store's admin panel.
Once you have installed the API extension, you need to create an API user. The API user account's credentials are used to authenticate requests to the API (see Authentication).
All requests must be authenticated by using HTTP Basic
access authentication. Any requests with missing or incorrect
credentials will return a 401 Unauthorized response.
The MyCashflow API is only available through an encrypted HTTPS connection. Any
requests using an unencrypted connection will return a 400 Bad Request
response. Using HTTPS guarantees that your authentication credentials are always
hidden from malicious third parties.
All API calls must be made to the store's default URL, ie.
https://STORENAME.mycashflow.fi/api/v1
The API credentials for your store are available in the settings of the API extension at Account » Extensions » API or on the Account » Users page.
One MyCashflow store may have several API users, so make sure you use the correct credentials for each purpose.
Use dedicated credentials for your clients
It is recommended to create a dedicated set of API credentials for each individual client program.
If you don't have access to the admin panel of the store, contact the store owner for your API credentials.
To authenticate a request, send the API user's credentials in the
Authorization header:
USERNAME:PASSWORDVVNFUk5BTUU6UEFTU1dPUkQ=Basic in the Authorization header.GET /api/v1/products HTTP/1.1 Host: STORENAME.mycashflow.fi Authorization: Basic VVNFUk5BTUU6UEFTU1dPUkQ=
Most HTTP clients build the header for you when you give them the username and the password. For example, with curl:
curl -u USERNAME:PASSWORD https://STORENAME.mycashflow.fi/api/v1/products
basicAll responses with content have the following HTTP headers:
Content-Type: application/jsonContent-LengthRequests may return the following HTTP status response codes:
Success:
200 Ok201 Created204 No contentClient error:
400 Bad Request401 Unauthorized404 Not Found409 Conflict422 Unprocessable EntityServer error:
500 Internal Server Error503 Service Unavailable5xx Other connection errorsThe API returns the response body for requests in JSON format – provided that the requested resource was found:
422 Unprocessable Entity error was encountered while
processing your request, the errors element will also be present in the response
body.MyCashflow API uses two methods of reporting errors:
See Headers under Responses for possible error codes.
errors JSON element: if the request contains errors, the response JSON will contain the errors element, which provides details about the error.
For example, errors will be reported as JSON, if you try to add a product without a name, or insert unsupported data into certain fields.
Below is a JSON example of an error message returned by a PATCHrequest. Each field affected by errors will have its own array of error messages, with the field name as a key:
Products are the items the store sells. The sections that follow cover the parts of a product that have endpoints of their own, such as variations, images and translations.
| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "connections" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
| id | integer >= 1 Example: id=1,2,3 List of ID's of products to fetch. |
| created_at-from | string <date-time> Example: created_at-from=2017-06-14T20:45:52 Retrieve products that have been created on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| created_at-to | string <date-time> Example: created_at-to=2017-06-14T20:45:52 Retrieve products that have been created on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| updated_at-from | string <date-time> Example: updated_at-from=2017-06-14T20:45:52 Retrieve products that have been created on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| updated_at-to | string <date-time> Example: updated_at-to=2017-06-14T20:45:52 Retrieve products that have been created on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "type": "NORMAL",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
], - "visibilities": [
- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "is_visible": false
}
], - "category_links": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
], - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "connections": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
], - "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "variations": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "image_id": 5,
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}, - "brand": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "template": "brand/custom-template"
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| product_code | string <unique> The product code |
| supplier_code | string The supplier's product code |
| barcode | string or null The barcode of the product's stock item, such as an EAN code. The barcode belongs to the stock item. This field remains for integrations that used it before the barcode moved to the stock item. For a product with variations, the value is To read the barcode, use When you write the barcode through this field, an empty string removes it and |
| name required | string The product name.
Required in either the |
| description | string The short product description.
Can be included in either the |
| information | string The long product description.
Can be included in either the |
| keywords | string Comma-separated list of keywords. Used by the internal search engine. |
| price | number The product price including VAT. The tax free price is calculated based on the |
| purchase_price | number The product's purchase price. Always exclude VAT. |
| vat_rate | number >= 0 The product's VAT rate. If not included when creating a product, the product will have VAT 0 %. |
| weight | number The weight of the product in kilograms |
| parcel_type | string Enum: "LETTER" "LARGE_LETTER" "REGISTERED_LETTER" "PARCEL" "LARGE_PARCEL" "LONG_PARCEL" "INSURED_PARCEL" "CARGO" "DIGITAL" The product's parcel size |
| warranty | integer The warranty period in months |
| brand_id | integer or null >= 0 ID of the product's brand. Must belong to an existing brand in the store. |
| supplier_id | integer >= 1 ID of the product's supplier |
| available_from | string <date> Defines the date, when the product becomes available. If |
| available_to | string <date> Defines the date, when the product is no longer available. It will remain visible, but can no longer be added to cart. The product will become unavailable at 12:00 AM on the set date. |
| featured | boolean Whether the product is featured. The store can show featured products to customers, for example on the front page. |
| order_limit | integer The maximum order limit for the product. Must be more than |
| order_limit_min | integer The minimum order limit for the product. Must be less than |
| visible_from | string <date-time> Defines the date and time, when the product becomes visible (not available for buying, see |
| purchasable_from | string <date-time> Defines the date and time, when the product can be added to the cart.
If |
| seo_title | string The SEO document title. Shown, for example, in Google search results as the title. |
| seo_page_title | string The SEO page title. Shown on the page, in place of the usual page title, if set. |
| seo_meta_description | string The SEO meta description. Shown, for example, in Google search results as the page description. |
| google_category_id | integer or null The ID of the product's Google product category. The value must be a valid category ID from Google's product taxonomy. The Product feeds extension uses it to tell services such as Google which category the product belongs to. |
| template | string or null The alternative template the product page uses: the template's path from the theme root, without |
Array of objects Array of translations for the product's multilingual fields. |
{- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "type": "NORMAL",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
], - "visibilities": [
- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "is_visible": false
}
], - "category_links": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
], - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "connections": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
], - "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "variations": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "image_id": 5,
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}, - "brand": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "template": "brand/custom-template"
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}
}With this endpoint you can update the prices of up to 1000 products with a single POST request.
Note: The operation may result in a partial success where some prices do not get updated (due to validation errors, like non-unique or incorrect product codes). The amount of successful and failed items is included in the response.
| data | Array of objects <= 1000 items |
{- "data": [
- { }
]
}{- "summary": {
- "updated": 0,
- "failed": 0
}, - "errors": { }
}| productID required | integer >= 1 Unique identifier for the product |
| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "connections" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "type": "NORMAL",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
], - "visibilities": [
- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "is_visible": false
}
], - "category_links": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
], - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "connections": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
], - "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "variations": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "image_id": 5,
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}, - "brand": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "template": "brand/custom-template"
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}
}| productID required | integer >= 1 Unique identifier for the product |
| product_code | string <unique> The product code |
| supplier_code | string The supplier's product code |
| barcode | string or null The barcode of the product's stock item, such as an EAN code. The barcode belongs to the stock item. This field remains for integrations that used it before the barcode moved to the stock item. For a product with variations, the value is To read the barcode, use When you write the barcode through this field, an empty string removes it and |
| name | string The product name.
Required in either the |
| description | string The short product description.
Can be included in either the |
| information | string The long product description.
Can be included in either the |
| keywords | string Comma-separated list of keywords. Used by the internal search engine. |
| price | number The product price including VAT. The tax free price is calculated based on the |
| purchase_price | number The product's purchase price. Always exclude VAT. |
| vat_rate | number >= 0 The product's VAT rate. If not included when creating a product, the product will have VAT 0 %. |
| weight | number The weight of the product in kilograms |
| parcel_type | string Enum: "LETTER" "LARGE_LETTER" "REGISTERED_LETTER" "PARCEL" "LARGE_PARCEL" "LONG_PARCEL" "INSURED_PARCEL" "CARGO" "DIGITAL" The product's parcel size |
| warranty | integer The warranty period in months |
| brand_id | integer or null >= 0 ID of the product's brand. Must belong to an existing brand in the store. |
| supplier_id | integer >= 1 ID of the product's supplier |
| available_from | string <date> Defines the date, when the product becomes available. If |
| available_to | string <date> Defines the date, when the product is no longer available. It will remain visible, but can no longer be added to cart. The product will become unavailable at 12:00 AM on the set date. |
| featured | boolean Whether the product is featured. The store can show featured products to customers, for example on the front page. |
| order_limit | integer The maximum order limit for the product. Must be more than |
| order_limit_min | integer The minimum order limit for the product. Must be less than |
| visible_from | string <date-time> Defines the date and time, when the product becomes visible (not available for buying, see |
| purchasable_from | string <date-time> Defines the date and time, when the product can be added to the cart.
If |
| seo_title | string The SEO document title. Shown, for example, in Google search results as the title. |
| seo_page_title | string The SEO page title. Shown on the page, in place of the usual page title, if set. |
| seo_meta_description | string The SEO meta description. Shown, for example, in Google search results as the page description. |
| google_category_id | integer or null The ID of the product's Google product category. The value must be a valid category ID from Google's product taxonomy. The Product feeds extension uses it to tell services such as Google which category the product belongs to. |
| template | string or null The alternative template the product page uses: the template's path from the theme root, without |
Array of objects Array of translations for the product's multilingual fields. |
{- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "type": "NORMAL",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
], - "visibilities": [
- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "is_visible": false
}
], - "category_links": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
], - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "connections": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
], - "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "variations": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "image_id": 5,
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}, - "brand": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "template": "brand/custom-template"
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}
}| productCode required | string The unique product code assigned to the product |
| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "connections" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "type": "NORMAL",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
], - "visibilities": [
- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "is_visible": false
}
], - "category_links": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
], - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "connections": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
], - "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "variations": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "image_id": 5,
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}, - "brand": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "template": "brand/custom-template"
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}
}| supplierCode required | string The supplier's product code |
| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "connections" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "barcode": "6412345678901",
- "type": "NORMAL",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "keywords": "mekot, juhlamekot, puuvilla, pellava",
- "price": 159.95,
- "purchase_price": 120,
- "vat_rate": 25.5,
- "weight": 1.25,
- "parcel_type": "PARCEL",
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "featured": false,
- "order_limit": 10,
- "order_limit_min": 1,
- "visible_from": "2017-12-31T23:20:50.52+02:00",
- "purchasable_from": "2017-12-31T23:20:50.52+02:00",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "google_category_id": 2271,
- "template": "product/alternative",
- "translations": [
- {
- "language": "fi",
- "name": "Leveäolkaiminen juhlamekko, vihreä",
- "description": "<p>Näyttävä ja tyylikäs iltajuhlien timantti!</p>",
- "information": "<p><strong>pituus</strong>: pitkä<br />\\n<strong>kuosi</strong>: yksivärinen<br />\\n<strong>kokonaispituus</strong>: 160 cm koossa M<br />\\n<strong>päällikankaan materiaali</strong>: 50 % puuvilla, 50 % pellava<br />\\n<strong>hoito-ohje</strong>: ei rumpukuivausta, konepesu 30°C</p>,",
- "seo_title": "Upea vihreä Gary's -juhlamekko,",
- "seo_page_title": "Upea vihreä Gary's -juhlamekko, puuvillan ja pellavan sekoitusta",
- "seo_meta_description": "Ajaton ja klassinen muotoilu. Leveät olkaimet tekevät mekosta myös mukavan yllä."
}, - {
- "language": "en",
- "name": "Dress with wide straps, green",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>",
- "seo_title": "Spctacular green Gary's party dress",
- "seo_page_title": "Spectacular green Gary's party dress, mix of cottom and flax",
- "seo_meta_description": "Timeless and classic design. Comfy to wear, thanks to wide straps."
}
], - "visibilities": [
- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "is_visible": false
}
], - "category_links": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
], - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "connections": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
], - "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "variations": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "image_id": 5,
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "features": {
- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}, - "brand": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "template": "brand/custom-template"
}, - "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}
}Variations are versions of one product that differ by a feature such as size or colour. Each variation can have its own price, product code and stock.
| productID required | integer >= 1 Unique identifier for the product |
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "image_id": 5,
- "translations": [
- {
- "language": "fi",
- "name": "Vihreä paita"
}, - {
- "language": "en",
- "name": "Green shirt"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| productID required | integer >= 1 Unique identifier for the product |
| product_id | integer >= 1 The main product's ID. Used to attach the variation to a product. |
| sort | integer An integer that determines the variation's location on the main product's variation list. |
| name | string The variation name |
| product_code | string The variation product code |
| price | number The variation price including VAT. The tax free price is calculated based on the main product's VAT rate. |
| purchase_price | number The variation purchase price excluding VAT. |
| weight | number The variation's weight in kilograms |
| image_id | integer The image ID of a product image that will be attached to the variation.
You can find out the IDs of product images with |
Array of objects An array of translation objects that contain content for any multilingual fields of the variation. |
{- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "image_id": 5,
- "translations": [
- {
- "language": "fi",
- "name": "Vihreä paita"
}, - {
- "language": "en",
- "name": "Green shirt"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "image_id": 5,
- "translations": [
- {
- "language": "fi",
- "name": "Vihreä paita"
}, - {
- "language": "en",
- "name": "Green shirt"
}
]
}
}| productID required | integer >= 1 Unique identifier for the product |
| variationID required | integer >= 1 Unique identifier for the variation |
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "image_id": 5,
- "translations": [
- {
- "language": "fi",
- "name": "Vihreä paita"
}, - {
- "language": "en",
- "name": "Green shirt"
}
]
}
}| productID required | integer >= 1 Unique identifier for the product |
| variationID required | integer >= 1 Unique identifier for the variation |
| product_id | integer >= 1 The main product's ID. Used to attach the variation to a product. |
| sort | integer An integer that determines the variation's location on the main product's variation list. |
| name | string The variation name |
| product_code | string The variation product code |
| price | number The variation price including VAT. The tax free price is calculated based on the main product's VAT rate. |
| purchase_price | number The variation purchase price excluding VAT. |
| weight | number The variation's weight in kilograms |
| image_id | integer The image ID of a product image that will be attached to the variation.
You can find out the IDs of product images with |
Array of objects An array of translation objects that contain content for any multilingual fields of the variation. |
{- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "image_id": 5,
- "translations": [
- {
- "language": "fi",
- "name": "Vihreä paita"
}, - {
- "language": "en",
- "name": "Green shirt"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 65,
- "sort": 2,
- "name": "S",
- "product_code": "S330",
- "price": 35.99,
- "purchase_price": 15.5,
- "weight": 1.25,
- "image_id": 5,
- "translations": [
- {
- "language": "fi",
- "name": "Vihreä paita"
}, - {
- "language": "en",
- "name": "Green shirt"
}
]
}
}| productID required | integer >= 1 Unique identifier for the product |
| variationID required | integer >= 1 Unique identifier for the variation |
{- "error": "<error message>",
- "description": "<error description>"
}| productID required | integer >= 1 Unique identifier for the product |
| variationID required | integer >= 1 Unique identifier for the variation |
| property name* additional property | any |
{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}Customization options let customers personalise a product when they order it, for example with a text to engrave. Each option can have choices with their own prices.
| productID required | integer >= 1 Unique identifier for the product |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 8,
- "sort": 1,
- "type": "TEXT",
- "name": "Painatettava teksti",
- "help": "Kirjoita tähän teksti, jonka haluat painatettavaksi paitaan."
}
]
}| productID required | integer >= 1 Unique identifier for the product |
| product_id | integer ID of the product this option belongs to |
| sort | integer An integer that determines the product option's location on the option list both in the store's back and front end |
| type required | string Enum: "H3" "TEXT" "TEXTAREA" "SELECT" "RADIO" "CHECKBOX" "FILE" The HTML element that is displayed to the visitors and used to input data to the product option. |
| name required | string The name of the option field. Will be displayed in the store on the customization form. |
| help | string Help text for the option field. Will be displayed in the store on the customization form. |
{- "product_id": 8,
- "sort": 1,
- "type": "TEXT",
- "name": "Painatettava teksti",
- "help": "Kirjoita tähän teksti, jonka haluat painatettavaksi paitaan."
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 8,
- "sort": 1,
- "type": "TEXT",
- "name": "Painatettava teksti",
- "help": "Kirjoita tähän teksti, jonka haluat painatettavaksi paitaan."
}
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 8,
- "sort": 1,
- "type": "TEXT",
- "name": "Painatettava teksti",
- "help": "Kirjoita tähän teksti, jonka haluat painatettavaksi paitaan."
}
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
| product_id | integer ID of the product this option belongs to |
| sort | integer An integer that determines the product option's location on the option list both in the store's back and front end |
| type | string Enum: "H3" "TEXT" "TEXTAREA" "SELECT" "RADIO" "CHECKBOX" "FILE" The HTML element that is displayed to the visitors and used to input data to the product option. |
| name | string The name of the option field. Will be displayed in the store on the customization form. |
| help | string Help text for the option field. Will be displayed in the store on the customization form. |
{- "product_id": 8,
- "sort": 1,
- "type": "TEXT",
- "name": "Painatettava teksti",
- "help": "Kirjoita tähän teksti, jonka haluat painatettavaksi paitaan."
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 8,
- "sort": 1,
- "type": "TEXT",
- "name": "Painatettava teksti",
- "help": "Kirjoita tähän teksti, jonka haluat painatettavaksi paitaan."
}
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
{- "error": "<error message>",
- "description": "<error description>"
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 9,
- "option_id": 2,
- "sort": 1,
- "name": "Spots",
- "price": 15.99
}
]
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
| product_id | integer The ID of the product option's main product |
| option_id | integer The ID of the option this choice belongs to |
| sort | integer An integer that determines the choice's location of the option list both in the store's back and front end |
| name | string The name of the choice |
| price | number Product option choices may have their own price, which is added to the sales price of the product, when a customer selects the choice. |
{- "product_id": 9,
- "option_id": 2,
- "sort": 1,
- "name": "Spots",
- "price": 15.99
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 9,
- "option_id": 2,
- "sort": 1,
- "name": "Spots",
- "price": 15.99
}
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
| choiceID required | integer >= 1 Unique identifier for the product option choice |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 9,
- "option_id": 2,
- "sort": 1,
- "name": "Spots",
- "price": 15.99
}
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
| choiceID required | integer >= 1 Unique identifier for the product option choice |
| product_id | integer The ID of the product option's main product |
| option_id | integer The ID of the option this choice belongs to |
| sort | integer An integer that determines the choice's location of the option list both in the store's back and front end |
| name | string The name of the choice |
| price | number Product option choices may have their own price, which is added to the sales price of the product, when a customer selects the choice. |
{- "product_id": 9,
- "option_id": 2,
- "sort": 1,
- "name": "Spots",
- "price": 15.99
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "product_id": 9,
- "option_id": 2,
- "sort": 1,
- "name": "Spots",
- "price": 15.99
}
}| productID required | integer >= 1 Unique identifier for the product |
| optionID required | integer >= 1 Unique identifier for the product option |
| choiceID required | integer >= 1 Unique identifier for the product option choice |
{- "error": "<error message>",
- "description": "<error description>"
}Product attributes are the store's list of features that products can have, such as material or colour, and the values each one can take. Customers can filter products by them.
An attribute only defines the feature and its values. To set which values a product has, use the Features API. Each attribute's code is a key there, and its value codes are what you set. A variation's features work the same way, through the Variations API.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "material",
- "sort": 3,
- "filterable": false,
- "listable": true,
- "labels": {
- "fi": "Materiaali",
- "en": "Material"
}
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| code required | string The individual code used to identify of the product attribute. |
| sort | integer The position of the product attribute on lists (filters and product page). |
| filterable | boolean Default: false Determines whether the product attribute is used as a product list filter in the store. |
| listable | boolean Default: false Determines whether the product attribute is shown on attribute lists on the product page. |
| labels required | object JSON object of translations for the product attribute's label texts which are displayed on filter lits and on the product page. |
{- "code": "material",
- "sort": 3,
- "filterable": false,
- "listable": true,
- "labels": {
- "fi": "Materiaali",
- "en": "Material"
}
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "material",
- "sort": 3,
- "filterable": false,
- "listable": true,
- "labels": {
- "fi": "Materiaali",
- "en": "Material"
}
}
}| productAttributeCode required | integer >= 1 Unique code of the product attribute |
{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "material",
- "sort": 3,
- "filterable": false,
- "listable": true,
- "labels": {
- "fi": "Materiaali",
- "en": "Material"
}
}
}| productAttributeCode required | integer >= 1 Unique code of the product attribute |
| code | string The individual code used to identify of the product attribute. |
| sort | integer The position of the product attribute on lists (filters and product page). |
| filterable | boolean Default: false Determines whether the product attribute is used as a product list filter in the store. |
| listable | boolean Default: false Determines whether the product attribute is shown on attribute lists on the product page. |
| labels | object JSON object of translations for the product attribute's label texts which are displayed on filter lits and on the product page. |
{- "code": "material",
- "sort": 3,
- "filterable": false,
- "listable": true,
- "labels": {
- "fi": "Materiaali",
- "en": "Material"
}
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "material",
- "sort": 3,
- "filterable": false,
- "listable": true,
- "labels": {
- "fi": "Materiaali",
- "en": "Material"
}
}
}You cannot delete the internal, pre-defined product attributes (color, size, brand, category).
| productAttributeCode required | integer >= 1 Unique code of the product attribute |
{- "error": "<error message>",
- "description": "<error description>"
}You cannot add values to the internal _category and _brand attributes. These attributes are automatically populated by the store's categories and brands.
| productAttributeCode required | integer >= 1 Unique code of the product attribute |
| code required | string The unique code of the attribute value. Entered upon creating a product attribute. May contain the characters |
| sort | integer Integer that determines the position of the value among the value list. |
| labels | object Object containing translations for the value's label text. |
{- "code": "red",
- "sort": 1,
- "labels": {
- "fi": "Punainen",
- "en": "Red"
}
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "string",
- "sort": 0,
- "labels": { }
}
}You cannot modify the values of the internal _category and _brand attributes. These attributes are automatically populated by the store's categories and brands.
| productAttributeCode required | integer >= 1 Unique code of the product attribute |
| productAttributeValueCode required | integer >= 1 Unique code of the product attribute value |
| code | string The unique code of the attribute value. Entered upon creating a product attribute. May contain the characters |
| sort | integer Integer that determines the position of the value among the value list. |
| labels | object Object containing translations for the value's label text. |
{- "code": "string",
- "sort": 0,
- "labels": { }
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "string",
- "sort": 0,
- "labels": { }
}
}| productAttributeCode required | integer >= 1 Unique code of the product attribute |
| productAttributeValueCode required | integer >= 1 Unique code of the product attribute value |
{- "error": "<error message>",
- "description": "<error description>"
}Features are the values a product has for the store's product attributes, such as its material or colour.
The attributes and their possible values come from the Attributes API. In a features object, each key is an attribute's code and holds a list of that attribute's value codes, for example "material": ["cotton", "wool"]. To add a new feature or value, create it in the Attributes API first.
You can create product features by using POST /api/v1/product-attributes
| productID required | integer >= 1 Unique identifier for the product |
| property name* additional property | any |
{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}Category links attach a product to the categories it is listed in.
| productID required | integer >= 1 Unique identifier for the product |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
]
}| productID required | integer >= 1 Unique identifier for the product |
| category_id required | integer The category ID |
| category_sort | integer An integer that determines the category's position among its sibling categories. |
| product_sort | integer An integer that determines the product's location among the category's products |
{- "category_id": 3,
- "category_sort": 1,
- "product_sort": 4
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
}| productID required | integer >= 1 Unique identifier for the product |
| categoryID required | integer >= 1 Unique identifier for the category |
{- "error": "<error message>",
- "description": "<error description>"
}Image files in the store's file system.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "filename": "image.png",
- "caption": "Image caption text",
- "translations": [
- {
- "language": "fi",
- "caption": "Esimerkkikuvateksti"
}, - {
- "language": "en",
- "caption": "Example image caption"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}There are 2 alternative ways of adding an image to the store's file system.
See further instructions in the examples.
| filename | string The image filename excluding the path. The image must reside in the store's |
Array of objects Array of translations for the image caption. Can be included in GET responses by using the |
{- "filename": "image.png",
- "translations": [
- {
- "language": "fi",
- "caption": "Esimerkkikuvateksti"
}, - {
- "language": "en",
- "caption": "Example image caption"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "filename": "image.png",
- "caption": "Image caption text",
- "translations": [
- {
- "language": "fi",
- "caption": "Esimerkkikuvateksti"
}, - {
- "language": "en",
- "caption": "Example image caption"
}
]
}
}| imageID required | integer >= 1 Unique identifier for the image |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "filename": "image.png",
- "caption": "Image caption text",
- "translations": [
- {
- "language": "fi",
- "caption": "Esimerkkikuvateksti"
}, - {
- "language": "en",
- "caption": "Example image caption"
}
]
}
}| fileName required | string The image filename |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "filename": "image.png",
- "caption": "Image caption text",
- "translations": [
- {
- "language": "fi",
- "caption": "Esimerkkikuvateksti"
}, - {
- "language": "en",
- "caption": "Example image caption"
}
]
}
}Image links attach images to a product and set their order.
| productID required | integer >= 1 Unique identifier for the product |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
]
}| productID required | integer >= 1 Unique identifier for the product |
| image_id required | integer Provide either the image ID or the filename, when creating an image link. |
| sort | integer An integer that determines the image's position on the list of a product's images |
| filename required | string Provide either the filename or the image ID, when creating an image link. |
| caption | string |
{- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}{- "data": {
- "product_id": 0,
- "image_id": 0,
- "sort": 0,
- "filename": "string",
- "caption": "string"
}
}| productID required | integer >= 1 Unique identifier for the product |
| fileName required | string The image filename |
{- "error": "<error message>",
- "description": "<error description>"
}| productID required | integer >= 1 Unique identifier for the product |
| imageID required | integer >= 1 Unique identifier for the image |
{- "error": "<error message>",
- "description": "<error description>"
}Visibilities set which of the store's versions a product is shown in.
| productID required | integer >= 1 Unique identifier for the product |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "version_id": 1,
- "is_visible": false
}
]
}| productID required | integer >= 1 Unique identifier for the product |
| version_id | integer >= 1 ID of the version, where the item's visibility is toggled. |
| is_visible | boolean Determines whether the item is visible in the designated version. |
[- {
- "version_id": 1,
- "is_visible": false
}
]{- "data": [
- {
- "version_id": 1,
- "is_visible": false
}
]
}Translations hold a product's texts, such as its name and description, in the versions of the store's enabled versions.
| productID required | integer >= 1 Unique identifier for the product |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "language": "fi",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>"
}| productID required | integer >= 1 Unique identifier for the product |
| language | string Enum: "fi" "en" "de" "ru" "se" "ee" "cn" "es" "jp" "it" "fr" "pt" "ee" "is" "no" "da" "nl" |
| name | string The product name.
Required in either the |
| description | string The short product description.
Can be included in either the |
| information | string The long product description.
Can be included in either the |
{- "language": "fi",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>"
}{- "language": "fi",
- "name": "Dress",
- "description": "<p>Spectacular and stylish gem of the dinner party!</p>",
- "information": "<p><strong>length</strong>: long<br />\\n<strong>color</strong>: unicolor<br />\\n<strong>total length</strong>: 160 cm in size M<br />\\n<strong>outer material</strong>: 50 % cottom, 50 % flax<br />\\n<strong>care and maintenance</strong>: no drum drying, machine wash in 30°C</p>"
}Connections link a product to other products for cross-selling, for example as an add-on or a spare part.
Returns all of the product's cross-selling connections. The list is not paginated.
| productID required | integer >= 1 Unique identifier for the product |
{- "data": [
- {
- "type": "ADD_ON",
- "product_id": 12,
- "connected_product_id": 78,
- "sort": 0
}, - {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}, - {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 56,
- "sort": 1
}, - {
- "type": "SPARE_PART",
- "product_id": 12,
- "connected_product_id": 90,
- "sort": 0
}
]
}Creates a connection of the given type. If the connection already exists, the response is 200 instead of 201, and a sort in the request replaces the connection's sort value.
POST changes only this one connection, and other connections keep their sort values. To set the order of all of the product's connections of one type at once, use PUT /api/v1/products/{productID}/connections/{connectionType}.
A SIMILAR connection is also created in the other direction. A product cannot be connected to itself.
| productID required | integer >= 1 Unique identifier for the product |
| type required | string Enum: "ADD_ON" "COMPATIBLE" "SIMILAR" "SPARE_PART" The connection type |
| connected_product_id required | integer ID of the connected product |
| sort | integer The connection's |
{- "type": "SIMILAR",
- "connected_product_id": 34,
- "sort": 2
}{- "data": {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
}| productID required | integer >= 1 Unique identifier for the product |
| connectionType required | string Enum: "ADD_ON" "COMPATIBLE" "SIMILAR" "SPARE_PART" The connection type, in upper or lower case |
{- "data": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
]
}Replaces the product's connections of this type with the products in
connected_product_ids, in that order. Connections that are not in the list are removed,
and an empty list removes them all.
PUT sets the whole list of one type at once. To add one connection or change one
connection's sort without touching the others, use
POST /api/v1/products/{productID}/connections.
For SIMILAR, the connections are also created or removed in the other direction.
For example, product 12 has ADD_ON connections to products 34 and 56. Sending
{"connected_product_ids": [56, 78]} to PUT /api/v1/products/12/connections/ADD_ON:
sort 0sort 1| productID required | integer >= 1 Unique identifier for the product |
| connectionType required | string Enum: "ADD_ON" "COMPATIBLE" "SIMILAR" "SPARE_PART" The connection type, in upper or lower case |
| connected_product_ids required | Array of integers IDs of the products to connect, in the order you want them. |
{- "connected_product_ids": [
- 34,
- 56
]
}{- "data": [
- {
- "type": "SIMILAR",
- "product_id": 12,
- "connected_product_id": 34,
- "sort": 0
}
]
}Removing a SIMILAR connection also removes the connection in the other direction.
| productID required | integer >= 1 Unique identifier for the product |
| connectionType required | string Enum: "ADD_ON" "COMPATIBLE" "SIMILAR" "SPARE_PART" The connection type, in upper or lower case |
| connectedProductID required | integer >= 1 ID of the connected product |
{- "error": "<error message>",
- "description": "<error description>",
- "details": "<error details as string, array or object>"
}Categories organise the store's products into a hierarchy that customers browse. A product can belong to several categories.
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| parent_id required | integer The parent category's ID |
| parent_sort | integer An integer that determines the category's location relative to the parent category's other child categories |
| name required | string You can provide the name of the category in either the main |
| description | string The category description. |
| default_template | string Enum: "category-front" "product-list" "homepage" The display type of the product category |
| external_id | integer The category's ID in an external system |
Array of objects An array of translation objects, which contain content for any multilingual fields of the category. |
{- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
}| categoryID required | integer >= 1 Unique identifier for the category |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
}| categoryID required | integer >= 1 Unique identifier for the category |
| parent_id | integer The parent category's ID |
| parent_sort | integer An integer that determines the category's location relative to the parent category's other child categories |
| name | string You can provide the name of the category in either the main |
| description | string The category description. |
| default_template | string Enum: "category-front" "product-list" "homepage" The display type of the product category |
| external_id | integer The category's ID in an external system |
Array of objects An array of translation objects, which contain content for any multilingual fields of the category. |
{- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
}| externalID required | string The category's external ID |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
}| externalID required | string The category's external ID |
| parent_id | integer The parent category's ID |
| parent_sort | integer An integer that determines the category's location relative to the parent category's other child categories |
| name | string You can provide the name of the category in either the main |
| description | string The category description. |
| default_template | string Enum: "category-front" "product-list" "homepage" The display type of the product category |
| external_id | integer The category's ID in an external system |
Array of objects An array of translation objects, which contain content for any multilingual fields of the category. |
{- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
}| categoryID required | integer >= 1 Unique identifier for the category |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent_id": 1,
- "parent_sort": 4,
- "name": "Pants",
- "description": "<p>Category description content</p>",
- "default_template": "category-front",
- "external_id": 56,
- "translations": [
- {
- "language": "fi",
- "name": "Kengät",
- "description": "Hyviä kenkiä"
}, - {
- "language": "en",
- "name": "Shoes",
- "description": "Nice shoes"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| categoryID required | integer >= 1 Unique identifier for the category |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "version_id": 1,
- "is_visible": false
}
]
}| categoryID required | integer >= 1 Unique identifier for the category |
| version_id | integer >= 1 ID of the version, where the item's visibility is toggled. |
| is_visible | boolean Determines whether the item is visible in the designated version. |
[- {
- "version_id": 1,
- "is_visible": false
}
]{- "data": [
- {
- "version_id": 1,
- "is_visible": false
}
]
}| categoryID required | integer >= 1 Unique identifier for the category |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
]
}Brands are the manufacturers or labels of the store's products. Each brand has its own page that lists its products.
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "en",
- "description": "<p>We publish new discounts every week.</p>",
- "seo_title": "Bernard's products",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Finest Bernard's products"
}, - {
- "language": "fi",
- "description": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "seo_title": "Bernard's-tuotteet",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Hienoimmat Bernard's-tuotteet"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| name required | string The brand name |
| description | string The brand description. Accepts HTML content. |
| seo_title | string The SEO document title. Shown, for example, in Google search results as the title. |
| seo_page_title | string The SEO page title. Shown on the page, in place of the usual page title, if set. |
| seo_meta_description | string The SEO meta description. Shown, for example, in Google search results as the page description. |
Array of objects An array of translation objects that contain content for any multilingual fields of the brand. |
{- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "en",
- "description": "<p>We publish new discounts every week.</p>",
- "seo_title": "Bernard's products",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Finest Bernard's products"
}, - {
- "language": "fi",
- "description": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "seo_title": "Bernard's-tuotteet",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Hienoimmat Bernard's-tuotteet"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "en",
- "description": "<p>We publish new discounts every week.</p>",
- "seo_title": "Bernard's products",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Finest Bernard's products"
}, - {
- "language": "fi",
- "description": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "seo_title": "Bernard's-tuotteet",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Hienoimmat Bernard's-tuotteet"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| brandID required | integer >= 1 Unique identifier for the brand |
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "en",
- "description": "<p>We publish new discounts every week.</p>",
- "seo_title": "Bernard's products",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Finest Bernard's products"
}, - {
- "language": "fi",
- "description": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "seo_title": "Bernard's-tuotteet",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Hienoimmat Bernard's-tuotteet"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| brandID required | integer >= 1 Unique identifier for the brand |
| name | string The brand name |
| description | string The brand description. Accepts HTML content. |
| seo_title | string The SEO document title. Shown, for example, in Google search results as the title. |
| seo_page_title | string The SEO page title. Shown on the page, in place of the usual page title, if set. |
| seo_meta_description | string The SEO meta description. Shown, for example, in Google search results as the page description. |
Array of objects An array of translation objects that contain content for any multilingual fields of the brand. |
{- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "en",
- "description": "<p>We publish new discounts every week.</p>",
- "seo_title": "Bernard's products",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Finest Bernard's products"
}, - {
- "language": "fi",
- "description": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "seo_title": "Bernard's-tuotteet",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Hienoimmat Bernard's-tuotteet"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Bernard's",
- "description": "Quality clothes from Bernard's",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "en",
- "description": "<p>We publish new discounts every week.</p>",
- "seo_title": "Bernard's products",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Finest Bernard's products"
}, - {
- "language": "fi",
- "description": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "seo_title": "Bernard's-tuotteet",
- "seo_page_title": "Bernard's",
- "seo_meta_description": "Hienoimmat Bernard's-tuotteet"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}Deleting a brand also removes it from every product that belongs to it. Their brand_id becomes 0.
| brandID required | integer >= 1 Unique identifier for the brand |
{- "error": "<error message>",
- "description": "<error description>"
}Suppliers are the companies the store buys its products from.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Hyvien tuotteiden maahantuonti Oy",
- "phone": "0504141421",
- "email": "mail@example.com",
- "url": "www.maahantuonti.fi"
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| name required | string The supplier's name |
| phone | string The supplier's phone number |
string The supplier's email address | |
| url | string The supplier's website address |
{- "name": "Hyvien tuotteiden maahantuonti Oy",
- "phone": "0504141421",
- "email": "mail@example.com",
- "url": "www.maahantuonti.fi"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Hyvien tuotteiden maahantuonti Oy",
- "phone": "0504141421",
- "email": "mail@example.com",
- "url": "www.maahantuonti.fi"
}
}| supplierID required | integer >= 1 Unique identifier for the supplier |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Hyvien tuotteiden maahantuonti Oy",
- "phone": "0504141421",
- "email": "mail@example.com",
- "url": "www.maahantuonti.fi"
}
}| supplierID required | integer >= 1 Unique identifier for the supplier |
| name | string The supplier's name |
| phone | string The supplier's phone number |
string The supplier's email address | |
| url | string The supplier's website address |
{- "name": "Hyvien tuotteiden maahantuonti Oy",
- "phone": "0504141421",
- "email": "mail@example.com",
- "url": "www.maahantuonti.fi"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Hyvien tuotteiden maahantuonti Oy",
- "phone": "0504141421",
- "email": "mail@example.com",
- "url": "www.maahantuonti.fi"
}
}The store's stock items (SKU) and locations. A stock item can be attached to products or variations.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
| updated_at-from | string <date-time> Example: updated_at-from=2017-06-14T20:45:52 Retrieve stock items that have been updated after the specified date and time. You can provide the datetime value in any of the three following formats:
|
| updated_at-to | string <date-time> Example: updated_at-to=2017-06-14T20:45:52 Retrieve stock items that have been updated before the specified date and time. You can provide the datetime value in any of the three following formats:
|
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| productCode required | string The unique product code assigned to the product |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}| productCode required | string The unique product code assigned to the product |
| barcode | string |
| location | string |
| enabled | boolean Determines, whether stock management is enabled for the stock item. |
| quantity | integer The current amount of items in stock. Used to calculate the |
| reserved | integer Amount of reservations. Read-only. Reservations are calculated from pending orders that contain products or variations this stock item is attached to. |
| balance | integer The current amount of items in storage.
When retrieving the balance it is automatically calculated followingly: ( |
| balance_alert | boolean Default: false Determines whether to use stock alert with this sotck item. |
| balance_limit | integer The number of items that will trigger the stock alarm, if |
| backorder_enabled | boolean Determines whether the item will be kept on sale, after its stock has run out. |
| backorder_estimate | string The alternative delivery time estimate, when the stock item has run out, and backorders are enabled. |
| customs_tariff_code | string The customs tariff code (CN) of the product the stock item is attached to. |
| country_of_origin | string The country of origin of the product the stock item is attached to. |
| code | string The product code of the product the stock item is attached to. Used to retrieve individual stock items. |
| product_id | integer >= 1 ID of the product this stock item is attached to |
| variation_id | integer >= 1 ID of the product variation this stock item is attached to |
{- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}| productCode required | string The unique product code assigned to the product |
| balance_change required | integer The amount added to or subtracted from the stock balance. |
{- "balance_change": -4
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "reserved": 3,
- "balance": 25,
- "balance_alert": false,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "customs_tariff_code": "5209",
- "country_of_origin": "FI",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}
}Lists the changes of stock quantities. Stock locations that don't log stock changes produce no rows.
Reading changes incrementally
changed_at value from the previous read and subtract a margin, for
example 5 minutes.changed_at-from in the next read.source_type is API and whose user_id is your own API user's
ID. Those are changes your integration made itself.You need the margin because a change gets its changed_at time before it's saved. A change
can appear after changes that have a later time.
Base changed_at-from on the returned changed_at values, not on your integration's clock.
The values are in the store's time zone.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
| changed_at-from | string <date-time> Example: changed_at-from=2026-10-15T12:00:00 Retrieve stock changes made on or after the specified date and time. The value is read in the store's time zone, and a time zone offset in the value is
ignored. In a URL, encode a |
| changed_at-to | string <date-time> Example: changed_at-to=2026-10-15T12:00:00 Retrieve stock changes made on or before the specified date and time. The value is read in the store's time zone. |
| stock_item_id | integer Example: stock_item_id=54 Retrieve the changes of one stock item. |
| location | string Example: location=london-warehouse Retrieve the changes of one stock location, identified by its code. An unknown code returns an empty list. |
{- "data": [
- {
- "id": 1,
- "changed_at": "2021-03-03T12:57:26+02:00",
- "user_id": 4,
- "source_type": "PRODUCT",
- "source_id": 5,
- "stock_item_id": 54,
- "location": "london-warehouse",
- "quantity": 4,
- "quantity_change": -1
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}Find out more about availability notifications in the documentation.
| is_sent | boolean Default: false Include only sent notifications |
| sent_at-from | string Include only notifications that were sent at or after the specified date and time |
| sent_at-to | string Include only notifications that were sent at or before the specified date and time |
| product_id | integer ID of the product for which the notification was requested |
| variation_id | integer ID of the product variation for which the notification was requested (null for products without variations) |
| version_id | integer ID of the store version in which the notification was requested |
{- "data": [
- {
- "id": 1,
- "email": "mail@example.com",
- "product_id": 1,
- "sent_at": "2020-01-01T00:00:00Z",
- "variation_id": 1,
- "version_id": 1
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| locationCode required | string |
{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "London warehouse",
- "code": "london-1"
}
}The code designated in the path of the PUT request will be assigned to the newly created stock location.
| locationCode required | string |
| name required | string Name of the stock location |
{- "name": "London warehouse"
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "London warehouse",
- "code": "london-1"
}
}| productCode required | string Unique product code of the product whose quantities you wish to handle |
{- "data": [
- {
- "location": "london-warehouse",
- "quantity": 5
}
]
}Update the stock quantities of a product per stock location.
Each row sets the quantity of one stock location, either as an absolute quantity or as
a quantity_change added to the current quantity. When you update quantities, send
either quantity or quantity_change on each row, not both.
If a change row doesn't match the request schema, the entire request fails. Otherwise,
valid rows are applied even when other rows fail. The 422 response describes both cases.
A quantity_change row is applied again each time you send it:
422 response with data, send again only the rows listed in errors.422 response without data, no row was applied. Fix the invalid rows and send the
whole request again.NOTE: Stock management must be enabled for the product. Updating the quantities of a
product that is not tracked fails validation and returns 422 Unprocessable entity.
| productCode required | string Unique product code of the product whose quantities you wish to handle |
| location required | string The code of the stock location |
| quantity | integer The product quantity in the specified stock location. Note: Use only |
| quantity_change | integer The amount to add to the current quantity in the stock location. A negative value decreases the quantity. MyCashflow adds the change to the quantity at the moment it's saved, so a point of sale sale or an order delivery made at the same time isn't lost. Use A negative change can make the quantity negative, the same way a point of sale sale can. Note: Use only |
[- {
- "location": "london-warehouse",
- "quantity": 5,
- "quantity_change": -2
}
]{- "data": [
- {
- "location": "london-warehouse",
- "quantity": 5
}
]
}| productCode required | string Unique product code of the product whose stock quantities you want to handle |
| locationCode required | string The stock location code |
{- "error": "<error message>",
- "description": "<error description>"
}Functions related to processing orders and updating their different statuses.
| archived_at-from | string <date-time> Example: archived_at-from=2017-06-14T20:45:52 Retrieve orders that have been archived on or after the specified date and time. You can provide the datetime value in any of these three following formats:
NOTE! Archiving must be enabled, otherwise the request will return a 400 Bad Request error. |
| archived_at-to | string <date-time> Example: archived_at-to=2017-06-14T20:45:52 Retrieve orders that have been archived on or before the specified date and time. You can provide the datetime value in any of these three following formats:
NOTE! Archiving must be enabled, otherwise the request will return a 400 Bad Request error. |
| created_at-from | string <date-time> Example: created_at-from=2017-06-14T20:45:52 Retrieve orders that have been created on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| created_at-to | string <date-time> Example: created_at-to=2017-06-14T20:45:52 Retrieve orders that have been created on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| shipments_completed_at-from | string <date-time> Example: shipments_completed_at-from=2017-06-14T20:45:52 Retrieve orders whose shipments have been marked as delivered on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| shipments_completed_at-to | string <date-time> Example: shipments_completed_at-to=2017-06-14T20:45:52 Retrieve orders whose shipments have been marked as delivered on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| expand | string Enum: "payments" "shipments" "products" "products.return_reasons" "tax_summary" "comments" "events" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
| status | string Enum: "OPEN" "CANCELLED" "COMPLETED" "RETURNED" Retrieve orders with a specific processing status. |
| updated_at-from | string <date-time> Example: updated_at-from=2017-06-14T20:45:52 Retrieve orders that have been updated after the specified date and time. You can provide the datetime value in any of the three following formats:
|
| updated_at-to | string <date-time> Example: updated_at-to=2017-06-14T20:45:52 Retrieve orders that have been updated before the specified date and time. You can provide the datetime value in any of the three following formats:
|
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| external_id | string The order ID in an external system |
| version_id | integer >= 1 ID of the version where the order was made |
| customer_id | integer >= 1 ID of the recipient customer. Required if the order is created for an already existing customer account. If not, customer information must be provided in the |
| referral_code | string Referral code that was used with the order. Referral codes are available through the Affiliate Marketing extension. |
| shipping_method_id required | integer The shipping method ID |
| shipping_costs | number The amount of shipping costs in EUR |
| payment_method_id required | integer >= 1 NOTE! You can only use the following payment services to create orders through the API:
|
| payment_costs | number The payment costs |
object Required if | |
object | |
required | Array of objects non-empty |
Array of objects | |
Array of objects |
{- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}| orderID required | integer >= 1 Unique identifier for the order |
| expand | string Enum: "payments" "shipments" "products" "products.return_reasons" "tax_summary" "comments" "events" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}| externalID required | string The order ID in an external system |
| expand | string Enum: "payments" "shipments" "products" "products.return_reasons" "tax_summary" "comments" "events" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}Quick processing activates the order's payments, registers and completes its shipment, and marks the order as delivered, all in one request.
Quick processing an order that is already COMPLETED returns the order unchanged.
By default, an order whose payments do not settle the order total fails quick processing
with a 409 error. Several of the options below relax or skip that check.
| orderID required | integer >= 1 Unique identifier for the order |
| allow_open_cash_on_delivery_payments | boolean Default: false Allow quick processing even if the order has open cash-on-delivery payments.
Left at |
| allow_open_invoice_payments | boolean Default: false Allow quick processing even if the order has open invoice payments.
Left at |
| ignore_payment_activation_errors | boolean Default: false Determines whether any errors activating payments should be ignored. Use this option, if the order has a Klarna payment that has been processed in Klarna Online. |
| ignore_payment_status | boolean Default: false Skip the payment status check, so the order is processed even when it has been overpaid or the amount paid does not match the order total. Use this for an order whose payments the provider has not confirmed yet, such as one with a partial, unfinished refund. The order is marked as delivered without its payments being reconciled. |
| select_pickup_point_if_missing | boolean Default: true Automatically select a default pickup point for a shipment that has none.
Only applies to shipping methods that use pickup points. Set to |
| select_pickup_point_if_invalid | boolean Default: false Replace a selected pickup point that is not available for the order's shipping address.
Only applies to shipping methods that use pickup points. Left at |
| tracking_code | string The tracking code for the order.
You can obtain the tracking code with |
| send_emails | boolean Default: true Determines whether to automatically send the shipping confirmation email upon successful processing. |
{- "allow_open_cash_on_delivery_payments": true,
- "allow_open_invoice_payments": true,
- "ignore_payment_activation_errors": true,
- "ignore_payment_status": true,
- "select_pickup_point_if_missing": false,
- "select_pickup_point_if_invalid": true,
- "tracking_code": "JJFI65229310013494123",
- "send_emails": false
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}| orderID required | integer >= 1 Unique identifier for the order |
| send_emails | boolean Default: true Determines whether to send a cancellation email to the customer's email address. |
{- "send_emails": false
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}Archiving must be enabled in the store. Read more about archiving orders.
| orderID required | integer >= 1 Unique identifier for the order |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "customer_id": 65,
- "language": "fi",
- "customer_external_id": "CUSTOMER123",
- "different_shipping_address": true,
- "subtotal": 14,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "source": "WEB",
- "referral_code": "REF123",
- "shipping_method_id": 5,
- "shipping_costs": 5.9,
- "payment_method_id": 6,
- "payment_costs": 2.5,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "comments": [
- {
- "order_id": 1,
- "created_at": null,
- "user_id": 2,
- "visibility": "PUBLIC",
- "text": "There will be a slight delay with your order's delivery."
}, - {
- "order_id": 1,
- "created_at": null,
- "user_id": null,
- "visibility": "PRIVATE",
- "text": "I didn't find a suitable pickup point for my order."
}
], - "tax_summary": {
- "subtotal": {
- "tax_rate": 24,
- "total": 10,
- "total_tax": 1.94,
- "total_without_tax": 8.06
}, - "discount": {
- "tax_rate": 24,
- "total": -2.54,
- "total_tax": -0.49,
- "total_without_tax": -2.05
}, - "shipping_costs": {
- "tax_rate": 24,
- "total": 6.9,
- "total_tax": 1.34,
- "total_without_tax": 5.56
}, - "payment_costs": {
- "tax_rate": 24,
- "total": 5,
- "total_tax": 0.97,
- "total_without_tax": 4.03
}, - "total": {
- "tax_rate": 24,
- "total": 19.36,
- "total_tax": 3.76,
- "total_without_tax": 15.6
}
}, - "events": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "code": "PAYMENT_CHANGED_TO_PAID",
- "message": "Payment transaction 144 (9,60€) status was changed as paid.",
- "data": {
- "TRANSACTION_ID": "144",
- "TRANSACTION_TOTAL": "9,60"
}
}, - "products": [
- {
- "product_id": 3,
- "variation_id": 15,
- "quantity": 1
}, - {
- "product_id": 4,
- "quantity": 1,
- "unit_price": 12.95
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "payments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
]
}
}| orderID required | integer >= 1 Unique identifier for the order |
| text required | string |
| visibility | string Default: "PRIVATE" Enum: "PUBLIC" "PRIVATE" Determines whether the comment is shown to the customer or not. * |
| update_timestamp | boolean Default: false Determines whether the order's last modified date should be updated, when the comment is submitted. |
{- "text": "Kommentin sisältö",
- "visibility": "PUBLIC",
- "update_timestamp": true
}{- "data": {
- "order_id": 0,
- "created_at": "2013-06-19T20:41:47+03:00",
- "text": "Some disturbances with your order...",
- "visibility": "PUBLIC",
- "update_timestamp": true
}
}You can fetch a list of an order's payments by using GET /api/v0/orders/{orderId}?expand=payments
| orderID required | integer >= 1 Unique identifier for the order |
| paymentID required | integer >= 1 Unique identifier for the payment |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
}Used only with Klarna, Walley (through Paytrail) and Ropo 24 payments, when the payment transaction status is PENDING_ACTIVATION.
The payment status after marking unpaid is PAID.
| orderID required | integer >= 1 Unique identifier for the order |
| paymentID required | integer >= 1 Unique identifier for the payment |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
}The payment status after marking unpaid is CANCELLED.
| orderID required | integer >= 1 Unique identifier for the order |
| paymentID required | integer >= 1 Unique identifier for the payment |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
}The payment status after marking unpaid is PAID.
| orderID required | integer >= 1 Unique identifier for the order |
| paymentID required | integer >= 1 Unique identifier for the payment |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
}The payment status after marking unpaid is OPEN.
| orderID required | integer >= 1 Unique identifier for the order |
| paymentID required | integer >= 1 Unique identifier for the payment |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "order_id": 56,
- "payment_method_id": 5,
- "reference": "201306250036",
- "external_id": "f9addd21d393e9d5aab2a577a89e029a86dc5071",
- "amount": 15.99,
- "currency": "EUR",
- "exchange_rate": 1.23,
- "is_confirmed": true,
- "is_paid": true,
- "status": "PAID",
- "uuid": "550e8400-e29b-41d4-a716-446655440000"
}
}Using this endpoint you can add off-hand products, i.e. products that are not included in your online store's product catalog, to orders.
| orderID required | integer >= 1 Unique identifier for the order |
| list_price | any |
| product_name required | any |
| purchase_price | any |
| quantity | any Default: 1 |
| unit_price required | any |
| vat_rate required | any |
| weight | any Weight in grams |
{- "list_price": 247,
- "product_name": "Off-hand product",
- "purchase_price": 2.47,
- "quantity": 25,
- "unit_price": 24.7,
- "vat_rate": 24,
- "weight": 200
}{- "data": {
- "order_id": 0,
- "created_at": "2013-06-19T20:41:47+03:00",
- "text": "Some disturbances with your order...",
- "visibility": "PUBLIC",
- "update_timestamp": true
}
}| orderID required | integer >= 1 Unique identifier for the order |
| orderProductID required | integer >= 1 Unique identifier for an order product |
| order_id | integer The order ID |
| product_id | integer The product ID |
| variation_id | integer Required if the order contains a variation of some product. Otherwise leave out. |
| quantity | integer Quantity of ordered products. Negative for returns. |
| unit_price | number The price of each unit. If left empty, the list price of the product will be used. |
Array of objects Array of return reasons. Available through |
{- "order_id": 4,
- "product_id": 56,
- "variation_id": 0,
- "quantity": 3,
- "unit_price": 12.99,
- "return_reasons": [
- { }
]
}{- "id": 161,
- "created_at": "2022-01-17T10:24:46+02:00",
- "updated_at": "2022-01-17T10:24:46+02:00",
- "delivered_at": null,
- "order_id": 105,
- "product_id": 0,
- "variation_id": null,
- "download_id": null,
- "download_time_ends": "2022-01-17T10:24:46+02:00",
- "download_times_left": null,
- "download_url": null,
- "customizations": null,
- "vat_rate": 24,
- "bundle_id": null,
- "campaign_id": null,
- "compare_price": 247,
- "unit_price": 24.7,
- "purchase_price": 2.47,
- "quantity": 2,
- "product_code": null,
- "product_name": "Off-hand product",
- "model_name": null,
- "product_type": null,
- "warranty": null,
- "custom_data": null,
- "shipment_id": 144,
- "related_id": null,
- "return_to_stock": null
}| orderID required | integer >= 1 Unique identifier for the order |
| orderProductID required | integer >= 1 Unique identifier for an order product |
{- "error": "<error message>",
- "description": "<error description>"
}| orderID required | integer >= 1 Unique identifier for the order |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| orderID required | integer >= 1 Unique identifier for the order |
| shipmentID required | integer >= 1 Unique identifier for the shipment |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
}Upon completion the shipment status will be changed to COMPLETED.
Once all the shipments have been marked as delivered, the entire order's status will also be changed to COMPLETED.
| orderID required | integer >= 1 Unique identifier for the order |
| shipmentID required | integer >= 1 Unique identifier for the shipment |
| send_emails | boolean Default: true Determines whether to send shipping confirmation to customer upon completion. |
| register_if_not_registered | boolean Default: true Determines whether to register the shipment, if it has not been registered.
You can also register a shipment before completing it via |
| tracking_code | string The shipment tracking code.
Can be obtained via |
{- "send_emails": false,
- "register_if_not_registered": false,
- "tracking_code": "JJFI00000450001980299"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
}The body of the POST request can be empty.
Once the shipment has been registered, you can access its shipping documents.
Read more about downloading shipping documents via the API.
| orderID required | integer >= 1 Unique identifier for the order |
| shipmentID required | integer >= 1 Unique identifier for the shipment |
| parcel_count | integer Shipment parcel count |
{- "parcel_count": 4
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "service_provider": "VERKKOLOGISTIIKKA",
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
}In order to download the shipping label, you first need to register the shipment with POST /api/v0/orders/{orderId}/shipments/{shipmentId}/register
| orderID required | integer >= 1 Unique identifier for the order |
| shipmentID required | integer >= 1 Unique identifier for the shipment |
{- "error": "<error message>",
- "description": "<error description>"
}| orderID required | integer >= 1 Unique identifier for the order |
| shipmentID required | integer >= 1 Unique identifier for the shipment |
{- "error": "<error message>",
- "description": "<error description>"
}Processing lists group orders so that they can be processed and their documents printed together. Completing a list archives it.
| expand | string Enum: "orders" "orders.shipments" "orders.shipments.products" "orders.shipments.products.stock_item" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "user_id": 13,
- "name": "Monday's orders",
- "comment": "These should get done ASAP",
- "orders": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "archived_at": "2016-02-25T11:31:39+02:00",
- "external_id": "5",
- "version_id": 3,
- "language": "fi",
- "customer_id": 65,
- "customer_external_id": "CUSTOMER123",
- "shipping_method_id": 5,
- "payment_method_id": 6,
- "customer_information": {
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "shipping_address": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}, - "different_shipping_address": true,
- "subtotal": 14,
- "shipping_costs": 5.9,
- "payment_costs": 2.5,
- "discount": {
- "type": "CAMPAIGN",
- "coupon_id": 6,
- "campaign_id": 4,
- "code": "ALE25",
- "value": 12
}, - "total": 49.99,
- "status": "COMPLETED",
- "details": "Please deliver ASAP, it is an emergency",
- "return_document_url": "https://example.mycashflow.fi/orderstatus/1/returndocument/afcc120905e10bb56e63c30d6d7653c4",
- "dispatch_note_url": "https://example.mycashflow.fi/orderstatus/1/dispatchnote/afcc120905e10bb56e63c30d6d7653c4",
- "custom_data": { },
- "referral_code": "REF123"
}
], - "shipments": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "completed_at": "2013-06-19T20:41:47+03:00",
- "order_id": 45,
- "type": "DELIVERY",
- "status": "OPEN",
- "shipping_method_id": 4,
- "weight": 4.25,
- "parcel_count": 1,
- "external_id": "3",
- "external_pickup_point_id": "877053201",
- "tracking_code": "JJFI62345620014310160",
- "shipping_label_url": "https://example.mycashflow.fi/api/v0/orders/39/shipments/43/documents/shipping-label.pdf",
- "documents": [
- {
- "type": "DISPATCH_NOTE",
}, - {
- "type": "SHIPPING_LABEL",
}
]
}
], - "products": [
- {
- "id": 31,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "delivered_at": "2013-06-19T20:41:47+03:00",
- "order_id": 4,
- "product_id": 56,
- "variation_id": 0,
- "download_id": 3,
- "download_time_ends": "2013-06-29T07:31:34+03:00",
- "download_times_left": "8",
- "customizations": [
- {
- "name": "Print",
- "type": "file",
}, - {
- "name": "Text",
- "type": "text",
- "values": [
- "Some text for the shirt"
]
}, - {
- "name": "Bonus options",
- "type": "text",
- "values": [
- "Dots",
- "Stripes",
- "Checkers"
]
}
], - "vat_rate": 25.5,
- "bundle_id": 3,
- "campaign_id": 46,
- "compare_price": 254.55,
- "unit_price": 12.99,
- "purchase_price": 99.99,
- "quantity": 3,
- "product_code": "BE123",
- "product_name": "Hoodie",
- "model_name": "L",
- "product_type": "NORMAL",
- "warranty": "12 months",
- "custom_data": { },
- "shipment_id": 23,
- "related_id": 682,
- "return_to_stock": true,
- "stock_item": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "barcode": "5678987654",
- "location": "Hylly 6, paikka 8",
- "enabled": true,
- "quantity": 28,
- "balance_limit": 5,
- "backorder_enabled": false,
- "backorder_estimate": "14",
- "balance": 25,
- "reserved": 3,
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78,
- "balance_alert": false
}
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}The orders of the processing list need to have been processed (have the COMPLETED status) before completing the processing list.
| processingListID required | integer >= 1 Unique identifier for the processing list |
{- "error": "<error message>",
- "description": "<error description>"
}The payment methods that appear at the store's checkout.
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Invoice",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "username": "",
- "product_code": "INVOICE",
- "sort": "3",
- "provider": "MCF_INVOICE",
- "help": "We will email you a PDF invoice that contains further payment details.",
- "translations": [
- {
- "language": "fi",
- "name": "Lasku",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "help": "Lähetämme sähköpostiisi PDF-laskun, joka sisältää tarkat maksutiedot."
}, - {
- "language": "en",
- "name": "Invoice",
- "description": "Pay by invoice within 14 days.",
- "help": "We will email you a PDF invoice that contains further payment details."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| paymentMethodID required | integer >= 1 Unique identifier for the payment method |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Invoice",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "username": "",
- "product_code": "INVOICE",
- "sort": "3",
- "provider": "MCF_INVOICE",
- "help": "We will email you a PDF invoice that contains further payment details.",
- "translations": [
- {
- "language": "fi",
- "name": "Lasku",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "help": "Lähetämme sähköpostiisi PDF-laskun, joka sisältää tarkat maksutiedot."
}, - {
- "language": "en",
- "name": "Invoice",
- "description": "Pay by invoice within 14 days.",
- "help": "We will email you a PDF invoice that contains further payment details."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| paymentMethodID required | integer >= 1 Unique identifier for the payment method |
| name | string The payment method name |
| description | string The payment method description |
| product_code | string Product code assigned to the payment method |
| sort | integer Sorting number for the payment method |
| help | string The payment instructions |
Array of objects Array of translations for the payment method's multilingual fields.
Can be included in GET responses by using the |
{- "name": "Invoice",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "product_code": "INVOICE",
- "sort": "3",
- "help": "We will email you a PDF invoice that contains further payment details.",
- "translations": [
- {
- "language": "fi",
- "name": "Lasku",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "help": "Lähetämme sähköpostiisi PDF-laskun, joka sisältää tarkat maksutiedot."
}, - {
- "language": "en",
- "name": "Invoice",
- "description": "Pay by invoice within 14 days.",
- "help": "We will email you a PDF invoice that contains further payment details."
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Invoice",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "username": "",
- "product_code": "INVOICE",
- "sort": "3",
- "provider": "MCF_INVOICE",
- "help": "We will email you a PDF invoice that contains further payment details.",
- "translations": [
- {
- "language": "fi",
- "name": "Lasku",
- "description": "Maksa laskulla, 14 päivää maksuaikaa.",
- "help": "Lähetämme sähköpostiisi PDF-laskun, joka sisältää tarkat maksutiedot."
}, - {
- "language": "en",
- "name": "Invoice",
- "description": "Pay by invoice within 14 days.",
- "help": "We will email you a PDF invoice that contains further payment details."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}The shipping methods customers can choose at checkout, along with their prices and shipping services.
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Posti Postipaketti",
- "type": "DISPATCH",
- "service_provider": "SHIPIT",
- "service_code": "plscm.p19fi",
- "product_code": "POSTI123",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": "Tracking code is included in the order confirmation email.",
- "free_shipping_threshold": 50,
- "sort": 2,
- "translations": [
- {
- "language": "fi",
- "name": "Posti Postipaketti",
- "description": "Kuljetus noutopisteeseen 1-3 päivän sisällä.",
- "tracking_info": ""
}, - {
- "language": "en",
- "name": "Posti Postal Parcel",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": ""
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| shippingMethodID required | integer >= 1 Unique identifier for the shipping method |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Posti Postipaketti",
- "type": "DISPATCH",
- "service_provider": "SHIPIT",
- "service_code": "plscm.p19fi",
- "product_code": "POSTI123",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": "Tracking code is included in the order confirmation email.",
- "free_shipping_threshold": 50,
- "sort": 2,
- "translations": [
- {
- "language": "fi",
- "name": "Posti Postipaketti",
- "description": "Kuljetus noutopisteeseen 1-3 päivän sisällä.",
- "tracking_info": ""
}, - {
- "language": "en",
- "name": "Posti Postal Parcel",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": ""
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| shippingMethodID required | integer >= 1 Unique identifier for the shipping method |
| name | string Name of the shipping method |
| product_code | string Product code assigned to the shipping method |
| description | string The shipping method description. |
| tracking_info | string The tracking info for the shipping method. Accepts HTML content. |
| free_shipping_threshold | integer The order total in EUR that enables free shipping with the shipping method. |
| sort | integer The sorting number for the shipping method |
Array of objects Array of translations for multilingual fields of the shipping method |
{- "name": "Posti Postipaketti",
- "product_code": "POSTI123",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": "Tracking code is included in the order confirmation email.",
- "free_shipping_threshold": 50,
- "sort": 2,
- "translations": [
- {
- "language": "fi",
- "name": "Posti Postipaketti",
- "description": "Kuljetus noutopisteeseen 1-3 päivän sisällä.",
- "tracking_info": ""
}, - {
- "language": "en",
- "name": "Posti Postal Parcel",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": ""
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Posti Postipaketti",
- "type": "DISPATCH",
- "service_provider": "SHIPIT",
- "service_code": "plscm.p19fi",
- "product_code": "POSTI123",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": "Tracking code is included in the order confirmation email.",
- "free_shipping_threshold": 50,
- "sort": 2,
- "translations": [
- {
- "language": "fi",
- "name": "Posti Postipaketti",
- "description": "Kuljetus noutopisteeseen 1-3 päivän sisällä.",
- "tracking_info": ""
}, - {
- "language": "en",
- "name": "Posti Postal Parcel",
- "description": "Delivery to a package locker in 1–3 days.",
- "tracking_info": ""
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| shippingMethodID required | integer >= 1 Unique identifier for the shipping method |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "shipping_method_id": 4,
- "price": 4.2,
- "max_weight": 80
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}The store's customer accounts and customer groups.
| expand | string Enum: "translations" "customer_links" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Jälleenmyyjät",
- "customer_links": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 234,
- "customer_group_id": 1
}, - {
- "id": 2,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 456,
- "customer_group_id": 1
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| name required | string Name of the customer group |
{- "name": "Jälleenmyyjät"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Jälleenmyyjät",
- "customer_links": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 234,
- "customer_group_id": 1
}, - {
- "id": 2,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 456,
- "customer_group_id": 1
}
]
}
}| customerGroupID required | integer >= 1 Unique identifier for the customer group |
| expand | string Enum: "translations" "customer_links" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Jälleenmyyjät",
- "customer_links": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 234,
- "customer_group_id": 1
}, - {
- "id": 2,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 456,
- "customer_group_id": 1
}
]
}
}| customerGroupID required | integer >= 1 Unique identifier for the customer group |
| name | string Name of the customer group |
{- "name": "Jälleenmyyjät"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Jälleenmyyjät",
- "customer_links": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 234,
- "customer_group_id": 1
}, - {
- "id": 2,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 456,
- "customer_group_id": 1
}
]
}
}| customerGroupID required | integer >= 1 Unique identifier for the customer group |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "customer_id": 354,
- "customer_group_id": 3
}
]
}| customerGroupID required | integer >= 1 Unique identifier for the customer group |
| customer_id | integer >= 1 The customer ID |
{- "customer_id": 354
}{- "data": {
- "customer_id": 354,
- "customer_group_id": 3
}
}| customerGroupID required | integer >= 1 Unique identifier for the customer group |
| customerID required | integer >= 1 Unique identifier for the customer |
{- "error": "<error message>",
- "description": "<error description>"
}| expand | string Value: "customer_groups" Comma-separated list of expandable sub-resources. |
| created_at-from | string <date-time> Example: created_at-from=2017-06-14T20:45:52 Retrieve customer accounts that have been created on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| created_at-to | string <date-time> Example: created_at-to=2017-06-14T20:45:52 Retrieve customer accounts that have been created on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| updated_at-from | string <date-time> Example: updated_at-from=2017-06-14T20:45:52 Retrieve customer accounts that have been updated on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| updated_at-to | string <date-time> Example: updated_at-to=2017-06-14T20:45:52 Retrieve customer accounts that have been updated on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| last_login_at-from | string <date-time> Example: last_login_at-from=2017-06-14T20:45:52 Retrieve customer accounts that have most recently logged in on or after the specified date and time. You can provide the datetime value in any of these three following formats:
|
| last_login_at-to | string <date-time> Example: last_login_at-to=2017-06-14T20:45:52 Retrieve customer accounts that have most recently logged in on or before the specified date and time. You can provide the datetime value in any of these three following formats:
|
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "version_id": 4,
- "language": "fi",
- "email_subscription": true,
- "einvoice_address": {
- "edi_code": "003721315706",
- "operator_code": "E204503"
}, - "sms_subscription": false,
- "customer_groups": [
- {
- "id": 3,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Resellers"
}, - {
- "id": 5,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Gift card recipients"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| first_name required | string The customer's first name |
| last_name required | string The customer's last name |
| login_allowed required | boolean
|
| company | string The customer's company |
| vat_code | string The customer's VAT code.
Required if |
| street_address required | string Street address |
| postal_code required | string Postal code |
| city required | string City |
| country required | string Country code |
| phone | string Phone number |
| email required | string Email address |
| language | string The customer's language code |
{- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "language": "fi"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "version_id": 4,
- "language": "fi",
- "email_subscription": true,
- "einvoice_address": {
- "edi_code": "003721315706",
- "operator_code": "E204503"
}, - "sms_subscription": false,
- "customer_groups": [
- {
- "id": 3,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Resellers"
}, - {
- "id": 5,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Gift card recipients"
}
]
}
}| customerID required | integer >= 1 Unique identifier for the customer |
| expand | string Value: "customer_groups" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "version_id": 4,
- "language": "fi",
- "email_subscription": true,
- "einvoice_address": {
- "edi_code": "003721315706",
- "operator_code": "E204503"
}, - "sms_subscription": false,
- "customer_groups": [
- {
- "id": 3,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Resellers"
}, - {
- "id": 5,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Gift card recipients"
}
]
}
}| customerID required | integer >= 1 Unique identifier for the customer |
| first_name | string The customer's first name |
| last_name | string The customer's last name |
| login_allowed | boolean
|
| company | string The customer's company |
| vat_code | string The customer's VAT code.
Required if |
| street_address | string Street address |
| postal_code | string Postal code |
| city | string City |
| country | string Country code |
| phone | string Phone number |
string Email address | |
| language | string The customer's language code |
{- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "language": "fi"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "version_id": 4,
- "language": "fi",
- "email_subscription": true,
- "einvoice_address": {
- "edi_code": "003721315706",
- "operator_code": "E204503"
}, - "sms_subscription": false,
- "customer_groups": [
- {
- "id": 3,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Resellers"
}, - {
- "id": 5,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Gift card recipients"
}
]
}
}| customerID required | integer >= 1 Unique identifier for the customer |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "customer_id": 2,
- "primary": false,
- "email": "mail@example.com",
- "company": "Pulse247 Oy",
- "first_name": "Example",
- "last_name": "Customer",
- "street_address": "Kaivokatu 12",
- "street_name": "Moussaouistraat",
- "street_number": "22",
- "house_extension": "b",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "fi",
- "phone": "+3585012312312"
}
]
}| email required | string The customer's email address |
| expand | string Value: "customer_groups" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "version_id": 4,
- "language": "fi",
- "email_subscription": true,
- "einvoice_address": {
- "edi_code": "003721315706",
- "operator_code": "E204503"
}, - "sms_subscription": false,
- "customer_groups": [
- {
- "id": 3,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Resellers"
}, - {
- "id": 5,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Gift card recipients"
}
]
}
}| externalID required | string The customer's ID in an external system |
| expand | string Value: "customer_groups" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "first_name": "Example",
- "last_name": "Customer",
- "login_allowed": true,
- "company": "Example Company Inc.",
- "vat_code": "1234567-6",
- "street_address": "Example street 2",
- "postal_code": "00100",
- "city": "Helsinki",
- "country": "FI",
- "phone": "05012312312",
- "email": "mail@domain.fi",
- "version_id": 4,
- "language": "fi",
- "email_subscription": true,
- "einvoice_address": {
- "edi_code": "003721315706",
- "operator_code": "E204503"
}, - "sms_subscription": false,
- "customer_groups": [
- {
- "id": 3,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Resellers"
}, - {
- "id": 5,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Gift card recipients"
}
]
}
}| externalID required | string The customer's ID in an external system |
{- "error": "<error message>",
- "description": "<error description>"
}The store's email marketing subscribers.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
| updated_at-from | string <date-time> Example: updated_at-from=2017-06-14T20:45:52 Filters subscribers whose details have been updated at or after the specified date and time.' You can provide the datetime value in any of these three following formats:
|
| updated_at-to | string <date-time> Example: updated_at-to=2017-06-14T20:45:52 Filters subscribers whose details have been updated at or before the specified date and time.' You can provide the datetime value in any of these three following formats:
|
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "email": "mail@example.com",
- "version_id": 5,
- "language": "fi",
- "country": "fi",
- "subscribed_at": "2016-02-25T11:31:39+02:00",
- "unsubscribed_at": "2016-02-25T11:31:39+02:00"
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| email required | string The subscriber's email address |
{- "email": "mail@example.com"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "email": "mail@example.com",
- "version_id": 5,
- "language": "fi",
- "country": "fi",
- "subscribed_at": "2016-02-25T11:31:39+02:00",
- "unsubscribed_at": "2016-02-25T11:31:39+02:00"
}
}SMS subscribers are the people who have subscribed to the store's text message marketing.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" "subscribed_at-asc" "subscribed_at-desc" "unsubscribed_at-asc" "unsubscribed_at-desc" Example: sort=id-asc Determines the sorting of the response list. |
| updated_at-from | string <date-time> Example: updated_at-from=2017-06-14T20:45:52 Filters subscribers whose details have been updated at or after the specified date and time.' You can provide the datetime value in any of these three following formats:
|
| updated_at-to | string <date-time> Example: updated_at-to=2017-06-14T20:45:52 Filters subscribers whose details have been updated at or before the specified date and time.' You can provide the datetime value in any of these three following formats:
|
[- {
- "id": 1,
- "phone": "05012312312",
- "country": "fi",
- "language": "fi",
- "version_id": 1,
- "subscribed_at": "2013-06-19T20:41:47+03:00",
- "unsubscribed_at": null
}, - {
- "id": 2,
- "phone": "05012312313",
- "country": "fi",
- "language": "fi",
- "version_id": 1,
- "subscribed_at": "2013-06-19T20:41:47+03:00",
- "unsubscribed_at": "2013-06-19T20:41:47+03:00"
}
]| phone required | string The subscriber's phone number |
| version_id | integer >= 1 The subscriber's default version. |
{- "phone": "+358453613825",
- "version_id": 1
}{- "data": {
- "id": 1,
- "phone": "+358453613825",
- "country": "fi",
- "language": "fi",
- "version_id": 1,
- "subscribed_at": "2013-06-23T12:27:51+03:00",
- "unsubscribed_at": "2013-06-23T12:27:51+03:00"
}
}| subscriberPhone | string Example: +358452623825 The subscriber's phone number |
{- "data": {
- "id": 1,
- "phone": "+358453613825",
- "country": "fi",
- "language": "fi",
- "version_id": 1,
- "subscribed_at": "2013-06-23T12:27:51+03:00",
- "unsubscribed_at": "2013-06-23T12:27:51+03:00"
}
}Campaigns give discounts or campaign prices on products. A campaign can be limited to a time period, a campaign code or chosen customer groups.
| expand | string Enum: "prices" "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Winter sale -10%",
- "published": true,
- "conditions": {
- "time": {
- "from": null,
- "to": "2020-11-30T23:59:59+02:00"
}, - "code": "ALE123",
- "customers": {
- "group_ids": [
- 1,
- 4,
- 5
]
}
}, - "discounts": {
- "products": {
- "enabled": true,
- "quantity_discounts": true
}, - "free_shipping": {
- "enabled": true
}, - "discount_row": {
- "enabled": false
}
}, - "page": {
- "description": "<p>All product -25 % for the summer. Act now, don't miss out!</p>",
- "enabled": true,
- "image": "image.png",
- "link": "/category/6",
- "pinned": false,
- "template": "campaign/campaign-alternative"
}, - "translations": [
- {
- "language": "fi",
- "name": "Macbook-ale",
- "description": "Kaikki Macbookit nyt -50 %",
- "seo_title": "Päivin putiikin Macbook-ale",
- "seo_page_title": "Kaikki Macbookit nyt -50 %",
- "seo_meta_description": "Osta Macbook puoleen hintaan"
}, - {
- "language": "en",
- "name": "Macbook sale!",
- "description": "All Macbooks now at -50 %",
- "seo_title": "Macbook sale at Päivi's boutique\n",
- "seo_page_title": "All Macbooks now -50 %\n",
- "seo_meta_description": "Get your Macbook at half the price.\n"
}
], - "prices": [
- {
- "product_id": 4,
- "price": 39.99
}, - {
- "product_id": 5,
- "variation_id": 3,
- "price": 39.99,
- "order_limit": 3
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| campaignID required | integer >= 1 Unique identifier for the campaign |
| expand | string Enum: "prices" "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Winter sale -10%",
- "published": true,
- "conditions": {
- "time": {
- "from": null,
- "to": "2020-11-30T23:59:59+02:00"
}, - "code": "ALE123",
- "customers": {
- "group_ids": [
- 1,
- 4,
- 5
]
}
}, - "discounts": {
- "products": {
- "enabled": true,
- "quantity_discounts": true
}, - "free_shipping": {
- "enabled": true
}, - "discount_row": {
- "enabled": false
}
}, - "page": {
- "description": "<p>All product -25 % for the summer. Act now, don't miss out!</p>",
- "enabled": true,
- "image": "image.png",
- "link": "/category/6",
- "pinned": false,
- "template": "campaign/campaign-alternative"
}, - "translations": [
- {
- "language": "fi",
- "name": "Macbook-ale",
- "description": "Kaikki Macbookit nyt -50 %",
- "seo_title": "Päivin putiikin Macbook-ale",
- "seo_page_title": "Kaikki Macbookit nyt -50 %",
- "seo_meta_description": "Osta Macbook puoleen hintaan"
}, - {
- "language": "en",
- "name": "Macbook sale!",
- "description": "All Macbooks now at -50 %",
- "seo_title": "Macbook sale at Päivi's boutique\n",
- "seo_page_title": "All Macbooks now -50 %\n",
- "seo_meta_description": "Get your Macbook at half the price.\n"
}
], - "prices": [
- {
- "product_id": 4,
- "price": 39.99
}, - {
- "product_id": 5,
- "variation_id": 3,
- "price": 39.99,
- "order_limit": 3
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}Always send published. It is read from the request on every call and defaults to false, so a request that leaves it out unpublishes the campaign as a side effect of whatever else it changes.
| campaignID required | integer >= 1 Unique identifier for the campaign |
| name | string The campaign name.
Shown in the admin. The name customers see comes from the |
| published | boolean Determines whether the campaign is published or not. With the value |
Array of objects |
{- "name": "Winter sale -10%",
- "published": true,
- "translations": [
- {
- "language": "fi",
- "name": "Macbook-ale",
- "description": "Kaikki Macbookit nyt -50 %",
- "seo_title": "Päivin putiikin Macbook-ale",
- "seo_page_title": "Kaikki Macbookit nyt -50 %",
- "seo_meta_description": "Osta Macbook puoleen hintaan"
}, - {
- "language": "en",
- "name": "Macbook sale!",
- "description": "All Macbooks now at -50 %",
- "seo_title": "Macbook sale at Päivi's boutique\n",
- "seo_page_title": "All Macbooks now -50 %\n",
- "seo_meta_description": "Get your Macbook at half the price.\n"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Winter sale -10%",
- "published": true,
- "conditions": {
- "time": {
- "from": null,
- "to": "2020-11-30T23:59:59+02:00"
}, - "code": "ALE123",
- "customers": {
- "group_ids": [
- 1,
- 4,
- 5
]
}
}, - "discounts": {
- "products": {
- "enabled": true,
- "quantity_discounts": true
}, - "free_shipping": {
- "enabled": true
}, - "discount_row": {
- "enabled": false
}
}, - "page": {
- "description": "<p>All product -25 % for the summer. Act now, don't miss out!</p>",
- "enabled": true,
- "image": "image.png",
- "link": "/category/6",
- "pinned": false,
- "template": "campaign/campaign-alternative"
}, - "translations": [
- {
- "language": "fi",
- "name": "Macbook-ale",
- "description": "Kaikki Macbookit nyt -50 %",
- "seo_title": "Päivin putiikin Macbook-ale",
- "seo_page_title": "Kaikki Macbookit nyt -50 %",
- "seo_meta_description": "Osta Macbook puoleen hintaan"
}, - {
- "language": "en",
- "name": "Macbook sale!",
- "description": "All Macbooks now at -50 %",
- "seo_title": "Macbook sale at Päivi's boutique\n",
- "seo_page_title": "All Macbooks now -50 %\n",
- "seo_meta_description": "Get your Macbook at half the price.\n"
}
], - "prices": [
- {
- "product_id": 4,
- "price": 39.99
}, - {
- "product_id": 5,
- "variation_id": 3,
- "price": 39.99,
- "order_limit": 3
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}Update the discount prices of campaign products.
NOTE: The product discount row is identified by using a combination of the resource id and quantity.
For example
product_id, variation_id and quantity,product_id, download_id and quantity.| campaignID required | integer >= 1 Unique identifier for the campaign |
| product_id | integer The ID of a product that belongs to the campaign.
When working with variations, use both |
| variation_id | integer The ID of a product variation that belongs to the campaign.
Use both |
| download_id | integer The ID of a downloadable product file that belongs to the campaign.
Use both |
| price | number Discount price for the selected product, variation or product quantity. |
| quantity | integer The quantity of a campaign product row. Used to identify a campaign product row together with the ID of a product, variation or product download. Required when working with quantity discounts. |
| order_limit | integer The largest number of the product a customer can buy at the campaign price. Set in the admin panel's campaign form.
Responses return |
[- {
- "product_id": 4,
- "price": 39.99
}, - {
- "product_id": 5,
- "variation_id": 3,
- "price": 39.99,
- "order_limit": 3
}, - {
- "product_id": 4,
- "download_id": 2,
- "quantity": 3,
- "price": 39.99
}
]{- "data": [
- [
- {
- "product_id": 4,
- "price": 39.99
}, - {
- "product_id": 5,
- "variation_id": 3,
- "price": 39.99,
- "order_limit": 3
}, - {
- "product_id": 4,
- "download_id": 2,
- "quantity": 3,
- "price": 39.99
}
]
]
}Remove a product discount from a campaign.
NOTE: The product discount row is identified by using a combination of the resource id and quantity.
For example
product_id, variation_id and quantity,product_id, download_id and quantity.| campaignID required | integer >= 1 Unique identifier for the campaign |
{- "error": "<error message>",
- "description": "<error description>"
}Banners are images or other content shown in the store's banner areas, such as a carousel on the front page. Banners are organised into banner groups.
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| code | string The banner group code. Can be used to identify the banner group in theme files. |
| title | string The banner group title. If present in both the root of the request body and the |
Array of objects Array of translations for translatable fields. |
{- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}
}| bannerGroupID required | integer >= 1 Unique identifier for the banner group |
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}
}| bannerGroupID required | integer >= 1 Unique identifier for the banner group |
| code | string The banner group code. Can be used to identify the banner group in theme files. |
| title | string The banner group title. If present in both the root of the request body and the |
Array of objects Array of translations for translatable fields. |
{- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}
}| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| group_id | integer The ID of the banner group this banner belongs to |
| sort | integer A number that represents the banner's position in the banner group relative to other banners. |
| code | string The banner's individual code. Set in the banner form's Codename field. |
| title | string The banner's title. If present in both the root of the request body and the |
| content | string The banner's text/HTML content. If present in both the root of the request body and the |
| visible_from | string <date-time> The date when the banner becomes visible in the store. |
| visible_to | string <date-time> The date when the banner is hidden. |
| file | string The banner image. Enter only the filename of the image. The image file must reside in the store's file archive, and cannot be sent in the same request, with which you create or update a banner. The default path of the images is the files/tuotekuvat directory. |
| link | string The banner link. If present in both the root of the request body and the |
Array of objects An array of translation objects that contain content for any multilingual fields of the banner. |
{- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}
}| bannerID required | integer >= 1 Unique identifier for the banner |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}
}| bannerID required | integer >= 1 Unique identifier for the banner |
| group_id | integer The ID of the banner group this banner belongs to |
| sort | integer A number that represents the banner's position in the banner group relative to other banners. |
| code | string The banner's individual code. Set in the banner form's Codename field. |
| title | string The banner's title. If present in both the root of the request body and the |
| content | string The banner's text/HTML content. If present in both the root of the request body and the |
| visible_from | string <date-time> The date when the banner becomes visible in the store. |
| visible_to | string <date-time> The date when the banner is hidden. |
| file | string The banner image. Enter only the filename of the image. The image file must reside in the store's file archive, and cannot be sent in the same request, with which you create or update a banner. The default path of the images is the files/tuotekuvat directory. |
| link | string The banner link. If present in both the root of the request body and the |
Array of objects An array of translation objects that contain content for any multilingual fields of the banner. |
{- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}
}| bannerCode required | string Example: bannerCode Banner code |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}
}| bannerCode required | string Example: bannerCode Banner code |
| group_id | integer The ID of the banner group this banner belongs to |
| sort | integer A number that represents the banner's position in the banner group relative to other banners. |
| code | string The banner's individual code. Set in the banner form's Codename field. |
| title | string The banner's title. If present in both the root of the request body and the |
| content | string The banner's text/HTML content. If present in both the root of the request body and the |
| visible_from | string <date-time> The date when the banner becomes visible in the store. |
| visible_to | string <date-time> The date when the banner is hidden. |
| file | string The banner image. Enter only the filename of the image. The image file must reside in the store's file archive, and cannot be sent in the same request, with which you create or update a banner. The default path of the images is the files/tuotekuvat directory. |
| link | string The banner link. If present in both the root of the request body and the |
Array of objects An array of translation objects that contain content for any multilingual fields of the banner. |
{- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "group_id": 4,
- "sort": 1,
- "code": "new-discounts",
- "title": "New discounts for the summer",
- "content": "<p>We have some exciting stuff for you this summer!</p>",
- "visible_from": "2013-06-19T20:41:47+03:00",
- "visible_to": "2014-06-19T20:41:47+03:00",
- "file": "discounts.jpg",
- "link": "/campaigns/43",
- "translations": [
- {
- "language": "en",
- "title": "Fresh discounts just for this week",
- "content": "<p>We publish new discounts every week.</p>",
- "link": "/campaign/42"
}, - {
- "language": "fi",
- "title": "Uusia tarjouksia vain tälle viikolle.",
- "content": "<p>Julkaisemme uusia tarjouksia joka viikko.</p>",
- "link": "/campaign/43"
}
]
}
}Gift cards are codes that customers use to pay for orders.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "expires_at": "2021-10-20",
- "code": "DTGZRVGGYPS2YMNC",
- "notes": "Example content",
- "balance": 50
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}If the gift card code is not provided in the POST body, a code will be automatically generated and included in the response.
| expires_at | string <date> The expiry date of the gift card. Must be in the future. The gift card will expire at 0:00 am. on the given date. |
| code | string The gift card code |
| notes | string Internal notes for the gift card |
| balance | number The gift card balance in euros |
{- "expires_at": "2021-10-20",
- "code": "DTGZRVGGYPS2YMNC",
- "notes": "Example content",
- "balance": 50
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "expires_at": "2021-10-20",
- "code": "DTGZRVGGYPS2YMNC",
- "notes": "Example content",
- "balance": 50
}
}| giftCardCode required | string Unique gift card code The gift card code is automatically generated, when creating a gift card. |
{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "expires_at": "2021-10-20",
- "code": "DTGZRVGGYPS2YMNC",
- "notes": "Example content",
- "balance": 50
}
}| giftCardCode required | string Unique gift card code The gift card code is automatically generated, when creating a gift card. |
| expires_at | string <date> The expiry date of the gift card. Must be in the future. The gift card will expire at 0:00 am. on the given date. |
| code | string The gift card code |
| notes | string Internal notes for the gift card |
| balance | number The gift card balance in euros |
{- "expires_at": "2021-10-20",
- "code": "DTGZRVGGYPS2YMNC",
- "notes": "Example content",
- "balance": 50
}{- "data": {
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "expires_at": "2021-10-20",
- "code": "DTGZRVGGYPS2YMNC",
- "notes": "Example content",
- "balance": 50
}
}The store's own content pages, such as the terms of delivery or an about-us page.
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent": 1,
- "sort": 4,
- "name": "About Us",
- "content": "<p>Information about us. Contact using the form below:</p>{ContactForm}",
- "image": "image.png",
- "translations": [
- {
- "language": "fi",
- "name": "Ota yhteyttä",
- "content": "<p>Alta löydät yhteystietomme</p>{ContactInformation}",
- "link": "",
- "seo_title": "Yhteystiedot",
- "seo_page_title": "Päivin putiikin yhteystiedot",
- "seo_meta_description": "Ota rohkeasti yhteyttä"
}, - {
- "language": "en",
- "name": "Contact Us",
- "content": "<p>Contact info below</p>{ContactInformation}",
- "link": null,
- "seo_title": "Contact Information",
- "seo_page_title": "Contact information for Päivi's boutique",
- "seo_meta_description": "Don't hesitate to contact us"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| parent | integer ID of the parent page in the info page menu. |
| sort | integer The info page's sorting number. |
| name required | string The info page title. |
| content | string The HTML content of the page. |
| image | string The info page's banner image. |
| link | string Link target for the page. When this field is set, the page is made into a redirection link in the info page menu. Visitors cannot access the page content. You can use external, absolute links (https://www.example.com) or the store's internal links (/page/3). |
Array of objects Array of translations for the info page's text fields. Can be included in GET responses by using the | |
Array of objects Array of the page's visibilities in different versions.
Can be included in GET responses by using the |
{- "parent": 1,
- "sort": 4,
- "name": "About Us",
- "content": "<p>Information about us. Contact using the form below:</p>{ContactForm}",
- "image": "image.png",
- "translations": [
- {
- "language": "fi",
- "name": "Ota yhteyttä",
- "content": "<p>Alta löydät yhteystietomme</p>{ContactInformation}",
- "link": "",
- "seo_title": "Yhteystiedot",
- "seo_page_title": "Päivin putiikin yhteystiedot",
- "seo_meta_description": "Ota rohkeasti yhteyttä"
}, - {
- "language": "en",
- "name": "Contact Us",
- "content": "<p>Contact info below</p>{ContactInformation}",
- "link": null,
- "seo_title": "Contact Information",
- "seo_page_title": "Contact information for Päivi's boutique",
- "seo_meta_description": "Don't hesitate to contact us"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent": 1,
- "sort": 4,
- "name": "About Us",
- "content": "<p>Information about us. Contact using the form below:</p>{ContactForm}",
- "image": "image.png",
- "translations": [
- {
- "language": "fi",
- "name": "Ota yhteyttä",
- "content": "<p>Alta löydät yhteystietomme</p>{ContactInformation}",
- "link": "",
- "seo_title": "Yhteystiedot",
- "seo_page_title": "Päivin putiikin yhteystiedot",
- "seo_meta_description": "Ota rohkeasti yhteyttä"
}, - {
- "language": "en",
- "name": "Contact Us",
- "content": "<p>Contact info below</p>{ContactInformation}",
- "link": null,
- "seo_title": "Contact Information",
- "seo_page_title": "Contact information for Päivi's boutique",
- "seo_meta_description": "Don't hesitate to contact us"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| infoPageID required | integer >= 1 Unique identifier for the info page |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent": 1,
- "sort": 4,
- "name": "About Us",
- "content": "<p>Information about us. Contact using the form below:</p>{ContactForm}",
- "image": "image.png",
- "translations": [
- {
- "language": "fi",
- "name": "Ota yhteyttä",
- "content": "<p>Alta löydät yhteystietomme</p>{ContactInformation}",
- "link": "",
- "seo_title": "Yhteystiedot",
- "seo_page_title": "Päivin putiikin yhteystiedot",
- "seo_meta_description": "Ota rohkeasti yhteyttä"
}, - {
- "language": "en",
- "name": "Contact Us",
- "content": "<p>Contact info below</p>{ContactInformation}",
- "link": null,
- "seo_title": "Contact Information",
- "seo_page_title": "Contact information for Päivi's boutique",
- "seo_meta_description": "Don't hesitate to contact us"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| infoPageID required | integer >= 1 Unique identifier for the info page |
| parent | integer ID of the parent page in the info page menu. |
| sort | integer The info page's sorting number. |
| name | string The info page title. |
| content | string The HTML content of the page. |
| image | string The info page's banner image. |
| link | string Link target for the page. When this field is set, the page is made into a redirection link in the info page menu. Visitors cannot access the page content. You can use external, absolute links (https://www.example.com) or the store's internal links (/page/3). |
Array of objects Array of translations for the info page's text fields. Can be included in GET responses by using the | |
Array of objects Array of the page's visibilities in different versions.
Can be included in GET responses by using the |
{- "parent": 1,
- "sort": 4,
- "name": "About Us",
- "content": "<p>Information about us. Contact using the form below:</p>{ContactForm}",
- "image": "image.png",
- "translations": [
- {
- "language": "fi",
- "name": "Ota yhteyttä",
- "content": "<p>Alta löydät yhteystietomme</p>{ContactInformation}",
- "link": "",
- "seo_title": "Yhteystiedot",
- "seo_page_title": "Päivin putiikin yhteystiedot",
- "seo_meta_description": "Ota rohkeasti yhteyttä"
}, - {
- "language": "en",
- "name": "Contact Us",
- "content": "<p>Contact info below</p>{ContactInformation}",
- "link": null,
- "seo_title": "Contact Information",
- "seo_page_title": "Contact information for Päivi's boutique",
- "seo_meta_description": "Don't hesitate to contact us"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "parent": 1,
- "sort": 4,
- "name": "About Us",
- "content": "<p>Information about us. Contact using the form below:</p>{ContactForm}",
- "image": "image.png",
- "translations": [
- {
- "language": "fi",
- "name": "Ota yhteyttä",
- "content": "<p>Alta löydät yhteystietomme</p>{ContactInformation}",
- "link": "",
- "seo_title": "Yhteystiedot",
- "seo_page_title": "Päivin putiikin yhteystiedot",
- "seo_meta_description": "Ota rohkeasti yhteyttä"
}, - {
- "language": "en",
- "name": "Contact Us",
- "content": "<p>Contact info below</p>{ContactInformation}",
- "link": null,
- "seo_title": "Contact Information",
- "seo_page_title": "Contact information for Päivi's boutique",
- "seo_meta_description": "Don't hesitate to contact us"
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| newsPostID required | integer >= 1 Unique identifier for the news post |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "published_at": "2013-06-19T20:41:47+03:00",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image": "image.jpg",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "image_link": "/category/2",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "fi",
- "subject": "Kesäale kaikki kodinkoneet -13 %",
- "overeview": "Tänä kesänä kaikki kodinkoneet -13 %. Alennukset voimassa elokuun loppuun.",
- "content": "<p>Katso kodinkoneiden tuoteryhmästä kaikki päheät alennukset.</p>",
- "image_caption": "Päivin putiikin kesän kodinkoneale.",
- "seo_title": "Päivin putiikin kesäale - kodinkonkeet -13 %",
- "seo_page_title": "",
- "seo_meta_description": "-13 % koko laajasta kodinkonetarjonnastamme! Alennukset voimassa elokuuhun saakka."
}, - {
- "language": "en",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overeview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "seo_title": "Päivi's Boutique Summer Discount - Home Appliances -13 %",
- "seo_page_title": "",
- "seo_meta_description": "Get -13 % on all of our various home appliances! Discounts valid until August."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}The store's news articles.
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "published_at": "2013-06-19T20:41:47+03:00",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image": "image.jpg",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "image_link": "/category/2",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "fi",
- "subject": "Kesäale kaikki kodinkoneet -13 %",
- "overeview": "Tänä kesänä kaikki kodinkoneet -13 %. Alennukset voimassa elokuun loppuun.",
- "content": "<p>Katso kodinkoneiden tuoteryhmästä kaikki päheät alennukset.</p>",
- "image_caption": "Päivin putiikin kesän kodinkoneale.",
- "seo_title": "Päivin putiikin kesäale - kodinkonkeet -13 %",
- "seo_page_title": "",
- "seo_meta_description": "-13 % koko laajasta kodinkonetarjonnastamme! Alennukset voimassa elokuuhun saakka."
}, - {
- "language": "en",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overeview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "seo_title": "Päivi's Boutique Summer Discount - Home Appliances -13 %",
- "seo_page_title": "",
- "seo_meta_description": "Get -13 % on all of our various home appliances! Discounts valid until August."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}NOTE: When creating a news post, it will be hidden in all versions by default. You can make the post visible in the store's admin panel.
| subject required | string The post title |
| overview | string The In brief field of the post |
| content | string The post content |
| image | string The News image field of the posts. |
| image_caption | string The image caption |
| image_link | string The image link.
Enter internal relative links in the format |
| seo_title | string The SEO document title. Shown, for example, in Google search results as the title. |
| seo_page_title | string The SEO page title. Shown on the page, in place of the usual page title, if set. |
| seo_meta_description | string The SEO meta description. Shown, for example, in Google search results as the page description. |
{- "subject": "Summer Discount all Home Appliances -13 %",
- "overview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image": "image.jpg",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "image_link": "/category/2",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "published_at": "2013-06-19T20:41:47+03:00",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image": "image.jpg",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "image_link": "/category/2",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "fi",
- "subject": "Kesäale kaikki kodinkoneet -13 %",
- "overeview": "Tänä kesänä kaikki kodinkoneet -13 %. Alennukset voimassa elokuun loppuun.",
- "content": "<p>Katso kodinkoneiden tuoteryhmästä kaikki päheät alennukset.</p>",
- "image_caption": "Päivin putiikin kesän kodinkoneale.",
- "seo_title": "Päivin putiikin kesäale - kodinkonkeet -13 %",
- "seo_page_title": "",
- "seo_meta_description": "-13 % koko laajasta kodinkonetarjonnastamme! Alennukset voimassa elokuuhun saakka."
}, - {
- "language": "en",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overeview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "seo_title": "Päivi's Boutique Summer Discount - Home Appliances -13 %",
- "seo_page_title": "",
- "seo_meta_description": "Get -13 % on all of our various home appliances! Discounts valid until August."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}| newsPostID required | integer >= 1 Unique identifier for the news post |
| subject | string The post title |
| overview | string The In brief field of the post |
| content | string The post content |
| image | string The News image field of the posts. |
| image_caption | string The image caption |
| image_link | string The image link.
Enter internal relative links in the format |
| seo_title | string The SEO document title. Shown, for example, in Google search results as the title. |
| seo_page_title | string The SEO page title. Shown on the page, in place of the usual page title, if set. |
| seo_meta_description | string The SEO meta description. Shown, for example, in Google search results as the page description. |
{- "subject": "Summer Discount all Home Appliances -13 %",
- "overview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image": "image.jpg",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "image_link": "/category/2",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description"
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "published_at": "2013-06-19T20:41:47+03:00",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image": "image.jpg",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "image_link": "/category/2",
- "seo_title": "Document title",
- "seo_page_title": "Page title",
- "seo_meta_description": "Meta description",
- "translations": [
- {
- "language": "fi",
- "subject": "Kesäale kaikki kodinkoneet -13 %",
- "overeview": "Tänä kesänä kaikki kodinkoneet -13 %. Alennukset voimassa elokuun loppuun.",
- "content": "<p>Katso kodinkoneiden tuoteryhmästä kaikki päheät alennukset.</p>",
- "image_caption": "Päivin putiikin kesän kodinkoneale.",
- "seo_title": "Päivin putiikin kesäale - kodinkonkeet -13 %",
- "seo_page_title": "",
- "seo_meta_description": "-13 % koko laajasta kodinkonetarjonnastamme! Alennukset voimassa elokuuhun saakka."
}, - {
- "language": "en",
- "subject": "Summer Discount all Home Appliances -13 %",
- "overeview": "This summer all home appliances -13 %. Discount valid until end of August.",
- "content": "<p>See our home appliances category for all of the various discounts.</p>",
- "image_caption": "Päivi's Boutique Summer Home Appliances Discount.",
- "seo_title": "Päivi's Boutique Summer Discount - Home Appliances -13 %",
- "seo_page_title": "",
- "seo_meta_description": "Get -13 % on all of our various home appliances! Discounts valid until August."
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}
}Versions are the store and language versions of the store, each with its own address, language and settings.
| page_size | integer Default: 50 Example: page_size=50 Determines the number of items included on a page of the response list. |
| page | integer Default: 0 Example: page=2 Determines the page that is retrieved (used only in conjunction with |
| sort | string Default: "id-asc" Enum: "id-asc" "id-desc" Example: sort=id-asc Determines the sorting of the response list. |
{- "data": [
- {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Suomi",
- "language": "fi",
- "url": "en.store.fi",
- "ssl_enabled": true,
- "shop_name": "Päivin putiikki",
- "shop_email": "mail@example.com",
- "default_country": "de",
- "default_currency": "EUR",
- "theme": "barebones",
- "minimum_order": 100,
- "sort": 1
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| versionID required | integer >= 1 Unique identifier for the version |
{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Suomi",
- "language": "fi",
- "url": "en.store.fi",
- "ssl_enabled": true,
- "shop_name": "Päivin putiikki",
- "shop_email": "mail@example.com",
- "default_country": "de",
- "default_currency": "EUR",
- "theme": "barebones",
- "minimum_order": 100,
- "sort": 1
}
}The Webhooks API enables you to subscribe to certain events (topics) in your store and to receive HTTP notifications on those events to the URL of your choosing.
For example, you could subscribe to the order.created event, which would send your integration a Webhook HTTP request everytime an order is created in your store.
The Webhooks API has replaced the old Webhooks extension in October 2022.
For further information about the update, see https://support.mycashflow.com/fi/tiedotteet/uusi-webhooks-api-korvaa-webhooks-laajennuksen
Using a Webhook in your integration starts by subscribing to any needed topic types in a MyCashflow store. This is done by using the POST /api/v1/webhooks request and specifying the topic type in the request body:
POST /api/v1/webhooks
{
"topic": "order.created",
"expands": [
"payments",
"shipments"
],
"url": "https://www.example.com"
}
Upon subscribing you also define a target URL for the Webhook request and possible expandable subresources (for example, you can include shipment details in order Webhooks).
If you want to monitor more than one topic types, you need to send a separate subscription request for each of them.
After subscribing, the store will start sending Webhook notifications to the configured URL per the settings you configured in the subscription requests.
When the Webhook is triggered (an order is created), the API sends an HTTP request to the configured URL, where you need to have some sort of system to receive the notification (a custom integration or a 3rd party service).
The body of the HTTP request contains the contains the event data (for example, a JSON object with order data) and the header of the request contains metadata on the event.
The headers of the Webhook request include important details of the Webhook notification:
X-MCF-Webhook-Id: 123e4567-e89b-12d3-a456-426614174000
X-MCF-Webhook-Shop-Domain: example.mycashflow.fi
X-MCF-Webhook-Signature: < base64(hmac_sha256(api_key, request_body)) >
X-MCF-Webhook-Topic: order.created
Below we go over the contents of these headers:
The body of the Webhook request contains the data of the event (for example, a JSON object containing order data). The structure of the body is the same as when normally retrieving content
from the API. You can find the response samples of Webhook requests under the Callbacks section of the POST /api/v1/webhooks request.
When the Webhooks API sends notifications about monitored events, you should verify the identity of said notifications in the receiving system. This improves the security of your Webhooks integration, as you can filter out possibly malicious, external requests mimicing the MyCashflow Webhooks API.
The request verification is done based on the HTTP headers and payload of the notification request.
The HTTP header X-MCF-Webhook-Signature contains an HMAC string that is compiled by encrypting (SHA-256 ) and encoding (base64) the request payload and API key of the API user that subscribed to the Webhook.
To verify the request, simply compare the resulting reference signature with the content of the request's X-MCF-Webhook-Signature header.
{- "data": [
- {
- "uuid": "083c584d-ae65-11ec-aef4-0242ac130002",
- "user_id": 2,
- "topic": "order.created",
- "expands": [
- "payments",
- "shipments"
],
}
]
}| uuid | string |
| user_id | integer |
| topic | string Value: "campaign.created" |
| expands | Array of strings Items Enum: "prices" "translations" "visibilities" |
| url | string |
{- "uuid": "083c584d-ae65-11ec-aef4-0242ac130002",
- "user_id": 2,
- "topic": "campaign.created",
- "expands": [
- "prices"
],
}{- "data": {
- "uuid": "083c584d-ae65-11ec-aef4-0242ac130002",
- "user_id": 2,
- "topic": "order.created",
- "expands": [
- "payments",
- "shipments"
],
}
}{- "data": {
- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "name": "Winter sale -10%",
- "published": true,
- "conditions": {
- "time": {
- "from": null,
- "to": "2020-11-30T23:59:59+02:00"
}, - "code": "ALE123",
- "customers": {
- "group_ids": [
- 1,
- 4,
- 5
]
}
}, - "discounts": {
- "products": {
- "enabled": true,
- "quantity_discounts": true
}, - "free_shipping": {
- "enabled": true
}, - "discount_row": {
- "enabled": false
}
}, - "page": {
- "description": "<p>All product -25 % for the summer. Act now, don't miss out!</p>",
- "enabled": true,
- "image": "image.png",
- "link": "/category/6",
- "pinned": false,
- "template": "campaign/campaign-alternative"
}, - "translations": [
- {
- "language": "fi",
- "name": "Macbook-ale",
- "description": "Kaikki Macbookit nyt -50 %",
- "seo_title": "Päivin putiikin Macbook-ale",
- "seo_page_title": "Kaikki Macbookit nyt -50 %",
- "seo_meta_description": "Osta Macbook puoleen hintaan"
}, - {
- "language": "en",
- "name": "Macbook sale!",
- "description": "All Macbooks now at -50 %",
- "seo_title": "Macbook sale at Päivi's boutique\n",
- "seo_page_title": "All Macbooks now -50 %\n",
- "seo_meta_description": "Get your Macbook at half the price.\n"
}
], - "prices": [
- {
- "product_id": 4,
- "price": 39.99
}, - {
- "product_id": 5,
- "variation_id": 3,
- "price": 39.99,
- "order_limit": 3
}
], - "visibilities": [
- {
- "version_id": 4,
- "is_visible": false
}, - {
- "version_id": 3,
- "is_visible": true
}
]
}, - "meta": {
- "expands": [
- "translations",
- "prices"
], - "item_count": 1,
- "webhook_topic": "campaign.created"
}
}| UUID required | string Example: 083c584d-ae65-11ec-aef4-0242ac130002 Unique identifier for the webhook |
{- "error": "<error message>",
- "description": "<error description>"
}