Receive orders from external partners through Shopify API using existing products

Hello together,

I’m reaching out to you because we’re currently having issues sending orders via the Shopify API.

Current status: We have started a cooperation with an external trading partner. Our partner must be able to forward orders to us via the Shopify API. We’ve already created an app within Shopify and granted all neccessary permissions to it. We’re also able to create orders via the API just as our external partner would do.

Problem: We’re using a very basic JSON request from documentation which allows us to send line items. But these line items doesn’t represent our actual products from Shopify. We already tried to handover something like a variant ID or product ID, without success. When we’re trying to handover product IDs within line items we get an error that name/title of the line item can’t be empty. When we set some sample text for name/title AND provide a product ID as well, Shopify just uses the name/title within the order and seems to ignore the provided product ID completely.

Question: How can orders be post to Shopify using product IDs instead of on-the-fly line items?

Please see attached our JSON object. Let me know if you need more details.

Thank you in advance!

Kind regards,

Niklas

{
    "order": {
        "customerId": "gid://shopify/Customer/7938000098540",
        "line_items": [
            {
                "name": "Test",
                "title": "Test",
                "variantId": "gid://shopify/ProductVariant/8920000053900",
                "price": 100,
                "quantity": 2
            }
        ],
        "transactions": [
            {
                "kind": "sale",
                "status": "success",
                "amount": 238.47
            }
        ],
        "total_tax": 13.5,
        "currency": "EUR"
    }
}