assignOrderSourceIntegration
Assigns (or reassigns) a V2 order's source integration and allows it to manage the order.
What it does
- Sets the order's
source_integration_idto the target integration. - Allows the target integration to manage and update the order.
- When the target supports reload, enqueues a refresh so the order is re-pulled and reconciled under the new integration. A push-based integration (no reload capability) gets no refresh.
Requirements
- User must have the
orders:assign_source_integrationpermission. - Target integration must exist, be live, and belong to the order's company.
- Endless must be managing fulfillment before the source can be changed.
- The order must have an origin id and **no active fulfillments** — cancel them first.
- **Reassign** (the order already has a source): the target must be the **same integration type**. This type check is skipped when setting a source for the first time.
assignOrderSourceIntegration(
input: AssignOrderSourceIntegrationInput!
): V2Order!
Arguments
assignOrderSourceIntegration.input ● AssignOrderSourceIntegrationInput! non-null input common
Parameters for AssignOrderSourceIntegration
Type
V2Order object orders
The V2 order type. This type represents a V2 order in the system with only the fields necessary for draft creation and details.