Skip to content

Files

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 8, 2017
Nov 18, 2018
Mar 8, 2017
Mar 8, 2017

Shopware API Docs

List of API Resources

API Reference

  • Shopware
    • new Shopware([object])
    • .version([callback]) πŸ”€ Promise
    • .getArticles([callback]) πŸ”€ Promise
    • .getArticle(id, [callback]) πŸ”€ Promise
    • .getArticleByOrdernumber(ordernumber, [callback]) πŸ”€ Promise
    • .deleteArticle(id, [callback]) πŸ”€ Promise
    • .deleteArticles(ids, [callback]) πŸ”€ Promise
    • .createArticle(article, [callback]) πŸ”€ Promise
    • .updateArticle(id, article, [callback]) πŸ”€ Promise
    • .updateArticles(articles, [callback]) πŸ”€ Promise
    • .getCategories([callback]) πŸ”€ Promise
    • .getCategory(id, [callback]) πŸ”€ Promise
    • .createCategory(category, [callback]) πŸ”€ Promise
    • .updateCategory(id, category, [callback]) πŸ”€ Promise
    • .deleteCategory(id, [callback]) πŸ”€ Promise
    • .getVariants([callback]) πŸ”€ Promise
    • .getVariants([callback]) πŸ”€ Promise
    • .getVariant(id, [callback]) πŸ”€ Promise
    • .updateVariant(id, body, [callback]) πŸ”€ Promise
    • .createVariant(body, [callback]) πŸ”€ Promise
    • .deleteVariant(id, [callback]) πŸ”€ Promise
    • .deleteVariants(ids, [callback]) πŸ”€ Promise
    • .generateArticleImages(articleId, [callback]) πŸ”€ Promise
    • .listMedia([callback]) πŸ”€ Promise
    • .getMedia(id, [callback]) πŸ”€ Promise
    • .createMedia(body, [callback]) πŸ”€ Promise
    • .updateMedia(id, body, [callback]) πŸ”€ Promise
    • .deleteMedia(id, [callback]) πŸ”€ Promise
    • .getOrders([callback]) πŸ”€ Promise
    • .getOrder(id, [callback]) πŸ”€ Promise
    • .updateOrder(id, body, [callback]) πŸ”€ Promise
    • .getAddresses([callback]) πŸ”€ Promise
    • .getAddress(id, [callback]) πŸ”€ Promise
    • .createAddress(body, [callback]) πŸ”€ Promise
    • .updateAddress(id, body, [callback]) πŸ”€ Promise
    • .deleteAddress(id, [callback]) πŸ”€ Promise
    • .getCustomers([callback]) πŸ”€ Promise
    • .getCustomer(id, [callback]) πŸ”€ Promise
    • .createCustomer(body, [callback]) πŸ”€ Promise
    • .updateCustomer(id, body, [callback]) πŸ”€ Promise
    • .deleteCustomer(id, [callback]) πŸ”€ Promise
    • .getCaches([callback]) πŸ”€ Promise
    • .getCache(id, [callback]) πŸ”€ Promise
    • .deleteCache(id, [callback]) πŸ”€ Promise
    • .deleteCaches([callback]) πŸ”€ Promise
    • .getCountries([callback]) πŸ”€ Promise
    • .getCountry(id, [callback]) πŸ”€ Promise
    • .updateCountry(id, body, [callback]) πŸ”€ Promise
    • .createCountry(body, [callback]) πŸ”€ Promise
    • .deleteCountry(id, [callback]) πŸ”€ Promise
    • .getCustomerGroups([callback]) πŸ”€ Promise
    • .getCustomerGroup(id, [callback]) πŸ”€ Promise
    • .createCustomerGroup(body, [callback]) πŸ”€ Promise
    • .updateCustomerGroup(id, body, [callback]) πŸ”€ Promise
    • .deleteCustomerGroup(id, [callback]) πŸ”€ Promise
    • .getManufacturers([callback]) πŸ”€ Promise
    • .getManufacturer(id, [callback]) πŸ”€ Promise
    • .createManufacturer(body, [callback]) πŸ”€ Promise
    • .updateManufacturer(id, body, [callback]) πŸ”€ Promise
    • .deleteManufacturer(id, [callback]) πŸ”€ Promise
    • .getPropertyGroups([callback]) πŸ”€ Promise
    • .getPropertyGroup(id, [callback]) πŸ”€ Promise
    • .createPropertyGroup(body, [callback]) πŸ”€ Promise
    • .updatePropertyGroup(id, body, [callback]) πŸ”€ Promise
    • .deletePropertyGroup(id, [callback]) πŸ”€ Promise
    • .getShops([callback]) πŸ”€ Promise
    • .getShop(id, [callback]) πŸ”€ Promise
    • .createShop(body, [callback]) πŸ”€ Promise
    • .updateShop(id, body, [callback]) πŸ”€ Promise
    • .deleteShop(id, [callback]) πŸ”€ Promise
    • .getTranslations([callback]) πŸ”€ Promise
    • .getTranslation(id, [callback]) πŸ”€ Promise
    • .createTranslation(id, body, [callback]) πŸ”€ Promise
    • .updateTranslation(id, body, [callback]) πŸ”€ Promise
    • .deleteTranslation(id, [callback]) πŸ”€ Promise

Address

coming soon

Article

new Shopware([credentials])

Initializes the API. With given credentials. Host, User and API Key

Param Type Description
[credentials] Object Host, User, API Key.

shop.version([callback])

Returns shopware version and revision

Param Type Description
[callback] function Callback will be called with (err, version)

shop.getArticles([callback]) β‡’ Promise

Returns an array with all articles.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
[callback] function Callback will be called with (err, articles)

shop.getArticle(id, [callback]) β‡’ Promise

Returns an object with article data.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
id string Article id
[callback] function Callback will be called with (err, articles)

shop.getArticleByOrdernumber(ordernumber, [callback]) β‡’ Promise

Returns an object with article data.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
ordernumber string Article ordernumber
[callback] function Callback will be called with (err, articles)

shop.deleteArticle(id, [callback]) β‡’ Promise

Deletes an article and returns it's data.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
id string Article id
[callback] function Callback will be called with (err, success)

shop.deleteArticles(ids, [callback]) β‡’ Promise

Deletes a batch of articles and returns it's data.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
id array Article ids
[callback] function Callback will be called with (err, success)

shop.createArticles(article, [callback]) β‡’ Promise

Creates an article and returns its data.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
article object Shopware article model
[callback] function Callback will be called with (err, article)

shop.updateArticles(id, article, [callback]) β‡’ Promise

Updates data of an article.

See: https://developers.shopware.com/developers-guide/rest-api/api-resource-article/

Param Type Description
id string Target article id
article object Shopware article model
[callback] function Callback will be called with (err, article)

Cache

coming soon

Categories

coming soon

Countries

coming soon

CustomerGroups

coming soon

Customer

coming soon

GenerateArticleImage

coming soon

Media

coming soon

Manufacturers

coming soon

Orders

coming soon

PropertyGroups

coming soon

Shops

coming soon

Translations

coming soon

Users

coming soon

Variants

coming soon

Version

coming soon