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
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
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
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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: