Skip to main content

Checkout Settings API

The Checkout Settings API provides read-only access to the merchant's checkout configuration that was active when the buyer placed the order on the Order status page. Use this API to detect the order submission type, display B2B payment terms, and check shipping address editability.

Checkout settings reflect the merchant's configuration at the time of checkout. If the merchant updates their settings after an order is placed, the values returned by this API don't change.

  • Detect order type: Determine whether the order is a standard order or a draft order, and adjust your extension's behavior accordingly.
  • Display payment terms: If B2B payment terms are configured, display the due date and terms name to the buyer.
  • Check shipping address editability: Determine whether the buyer was able to modify their shipping address during checkout.

The shopify global object provides the checkout settings. Access the following property on shopify to read the checkout configuration for the order.

Anchor to checkoutSettings
checkoutSettings
<>
required

The checkout settings that were active when the buyer placed the order, such as whether order notes and login are enabled.

Returns the merchant's checkout configuration at the time of checkout. Doesn't reflect updates made after the order was placed.


  • Adapt messaging for draft orders: When orderSubmission is DRAFT_ORDER, the order hasn't been finalized by the merchant yet. Consider adjusting your extension's messaging to indicate that the order is pending review.

Was this page helpful?