Kanorio

API 參考

Delivery methods

Management API: POST /sites/{id}/delivery-methods, PUT /sites/{id}/delivery-methods/order, PATCH /sites/{id}/delivery-methods/{methodId}, …

此頁只有英文版。API 參考、Webhook 事件及變更紀錄維持英文,與程式碼中的欄位名稱、錯誤碼一致。
Base URL https://app.kanorio.com/api/v1ErrorsPagination

Create a delivery method

POST/sites/{id}/delivery-methods
betafulfillment:managedefault (120/minute per token)Idempotency-Key

Add a custom delivery method the store runs itself (meetup, pickup at a shop, own delivery). It gets a shipping option in every shipping profile, offered and priced at amount; adjust other profiles with shipping_options.update. Carriers cannot be added here: the owner sets them up in the console. Send an Idempotency-Key header (idempotencyKey over MCP) so a retry does not add a second method. Errors: FORBIDDEN, VALIDATION.

Parameters

  • idstring · pathrequired

    Website id. Get it from sites.list or from sites.create.

  • Idempotency-Keystring · header

    Client-chosen key (1-200 chars). Retrying with the same key and the same body returns the original result; the same key with a different body is rejected with IDEMPOTENCY_CONFLICT (409). Keys expire after 24 hours.

Request body

  • labelstringrequired

    Name buyers see at checkout.

  • descriptionstring

    Shown under the name, e.g. when and where to meet.

  • requiresAddressboolean

    Whether buyers enter a delivery address; default true. Use false for meetups and pickups.

  • amountintegerrequired

    Price per order in minor units of the store currency (shipping.get_settings → currency); 0 for free.

  • freeShippingThresholdinteger

    Free when the discounted merchandise subtotal reaches this amount; omit or 0 for none.

