Skip to content

Rippling: Update a bill

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

← Rest API operations · Get started

Operation rippling.rest_api.update_bills

Provider route: PATCH /bills/{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"]["updateBills"]>[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.updateBills(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.update_bills(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
bodyModelOptionalExpand Update a bill — request body — body

Referenced models: Update a bill — request body — body

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

FieldTypePresenceDescription and constraints
$objectRootA bill visible to the caller, including its invoice and payment details.
accounting_datestringOptionalDate the transaction is booked in the accounting system, as an ISO 8601 date (YYYY-MM-DD).
approval_statusstringOptionalApproval state of the bill. `DRAFT`: not submitted. `PENDING`: awaiting required information before submission. `REQUESTED`: awaiting approval. `APPROVED`: approved. `REJECTED`: rejected. `FINALIZED`: finalized for payment. `ACTIONED`: paid. `CANCELLED`: cancelled. `FAILED`: payment failed.
Known values: DRAFT, PENDING, REQUESTED, APPROVED, REJECTED, FINALIZED, ACTIONED, CANCELLED, FAILED
attachmentsarrayOptionalOther attached files, including filenames and recorded upload metadata.
attachments[]ModelEach itemExpand Update a bill — response body — attachments item
company_amountobjectOptionalAmount in the company’s headquarters currency. The `value` is a decimal string.
company_amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
company_amount.valueJSONOptional
company_amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
company_amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
created_atstringRequired within parentRecord creation date
credit_methodstringOptionalHow the vendor is paid: ACH, WIRE, CHECK, GLOBAL_ORDER, EXISTING_CORPORATE_CARD, MANUALLY_PAID, or PAID_IN_FULL_VIA_VENDOR_CREDIT. GLOBAL_ORDER is an international transfer. PAID_IN_FULL_VIA_VENDOR_CREDIT means vendor credits cover the full bill, with no cash payment.
Known values: ACH, WIRE, CHECK, GLOBAL_ORDER, EXISTING_CORPORATE_CARD, MANUALLY_PAID, PAID_IN_FULL_VIA_VENDOR_CREDIT
due_datestringOptionalInvoice due date, as an ISO 8601 date. A draft can omit it.
entity_idstringOptionalID of the legal entity the transaction belongs to. Use it with `/company-legal-entities/{id}/`.
estimated_payment_arrivalstringOptionalDate the vendor is expected to receive the payment, as an ISO 8601 date. Null when not set.
gl_sync_statestringOptionalState of the sync to the accounting system. `NOT_FINALIZED`: not ready for accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`: sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to be synced automatically. Null when no sync state is set.
Known values: NOT_FINALIZED, FOR_REVIEW, PENDING_SYNC, SYNCED, ERROR, DO_NOT_SYNC, EXPORTED, NOT_SYNCABLE, AUTO_SYNC
gl_vendorobjectOptionalVendor in the connected accounting system.
gl_vendor.gl_vendor_idstringOptionalID of the vendor in the accounting system.
gl_vendor.idstringOptionalID of the accounting vendor in Rippling.
gl_vendor.namestringOptionalName of the vendor in the accounting system.
idstringRequired within parentIdentifier field
invoiceobjectOptionalInvoice file and its filename.
invoice.file_namestringOptionalOriginal file name, when recorded.
invoice.urlstringRequired within parentURL for accessing the file.
invoice_datestringOptionalInvoice date, as an ISO 8601 date (YYYY-MM-DD). Null when not set. Filters compare UTC calendar days: `eq` includes the whole day, `gt` starts the following day, and `lt` excludes the specified day. `ge` and `le` include the specified day; `in` matches any listed day.
invoice_numberstringOptionalInvoice number. Null when the bill has no invoice number.
line_itemsarrayOptionalCategory splits of the bill amount.
line_items[]ModelEach itemExpand Update a bill — response body — line items item
memostringOptionalMemo entered on the transaction.
merchant_amountobjectOptionalAmount charged by the merchant, in the merchant currency. The `value` is a decimal string.
merchant_amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
merchant_amount.valueJSONOptional
merchant_amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
merchant_amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
parent_bill_idstringOptionalID of the bill this payment was split from. Use it with `/bills/{id}/`. Null when it is not a split bill.
payment_amountobjectOptionalAmount paid to the vendor, in the payment currency. The `value` is a decimal string.
payment_amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
payment_amount.valueJSONOptional
payment_amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
payment_amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
payment_method_feeobjectOptionalPayment method fee, in the company’s headquarters currency. The `value` is a decimal string. Zero when there is no fee.
payment_method_fee.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
payment_method_fee.valueJSONOptional
payment_method_fee.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
payment_method_fee.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
payment_schedule_settingstringOptionalPayment scheduling choice: `SCHEDULE_NOW` to schedule payment, or `SKIP_FOR_NOW` to defer scheduling.
Known values: SCHEDULE_NOW, SKIP_FOR_NOW
payment_velocitystringOptionalPayment speed option: `TWO_DAY` (accelerated) or `FOUR_DAY` (standard). Use `estimated_payment_arrival` for the expected arrival date.
Known values: TWO_DAY, FOUR_DAY
scheduled_payment_datestringOptionalDate used to estimate vendor payment, as an ISO 8601 date. Null when not set.
submitterModelOptionalExpand Update a bill — response body — submitter
submitter_idstringOptionalID of the bill manager who submitted the bill. Use it with `/workers/{id}/`. Can differ from `worker_id`. Null before submission.
transaction_typestringOptionalType of transaction: `BILL_PAYMENT`.
Known values: BILL_PAYMENT
updated_atstringRequired within parentRecord update date
vendorModelOptionalExpand Update a bill — response body — vendor
vendor_idstringOptionalID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
vendor_memostringOptionalMemo included on the payment to the vendor. Supported for ACH; null when not set.
vendor_paid_datestringOptionalDate the vendor is paid, as an ISO 8601 date. Null until paid.
workerModelOptionalExpand Update a bill — response body — worker
worker_idstringOptionalID of the worker who made the transaction. Use it with `/workers/{id}/`.

Referenced models: Update a bill — response body — line items item, Update a bill — response body — attachments item, Update a bill — response body — submitter, Update a bill — response body — vendor, Update a bill — response body — worker

32 more schemas are linked from the tables above, on the schema pages.

Update a bill — response body — line items item
FieldTypePresenceDescription and constraints
$objectRoot
amortizedbooleanOptionalWhether this line is amortized.
amountobjectOptionalAmount of this split, in the merchant currency. The `value` is a decimal string.
amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
amount.valueJSONOptional
amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
category_idstringOptionalID of the Finance category assigned to this split. Use it with `/finance-categories/{id}/`. The category name is in `category_name`.
category_namestringOptionalName of the finance category.
dimension_choicesobjectOptionalSelected dimension values, keyed by dimension ID. `DEPARTMENT` and `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job code ID from `/job-codes/` and `/job-codes/{id}/`.
Additional keys: see wildcard field
dimension_choices.*ModelAdditional keysExpand Update a bill — response body — line items item dimension choices value
end_datestringOptionalEnd of the amortization period (YYYY-MM-DD).
gl_amortization_scheduleobjectOptionalERP amortization schedule associated with this line.
gl_amortization_schedule.accounting_integration_idstringOptionalRippling ID of the accounting integration that owns this object. No public Rippling API is currently available to retrieve this accounting integration.
gl_amortization_schedule.amortization_periodJSONOptional
gl_amortization_schedule.amortization_period (anyOf 1)integerAlternativeNumber of amortization periods.
gl_amortization_schedule.amortization_period (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
gl_amortization_schedule.end_datestringOptionalEnd of the ERP amortization schedule as an ISO 8601 timestamp (for example, 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not indicate UTC. Null when not set.
gl_amortization_schedule.gl_object_idstringOptionalObject ID in the connected accounting system.
gl_amortization_schedule.gl_object_typestringOptionalType of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization; GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor, customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null when not set.
Known values: GL_AMORTIZATION_TEMPLATE, GL_AMORTIZATION_SCHEDULE, GL_AMORTIZATION_SCHEDULE_RECURRENCE, GL_ACCOUNT, GL_JOURNAL_ENTRY, GL_POSTING_PERIOD, GL_VENDOR, GL_CUSTOMER, GL_EMPLOYEE, GL_SUBSIDIARY
gl_amortization_schedule.namestringOptionalAccounting object name.
gl_amortization_schedule.start_datestringOptionalStart of the ERP amortization schedule as an ISO 8601 timestamp (for example, 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not indicate UTC. Null when not set.
gl_amortization_schedule.statusstringOptionalERP amortization schedule status: NOT_STARTED means amortization has not begun; IN_PROGRESS means amortization is underway; COMPLETED means amortization is complete; ON_HOLD means amortization is paused. Null when not set.
Known values: NOT_STARTED, IN_PROGRESS, COMPLETED, ON_HOLD
gl_amortization_schedule.total_amortized_amountJSONOptional
gl_amortization_schedule.total_amortized_amount (anyOf 1)numberAlternativeAmount already amortized as reported by the ERP, in the same currency as total_amount. No currency conversion is applied; the schedule currency code is not available in this response.
gl_amortization_schedule.total_amortized_amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
gl_amortization_schedule.total_amountJSONOptional
gl_amortization_schedule.total_amount (anyOf 1)numberAlternativeTotal schedule amount as reported by the ERP, without currency conversion. The schedule currency code is not available in this response.
gl_amortization_schedule.total_amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
gl_amortization_templateobjectOptionalERP amortization template for this line.
gl_amortization_template.accounting_integration_idstringOptionalRippling ID of the accounting integration that owns this object. No public Rippling API is currently available to retrieve this accounting integration.
gl_amortization_template.gl_object_idstringOptionalObject ID in the connected accounting system.
gl_amortization_template.gl_object_typestringOptionalType of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization; GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor, customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null when not set.
Known values: GL_AMORTIZATION_TEMPLATE, GL_AMORTIZATION_SCHEDULE, GL_AMORTIZATION_SCHEDULE_RECURRENCE, GL_ACCOUNT, GL_JOURNAL_ENTRY, GL_POSTING_PERIOD, GL_VENDOR, GL_CUSTOMER, GL_EMPLOYEE, GL_SUBSIDIARY
gl_amortization_template.namestringOptionalAccounting object name.
gl_billablestringOptionalWhether this split is billed to `gl_customer` in the accounting system. `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not set.
Known values: BILLABLE, NOT_BILLABLE
gl_customerstringOptionalID of the customer record in the connected accounting integration. No public Rippling API is currently available to retrieve this accounting customer.
gl_tax_codestringOptionalRippling ID of the accounting tax code. No public Rippling API is currently available to retrieve this accounting tax code.
idstringOptionalUnique identifier of this line item. Null for older line items that have not been assigned one yet.
memostringOptionalMemo entered on this split.
prepaid_accountobjectOptionalPrepaid asset account for Rippling-managed amortization.
prepaid_account.account_idstringOptionalAccount ID in the connected accounting system.
prepaid_account.codestringOptionalAccount code.
prepaid_account.namestringOptionalAccount name.
prepaid_account.required_custom_dimensionsarrayOptionalIDs of custom dimensions required by this account.
prepaid_account.required_custom_dimensions[]stringEach item
prepaid_account.requires_departmentbooleanOptionalWhether this account requires a department.
prepaid_account.requires_work_locationbooleanOptionalWhether this account requires a work location.
prepaid_account.typestringOptionalAccounting account type: RECEIVABLE for accounts receivable, PAYABLE for accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null when not set.
Known values: RECEIVABLE, PAYABLE, EXPENSE, BANK
start_datestringOptionalStart of the amortization period (YYYY-MM-DD).
tax_amountobjectOptionalTotal tax amount for this line in the merchant currency.
tax_amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
tax_amount.valueJSONOptional
tax_amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
tax_amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Update a bill — response body — line items item dimension choices value

Update a bill — response body — attachments item
FieldTypePresenceDescription and constraints
$objectRootA Finance transaction attachment with recorded upload details.
file_namestringOptionalOriginal file name, when recorded.
uploaded_atstringOptionalWhen the attachment was uploaded, as an ISO 8601 date-time in UTC, when recorded.
uploaded_by_idstringOptionalID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
urlstringRequired within parentURL for accessing the file.
Update a bill — request body — body
FieldTypePresenceDescription and constraints
$objectRootPATCH body for `/bills/{id}/`.

Send `line_items` as the full list of lines the bill should have. A line with an `id` is updated and keeps that ID. A line without an `id` is added, and the response includes its new ID. A line left out is deleted, along with any purchase-order match or ERP link on it, as in the bill editor. To keep a line as it is, send it back as GET returns it. Optional fields that are omitted or null on a supplied line are cleared. `amount` and `tax_amount` are decimal strings in the bill's merchant currency, such as `"75.00"`; GET returns them as Currency objects. Line amounts must add up to the bill's merchant amount. Lines sent without an `id` get new IDs on every successful request, so after a timeout, GET the bill and send its current lines instead of replaying the request. A line that GET returns with a null `id` cannot be matched; sending it back replaces it with a new line and ID.
line_itemsarrayOptionalFull list of lines the bill should have. Lines with an `id` are updated, lines without one are added, and lines left out are deleted. Line amounts must add up to the bill's merchant amount.
line_items[]ModelEach itemExpand Update a bill — request body — body line items item

Referenced models: Update a bill — request body — body line items item

Update a bill — response body — vendor
FieldTypePresenceDescription and constraints
$objectRootVendor details. Expand with `bills.read` and `finance-vendors.read`.

Expandable field
created_atstringRequired within parentRecord creation date
idstringRequired within parentIdentifier field
is_archivedbooleanOptionalWhether the vendor is archived. Archived vendors remain available for historical references.
logostringOptionalURL of the vendor's logo. Null when no logo is available.
namestringOptionalCanonical name of the Finance vendor. Name eq, ne, and in filters also match alternate names.
updated_atstringRequired within parentRecord update date

SDK function policy ID: rippling.rest_api.update_bills. Catalog operation: update-bills. 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: ["bills.read-write"]

Provider entitlements: ["Spend_Management_Platform_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.