For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
Beta

Get started with the Spend API

Authenticate, set permissions, and call Spend API endpoints to access Spend data in Rippling.

Use with AI:Rippling AI ChatGPT Claude Cursor

Overview​

Use of the Spend APIs requires the Spend Management Platform API entitlement. Work with your company Account Manager for access.

Spend APIs read/update bills, card transactions, reimbursements, finance vendors, and finance categories from Rippling's Spend Management product. This data can be used to power automations, inform analytics, and define policies.

Core concepts​

  • Bill: A vendor bill, including invoice and payment details.
  • Card transaction: A posted card charge or a pending authorization.
  • Reimbursement: An expense reimbursement, including mileage and per diem.
  • Finance vendor: A vendor in the company's finance directory. Archived vendors remain available so historical transactions can still resolve their vendor.
  • Finance category: A category used to classify transaction line items. Inactive categories remain available for historical references.

Available endpoints​

API endpointRequired scopesSchemaNotes / Requirements
GET List bills
  • bills.read
  • BillPayment
  • RedactedFields
  • Expandable fields: worker, vendor, submitter.
GET Retrieve a specific bill
  • bills.read
  • BillPayment
  • MetaResponse
PATCH Update a bill
  • bills.read-write
  • BillPayment
  • Requires an id from GET List bills.
  • Send line_items as the full list. Line amounts must add up to the bill's merchant amount.
GET List card transactions
  • card-transactions.read
  • CardTransaction
  • RedactedFields
  • Expandable fields: worker, vendor.
GET Retrieve a specific card transaction
  • card-transactions.read
  • CardTransaction
  • MetaResponse
PATCH Update a card transaction
  • card-transactions.read-write
  • CardTransaction
  • Requires an id from GET List card transactions.
  • Send line_items as the full list. Line amounts must add up to the transaction's merchant amount.
POST Upload a receipt to a card transaction
  • card-transactions.read-write
  • CardTransaction
GET List reimbursements
  • reimbursements.read
  • ExpenseRequest
  • RedactedFields
  • Expandable fields: worker, vendor, mileage_rate, per_diem_rate.
GET Retrieve a specific reimbursement
  • reimbursements.read
  • ExpenseRequest
  • MetaResponse
PATCH Update a reimbursement
  • reimbursements.read-write
  • ExpenseRequest
  • Requires an id from GET List reimbursements.
  • Send line_items as the full list. Per-diem line items cannot be updated. A mileage reimbursement must have exactly one line item.
POST Upload a receipt to a reimbursement
  • reimbursements.read-write
  • ExpenseRequest
  • Requires an id from GET List reimbursements.
  • Send the receipt as multipart/form-data in a file field. Paid, finalized, or failed reimbursements cannot be changed.
GET List finance vendors
  • finance-vendors.read
  • VendorResource
  • RedactedFields
GET Retrieve a specific finance vendor
  • finance-vendors.read
  • VendorResource
  • MetaResponse
GET List finance categories
  • finance-categories.read
  • Category
  • RedactedFields
GET Retrieve a specific finance category
  • finance-categories.read
  • Category
  • MetaResponse

Permissions & scopes​

Rippling's V2 API uses a permissions-based access model. The data returned by an endpoint depends on:

  • The permission profile of the user who creates the API token. This includes the permission scope (e.g., “The entire company” vs. “Direct reports only”) and employment data access level (e.g., “View and edit all sensitive data” vs. “View all basic personal”).
  • The scopes selected when the token is created.

The Required Scopes for each endpoint are listed in the API reference documentation.

For more information on managing access using API tokens and permission profiles, see API Tokens and Permissions.


Call the API​

To call a Spend API endpoint:

  1. Verify the user’s permission profile and ensure they have the permissions required to access the desired data.

If the user’s permissions are limited (for example, “Basic personal data for direct reports only”):

  • Some scopes will not be available when creating the API token.
  • The API response will return limited data.
  1. Create an API token in the Developer app with the required scopes.
  2. Call the endpoint using the generated token.

Some endpoints require a specific resource ID (for example, a worker_id). In these cases, call the corresponding list endpoint first to fetch the ID (e.g. call GET List workers before calling GET Retrieve a specific worker).

Example: GET List finance vendors​

Request:

curl -L -X GET 'https://rest.ripplingapis.com/finance-vendors/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer REDACTED'

Response:

{
"results": [
{
"id": "66a43405af71f094991bf94f",
"created_at": "2024-07-26T23:41:12.243000+00:00",
"updated_at": "2024-07-27T10:37:57.891000+00:00",
"name": "Northwind Supplies",
"logo": null,
"is_archived": false
}
],
"next_link": null
}