solidus-sdk

solidus-sdk

  • Docs
  • GitLab
  • Solidus

โ€บAPI

Getting Started

  • Basic Usage
  • Configuration
  • Plugins
  • Customizations

API

  • checkout
  • classification
  • config
  • country
  • creditCard
  • inventoryUnit
  • optionType
  • optionValue
  • order
  • Products
  • Promotions
  • property
  • shipment
  • stockItem
  • stockLocation
  • store
  • storeCreditEvent
  • taxon
  • taxonomy
  • user
  • variant
  • zone

Other

  • Contributing
Edit

Products

Allows you to interact with products and related endpoints.

For more information on how products work, see the Solidus Developer's Guide

Get All Products

[GET] /api/products

paginated

Retrieves a list of available products.

Usage

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.product().all()

Retrieve paginated results

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.product().all({ per_page: 50, page: 3 })

Retrieve a list of products by their id (comma separated string).

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.product().all({ ids: [1,2,3,4,5].join(',')})

Helpful Links

  • Source
  • Solidus API Docs

Create Product

[POST] /api/products

admin

Creates a new product.

This should be used along side the new() method to learn attributes can be saved to the product and which are required.

Note: The values sent to this method should be wrapped inside a product property. See examples for more details.

Usage

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.product().create({ product })

Helpful Links

  • Source
  • Solidus API Docs

Learn How to Create a Product

[GET] /api/products/new

This endpoint returns information about what attributes are accepted by the API and which are required when creating a new product.

You can use this endpoint to help you build a form that allows users to create new products.

Usage

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.product().new()

Helpful Links

  • Source

Learn How to Edit a Product

[GET] /api/products/:id/edit

admin

This endpoint returns information about what attributes are accepted by the API and which are required when editing an existing product.

You can use this endpoint to help you build a form that allows users to edit products.

Usage

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.product({ id }).edit()

get

[GET] /api/products/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

update

[PATCH] /api/products/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

delete

[PATCH] /api/products/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

all

[GET] /api/products/:product.id/images

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

create

[POST] /api/products/:product.id/images

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

new

[GET] /api/products/:product.id/images/new

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

edit

[GET] /api/products/:product.id/images/:id/edit

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

get

[GET] /api/products/:product.id/images/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

update

[PATCH] /api/products/:product.id/images/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

delete

[DELETE] /api/products/:product.id/images/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

all

[GET] /api/products/:product.id/variants

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

create

[POST] /api/products/:product.id/variants

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

new

[GET] /api/products/:product.id/variants/new

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

edit

[GET] /api/products/:product.id/variants/:id/edit

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

get

[GET] /api/products/:product.id/variants/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

update

[PATCH] /api/products/:product.id/variants/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

delete

[DELETE] /api/products/:product.id/variants/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

all

[GET] /api/products/:product.id/product_properties

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

create

[POST] /api/products/:product.id/product_properties

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

new

[GET] /api/products/:product.id/product_properties/new

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

edit

[GET] /api/products/:product.id/product_properties/:id/edit

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and

be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

get

[GET] /api/products/:product.id/product_properties/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and

be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

update

[PATCH] /api/products/:product.id/product_properties/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs

delete

[DELETE] /api/products/:product.id/product_properties/:id

๐Ÿšจ This endpoint is missing documentation.

Help out by opening a merge request, and be sure to follow the instructions found in the Contributing Guide.

Here are some helpful links that should help you get started:

  • Solidus Developers Guide
  • Solidus API Reference
  • Solidus API Source
  • Solidus API Request Specs
โ† orderPromotions โ†’
  • Get All Products
    • Usage
    • Helpful Links
  • Create Product
    • Usage
    • Helpful Links
  • Learn How to Create a Product
    • Usage
    • Helpful Links
  • Learn How to Edit a Product
    • Usage
  • get
  • update
  • delete
  • all
  • create
  • new
  • edit
  • get
  • update
  • delete
  • all
  • create
  • new
  • edit
  • get
  • update
  • delete
  • all
  • create
  • new
  • edit
  • get
  • update
  • delete
solidus-sdk
Docs
Getting Started
More
GitLabSolidus.io