How to fulfill digital line items from my private app

ToyboxZach
Tourist
5 0 0

I have a private app that is made to manage certain items that we want to just generate a code and email the user.

I am running into a problem marking the item as fulfilled.

I am using shopify-api-node

et toSend = {
              notify_customer: false,
              tracking_info: null,
              line_items_by_fulfillment_order: [
                {
                  fulfillment_order_id: order.id,
                  fulfillment_order_line_items: [{id: order.line_items[0].id, quantity:order.line_items[0].quantiy }]
                }
              ],
              message: "Fulfilled by App",
          }
        
        shopify && shopify.fulfillment.createV2(toSend).then((e, res)=>{

 but I end up with a 404.

This leads me to believe I am not using the right id for fulfillment_order_id but I have no idea how to find the right ID. This is from the payment/create webhook or from querying of a specific order so I have access to everything on the order.

Any clue to what ID I should be using here?

 

0 Likes
ToyboxZach
Tourist
5 0 0

Problem was not specifying the version in my package. 

0 Likes
ToyboxZach
Tourist
5 0 0

Actually that was just a problem, after fixing that I still have the same issue, but I now get a response from the server saying {errors:'Not Found'}

0 Likes