Shopify
Last updated
Last updated
vendor/Shopify.js
Interact with the Shopify Admin API.
Returns
Void
Make a GET request to a Shopify site.
Parameters
Name | Type | Description | |
---|---|---|---|
Returns
object
Make a POST request to a Shopify site.
By default Shopify calls will auto-wrap any outgoing JSON data, eg. Shopify.post('/admin/products.json', data) will result in { "product": { data } } use options.skipJsonWrap=true to override this behavior
Parameters
Returns
object
Make a PUT request to a Shopify site.
By default Shopify calls will auto-wrap any outgoing JSON data, eg. Shopify.put('/admin/products.json', data) will result in { "product": { data } } use options.skipJsonWrap=true to override this behavior
Parameters
Returns
object
Make a PATCH request to a Shopify site.
By default Shopify calls will auto-wrap any outgoing JSON data, eg. Shopify.patch('/admin/products.json', data) will result in { "product": { data } } use options.skipJsonWrap=true to override this behavior
Parameters
Returns
object
Make a DELETE request to a Shopify site.
By default Shopify calls will auto-wrap any outgoing JSON data, eg. Shopify.post('/admin/products.json', data) will result in { "product": { data } } use options.skipJsonWrap=true to override this behavior
Parameters
Returns
object
Make consecutive calls to Shopify in order to retrieve all products. https://help.shopify.com/en/api/reference/products/product
Parameters
Examples
Returns
array
Update a value if it already exists, or append it to the array if it does not exist. The example routine below should be every time we are updating tags
or note_attributes
to ensure that multiple Automations will work nicely with each other and not overwrite values set in other Automations.
Parameters
Examples
Returns
array
Get inventory location information for a Shopify variant. https://help.shopify.com/en/api/reference/inventory/inventorylevel
Parameters
Examples
Returns
<a href="#object-inventorydata">InventoryData</a>
Build InventoryLevel update information for a Shopify variant. https://help.shopify.com/en/api/reference/inventory/inventorylevel
Parameters
Examples
Returns
<a href="#object-inventoryupdatedata">InventoryUpdateData</a>
options parameter for Shopify calls
By default Shopify calls will auto-wrap any outgoing JSON data, eg. Shopify.post('/admin/products.json', data) will result in { "product": { data } } use skipJsonWrap=true to override this behavior
Properties
Returns
Void
connectionInfo parameter for Shopify calls
Properties
Returns
Void
Fulfillable location shape returned by fulfillableAlter https://help.shopify.com/en/api/reference/inventory/location
Parameters
Returns
Void
Callback allows buildVariantInventoryUpdate fulfillment location to be altered. https://help.shopify.com/en/api/reference/inventory/inventorylevel
Parameters
Returns
<a href="#object-fulfillablelocation">FulfillableLocation</a>
fulfillableLocation
Return from getVariantInventoryData.
Properties
Returns
Void
Return from buildVariantInventoryUpdate. Will either have available or available_adjustment depending on adjust param. https://help.shopify.com/en/api/reference/inventory/inventorylevel
Properties
Returns
Void
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
Name | Type | Description | |
---|---|---|---|
path
string
options
Additional configuration for Shopify calls
Optional
connectionInfo
If you would like to connect to a separate Shopify website that Mesa is not installed on, create a Custom App and include a connectionInfo
object.
Optional
path
string
data
object
options
Additional configuration for Shopify calls
Optional
connectionInfo
If you would like to connect to a separate Shopify website that Mesa is not installed on, create a Custom App and include a connectionInfo
object.
Optional
path
string
data
object
options
Additional configuration for Shopify calls
Optional
connectionInfo
If you would like to connect to a separate Shopify website that Mesa is not installed on, create a Custom App and include a connectionInfo
object.
Optional
path
string
data
object
options
Additional configuration for Shopify calls
Optional
connectionInfo
If you would like to connect to a separate Shopify website that Mesa is not installed on, create a Custom App and include a connectionInfo
object.
Optional
path
string
options
Additional configuration for Shopify calls
Optional
connectionInfo
If you would like to connect to a separate Shopify website that Mesa is not installed on, create a Custom App and include a connectionInfo
object.
Optional
query={}
object
Parameters to append to the Shopify querystring.
Optional
limit=250
number
Result count for Shopify query.
Optional
data
array
An array of values that you would like to append a value to
Optional
The
string
object
value to append to the array. For tags
, this would be a string
. For note_attributes
, this would be an object.
variantId
number
Shopify variant id.
variantId
number
Shopify variant id.
inventoryCount
number
Value to set as inventory.
adjust=true
bool
Switch for available_adjustment vs available.
Optional
fulfillableAlter
Callback function allows fulfillment location to be altered.
Optional
location_id
number
The ID of the location that the inventory level belongs to.
inventoryLevels
Array.<Object>
Inventory levels for the variant at different locations.
inventoryLevels.inventory_item_id
number
Inventory item id for variant
inventoryLevels.location_id
number
Location id
inventoryLevels.available
number
Inventory count
inventoryLevels.updated_at
string
Last updated