new Fulfillment(shopify)
Creates a Fulfillment instance.
Parameters:
Name | Type | Description |
---|---|---|
shopify |
Shopify | Reference to the Shopify instance |
Methods
cancel(orderId, id) → {Promise}
Cancels a pending fulfillment.
Parameters:
Name | Type | Description |
---|---|---|
orderId |
Number | Order ID |
id |
Number | Fulfillment ID |
Returns:
Promise that resolves with the result
- Type
- Promise
complete(orderId, id) → {Promise}
Completes a pending fulfillment.
Parameters:
Name | Type | Description |
---|---|---|
orderId |
Number | Order ID |
id |
Number | Fulfillment ID |
Returns:
Promise that resolves with the result
- Type
- Promise
createV2(paramsopt) → {Promise}
Creates a fulfillment for one or many fulfillment orders. The fulfillment
orders are associated with the same order and are assigned to the same
location.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object |
<optional> |
Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise
open(orderId, id) → {Promise}
Opens a pending fulfillment.
Parameters:
Name | Type | Description |
---|---|---|
orderId |
Number | Order ID |
id |
Number | Fulfillment ID |
Returns:
Promise that resolves with the result
- Type
- Promise
updateTracking(id, params) → {Promise}
Updates the tracking information for a fulfillment.
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | Fulfillment ID |
params |
Object | Tracking information |
Returns:
Promise that resolves with the result
- Type
- Promise