Skip to content

Rippling: Retrieve a specific draft transition

Rippling restApi.getDraftTransitions: arguments, response, policy and SDK examples.

← Rest API operations · Get started

Operation rippling.rest_api.get_draft_transitions

Provider route: GET /draft-transitions/{id}/. Alter supplies the connection’s credentials and routing.

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"]["getDraftTransitions"]>[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.getDraftTransitions(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from 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.get_draft_transitions(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentFormat: id

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve a specific draft transition — response body

Referenced models: Retrieve a specific draft transition — response body

Retrieve a specific draft transition — response body
FieldTypePresenceDescription and constraints
$objectRoot
completed_countJSONRequired within parent
completed_count (anyOf 1)integerAlternativeNumber of completed items, including items completed with warnings.
completed_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
failed_countJSONRequired within parent
failed_count (anyOf 1)integerAlternativeNumber of failed items.
failed_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
failed_itemsarrayRequired within parentDetails for failed items; empty when none have failed.
failed_items[]ModelEach itemExpand Retrieve a specific draft transition — response body — failed items item
request_idstringRequired within parentIdentifier of the submitted draft transition request.
statusstringRequired within parentCurrent processing state. Continue polling while ACCEPTED or PROCESSING. COMPLETED, COMPLETED_WITH_WARNINGS, COMPLETED_WITH_ERRORS, and FAILED are terminal states.
Known values: ACCEPTED, PROCESSING, COMPLETED, COMPLETED_WITH_WARNINGS, COMPLETED_WITH_ERRORS, FAILED
submitted_countJSONRequired within parent
submitted_count (anyOf 1)integerAlternativeTotal number of items accepted in the original request.
submitted_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
warning_countJSONRequired within parent
warning_count (anyOf 1)integerAlternativeNumber of items completed with warnings; these are also included in completed_count.
warning_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
warning_itemsarrayRequired within parentDetails for items completed with warnings; empty when none have warnings.
warning_items[]ModelEach itemExpand Retrieve a specific draft transition — response body — warning items item

Referenced models: Retrieve a specific draft transition — response body — failed items item, Retrieve a specific draft transition — response body — warning items item

Retrieve a specific draft transition — response body — failed items item
FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayRequired within parentErrors explaining why this item failed.
errors[]ModelEach itemExpand Retrieve a specific draft transition — response body — failed items item errors item
indexJSONRequired within parent
index (anyOf 1)integerAlternativeZero-based index of this item in the submitted items array.
index (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
statusstringRequired within parentItem processing state; failed items have FAILED status.
Known values: ACCEPTED, PROCESSING, COMPLETED, COMPLETED_WITH_WARNINGS, FAILED
worker_idstringRequired within parentTarget worker identifier, matching the id returned by GET /workers/{id}/.

Referenced models: Retrieve a specific draft transition — response body — failed items item errors item

Retrieve a specific draft transition — response body — warning items item
FieldTypePresenceDescription and constraints
$objectRoot
indexJSONRequired within parent
index (anyOf 1)integerAlternativeZero-based index of this item in the submitted items array.
index (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
statusstringRequired within parentItem processing state; warning items have COMPLETED_WITH_WARNINGS status.
Known values: ACCEPTED, PROCESSING, COMPLETED, COMPLETED_WITH_WARNINGS, FAILED
warningsarrayRequired within parentWarnings associated with this completed item. Review the draft before applying it.
warnings[]ModelEach itemExpand Retrieve a specific draft transition — response body — failed items item errors item
worker_idstringRequired within parentTarget worker identifier, matching the id returned by GET /workers/{id}/.

Referenced models: Retrieve a specific draft transition — response body — failed items item errors item

Retrieve a specific draft transition — response body — failed items item errors item
FieldTypePresenceDescription and constraints
$objectRoot
codestringRequired within parentMachine-readable warning or error code.
field_pathJSONOptional
field_path (anyOf 1)stringAlternativePath to the affected request field, when available.
field_path (anyOf 2)nullAlternative
messagestringRequired within parentExplanation of the issue and, when applicable, how to correct it.

SDK function policy ID: rippling.rest_api.get_draft_transitions. Catalog operation: get-draft-transitions. 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: ["draft-transitions.read"]

Provider entitlements: ["API_Tier_1", "Draft_Transitions_API"]

Pinned headers: {"Rippling-Api-Version": "2024-08-01"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.