Spectrum Integration
  • Introduction
  • Ecommerce
    • Front End Integration
    • Load Design
    • Add to Cart
    • Save Design
    • Generate Cart Item
    • Pricing & Availability
    • Order Acknowledgement
    • Shipment Notification
    • Update Order Status
    • Order Search
    • Integration Driver
    • Production Related File Delivery
    • Spectrum + Shopify Integration
      • Overall Flow
      • Product Set Up: "Add-ons"
      • Line Item Properties
      • Shopify Cart
      • Order Processing
  • API
    • Environments
    • Image QueryString API
      • Image Transforms
      • Image Filters
      • Image Encoding
    • Rendering
    • WebToPrint (W2P)
    • Assets
    • Rate Limiting
  • Marketing
    • Share
  • General
    • Glossary
Powered by GitBook
On this page

Was this helpful?

  1. Ecommerce
  2. Spectrum + Shopify Integration

Line Item Properties

PreviousProduct Set Up: "Add-ons"NextShopify Cart

Last updated 2 months ago

Was this helpful?

In order for Spectrum to import orders for manufacturing, there must be an indication that the line item is a customized item versus a stock item. The preferred method to do this is to create a custom line item property called "Recipe" (Note: name is configurable) to store the recipe identifier that is passed to Shopify via the process. This allows Spectrum to seamlessly .

Relatedly, if following the product set up guidance, where the customization "add-on"/upcharge is configured as a unique variant, Spectrum recommends a line item property to associate the "add-on" with a line item. The recommended line item property name is "RelatedRecipe" (Note: name is configurable). The benefit to setting this property is that it allows Spectrum to fulfill all custom line items associated with the order automatically.

Example Shopify Order and Line Items

"line_items": [
    {
        "id": 1234,
        "admin_graphql_api_id": "gid://shopify/LineItem/1234",
        "attributed_staffs": [],
        "current_quantity": 1,
        "fulfillable_quantity": 1,
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 0,
        "name": "Custom Product",
        "price": "42.00",
        "price_set": {
            "shop_money": {
                "amount": "99.00",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "99.00",
                "currency_code": "USD"
            }
        },
        "product_exists": true,
        "product_id": 12345,
        "properties": [
            {
                "name": "Recipe",
                "value": "ABDC1234"
            }
        ],
        "quantity": 1,
        "requires_shipping": true,
        "sku": "12928819",
        "taxable": true,
        "title": "Custom Item",
        ...
    },
    {
        "id": 1235,
        "admin_graphql_api_id": "gid://shopify/LineItem/1235",
        "attributed_staffs": [],
        "current_quantity": 1,
        "fulfillable_quantity": 1,
        "fulfillment_service": "manual",
        "fulfillment_status": null,
        "gift_card": false,
        "grams": 0,
        "name": "Custom Engraving",
        "price": "10.00",
        "price_set": {
            "shop_money": {
                "amount": "20.00",
                "currency_code": "USD"
            },
            "presentment_money": {
                "amount": "20.00",
                "currency_code": "USD"
            }
        },
        "product_exists": true,
        "product_id": 12346,
        "properties": [
            {
                "name": "RelatedRecipe",
                "value": "ABDC1234"
            }
        ],
        "quantity": 1,
        "requires_shipping": false,
        "sku": "customengraving",
        "taxable": false,
        "title": "Custom Engraving",
        ...
    }
]

Add to Cart
process the order