Lodol Docs

Shopify

API actions for the Shopify integration.

Shopify

Manage Shopify catalog and orders with your Admin API access token.


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_itemsarrayYesList of line items (product/variant details)
customer_idstringNoShopify customer ID
financial_statusstringNoFinancial status (paid, pending, 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
titlestringYesProduct title/name
body_htmlstringNoProduct description HTML
vendorstringNoProduct vendor/manufacturer
product_typestringNoProduct category/type
tagsstringNoComma-separated product tags
pricenumberNoProduct price for first variant
inventory_quantitynumberNoInitial inventory quantity for first variant

Response

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

Fulfill Shopify order

Mark an order as fulfilled in Shopify.

Parameters

ParameterTypeRequiredDescription
order_idstringYesShopify order ID
tracking_numberstringNoTracking number for shipment
tracking_companystringNoShipping carrier name
notify_customerbooleanNoNotify customer by email

Response

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

Get Shopify product by ID

Retrieve details about a specific Shopify product using its ID.

Parameters

ParameterTypeRequiredDescription
product_idstringYesShopify product ID (numeric string)

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_idstringYesShopify product ID
titlestringNoUpdated product title
body_htmlstringNoUpdated product description HTML
vendorstringNoUpdated product vendor
product_typestringNoUpdated product type
tagsstringNoUpdated product tags
pricenumberNoUpdated price for first variant
inventory_quantitynumberNoUpdated inventory quantity for first variant

Response

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

On this page