Skip to main content

Auto Orders

📄️Update the payment information on an auto order

Updates the credit card on the original order behind an auto order, along with any rebills sitting in accounts receivable, and reactivates the auto order. Card data is accepted as hosted field tokens only. raw card numbers and card verification numbers are rejected. Set attempt_rebill to true to also attempt the rebill immediately, which runs synchronously and may take some time while the gateway is contacted. A declined card is reported in the response body rather than as an API error.

Webhooks

The following webhook events are available for this resource. See Webhooks for how delivery, retries, and versioning work.

EventDescriptionReflowExpandable
auto_order_cancelFired when an auto order is canceledYes
auto_order_createFired when an auto order is createdYes
auto_order_declineFired when an auto order is declinedYes
auto_order_disableFired when an auto order is disabledYes
auto_order_item_cancelFired when an item on an auto order has reached its no_order_after date and effectively cancelsYes
auto_order_item_cancel_scheduledFired when an item on an auto order is scheduled for cancellation (no_order_after set so the item has no future shipments)Yes
auto_order_item_pauseFired when an item on an auto order is pausedYes
auto_order_item_reactivateFired when an item on an auto order is reactivated (no_order_after cleared)Yes
auto_order_item_unpauseFired when an item on an auto order is unpausedYes
auto_order_preshipmentFired when an auto order generates a new pre-shipment noticeYes
auto_order_rebillFired when an auto order is rebilledYes
auto_order_updateFired when an auto order is updatedYes
Was this page helpful?