The unique numeric identifier for the order.
The unique identifier of the location that the fulfillment should be processed for. To find the ID of the location, use the Location resource.
async
(params, auths) => {
}
return await require("@pipedreamhq/platform").axios(this, {
method: "post",
url: `https://${auths.shopify.shop_id}.myshopify.com/admin/api/2020-01/orders/${params.order_id}/fulfillments.json`,
headers: {
"X-Shopify-Access-Token": `${auths.shopify.oauth_access_token}`,
"Content-Type": `application/json`,
},
data: {
fulfillment: {
line_items: typeof params.line_items == 'undefined' ? params.line_items : JSON.parse(params.line_items),
location_id: params.location_id,
name: params.name,
notify_customer: params.notify_customer,
receipt: typeof params.receipt == 'undefined' ? params.receipt : JSON.parse(params.receipt),
service: params.service,
shipment_status: params.shipment_status,
status: params.status,
tracking_company: params.tracking_company,
tracking_numbers: typeof params.tracking_numbers == 'undefined' ? params.tracking_numbers : JSON.parse(params.tracking_numbers),
tracking_urls: typeof params.tracking_urls == 'undefined' ? params.tracking_urls : JSON.parse(params.tracking_urls),
}
}
})