Update a migration
Authentication
Path parameters
The migration’s mig_ ID.
Headers
This endpoint is in the migrations=v1 beta. Send this header to use it.
Request
How a move partway through a billing period is billed. nextScheduledInvoice: the charges before and after the move go on the order’s next scheduled invoice, so the customer gets one invoice for the period. atChange: Paid invoices the charges up to the move when the order moves. A move at the start of a billing period bills the same either way. More values may be added.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Which orders move: those an include target matches, minus those an exclude target matches.
Up to 1000 timings for single orders, in place of timing. An update replaces the whole list.
The pricing object whose orders move: a rate card or a price. More types may be added.
When an order moves to the target version: immediate, date, nextBillingPeriod or earliestAllowed. More types may be added.
The version of pricing that orders move to. Every selected order is on an earlier version; a migration only goes forward.
Response
The type of object. Always migration.
How a move partway through a billing period is billed. nextScheduledInvoice: the charges before and after the move go on the order’s next scheduled invoice, so the customer gets one invoice for the period. atChange: Paid invoices the charges up to the move when the order moves. A move at the start of a billing period bills the same either way. More values may be added.
true for an object on a live account, false on a test account.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Which orders move: those an include target matches, minus those an exclude target matches.
Up to 1000 timings for single orders, in place of timing. An update replaces the whole list.
The pricing object whose orders move: a rate card or a price. More types may be added.
The number of the draft’s latest edit. Every update or restore adds one, and so does a change in what the draft would do, such as an order changing under a migration.
Where the change is in its lifecycle. After commit, it follows from the change’s dates. draft: being prepared; nothing is binding yet. scheduled: committed, and waiting for its startsAt. inEffect: committed, and its startsAt has passed. completed: every part of it has taken effect. canceled: withdrawn before it took effect. More statuses may be added.
When an order moves to the target version: immediate, date, nextBillingPeriod or earliestAllowed. More types may be added.
The version of pricing that orders move to. Every selected order is on an earlier version; a migration only goes forward.