Lodol Docs

Shopify

API actions for the Shopify integration.

Shopify

Manage your Shopify products, customers, and orders.


Create Shopify customer

Create a new customer record in Shopify.

Parameters

ParameterTypeRequiredDescription
emailstringYesCustomer email address
first_namestringNoCustomer first name
last_namestringNoCustomer last name
phonestringNoCustomer phone number

Response

{
  "email": "customer@example.com",
  "id": "987654321"
}

Create Shopify order

Create a new order in Shopify (for testing or custom use cases).

Parameters

ParameterTypeRequiredDescription
line_itemsarrayYesThe products and quantities to include in the order.
customer_idstringNoThe ID of the customer for this order. For example, 123456789.
financial_statusstringNoPayment status: paid, pending, or authorized.

Response

{
  "financial_status": "paid",
  "id": "555666777",
  "name": "#1001",
  "total_price": "49.99"
}

Create Shopify product

Create a new product in Shopify with basic details.

Parameters

ParameterTypeRequiredDescription
titlestringYesThe product's name.
body_htmlstringNoThe product description. Basic HTML formatting is allowed.
vendorstringNoThe product's vendor or manufacturer.
product_typestringNoThe product category or type.
tagsstringNoTags to organize the product, separated by commas.
pricenumberNoThe product's price.
inventory_quantitynumberNoThe starting number of items in stock.

Response

{
  "id": "987654321",
  "status": "active",
  "title": "New Sample Product"
}

Fulfill Shopify order

Mark an order as fulfilled in Shopify.

Parameters

ParameterTypeRequiredDescription
order_idstringYesThe ID of the order to fulfill. For example, 123456789.
tracking_numberstringNoTracking number for shipment
tracking_companystringNoThe shipping carrier's name.
notify_customerbooleanNoSet to true to email the customer when the order ships.

Response

{
  "id": "fulfillment_123",
  "status": "success"
}

Get Shopify product by ID

Retrieve details about a specific Shopify product using its ID.

Parameters

ParameterTypeRequiredDescription
product_idstringYesThe ID of the Shopify product. For example, 123456789.

Response

{
  "body_html": "<p>Sample product description</p>",
  "id": "123456789",
  "title": "Sample Product",
  "variants": [
    {
      "inventory_quantity": 42,
      "price": "19.99",
      "sku": "SAMPLE-SKU"
    }
  ]
}

List Shopify products

List products from your Shopify store with an optional limit.

Parameters

ParameterTypeRequiredDescription
limitnumberNoMaximum number of products to return.

Response

{
  "results": [
    {
      "id": "123456789",
      "inventory_quantity": 42,
      "title": "Sample Product",
      "variants": [
        {
          "inventory_quantity": 42,
          "price": "19.99",
          "sku": "SAMPLE-SKU"
        }
      ]
    }
  ]
}

Update Shopify product

Update an existing Shopify product's details.

Parameters

ParameterTypeRequiredDescription
product_idstringYesThe ID of the Shopify product to update. For example, 123456789.
titlestringNoThe new product name.
body_htmlstringNoThe new product description. Basic HTML formatting is allowed.
vendorstringNoThe new vendor or manufacturer.
product_typestringNoThe new product category or type.
tagsstringNoThe new product tags, separated by commas.
pricenumberNoThe new product price.
inventory_quantitynumberNoThe new number of items in stock.

Response

{
  "id": "123456789",
  "title": "Updated Product Title"
}

On this page