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.
The development of the MyCashflow API follows the major.minor.patch scheme.
The current version of the API is located at /api/v1. Any updates to the current 1.x.x series will only entail bug fixes and new features with guaranteed backward compatibility.
Any experimental changes will be made to the 0.x.x series which is available under /api/v0.
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 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).
The MyCashflow API uses JSON to deliver any data returned by requests to the API.
All 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 section Headers of the Responses chapter 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:
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.
| Security Scheme Type | HTTP |
|---|---|
| HTTP Authorization Scheme | basic |
| 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 |
| translations | Array of any Array of translations for translatable fields. |
{- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}{- "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. |
{- "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 |
| translations | Array of any Array of translations for translatable fields. |
{- "code": "group-code",
- "title": "My banner group",
- "translations": [
- {
- "language": "en",
- "title": "My banner group"
}, - {
- "language": "fi",
- "title": "Banneriryhmä"
}
]
}{- "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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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> The date when the banner becomes visible in the store. |
| visible_to | string <date> 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 |
| translations | Array of any 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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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"
}
]
}{- "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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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. |
{- "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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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> The date when the banner becomes visible in the store. |
| visible_to | string <date> 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 |
| translations | Array of any 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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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"
}
]
}{- "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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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. |
{- "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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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> The date when the banner becomes visible in the store. |
| visible_to | string <date> 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 |
| translations | Array of any 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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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"
}
]
}{- "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": "2018-07-01",
- "visible_to": "2018-08-01",
- "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"
}
]
}| 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
}
}| brandID required | integer >= 1 Unique identifier for the brand |
| expand | string Value: "translations" Comma-separated list of expandable sub-resources. |
{- "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 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. |
| translations | Array of any 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"
}
]
}{- "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
}
]
}| 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",
- "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",
- "seo_page_title": "All Macbooks now -50 %",
- "seo_meta_description": "Get your Macbook at half the price."
}
]
}
], - "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. |
{- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "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",
- "seo_page_title": "All Macbooks now -50 %",
- "seo_meta_description": "Get your Macbook at half the price."
}
]
}| campaignID required | integer >= 1 Unique identifier for the campaign |
| published | boolean Determines whether the campaign is published or not. With the value |
| translations | Array of any |
{- "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",
- "seo_page_title": "All Macbooks now -50 %",
- "seo_meta_description": "Get your Macbook at half the price."
}
]
}{- "id": 1,
- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "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",
- "seo_page_title": "All Macbooks now -50 %",
- "seo_meta_description": "Get your Macbook at half the price."
}
]
}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 - to change the price of a variation, use a combination of product_id, variation_id and quantity, - for product downloads, use product_id, download_id and quantity.
| campaignID required | integer >= 1 Unique identifier for the campaign |
[- {
- "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
}
][- {
- "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, - for product downloads, use product_id, download_id and quantity.| campaignID required | integer >= 1 Unique identifier for the campaign |
{- "error": "<error message>",
- "description": "<error description>"
}| 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": [
- {
- "data": [ ],
- "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}| categoryID required | integer >= 1 Unique identifier for the category |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "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 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 |
| translations | Array of any 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"
}
]
}{- "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. |
{- "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 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 |
| translations | Array of any 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"
}
]
}{- "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": [
- { }
], - "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. |
[- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "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
|
{- "version_id": 1,
- "is_visible": false
}{- "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
}
]
}| 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"
}{- "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. |
{- "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 required | string Name of the customer group |
{- "name": "Jälleenmyyjät"
}{- "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
}{- "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+03:00 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+03:00 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+03:00 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+03:00 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+03:00 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+03:00 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 |
{- "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"
}{- "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. |
{- "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 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 |
{- "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"
}{- "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. |
[- {
- "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",
- "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. |
{- "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. |
{- "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"
}
]
}| 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",
- "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"
}{- "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"
}| 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": "2017-12-31T23:20:50.52+02:00",
- "notes": "Tilaajalahja esimerkkiasiakkaalle",
- "balance": 50
}
], - "meta": {
- "page": 1,
- "page_size": 100,
- "page_count": 3,
- "item_count": 300
}
}The response will contain the automatically generated gift card code.
| expires_at | string <date-time> The expiry date of the gift card. The gift card will expire at 0:00 am. on the given date. |
| notes | string Internal notes for the gift card |
| balance | number The gift card balance in euros |
{- "expires_at": "2017-12-31T23:20:50.52+02:00",
- "notes": "Tilaajalahja esimerkkiasiakkaalle",
- "balance": 50
}{- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "expires_at": "2017-12-31T23:20:50.52+02:00",
- "notes": "Tilaajalahja esimerkkiasiakkaalle",
- "balance": 50
}| giftCardCode required | string Unique gift card code The gift card code is automatically generated, when creating a gift card. |
{- "created_at": "2013-06-19T20:41:47+03:00",
- "updated_at": "2013-06-19T20:41:47+03:00",
- "expires_at": "2017-12-31T23:20:50.52+02:00",
- "notes": "Tilaajalahja esimerkkiasiakkaalle",
- "balance": 50
}| 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 |
| translations | Array of any 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"
}
]
}{- "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 |
{- "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 |
{- "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"
}
]
}| 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). |
| translations | Array of any Array of translations for the info page's text fields.
Can be included in GET responses by using the |
| visibilities | Array of any 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
}
]
}{- "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. |
{- "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 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). |
| translations | Array of any Array of translations for the info page's text fields.
Can be included in GET responses by using the |
| visibilities | Array of any 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
}
]
}{- "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. |
{- "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
}
]
}| 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"
}{- "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 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"
}{- "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
}
]
}| archived_at-from | string <date-time> Example: archived_at-from=2017-06-14T20:45:52+03:00 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:
|
| archived_at-to | string <date-time> Example: archived_at-to=2017-06-14T20:45:52+03:00 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:
|
| created_at-from | string <date-time> Example: created_at-from=2017-06-14T20:45:52+03:00 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+03:00 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+03:00 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+03:00 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+03:00 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+03:00 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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}
], - "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: * MyCashflow Ennakkomaksu * MyCashflow Lasku * Postiennakko * Bussiennakko |
| payment_costs | number The payment costs |
object Required if | |
object | |
| products required | Array of any non-empty |
object | |
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",
- "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",
- "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": {
- "data": [
- {
- "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",
}
]
}
]
}, - "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",
}
]
}{- "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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}| 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. |
{- "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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}| 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. |
{- "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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}| orderID required | integer >= 1 Unique identifier for the order |
| allow_open_cash_on_delivery_payments | boolean Default: false Allow use of cash-on-delivery payment type when quick processing the order.
If set to |
| 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. |
| 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,
- "ignore_payment_activation_errors": true,
- "tracking_code": "JJFI65229310013494123",
- "send_emails": false
}{- "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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}| 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
}{- "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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}Archiving must be enabled in the store. Read more about archiving orders.
| orderID required | integer >= 1 Unique identifier for the order |
{- "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": { },
- "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",
- "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",
- "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": {
- "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,
- "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
}
}, - "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",
}
]
}| 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
}{- "text": "Kommentin sisältö",
- "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 |
[- {
- "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",
}
]Used only with Klarna Checkout 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 |
{- "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",
}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 |
{- "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",
}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 |
{- "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",
}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 |
{- "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",
}| 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,
- "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 |
{- "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",
}
]
}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"
}{- "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",
}
]
}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 |
{- "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",
}
]
}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>"
}| 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. |
[- {
- "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 |
| expand | string Enum: "translations" "visibilities" Comma-separated list of expandable sub-resources. |
{- "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 required | 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 |
| translations | Array of any 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."
}
]
}{- "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
}
]
}| 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": [
- null
]
}
], - "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 |
{- "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": [
- null
]
}| 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"
}
}{- "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 |
{- "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 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"
}
}{- "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. |
{- "code": "red",
- "sort": 1
}{- "code": "red",
- "sort": 1
}description: >- 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 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. |
{- "code": "red",
- "sort": 1
}{- "code": "red",
- "sort": 1
}| 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>"
}| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "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+03:00 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+03:00 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+03:00 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+03:00 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",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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": {
- "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
}
]
}, - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "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",
- "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 The product code |
| supplier_code | string The supplier's product code |
| 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 | integer 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 |
| warranty | integer The warranty period in months |
| brand_id | integer >= 1 ID of the product's brand |
| 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. |
| 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. |
| translations | Array of any Array of translations for the product's multilingual fields. |
object |
{- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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."
}
], - "category_links": {
- "data": [
- {
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
]
}
}{- "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",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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": {
- "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
}
]
}, - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "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",
- "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 |
| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
{- "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",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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": {
- "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
}
]
}, - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "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",
- "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 The product code |
| supplier_code | string The supplier's product code |
| 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 | integer 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 |
| warranty | integer The warranty period in months |
| brand_id | integer >= 1 ID of the product's brand |
| 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. |
| 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. |
| translations | Array of any Array of translations for the product's multilingual fields. |
object |
{- "product_code": "AE-12345-89",
- "supplier_code": "876567890",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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."
}
], - "category_links": {
- "data": [
- {
- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}
]
}
}{- "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",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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": {
- "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
}
]
}, - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "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",
- "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 |
| 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 |
| translations | Array of any 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"
}
]
}{- "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. |
{- "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 |
| translations | Array of any 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"
}
]
}{- "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* | any |
{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}| 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."
}{- "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 |
{- "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 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."
}{- "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
}{- "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 |
{- "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
}{- "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>"
}You can create product features by using POST /api/v1/product-attributes
| productID required | integer >= 1 Unique identifier for the product |
| property name* | any |
{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}{- "_color": [
- "white"
], - "material": [
- "cotton",
- "wool",
- "silk"
]
}| 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_id required | integer The product ID |
| product_sort | integer An integer that determines the product's location among the category's products |
{- "category_id": 3,
- "category_sort": 1,
- "product_id": 2,
- "product_sort": 4
}{- "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>"
}| 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. |
[- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
]| productID required | integer >= 1 Unique identifier for the product |
| product_id | integer |
| 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"
}{- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}| 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>"
}| 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. |
[- {
- "version_id": 3,
- "is_visible": true
}, - {
- "version_id": 5,
- "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
|
{- "version_id": 1,
- "is_visible": false
}{- "version_id": 1,
- "is_visible": false
}| 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>"
}| productCode required | string The unique product code assigned to the product |
| expand | string Enum: "translations" "visibilities" "category_links" "image_links" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
{- "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",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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": {
- "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
}
]
}, - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "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",
- "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" "features" "variations" "variations.features" "variations.stock_item" "brand" "stock_item" Comma-separated list of expandable sub-resources. |
{- "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",
- "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": 24,
- "weight": 1.25,
- "warranty": 12,
- "brand_id": 5,
- "supplier_id": 3,
- "available_from": "2021-03-01",
- "available_to": "2021-05-01",
- "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",
- "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": {
- "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
}
]
}, - "image_links": [
- {
- "product_id": 1,
- "image_id": 2,
- "sort": 3,
- "filename": "image.png",
- "caption": "Product image caption"
}
], - "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",
- "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
}
}| 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": "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 Value: "translations" Comma-separated list of expandable sub-resources. |
{- "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 |
| translations | Array of any 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": ""
}
]
}{- "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
}
]
}| 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. |
[- {
- "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
}{- "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: subscriberPhone=+358452623825 The subscriber's phone number. |
{- "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"
}| 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. |
[- {
- "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 |
{- "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 |
| 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. |
| 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",
- "code": "98765456AF",
- "product_id": 5,
- "variation_id": 78
}{- "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
}| balance_update required | integer The amount added to or subtracted from the stock balance. |
{- "balance_update": -4
}{- "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
}| 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. |
[- {
- "id": 1,
- "changed_at": "2021-03-03T12:57:26+02:00",
- "user_id": 4,
- "source_type": "PRODUCT",
- "source_id": 5,
- "stock_item_id": 54,
- "quantity": 4,
- "quantity_change": -1
}
][- {
- "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"
}{- "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": 6
}, - {
- "location": "berlin-warehouse",
- "quantity": 3
}
]
}| productCode required | string Unique product code of the product whose quantities you wish to handle |
Array of objects |
{- "data": [
- {
- "location": "london-warehouse",
- "quantity": 6
}, - {
- "location": "berlin-warehouse",
- "quantity": 3
}
]
}{- "data": [
- {
- "location": "london-warehouse",
- "quantity": 6
}, - {
- "location": "berlin-warehouse",
- "quantity": 3
}
]
}| 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>"
}| 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"
}{- "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 |
{- "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 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"
}{- "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"
}| 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 |
{- "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
}