<@U04S8PLJWMT> Are draft orders available through ...
# replication-ask-ai
m
@kapa.ai Are draft orders available through the shopify connector?
k
Yes, Draft Orders are fully supported through the Airbyte Shopify connector. The following actions are available: [Shopify Connector] Here's a quick example of creating a draft order using the Python SDK: [Draft Orders Create]
Copy code
await shopify.draft_orders.create(
    input={
        "lineItems": [
            {
                "variantId": "gid://shopify/ProductVariant/123",
                "quantity": 1
            }
        ],
        "email": "customer@example.com",
        "note": "Draft order note"
    }
)
Additionally, Metafield Draft Orders are also supported, allowing you to list metafields associated with a specific draft order. [Metafield Draft Orders] 👍 0 button 👎 0 button â„šī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help., with interactive elements
m
@kapa.ai draft orders are in the documentation but don't show up as a stream. Is that expected?
k
Based on the knowledge sources, Draft Orders do appear as a suggested stream in the Shopify source connector configuration. The
draft_orders
stream is explicitly listed in the connector's
suggestedStreams
metadata. [Shopify metadata] It is also listed as a supported sync stream in the Shopify source documentation. [Shopify source docs] If Draft Orders are not appearing as a stream in your setup, a few things to check: 1. Stream selection — When setting up or editing your Shopify connection, make sure
draft_orders
is selected/enabled in the stream selection step. 2. Connector version — Ensure you're running an up-to-date version of the Shopify source connector, as
draft_orders
was added in version
0.1.8
. 3. Permissions — Your Shopify API credentials may need the appropriate scopes to access draft orders. However, the knowledge sources don't contain enough detail to diagnose exactly why the stream might not be visible in your specific environment. If the above checks don't resolve the issue, I'd recommend reaching out to Airbyte support for further assistance. 👍 0 button 👎 0 button â„šī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.