Skip to main content

Custom order fullfillment status

With new custom-shopify-order-fulfillment-status appmaker trigger, you can add custom fulfillment status to order. You can have custom api call to get the fulfillment status and display it on the order page.

Parameters avilable in the function

  • input - Input object
  • dependencies - Dependencies object

Input object

ParameterTypeDescription
statusStringCurrent status
labelStringLabel for current Status

Dependencies object

ParameterTypeDescription
orderObjectOrder Object

Return object

ParameterTypeDescription
statusStringStatus
labelStringLabel for Status

Example

import { appmakerFunctions } from "@appmaker-xyz/core";
// Add appmaker function in your active function in theme or extension
appmakerFunctions.registerAppmakerFn({
trigger: "custom-shopify-order-fulfillment-status",
fn: async (input, dependencies) => {
// call your api to get the fulfillment status
// const newStatus = await fetch('https://example.com/api/fulfillment-status');
// return { status: newStatus, label: newStatus.label };

return {
status: "fulfilled",
label: "Shipped" + JSON.stringify(input.s),
};
},
});