Returns a single Product by its ID. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.products.show({
bearer_token: '7381273269536713689562374856'
id: '1'
})
Creates a new Product and returns its attributes. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.products.create({
bearer_token: '7381273269536713689562374856',
product: {
name: 'string',
description: 'string',
available_on: 'string',
discontinue_on: 'string',
permalink: 'string',
meta_description: 'string',
meta_keywords: 'string',
price: 'string',
sku: 'string',
deleted_at: 'string',
prototype_id: 'string',
option_values_hash: 'string',
weight: 'string',
height: 'string',
width: 'string',
depth: 'string',
shipping_category_id: 'string',
tax_category_id: 'string',
cost_currency: 'string',
cost_price: 'string',
compare_at_price: 'string',
option_type_ids: 'string',
taxon_ids: 'string',
public_metadata: {},
private_metadata: {}
}
})
Update the selected Product. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.products.update({
bearer_token: '7381273269536713689562374856',
id: '1',
product: {
name: 'string',
description: 'string',
available_on: 'string',
discontinue_on: 'string',
permalink: 'string',
meta_description: 'string',
meta_keywords: 'string',
price: 'string',
sku: 'string',
deleted_at: 'string',
prototype_id: 'string',
option_values_hash: 'string',
weight: 'string',
height: 'string',
width: 'string',
depth: 'string',
shipping_category_id: 'string',
tax_category_id: 'string',
cost_currency: 'string',
cost_price: 'string',
compare_at_price: 'string',
option_type_ids: 'string',
taxon_ids: 'string',
public_metadata: {},
private_metadata: {}
}
})
This endpoint removes the specified Product. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example:
const response = await client.products.remove({
bearer_token: '7381273269536713689562374856',
id: '1'
})
Protected
spreeOptional
tokens: ITokenOptional
params: anyOptional
responseParsing: ResponseParsingProtected
classifyProtected
processProtected
processProtected
spreeGenerated using TypeDoc
Returns a list of all Products. See api docs.
Required token: Bearer token
Success response schema: Success schema
Failure response schema: Error schema
Example: