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

Manage Spend Management data

Fetch and update data in Rippling's Spend Management product.

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.

With the Spend Management API, you can list and retrieve records, replace their line items, or attach a receipt to card transactions or reimbursements.

Key terms:

  • 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

Suggested workflow​

  1. List finance categories and list finance vendors. Keep the id values you will assign to line items and use for vendor_id.
  2. List bills, list card transactions, or list reimbursements. Keep each record id.
  3. Retrieve the bill record and copy the line_items you want to keep.
  4. Update the bill, card transaction, or reimbursement with the full line_items list.
  5. Upload a card receipt or upload a reimbursement receipt when the record needs a file attached.

Requirements​

  • The Spend Management Platform API entitlement enabled for your company.
  • The Rippling API SKU
  • An API token with the following scopes:
    • bills.read to list and retrieve bills
    • bills.read-write to update a bill's line items
    • card-transactions.read to list and retrieve card transactions
    • card-transactions.read-write to update line items and upload a receipt
    • reimbursements.read to list and retrieve reimbursements
    • reimbursements.read-write to update line items and upload a receipt
    • finance-vendors.read to list and retrieve finance vendors
    • finance-categories.read to list and retrieve finance categories
    • workers.read when you expand worker

Fetch​

Bills​

Use GET List bills to return a paginated list of Spend Management bills for a company.

Request:

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

Response:

{
"results": [
{
"id": "66a43405af71f094991bf94f",
"created_at": "2026-03-01T18:04:11.000000+00:00",
"updated_at": "2026-03-02T15:10:00.000000+00:00",
"invoice_number": "INV-1044",
"invoice_date": "2026-02-28",
"approval_status": "APPROVED",
"vendor_id": "66a43405af71f094991bf950",
"merchant_amount": { "value": "150.00" },
"line_items": []
}
],
"next_link": null
}
Response fieldDescription
idBill ID. Use it on retrieve and update.
created_atWhen the bill record was created.
updated_atWhen the bill record was last updated.
invoice_numberInvoice number. Null when the bill has no invoice number.
invoice_dateInvoice date, as an ISO 8601 date (YYYY-MM-DD). Null when it is not set.
due_dateInvoice due date, as an ISO 8601 date. A draft can omit it.
approval_statusDRAFT, PENDING, REQUESTED, APPROVED, or REJECTED.
vendor_idFinance vendor. Retrieve it with GET Retrieve a specific finance vendor.
worker_idWorker who made the transaction.
submitter_idBill manager who submitted the bill. Null before submission. Can differ from worker_id.
merchant_amountAmount charged by the merchant. currency_type is the currency, such as USD. value is a decimal string.
line_itemsCategory splits of the bill amount.
line_items[].idLine ID. Null on older lines that have not been assigned one yet.
line_items[].category_idFinance category for this split.
line_items[].category_nameName of that finance category.
line_items[].amountSplit amount in the merchant currency. value is a decimal string.
next_linkURL of the next page. null when there are no more results.

Card transactions​

Use GET List card transactions to return a paginated list of all Spend Management card transactions for a company.

Request:

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

Response:

{
"results": [
{
"id": "66a43405af71f094991bf970",
"created_at": "2026-03-04T12:00:00.000000+00:00",
"updated_at": "2026-03-04T12:00:00.000000+00:00",
"transaction_type": "CARD_TRANSACTION",
"transaction_date": "2026-03-04T11:42:00.000000+00:00",
"approval_status": "REQUESTED",
"worker_id": "66a43405af71f094991bf960",
"vendor_id": "66a43405af71f094991bf950",
"card_id": "66a43405af71f094991bf980",
"merchant_amount": {
"currency_type": "USD",
"value": "42.18"
},
"receipts": []
}
],
"next_link": null
}
Response fieldDescription
idCard transaction ID. Use it on retrieve, update, and receipt upload.
created_atWhen the transaction record was created.
updated_atWhen the transaction record was last updated.
transaction_typeCARD_TRANSACTION for a posted charge. CARD_AUTHORIZATION for a hold.
transaction_dateWhen the purchase or authorization happened, as an ISO 8601 date-time in UTC.
authorization_statePENDING for an active hold. CLOSED when the authorization was declined, or when it completed and was replaced by a posted charge.
approval_statusDRAFT, PENDING, REQUESTED, APPROVED, or REJECTED.
worker_idWorker who made the transaction.
vendor_idFinance vendor for the merchant.
card_idFinance card used for the purchase. No public API currently retrieves this card.
merchant_amountAmount charged by the merchant. value is a decimal string.
receiptsReceipt files in display order, up to 5. Empty when there are none. Null when the caller cannot read this transaction's receipts.
next_linkURL of the next page. null when there are no more results.

Reimbursements​

Use GET List reimbursements to return a paginated list of Spend Management reimbursements for a company.

Request:

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

Response:

{
"results": [
{
"id": "66a43405af71f094991bf990",
"created_at": "2026-03-05T16:20:00.000000+00:00",
"updated_at": "2026-03-05T16:20:00.000000+00:00",
"transaction_type": "REIMBURSEMENT",
"transaction_date": "2026-03-05T15:00:00.000000+00:00",
"approval_status": "APPROVED",
"worker_id": "66a43405af71f094991bf960",
"merchant_amount": {
"currency_type": "USD",
"value": "86.40"
},
"payout_method": "DIRECT_DEPOSIT",
"payout_date": null,
"receipt": null
}
],
"next_link": null
}
Response fieldDescription
idReimbursement ID. Use it on retrieve, update, and receipt upload.
created_atWhen the reimbursement record was created.
updated_atWhen the reimbursement record was last updated.
transaction_typeREIMBURSEMENT, MILEAGE_REIMBURSEMENT, or PER_DIEM_REIMBURSEMENT.
transaction_dateWhen the purchase happened, as an ISO 8601 date-time in UTC.
approval_statusDRAFT, PENDING, REQUESTED, APPROVED, or REJECTED.
worker_idWorker who made the transaction.
merchant_amountAmount charged by the merchant. value is a decimal string.
payout_methodNOT_SET, US_PAYROLL, GLOBAL_PAYROLL, or DIRECT_DEPOSIT.
payout_dateDate the worker is paid, as YYYY-MM-DD. Null before a payout run is assigned.
receiptReceipt file and its filename. Null when no receipt is attached.
next_linkURL of the next page. null when there are no more results.

Finance vendors​

Use GET List finance vendors to return a paginated list of Spend Management finance vendors for a company.

Request:

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

Response:

{
"results": [
{
"id": "66a43405af71f094991bf950",
"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
}
Response fieldDescription
idFinance vendor ID. This is the vendor_id on a bill, card transaction, or reimbursement.
created_atWhen the vendor record was created.
updated_atWhen the vendor record was last updated.
nameCanonical vendor name. A name filter with eq, ne, or in also matches alternate names.
logoURL of the vendor logo. Null when no logo is available.
is_archivedWhether the vendor is archived. Archived vendors remain available for historical transactions.
next_linkURL of the next page. null when there are no more results.

Finance categories​

Use GET List finance categories to return a paginated list of all Spend Management finance categories for a company.

Request:

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

Response:

{
"results": [
{
"id": "66a43405af71f094991bf952",
"created_at": "2024-07-26T23:41:12.243000+00:00",
"updated_at": "2024-07-27T10:37:57.891000+00:00",
"name": "Software",
"active": true
}
],
"next_link": null
}
Response fieldDescription
idFinance category ID. Send this as category_id on a line item.
created_atWhen the category record was created.
updated_atWhen the category record was last updated.
nameCategory name.
activeWhether the category is active. Inactive categories remain available for historical line items.
next_linkURL of the next page. null when there are no more results.

Update​

Bills​

Use PATCH Update a bill to replace a bill's line items. First fetch the bill, then send line_items with the full list of line items that should be associated with the bill. A line with an id is updated and keeps that ID, while a line without an id is added to the bill. The response will include the new ID.

Request:

curl -L -X PATCH 'https://rest.ripplingapis.com/bills/66a43405af71f094991bf94f/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'

Request body:

{
"line_items": [
{
"id": "66a43405af71f094991bf951",
"category_id": "66a43405af71f094991bf952",
"amount": "100.00",
"tax_amount": "0.00"
},
{
"category_id": "66a43405af71f094991bf953",
"amount": "50.00"
}
]
}

Response:

{
"id": "66a43405af71f094991bf94f",
"created_at": "2026-03-01T18:04:11.000000+00:00",
"updated_at": "2026-03-06T14:12:00.000000+00:00",
"invoice_number": "INV-1044",
"approval_status": "APPROVED",
"merchant_amount": {
"currency_type": "USD",
"value": "150.00"
},
"line_items": [
{
"id": "66a43405af71f094991bf951",
"category_id": "66a43405af71f094991bf952",
"category_name": "Software",
"amount": {
"currency_type": "USD",
"value": "100.00"
},
"tax_amount": {
"currency_type": "USD",
"value": "0.00"
}
},
{
"id": "66a43405af71f094991bf954",
"category_id": "66a43405af71f094991bf953",
"category_name": "Travel",
"amount": {
"currency_type": "USD",
"value": "50.00"
}
}
]
}

Card transactions​

Use PATCH Update a card transaction to replace a transaction's line items. Sending line_items replaces the entire list and unlisted lines are deleted. The sum of amount must equal the transaction's merchant amount.

Request:

curl -L -X PATCH 'https://rest.ripplingapis.com/card-transactions/66a43405af71f094991bf970/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'

Request body:

{
"line_items": [
{
"category_id": "66a43405af71f094991bf952",
"amount": "42.18",
"memo": "Team lunch"
}
]
}

Response:

{
"id": "66a43405af71f094991bf970",
"transaction_type": "CARD_TRANSACTION",
"merchant_amount": {
"currency_type": "USD",
"value": "42.18"
},
"line_items": [
{
"id": "66a43405af71f094991bf971",
"category_id": "66a43405af71f094991bf952",
"category_name": "Software",
"amount": {
"currency_type": "USD",
"value": "42.18"
},
"memo": "Team lunch"
}
]
}

Reimbursements​

Use PATCH Update a reimbursement to replace a reimbursement's line items. Line items on a per-diem reimbursement cannot be updated, and a mileage reimbursement must have exactly one line item.

Request:

curl -L -X PATCH 'https://rest.ripplingapis.com/reimbursements/66a43405af71f094991bf990/'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'

Request body:

{
"line_items": [
{
"category_id": "66a43405af71f094991bf952",
"amount": "86.40"
}
]
}

Response:

{
"id": "66a43405af71f094991bf990",
"transaction_type": "REIMBURSEMENT",
"merchant_amount": {
"currency_type": "USD",
"value": "86.40"
},
"line_items": [
{
"id": "66a43405af71f094991bf991",
"category_id": "66a43405af71f094991bf952",
"category_name": "Software",
"amount": {
"currency_type": "USD",
"value": "86.40"
}
}
]
}

Upload receipts​

Card transactions​

Use POST Upload a receipt to a card transaction to attach one file to a card transaction. The file must be a PDF, JPEG, PNG, or BMP, and up to 10 MB.

The upload stores and attaches the file, and it does not scan the file or fill in transaction fields from its contents. When the company allows multiple receipts per transaction, the file is appended. Otherwise, the file replaces the existing receipt.

Uploading the same file contents again does not store another file. Declined authorizations cannot be changed.

Request:

curl -L -X POST 'https://rest.ripplingapis.com/card-transactions/66a43405af71f094991bf970/receipts/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer REDACTED' \
-F 'file=@receipt.pdf;type=application/pdf'
Form fieldRequiredDescription
fileYesReceipt file: PDF, JPEG, PNG, or BMP, up to 10 MB.

Response:

{
"id": "66a43405af71f094991bf970",
"transaction_type": "CARD_TRANSACTION",
"merchant_amount": {
"currency_type": "USD",
"value": "42.18"
},
"receipts": [
{
"url": "https://example.rippling.com/receipts/receipt.pdf",
"preview_url": null,
"file_name": "receipt.pdf",
"content_type": "application/pdf"
}
]
}

Reimbursements​

Use POST Upload a receipt to a reimbursement to attach one file to a reimbursement. The file replaces the existing receipt, so a retried request does not add a second receipt. Reimbursements that are paid out, finalized, or failed cannot be modified.

Request:

curl -L -X POST 'https://rest.ripplingapis.com/reimbursements/66a43405af71f094991bf990/receipts/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer REDACTED' \
-F 'file=@receipt.pdf;type=application/pdf'

Response:

{
"id": "66a43405af71f094991bf990",
"transaction_type": "REIMBURSEMENT",
"merchant_amount": {
"currency_type": "USD",
"value": "86.40"
},
"receipt": {
"url": "https://example.rippling.com/receipts/receipt.png",
"preview_url": null,
"file_name": "receipt.pdf",
"content_type": "image/png"
}
}

Errors​

StatusDescription
400The id is not a valid identifier, the form has fields other than one file, or the file is empty, unreadable, or not a PDF, JPEG, PNG, or BMP. A card transaction is a declined authorization or already has 5 receipts. A reimbursement is paid out, finalized, or failed.
403The token lacks card-transactions.read-write or reimbursements.read-write, or the caller cannot change this record's receipts.
404The record does not exist or is not visible to the caller.
409Another request changed the record during the upload. Retry the upload.
413The file is larger than 10 MB.
415The request body is not multipart/form-data.

See also​