Skip to main content

@dialstack/sdk-dev / server/src / HardwareOrderCheckoutConflictResponse

Interface: HardwareOrderCheckoutConflictResponse

Defined in: sdk/server/src/index.ts:1653

409 body from hardwareOrders.checkout. One endpoint refuses for several unrelated reasons and the fix for each is somewhere different, so branch on code rather than string-matching error:

  • order_not_draft — the order cannot be placed. Today this is a rejected order, which cannot be resumed.
  • shipping_not_quoted — quote shipping first. An unquoted order is not a free-shipping one.
  • no_debit_authority — no verified bank account with a live ACH authorization. Finish bank setup; the order is left as a draft.
  • catalog_item_not_priced — a line was unpriced or withdrawn from the catalog since the draft was built. Remove or replace it.
  • hardware_order_already_debited — a debit already exists; the order is no longer checkout-able.
  • checkout_resume_window_elapsed — placed more than 12 hours ago without a debit, past the window in which a retry is guaranteed not to charge twice.
  • debit_parameters_changed — the stored bank account or authorization moved between attempts, so the debit cannot be retried under the same key.

Properties

code

TypeScript
code:
| "order_not_draft"
| "shipping_not_quoted"
| "no_debit_authority"
| "catalog_item_not_priced"
| "hardware_order_already_debited"
| "checkout_resume_window_elapsed"
| "debit_parameters_changed";

Defined in: sdk/server/src/index.ts:1655


error

TypeScript
error: string;

Defined in: sdk/server/src/index.ts:1654