MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
952 stars 280 forks source link

Add support for new and recommended way of creating new fulfillments (`POST /admin/api/2020-10/fulfillments.json` without specifying an order id) #418

Closed felipebrahm closed 4 years ago

felipebrahm commented 4 years ago

Right now, this library only supports new fulfillment creation via shopify.fulfillment.create(orderId, params), which calls POST /admin/api/2020-10/orders/{order_id}/fulfillments.json.

It needs to add shopify.fulfillment.create(params) (without specifying order id) and then call POST /admin/api/2020-10/fulfillments.json. This is the new and recommended way of creating new fulfillments.

Docs: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillment#createV2-2020-10