Rippling: Update a background check order
Rippling restApi.updateBackgroundCheckOrders: arguments, response, policy and SDK examples.
← Rest API operations · Get started
Operation rippling.rest_api.update_background_check_orders
Provider route: PATCH /background-check-orders/{id}/. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/rippling with npm, or alter-sdk-rippling with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { RipplingIntegration } from "@alter-ai/rippling";
async function execute(input: Parameters<RipplingIntegration["restApi"]["updateBackgroundCheckOrders"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new RipplingIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.restApi.updateBackgroundCheckOrders(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_rippling import RipplingIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = RipplingIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.rest_api.update_background_check_orders(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.id | string | Required within parent | Format: id |
body | Model | Optional | Expand Update a background check order — request body — body |
Referenced models: Update a background check order — request body — body
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Background Check Order DTO. Represents a unified request from Rippling to a background check provider to either start or cancel a background check. This consolidates the legacy create-request and cancel-request patterns into a single resource. Integration Pattern: Rippling creates orders (status=REQUESTED) when an action is needed. Partners poll GET/LIST endpoints to discover new REQUESTED orders, then PATCH to ACCEPTED or REJECTED. Platform API V2 does not send outbound webhooks. Note on Legacy Webhooks: While Platform API V2 itself has no webhook infrastructure, order creation also triggers a legacy webhook event for backwards compatibility. Partners receive a push notification via the legacy webhook system: - Event name for START orders: background_check_order.created - Event name for CANCEL orders: background_check_order.cancelled - Webhook payload (minimal fields only): - event_name: The event name (background_check_order.created or background_check_order.cancelled) - id: The order’s Platform API identifier - company_id: The company’s Platform API identifier - company_primary_email: The company’s primary email address - The webhook contains NO order details, candidate information, package data, location, or PII. Partners must use the order ID to call GET /background-check-orders/{id} (with expand parameters as needed) to retrieve full order details after receiving the webhook. - Partners should implement both polling (recommended) and webhook handling for redundancy Intent Values: - START: Request to initiate a background check for a candidate - CANCEL: Request to cancel an existing background check invitation Status Values: - REQUESTED: Rippling has created the order and is waiting for partner action - ACCEPTED: Partner has accepted and will fulfill the order - REJECTED: Partner has rejected the order (see status_reason for details) Status Transitions: All orders follow a forward-only state machine: - REQUESTED to ACCEPTED: Partner accepts the order - REQUESTED to REJECTED: Partner rejects the order - ACCEPTED and REJECTED are terminal states that cannot transition further Supported Operations: - GET /{id}: Retrieve a single order by Platform ID - LIST: Poll for new orders (filter by status=REQUESTED and intent=START or intent=CANCEL) - PATCH /{id}: Accept or reject an order PATCH: Accept or Reject Orders Updates an order’s status. Only status-related fields can be modified; all other fields are immutable. For START Orders (intent=START): Accepting (status=ACCEPTED): - Requires: candidate_external_id (provider’s candidate ID) - Requires: invitation_external_id (provider’s invitation ID) - Both IDs must reference existing resources owned by this provider - Returns: 200 OK with updated order, or 400 if validation fails Rejecting (status=REJECTED): - Requires: status_reason (explanation for rejection) - Returns: 200 OK with updated order For CANCEL Orders (intent=CANCEL): Accepting (status=ACCEPTED): - No additional fields required - Returns: 200 OK with updated order Rejecting (status=REJECTED): - Requires: status_reason (explanation for rejection, e.g., “Already completed”) - Returns: 200 OK with updated order Response Codes: - 200 OK: Order successfully updated with current state - 400 Bad Request: Invalid fields, missing required fields, or terminal state violation - 404 Not Found: Order not found or not accessible by this provider - 409 Conflict: Conflicting external_id on a replay (idempotency check) Idempotency: Replaying the same status on an already-terminal order: - ACCEPTED replay with matching candidate_external_id/invitation_external_id: Returns 200 OK (idempotent) - ACCEPTED replay with different candidate_external_id/invitation_external_id: Returns 409 Conflict - REJECTED replay with matching status_reason: Returns 200 OK (idempotent) - REJECTED replay with different status_reason: Returns 409 Conflict Terminal State Protection: Once an order reaches ACCEPTED or REJECTED, it becomes immutable: - Status changes: Any attempt to change status from a terminal state returns 400 Bad Request - Field changes: Any attempt to change candidate_external_id, invitation_external_id, or status_reason on a terminal order (even with the same status) returns 409 Conflict Expandable References: Orders reference related resources via Platform IDs. Use expand parameters to retrieve full resource details in a single request: - expand=candidate: Candidate details (name, email, etc.). Requires background-check-candidates.read scope. - expand=package: Package/check type details. Requires background-check-packages.read scope. - expand=invitation: Invitation details. Requires background-check-invitations.read scope. - expand=node: Background check node details. Requires background-check-nodes.read scope. Filterable Fields: - status: Order status (REQUESTED, ACCEPTED, REJECTED) - intent: Order intent (START, CANCEL) - candidate_id: Platform ID of the candidate (filterable, use expand=candidate for details) - package_external_id: Provider’s package/check type ID - node_id: Platform ID of the background check node (filterable, use expand=node for details) - candidate_external_id: Provider’s candidate ID (idempotency key) - invitation_external_id: Provider’s invitation ID (for START orders when accepting) - created_at: ISO 8601 UTC timestamp when order was created - updated_at: ISO 8601 UTC timestamp when order was last modified Read-Only Fields: All fields except status, candidate_external_id, invitation_external_id, and status_reason are read-only and cannot be modified via PATCH. |
candidate | Model | Optional | Expand Update a background check order — response body — candidate |
candidate_external_id | string | Optional | The provider’s unique identifier for the candidate. Required when accepting a START order (status=ACCEPTED, intent=START). Used as an idempotency key. |
candidate_id | string | Optional | The Platform API identifier of the candidate. Use expand=candidate to retrieve candidate details including PII (name, email). This field is filterable. |
created_at | string | Optional | ISO 8601 UTC timestamp when the order was created. Example: 2024-08-01T14:30:00Z |
id | string | Optional | The unique Platform API identifier for this order. |
intent | string | Optional | The action being requested. Values: - START: Request to initiate a background check - CANCEL: Request to cancel an existing background check Known values: START, CANCEL |
invitation | Model | Optional | Expand Update a background check order — response body — invitation |
invitation_external_id | string | Optional | The provider’s unique identifier for the invitation. Required when accepting a START order (status=ACCEPTED, intent=START). Used as an idempotency key. |
invitation_id | string | Optional | The Platform API identifier of the invitation. Use expand=invitation to retrieve invitation details. This field is filterable. |
location | Model | Optional | Expand Update a background check order — response body — location |
node | Model | Optional | Expand Update a background check order — response body — node |
node_external_id | string | Optional | The provider’s unique identifier for the background check node. |
node_id | string | Optional | The Platform API identifier of the background check node. Use expand=node to retrieve node details. This field is filterable. |
package | Model | Optional | Expand Update a background check order — response body — package |
package_external_id | string | Optional | The provider’s unique identifier for the package/check type (for START orders). |
package_id | string | Optional | The Platform API identifier of the package/check type (for START orders). Use expand=package to retrieve package details. This field is filterable. |
status | string | Optional | The current status of the order. Values: - REQUESTED: Waiting for provider action - ACCEPTED: Provider has accepted the order - REJECTED: Provider has rejected the order Transitions follow a forward-only state machine: REQUESTED → ACCEPTED or REJECTED. Terminal states (ACCEPTED, REJECTED) cannot transition further. Known values: REQUESTED, ACCEPTED, REJECTED |
status_reason | string | Optional | Explanation for the current status. Required when rejecting any order (status=REJECTED). Example: ‘Duplicate request’ or ‘Already completed’. |
updated_at | string | Optional | ISO 8601 UTC timestamp when the order was last updated. Example: 2024-08-01T15:45:00Z |
Referenced models: Update a background check order — response body — candidate, Update a background check order — response body — invitation, Update a background check order — response body — location, Update a background check order — response body — node, Update a background check order — response body — package
Schemas
Section titled “Schemas”37 more schemas are linked from the tables above, on the schema pages.
Update a background check order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Background Check Order DTO. Represents a unified request from Rippling to a background check provider to either start or cancel a background check. This consolidates the legacy create-request and cancel-request patterns into a single resource. Integration Pattern: Rippling creates orders (status=REQUESTED) when an action is needed. Partners poll GET/LIST endpoints to discover new REQUESTED orders, then PATCH to ACCEPTED or REJECTED. Platform API V2 does not send outbound webhooks. Note on Legacy Webhooks: While Platform API V2 itself has no webhook infrastructure, order creation also triggers a legacy webhook event for backwards compatibility. Partners receive a push notification via the legacy webhook system: - Event name for START orders: background_check_order.created - Event name for CANCEL orders: background_check_order.cancelled - Webhook payload (minimal fields only): - event_name: The event name (background_check_order.created or background_check_order.cancelled) - id: The order's Platform API identifier - company_id: The company's Platform API identifier - company_primary_email: The company's primary email address - The webhook contains NO order details, candidate information, package data, location, or PII. Partners must use the order ID to call GET /background-check-orders/{id} (with expand parameters as needed) to retrieve full order details after receiving the webhook. - Partners should implement both polling (recommended) and webhook handling for redundancy Intent Values: - START: Request to initiate a background check for a candidate - CANCEL: Request to cancel an existing background check invitation Status Values: - REQUESTED: Rippling has created the order and is waiting for partner action - ACCEPTED: Partner has accepted and will fulfill the order - REJECTED: Partner has rejected the order (see status_reason for details) Status Transitions: All orders follow a forward-only state machine: - REQUESTED to ACCEPTED: Partner accepts the order - REQUESTED to REJECTED: Partner rejects the order - ACCEPTED and REJECTED are terminal states that cannot transition further Supported Operations: - GET /{id}: Retrieve a single order by Platform ID - LIST: Poll for new orders (filter by status=REQUESTED and intent=START or intent=CANCEL) - PATCH /{id}: Accept or reject an order PATCH: Accept or Reject Orders Updates an order's status. Only status-related fields can be modified; all other fields are immutable. For START Orders (intent=START): Accepting (status=ACCEPTED): - Requires: candidate_external_id (provider's candidate ID) - Requires: invitation_external_id (provider's invitation ID) - Both IDs must reference existing resources owned by this provider - Returns: 200 OK with updated order, or 400 if validation fails Rejecting (status=REJECTED): - Requires: status_reason (explanation for rejection) - Returns: 200 OK with updated order For CANCEL Orders (intent=CANCEL): Accepting (status=ACCEPTED): - No additional fields required - Returns: 200 OK with updated order Rejecting (status=REJECTED): - Requires: status_reason (explanation for rejection, e.g., "Already completed") - Returns: 200 OK with updated order Response Codes: - 200 OK: Order successfully updated with current state - 400 Bad Request: Invalid fields, missing required fields, or terminal state violation - 404 Not Found: Order not found or not accessible by this provider - 409 Conflict: Conflicting external_id on a replay (idempotency check) Idempotency: Replaying the same status on an already-terminal order: - ACCEPTED replay with matching candidate_external_id/invitation_external_id: Returns 200 OK (idempotent) - ACCEPTED replay with different candidate_external_id/invitation_external_id: Returns 409 Conflict - REJECTED replay with matching status_reason: Returns 200 OK (idempotent) - REJECTED replay with different status_reason: Returns 409 Conflict Terminal State Protection: Once an order reaches ACCEPTED or REJECTED, it becomes immutable: - Status changes: Any attempt to change status from a terminal state returns 400 Bad Request - Field changes: Any attempt to change candidate_external_id, invitation_external_id, or status_reason on a terminal order (even with the same status) returns 409 Conflict Expandable References: Orders reference related resources via Platform IDs. Use expand parameters to retrieve full resource details in a single request: - expand=candidate: Candidate details (name, email, etc.). Requires background-check-candidates.read scope. - expand=package: Package/check type details. Requires background-check-packages.read scope. - expand=invitation: Invitation details. Requires background-check-invitations.read scope. - expand=node: Background check node details. Requires background-check-nodes.read scope. Filterable Fields: - status: Order status (REQUESTED, ACCEPTED, REJECTED) - intent: Order intent (START, CANCEL) - candidate_id: Platform ID of the candidate (filterable, use expand=candidate for details) - package_external_id: Provider's package/check type ID - node_id: Platform ID of the background check node (filterable, use expand=node for details) - candidate_external_id: Provider's candidate ID (idempotency key) - invitation_external_id: Provider's invitation ID (for START orders when accepting) - created_at: ISO 8601 UTC timestamp when order was created - updated_at: ISO 8601 UTC timestamp when order was last modified Read-Only Fields: All fields except status, candidate_external_id, invitation_external_id, and status_reason are read-only and cannot be modified via PATCH. |
candidate_external_id | string | Optional | The provider's unique identifier for the candidate. Required when accepting a START order (status=ACCEPTED, intent=START). Used as an idempotency key. |
invitation_external_id | string | Optional | The provider's unique identifier for the invitation. Required when accepting a START order (status=ACCEPTED, intent=START). Used as an idempotency key. |
status | string | Optional | The current status of the order. Values: - REQUESTED: Waiting for provider action - ACCEPTED: Provider has accepted the order - REJECTED: Provider has rejected the order Transitions follow a forward-only state machine: REQUESTED → ACCEPTED or REJECTED. Terminal states (ACCEPTED, REJECTED) cannot transition further. One of: REQUESTED, ACCEPTED, REJECTED |
status_reason | string | Optional | Explanation for the current status. Required when rejecting any order (status=REJECTED). Example: 'Duplicate request' or 'Already completed'. |
Update a background check order — response body — candidate
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Expanded candidate details (use expand=candidate). Includes PII fields (name, email) protected by the background-check-candidates.read OAuth scope. Expandable field |
created_at | string | Optional | The timestamp when the candidate was created. |
email | string | Required within parent | The email address of the candidate. Required on create, but may be null on read for legacy rows. |
external_id | string | Required within parent | The provider's unique identifier for the candidate. Required on create, but may be null on read for legacy rows. Can only be set once (during creation or when null). Cannot be changed after being set. |
first_name | string | Optional | The first name of the candidate. |
id | string | Optional | The unique identifier of the background check candidate. |
last_name | string | Optional | The last name of the candidate. |
middle_name | string | Optional | The middle name of the candidate. |
owner_id | string | Optional | The ID of the background check provider (OAuth spoke owner). |
updated_at | string | Optional | The timestamp when the candidate was last updated. |
Update a background check order — response body — invitation
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Expanded invitation details (use expand=invitation). Expandable field |
candidate | Model | Optional | Expand Update a background check report — response body — candidate |
candidate_external_id | string | Required within parent | The provider's unique identifier for the candidate. |
candidate_id | string | Optional | The Platform API identifier of the candidate. This field is filterable. Use expand=candidate to retrieve candidate details including PII (name, email). |
created_at | string | Optional | ISO 8601 UTC timestamp when the invitation was created. Example: 2024-08-01T14:30:00Z |
external_id | string | Required within parent | The provider's unique identifier for the invitation. |
id | string | Optional | The unique identifier of the background check invitation. |
package | Model | Optional | Expand Update a background check report — response body — package |
package_external_id | string | Required within parent | The provider's unique identifier for the package/check type. |
package_id | string | Optional | The Platform API identifier of the package/check type. This field is filterable. Use expand=package to retrieve package details. |
report | Model | Optional | Expand Update a background check invitation — response body — report |
report_external_id | string | Optional | The provider's unique identifier for the report. |
report_id | string | Optional | The Platform API identifier of the report. This field is filterable. Use expand=report to retrieve report details. |
status | string | Optional | The status of the invitation. Values: PENDING, EXPIRED, COMPLETED, CANCELED. POST Operations: - Can create invitations in any status to support historical backfill - Defaults to PENDING if status is not provided PATCH Operations: - Transitions FROM terminal states (COMPLETED, EXPIRED, CANCELED) are rejected (see below) Typical Status Flow: - PENDING: Invitation sent, awaiting candidate action - COMPLETED: Candidate completed the background check - EXPIRED: Invitation expired before completion - CANCELED: Invitation was canceled Note: Transitions FROM terminal states (COMPLETED, EXPIRED, CANCELED) to any other status are REJECTED with a 400 Bad Request error. Once an invitation reaches a terminal state, its status cannot be changed to preserve audit integrity and FCRA compliance. Known values: PENDING, EXPIRED, COMPLETED, CANCELED |
updated_at | string | Optional | ISO 8601 UTC timestamp when the invitation was last updated. Example: 2024-08-01T15:45:00Z |
worker | Model | Optional | Expand Update a background check invitation — response body — worker |
worker_id | string | Optional | The ID of the HRIS worker associated with this invitation. Null for pre-hire candidate invitations not yet in HRIS. This linkage is established automatically by Rippling and cannot be set or updated via external APIs. |
Referenced models: Update a background check report — response body — candidate, Update a background check report — response body — package, Update a background check invitation — response body — report, Update a background check invitation — response body — worker
Retrieve a specific user — response body — emails item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
display | string | Optional | The display value of the email address. |
type | string | Optional | The classification of the email. Known values: HOME, WORK, OTHER |
value | string | Optional | A valid email address. |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: rippling.rest_api.update_background_check_orders. Catalog operation: update-background-check-orders. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["background-check-orders.read-write"]
Provider entitlements: ["Background_Check_Platform_API"]
Pinned headers: {"Rippling-Api-Version": "2024-08-01"}