Response 201

  • currencystring | nullrequired

    Currency of the default market.

  • methodsobject[]required
  • methods[].idstringrequired

    Also the option id buyers pick at checkout.

  • methods[].kind"CARRIER" | "CUSTOM"required

    CARRIER: a carrier such as 7-ELEVEN or Black Cat, booked through a logistics provider. CUSTOM: a method the store runs itself (meetup, pickup, own delivery).

  • methods[].carrierCodestring | nullrequired
  • methods[].deliveryMethodstring | nullrequired

    Delivery method code recorded on orders: cvs-pickup, home-delivery, on-demand-courier, or custom-<id>.

  • methods[].providerstring | nullrequired

    Logistics provider the carrier routes through; null for custom methods or a carrier with no provider chosen yet.

  • methods[].labelstring | nullrequired

    Name of a custom method; null on a preset (meetup, local pickup) follows the site language.

  • methods[].descriptionstring | nullrequired
  • methods[].presetKeystring | nullrequired

    meetup or local-pickup for the built-in custom methods.

  • methods[].requiresAddressbooleanrequired

    Whether buyers enter a delivery address.

  • methods[].enabledbooleanrequired

    Shown at checkout at all (whole store). Whether each shipping profile offers it is options[].isActive.

  • methods[].checkoutOrderintegerrequired

    Position at checkout, lowest first.

  • methods[].availability"AVAILABLE" | "NOT_ACTIVATED" | "PAYMENT_SUSPENDED"required

    CARRIER only: NOT_ACTIVATED until the owner finishes the carrier setup in the console; PAYMENT_SUSPENDED while the payment account the carrier depends on cannot take payments. Custom methods are always AVAILABLE.

  • methods[].pricing"PACKAGE" | "FLAT"required

    PACKAGE: price per package size (options[].specPrices). FLAT: amount per order plus additionalItemAmount per extra unit.

  • methods[].specsobject[]required

    Package sizes this carrier can price (PACKAGE pricing).

  • methods[].specs[].specCodestringrequired

    Package size declared by the carrier, e.g. payuni_tcat_ambient_60; the carrier sets the sizes, the store only sets prices.

  • methods[].specs[].temperatureZonestringrequired

    ambient, chilled or frozen.

  • methods[].specs[].maxDimensionSuminteger | nullrequired

    Largest length + width + height in cm.

  • methods[].specs[].maxEdgeinteger | nullrequired

    Longest side in cm.

  • methods[].specs[].maxWeightGramsinteger | nullrequired
  • methods[].specs[].referenceCostinteger | nullrequired

    What the carrier charges the store, in minor units; a suggestion for the price.

  • methods[].updatedAtstringrequired
  • profilesobject[]required
  • profiles[].idstringrequired
  • profiles[].namestring | nullrequired

    null for the default profile (shown in the store's language).

  • profiles[].isDefaultbooleanrequired

    Products without a profile use the default profile. It cannot be renamed or deleted.

  • profiles[].productCountintegerrequired

    Products and variants assigned to this profile.

  • zonesobject[]required
  • zones[].idstringrequired
  • zones[].namestringrequired
  • zones[].countriesstring[]required

    ISO 3166-1 alpha-2; empty = any country.

  • zones[].regionsstring[]required
  • zones[].postalCodePrefixesstring[]required
  • zones[].isDefaultbooleanrequired
  • optionsobject[]required

    One per delivery method × shipping profile × zone × market.

  • options[].idstringrequired
  • options[].methodIdstringrequired
  • options[].profileIdstringrequired
  • options[].zoneIdstringrequired
  • options[].marketIdstringrequired
  • options[].isActivebooleanrequired

    Whether products in this shipping profile can use this method. Always true in the default profile.

  • options[].currencystringrequired

    Currency of every amount on this option (the market currency).

  • options[].amountintegerrequired

    FLAT pricing: price per order, minor units.

  • options[].additionalItemAmountintegerrequired

    FLAT pricing: added for each unit after the first, minor units.

  • options[].freeShippingThresholdintegerrequired

    Free shipping when the discounted merchandise subtotal reaches this amount; 0 = no free shipping.

  • options[].specPricesobject[]required

    PACKAGE pricing: price per package size. A size without a price is not offered.

  • options[].specPrices[].specCodestringrequired
  • options[].specPrices[].amountintegerrequired

    Price per package, minor units.

  • options[].specPrices[].activatedbooleanrequired

    false while the carrier is not set up for this temperature; buyers do not see it yet.

  • options[].updatedAtstringrequired

    Send it back as expectedUpdatedAt in shipping_options.update.

  • methodIdstringrequired

    The delivery method just added.

Errors

  • FORBIDDEN 403
  • VALIDATION 400

MCP tool delivery_methods_create

curlTypeScript
curl -X POST "https://app.kanorio.com/api/v1/sites/{id}/delivery-methods" \
  -H "Authorization: Bearer $KANORIO_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"label":"Meetup at Taipei Main Station","description":"Fridays 18:00–20:00","requiresAddress":false,"amount":0}'
Response
{
  "currency": "twd",
  "methods": [
    {
      "id": "dm_example01",
      "kind": "CARRIER",
      "carrierCode": "unimart",
      "deliveryMethod": "cvs-pickup",
      "provider": "PAYUNI_LOGISTICS",
      "label": null,
      "description": null,
      "presetKey": null,
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 0,
      "availability": "AVAILABLE",
      "pricing": "PACKAGE",
      "specs": [
        {
          "specCode": "payuni_unimart_ambient",
          "temperatureZone": "ambient",
          "maxDimensionSum": 105,
          "maxEdge": 45,
          "maxWeightGrams": 5000,
          "referenceCost": 6500
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "dm_example02",
      "kind": "CUSTOM",
      "carrierCode": null,
      "deliveryMethod": "custom-dm_example02",
      "provider": null,
      "label": null,
      "description": "Mon–Fri 10:00–18:00 at our shop",
      "presetKey": "local-pickup",
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 1,
      "availability": "AVAILABLE",
      "pricing": "FLAT",
      "specs": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "dm_example03",
      "kind": "CUSTOM",
      "carrierCode": null,
      "deliveryMethod": "custom-dm_example03",
      "provider": null,
      "label": "Meetup at Taipei Main Station",
      "description": "Fridays 18:00–20:00",
      "presetKey": null,
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 2,
      "availability": "AVAILABLE",
      "pricing": "FLAT",
      "specs": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ],
  "profiles": [
    {
      "id": "shpprof_default",
      "name": null,
      "isDefault": true,
      "productCount": 12
    },
    {
      "id": "shpprof_frozen",
      "name": "Frozen cakes",
      "isDefault": false,
      "productCount": 3
    }
  ],
  "zones": [
    {
      "id": "zone_example01",
      "name": "",
      "countries": [],
      "regions": [],
      "postalCodePrefixes": [],
      "isDefault": true
    }
  ],
  "options": [
    {
      "id": "so_example01",
      "methodId": "dm_example01",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example02",
      "methodId": "dm_example02",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 0,
      "specPrices": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example03",
      "methodId": "dm_example01",
      "profileId": "shpprof_frozen",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": false,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example04",
      "methodId": "dm_example02",
      "profileId": "shpprof_frozen",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 0,
      "specPrices": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ],
  "methodId": "dm_example03"
}

Reorder delivery methods

PUT/sites/{id}/delivery-methods/order
betafulfillment:managedefault (120/minute per token)

Set the order delivery methods appear at checkout, the same as dragging them in the console: pass every delivery method id of the site (shipping.get_settings → methods) in the order you want. Errors: FORBIDDEN, VALIDATION (details.reason INCOMPLETE_METHOD_LIST with details.missing and details.unknown, or DUPLICATE_METHOD_ID).

Parameters

  • idstring · pathrequired

    Website id. Get it from sites.list or from sites.create.

Request body

  • methodIdsstring[]required

    Every delivery method id, first shown first.

Response 200

  • currencystring | nullrequired

    Currency of the default market.

  • methodsobject[]required
  • methods[].idstringrequired

    Also the option id buyers pick at checkout.

  • methods[].kind"CARRIER" | "CUSTOM"required

    CARRIER: a carrier such as 7-ELEVEN or Black Cat, booked through a logistics provider. CUSTOM: a method the store runs itself (meetup, pickup, own delivery).

  • methods[].carrierCodestring | nullrequired
  • methods[].deliveryMethodstring | nullrequired

    Delivery method code recorded on orders: cvs-pickup, home-delivery, on-demand-courier, or custom-<id>.

  • methods[].providerstring | nullrequired

    Logistics provider the carrier routes through; null for custom methods or a carrier with no provider chosen yet.

  • methods[].labelstring | nullrequired

    Name of a custom method; null on a preset (meetup, local pickup) follows the site language.

  • methods[].descriptionstring | nullrequired
  • methods[].presetKeystring | nullrequired

    meetup or local-pickup for the built-in custom methods.

  • methods[].requiresAddressbooleanrequired

    Whether buyers enter a delivery address.

  • methods[].enabledbooleanrequired

    Shown at checkout at all (whole store). Whether each shipping profile offers it is options[].isActive.

  • methods[].checkoutOrderintegerrequired

    Position at checkout, lowest first.

  • methods[].availability"AVAILABLE" | "NOT_ACTIVATED" | "PAYMENT_SUSPENDED"required

    CARRIER only: NOT_ACTIVATED until the owner finishes the carrier setup in the console; PAYMENT_SUSPENDED while the payment account the carrier depends on cannot take payments. Custom methods are always AVAILABLE.

  • methods[].pricing"PACKAGE" | "FLAT"required

    PACKAGE: price per package size (options[].specPrices). FLAT: amount per order plus additionalItemAmount per extra unit.

  • methods[].specsobject[]required

    Package sizes this carrier can price (PACKAGE pricing).

  • methods[].specs[].specCodestringrequired

    Package size declared by the carrier, e.g. payuni_tcat_ambient_60; the carrier sets the sizes, the store only sets prices.

  • methods[].specs[].temperatureZonestringrequired

    ambient, chilled or frozen.

  • methods[].specs[].maxDimensionSuminteger | nullrequired

    Largest length + width + height in cm.

  • methods[].specs[].maxEdgeinteger | nullrequired

    Longest side in cm.

  • methods[].specs[].maxWeightGramsinteger | nullrequired
  • methods[].specs[].referenceCostinteger | nullrequired

    What the carrier charges the store, in minor units; a suggestion for the price.

  • methods[].updatedAtstringrequired
  • profilesobject[]required
  • profiles[].idstringrequired
  • profiles[].namestring | nullrequired

    null for the default profile (shown in the store's language).

  • profiles[].isDefaultbooleanrequired

    Products without a profile use the default profile. It cannot be renamed or deleted.

  • profiles[].productCountintegerrequired

    Products and variants assigned to this profile.

  • zonesobject[]required
  • zones[].idstringrequired
  • zones[].namestringrequired
  • zones[].countriesstring[]required

    ISO 3166-1 alpha-2; empty = any country.

  • zones[].regionsstring[]required
  • zones[].postalCodePrefixesstring[]required
  • zones[].isDefaultbooleanrequired
  • optionsobject[]required

    One per delivery method × shipping profile × zone × market.

  • options[].idstringrequired
  • options[].methodIdstringrequired
  • options[].profileIdstringrequired
  • options[].zoneIdstringrequired
  • options[].marketIdstringrequired
  • options[].isActivebooleanrequired

    Whether products in this shipping profile can use this method. Always true in the default profile.

  • options[].currencystringrequired

    Currency of every amount on this option (the market currency).

  • options[].amountintegerrequired

    FLAT pricing: price per order, minor units.

  • options[].additionalItemAmountintegerrequired

    FLAT pricing: added for each unit after the first, minor units.

  • options[].freeShippingThresholdintegerrequired

    Free shipping when the discounted merchandise subtotal reaches this amount; 0 = no free shipping.

  • options[].specPricesobject[]required

    PACKAGE pricing: price per package size. A size without a price is not offered.

  • options[].specPrices[].specCodestringrequired
  • options[].specPrices[].amountintegerrequired

    Price per package, minor units.

  • options[].specPrices[].activatedbooleanrequired

    false while the carrier is not set up for this temperature; buyers do not see it yet.

  • options[].updatedAtstringrequired

    Send it back as expectedUpdatedAt in shipping_options.update.

Errors

  • FORBIDDEN 403
  • VALIDATION 400 · details.reason INCOMPLETE_METHOD_LIST with details.missing and details.unknown, or DUPLICATE_METHOD_ID

MCP tool delivery_methods_reorder

curlTypeScript
curl -X PUT "https://app.kanorio.com/api/v1/sites/{id}/delivery-methods/order" \
  -H "Authorization: Bearer $KANORIO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"methodIds":["dm_example02","dm_example01"]}'
Response
{
  "currency": "twd",
  "methods": [
    {
      "id": "dm_example02",
      "kind": "CUSTOM",
      "carrierCode": null,
      "deliveryMethod": "custom-dm_example02",
      "provider": null,
      "label": null,
      "description": "Mon–Fri 10:00–18:00 at our shop",
      "presetKey": "local-pickup",
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 0,
      "availability": "AVAILABLE",
      "pricing": "FLAT",
      "specs": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "dm_example01",
      "kind": "CARRIER",
      "carrierCode": "unimart",
      "deliveryMethod": "cvs-pickup",
      "provider": "PAYUNI_LOGISTICS",
      "label": null,
      "description": null,
      "presetKey": null,
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 1,
      "availability": "AVAILABLE",
      "pricing": "PACKAGE",
      "specs": [
        {
          "specCode": "payuni_unimart_ambient",
          "temperatureZone": "ambient",
          "maxDimensionSum": 105,
          "maxEdge": 45,
          "maxWeightGrams": 5000,
          "referenceCost": 6500
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ],
  "profiles": [
    {
      "id": "shpprof_default",
      "name": null,
      "isDefault": true,
      "productCount": 12
    },
    {
      "id": "shpprof_frozen",
      "name": "Frozen cakes",
      "isDefault": false,
      "productCount": 3
    }
  ],
  "zones": [
    {
      "id": "zone_example01",
      "name": "",
      "countries": [],
      "regions": [],
      "postalCodePrefixes": [],
      "isDefault": true
    }
  ],
  "options": [
    {
      "id": "so_example01",
      "methodId": "dm_example01",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example02",
      "methodId": "dm_example02",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 0,
      "specPrices": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example03",
      "methodId": "dm_example01",
      "profileId": "shpprof_frozen",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": false,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example04",
      "methodId": "dm_example02",
      "profileId": "shpprof_frozen",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 0,
      "specPrices": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ]
}

Update a delivery method

PATCH/sites/{id}/delivery-methods/{methodId}
betafulfillment:managedefault (120/minute per token)

Turn a delivery method on or off at checkout for the whole store, or edit a custom method (label, description, requiresAddress). Only the fields you send change. Turning a carrier on needs it set up in the console first. To stop offering a method for one shipping profile only, set that option's isActive with shipping_options.update. Errors: FORBIDDEN, DELIVERY_METHOD_NOT_FOUND, CARRIER_NOT_ACTIVATED, CARRIER_SUSPENDED, VALIDATION (details.reason CARRIER_FIELDS_FIXED: label, description and requiresAddress belong to custom methods; LABEL_REQUIRED: only a preset can clear its label).

Parameters

  • idstring · pathrequired

    Website id. Get it from sites.list or from sites.create.

  • methodIdstring · pathrequired

    Delivery method id from shipping.get_settings (methods[].id).

Request body

  • enabledboolean
  • labelstring | null

    Custom methods only. null on a preset (meetup, local pickup) goes back to the name in the site language.

  • descriptionstring | null

    Custom methods only; null clears it.

  • requiresAddressboolean

    Custom methods only.

Response 200

  • currencystring | nullrequired

    Currency of the default market.

  • methodsobject[]required
  • methods[].idstringrequired

    Also the option id buyers pick at checkout.

  • methods[].kind"CARRIER" | "CUSTOM"required

    CARRIER: a carrier such as 7-ELEVEN or Black Cat, booked through a logistics provider. CUSTOM: a method the store runs itself (meetup, pickup, own delivery).

  • methods[].carrierCodestring | nullrequired
  • methods[].deliveryMethodstring | nullrequired

    Delivery method code recorded on orders: cvs-pickup, home-delivery, on-demand-courier, or custom-<id>.

  • methods[].providerstring | nullrequired

    Logistics provider the carrier routes through; null for custom methods or a carrier with no provider chosen yet.

  • methods[].labelstring | nullrequired

    Name of a custom method; null on a preset (meetup, local pickup) follows the site language.

  • methods[].descriptionstring | nullrequired
  • methods[].presetKeystring | nullrequired

    meetup or local-pickup for the built-in custom methods.

  • methods[].requiresAddressbooleanrequired

    Whether buyers enter a delivery address.

  • methods[].enabledbooleanrequired

    Shown at checkout at all (whole store). Whether each shipping profile offers it is options[].isActive.

  • methods[].checkoutOrderintegerrequired

    Position at checkout, lowest first.

  • methods[].availability"AVAILABLE" | "NOT_ACTIVATED" | "PAYMENT_SUSPENDED"required

    CARRIER only: NOT_ACTIVATED until the owner finishes the carrier setup in the console; PAYMENT_SUSPENDED while the payment account the carrier depends on cannot take payments. Custom methods are always AVAILABLE.

  • methods[].pricing"PACKAGE" | "FLAT"required

    PACKAGE: price per package size (options[].specPrices). FLAT: amount per order plus additionalItemAmount per extra unit.

  • methods[].specsobject[]required

    Package sizes this carrier can price (PACKAGE pricing).

  • methods[].specs[].specCodestringrequired

    Package size declared by the carrier, e.g. payuni_tcat_ambient_60; the carrier sets the sizes, the store only sets prices.

  • methods[].specs[].temperatureZonestringrequired

    ambient, chilled or frozen.

  • methods[].specs[].maxDimensionSuminteger | nullrequired

    Largest length + width + height in cm.

  • methods[].specs[].maxEdgeinteger | nullrequired

    Longest side in cm.

  • methods[].specs[].maxWeightGramsinteger | nullrequired
  • methods[].specs[].referenceCostinteger | nullrequired

    What the carrier charges the store, in minor units; a suggestion for the price.

  • methods[].updatedAtstringrequired
  • profilesobject[]required
  • profiles[].idstringrequired
  • profiles[].namestring | nullrequired

    null for the default profile (shown in the store's language).

  • profiles[].isDefaultbooleanrequired

    Products without a profile use the default profile. It cannot be renamed or deleted.

  • profiles[].productCountintegerrequired

    Products and variants assigned to this profile.

  • zonesobject[]required
  • zones[].idstringrequired
  • zones[].namestringrequired
  • zones[].countriesstring[]required

    ISO 3166-1 alpha-2; empty = any country.

  • zones[].regionsstring[]required
  • zones[].postalCodePrefixesstring[]required
  • zones[].isDefaultbooleanrequired
  • optionsobject[]required

    One per delivery method × shipping profile × zone × market.

  • options[].idstringrequired
  • options[].methodIdstringrequired
  • options[].profileIdstringrequired
  • options[].zoneIdstringrequired
  • options[].marketIdstringrequired
  • options[].isActivebooleanrequired

    Whether products in this shipping profile can use this method. Always true in the default profile.

  • options[].currencystringrequired

    Currency of every amount on this option (the market currency).

  • options[].amountintegerrequired

    FLAT pricing: price per order, minor units.

  • options[].additionalItemAmountintegerrequired

    FLAT pricing: added for each unit after the first, minor units.

  • options[].freeShippingThresholdintegerrequired

    Free shipping when the discounted merchandise subtotal reaches this amount; 0 = no free shipping.

  • options[].specPricesobject[]required

    PACKAGE pricing: price per package size. A size without a price is not offered.

  • options[].specPrices[].specCodestringrequired
  • options[].specPrices[].amountintegerrequired

    Price per package, minor units.

  • options[].specPrices[].activatedbooleanrequired

    false while the carrier is not set up for this temperature; buyers do not see it yet.

  • options[].updatedAtstringrequired

    Send it back as expectedUpdatedAt in shipping_options.update.

Errors

  • FORBIDDEN 403
  • DELIVERY_METHOD_NOT_FOUND 404
  • CARRIER_NOT_ACTIVATED 422
  • CARRIER_SUSPENDED 422
  • VALIDATION 400 · details.reason CARRIER_FIELDS_FIXED: label, description and requiresAddress belong to custom methods; LABEL_REQUIRED: only a preset can clear its label

MCP tool delivery_methods_update

curlTypeScript
curl -X PATCH "https://app.kanorio.com/api/v1/sites/{id}/delivery-methods/{methodId}" \
  -H "Authorization: Bearer $KANORIO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false}'
Response
{
  "currency": "twd",
  "methods": [
    {
      "id": "dm_example01",
      "kind": "CARRIER",
      "carrierCode": "unimart",
      "deliveryMethod": "cvs-pickup",
      "provider": "PAYUNI_LOGISTICS",
      "label": null,
      "description": null,
      "presetKey": null,
      "requiresAddress": false,
      "enabled": false,
      "checkoutOrder": 0,
      "availability": "AVAILABLE",
      "pricing": "PACKAGE",
      "specs": [
        {
          "specCode": "payuni_unimart_ambient",
          "temperatureZone": "ambient",
          "maxDimensionSum": 105,
          "maxEdge": 45,
          "maxWeightGrams": 5000,
          "referenceCost": 6500
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "dm_example02",
      "kind": "CUSTOM",
      "carrierCode": null,
      "deliveryMethod": "custom-dm_example02",
      "provider": null,
      "label": null,
      "description": "Mon–Fri 10:00–18:00 at our shop",
      "presetKey": "local-pickup",
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 1,
      "availability": "AVAILABLE",
      "pricing": "FLAT",
      "specs": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ],
  "profiles": [
    {
      "id": "shpprof_default",
      "name": null,
      "isDefault": true,
      "productCount": 12
    },
    {
      "id": "shpprof_frozen",
      "name": "Frozen cakes",
      "isDefault": false,
      "productCount": 3
    }
  ],
  "zones": [
    {
      "id": "zone_example01",
      "name": "",
      "countries": [],
      "regions": [],
      "postalCodePrefixes": [],
      "isDefault": true
    }
  ],
  "options": [
    {
      "id": "so_example01",
      "methodId": "dm_example01",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example02",
      "methodId": "dm_example02",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 0,
      "specPrices": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example03",
      "methodId": "dm_example01",
      "profileId": "shpprof_frozen",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": false,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    },
    {
      "id": "so_example04",
      "methodId": "dm_example02",
      "profileId": "shpprof_frozen",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 0,
      "specPrices": [],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ]
}

Delete a delivery method

DELETE/sites/{id}/delivery-methods/{methodId}
betafulfillment:managedefault (120/minute per token)

Delete a custom delivery method with its shipping options. Orders keep the name they were placed with. Carriers cannot be deleted; turn them off with delivery_methods.update { enabled: false }. Errors: FORBIDDEN, DELIVERY_METHOD_NOT_FOUND, NOT_CUSTOM_METHOD.

Parameters

  • idstring · pathrequired

    Website id. Get it from sites.list or from sites.create.

  • methodIdstring · pathrequired

    Delivery method id from shipping.get_settings (methods[].id).

Response 200

  • currencystring | nullrequired

    Currency of the default market.

  • methodsobject[]required
  • methods[].idstringrequired

    Also the option id buyers pick at checkout.

  • methods[].kind"CARRIER" | "CUSTOM"required

    CARRIER: a carrier such as 7-ELEVEN or Black Cat, booked through a logistics provider. CUSTOM: a method the store runs itself (meetup, pickup, own delivery).

  • methods[].carrierCodestring | nullrequired
  • methods[].deliveryMethodstring | nullrequired

    Delivery method code recorded on orders: cvs-pickup, home-delivery, on-demand-courier, or custom-<id>.

  • methods[].providerstring | nullrequired

    Logistics provider the carrier routes through; null for custom methods or a carrier with no provider chosen yet.

  • methods[].labelstring | nullrequired

    Name of a custom method; null on a preset (meetup, local pickup) follows the site language.

  • methods[].descriptionstring | nullrequired
  • methods[].presetKeystring | nullrequired

    meetup or local-pickup for the built-in custom methods.

  • methods[].requiresAddressbooleanrequired

    Whether buyers enter a delivery address.

  • methods[].enabledbooleanrequired

    Shown at checkout at all (whole store). Whether each shipping profile offers it is options[].isActive.

  • methods[].checkoutOrderintegerrequired

    Position at checkout, lowest first.

  • methods[].availability"AVAILABLE" | "NOT_ACTIVATED" | "PAYMENT_SUSPENDED"required

    CARRIER only: NOT_ACTIVATED until the owner finishes the carrier setup in the console; PAYMENT_SUSPENDED while the payment account the carrier depends on cannot take payments. Custom methods are always AVAILABLE.

  • methods[].pricing"PACKAGE" | "FLAT"required

    PACKAGE: price per package size (options[].specPrices). FLAT: amount per order plus additionalItemAmount per extra unit.

  • methods[].specsobject[]required

    Package sizes this carrier can price (PACKAGE pricing).

  • methods[].specs[].specCodestringrequired

    Package size declared by the carrier, e.g. payuni_tcat_ambient_60; the carrier sets the sizes, the store only sets prices.

  • methods[].specs[].temperatureZonestringrequired

    ambient, chilled or frozen.

  • methods[].specs[].maxDimensionSuminteger | nullrequired

    Largest length + width + height in cm.

  • methods[].specs[].maxEdgeinteger | nullrequired

    Longest side in cm.

  • methods[].specs[].maxWeightGramsinteger | nullrequired
  • methods[].specs[].referenceCostinteger | nullrequired

    What the carrier charges the store, in minor units; a suggestion for the price.

  • methods[].updatedAtstringrequired
  • profilesobject[]required
  • profiles[].idstringrequired
  • profiles[].namestring | nullrequired

    null for the default profile (shown in the store's language).

  • profiles[].isDefaultbooleanrequired

    Products without a profile use the default profile. It cannot be renamed or deleted.

  • profiles[].productCountintegerrequired

    Products and variants assigned to this profile.

  • zonesobject[]required
  • zones[].idstringrequired
  • zones[].namestringrequired
  • zones[].countriesstring[]required

    ISO 3166-1 alpha-2; empty = any country.

  • zones[].regionsstring[]required
  • zones[].postalCodePrefixesstring[]required
  • zones[].isDefaultbooleanrequired
  • optionsobject[]required

    One per delivery method × shipping profile × zone × market.

  • options[].idstringrequired
  • options[].methodIdstringrequired
  • options[].profileIdstringrequired
  • options[].zoneIdstringrequired
  • options[].marketIdstringrequired
  • options[].isActivebooleanrequired

    Whether products in this shipping profile can use this method. Always true in the default profile.

  • options[].currencystringrequired

    Currency of every amount on this option (the market currency).

  • options[].amountintegerrequired

    FLAT pricing: price per order, minor units.

  • options[].additionalItemAmountintegerrequired

    FLAT pricing: added for each unit after the first, minor units.

  • options[].freeShippingThresholdintegerrequired

    Free shipping when the discounted merchandise subtotal reaches this amount; 0 = no free shipping.

  • options[].specPricesobject[]required

    PACKAGE pricing: price per package size. A size without a price is not offered.

  • options[].specPrices[].specCodestringrequired
  • options[].specPrices[].amountintegerrequired

    Price per package, minor units.

  • options[].specPrices[].activatedbooleanrequired

    false while the carrier is not set up for this temperature; buyers do not see it yet.

  • options[].updatedAtstringrequired

    Send it back as expectedUpdatedAt in shipping_options.update.

Errors

  • FORBIDDEN 403
  • DELIVERY_METHOD_NOT_FOUND 404
  • NOT_CUSTOM_METHOD 422

MCP tool delivery_methods_delete

curlTypeScript
curl -X DELETE "https://app.kanorio.com/api/v1/sites/{id}/delivery-methods/{methodId}" \
  -H "Authorization: Bearer $KANORIO_TOKEN"
Response
{
  "currency": "twd",
  "methods": [
    {
      "id": "dm_example01",
      "kind": "CARRIER",
      "carrierCode": "unimart",
      "deliveryMethod": "cvs-pickup",
      "provider": "PAYUNI_LOGISTICS",
      "label": null,
      "description": null,
      "presetKey": null,
      "requiresAddress": false,
      "enabled": true,
      "checkoutOrder": 0,
      "availability": "AVAILABLE",
      "pricing": "PACKAGE",
      "specs": [
        {
          "specCode": "payuni_unimart_ambient",
          "temperatureZone": "ambient",
          "maxDimensionSum": 105,
          "maxEdge": 45,
          "maxWeightGrams": 5000,
          "referenceCost": 6500
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ],
  "profiles": [
    {
      "id": "shpprof_default",
      "name": null,
      "isDefault": true,
      "productCount": 12
    },
    {
      "id": "shpprof_frozen",
      "name": "Frozen cakes",
      "isDefault": false,
      "productCount": 3
    }
  ],
  "zones": [
    {
      "id": "zone_example01",
      "name": "",
      "countries": [],
      "regions": [],
      "postalCodePrefixes": [],
      "isDefault": true
    }
  ],
  "options": [
    {
      "id": "so_example01",
      "methodId": "dm_example01",
      "profileId": "shpprof_default",
      "zoneId": "zone_example01",
      "marketId": "mkt_example01",
      "isActive": true,
      "currency": "twd",
      "amount": 0,
      "additionalItemAmount": 0,
      "freeShippingThreshold": 100000,
      "specPrices": [
        {
          "specCode": "payuni_unimart_ambient",
          "amount": 6500,
          "activated": true
        }
      ],
      "updatedAt": "2026-10-06T08:00:00.000Z"
    }
  ]
}