# Manage Spend Management data

> Status: Beta

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

## Overview

> **Note:**
> 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 endpoint | Required scopes | Schema | Notes / Requirements |
| --- | --- | --- | --- |
| [GET List bills](https://developer.rippling.com/documentation/rest-api/reference/list-bills) | -   `bills.read` | -   `BillPayment`<br>-   `RedactedFields` | -   Expandable fields: `worker`, `vendor`, `submitter`. |
| [GET Retrieve a specific bill](https://developer.rippling.com/documentation/rest-api/reference/get-bills) | -   `bills.read` | -   `BillPayment`<br>-   `MetaResponse` | -   Requires an `id` from [GET List bills](https://developer.rippling.com/documentation/rest-api/reference/list-bills). |
| [PATCH Update a bill](https://developer.rippling.com/documentation/rest-api/reference/update-bills) | -   `bills.read-write` | -   `BillPayment` | -   Requires an `id` from [GET List bills](https://developer.rippling.com/documentation/rest-api/reference/list-bills).<br>-   Send `line_items` as the full list. Line amounts must add up to the bill's merchant amount. |
| [GET List card transactions](https://developer.rippling.com/documentation/rest-api/reference/list-card-transactions) | -   `card-transactions.read` | -   `CardTransaction`<br>-   `RedactedFields` | -   Expandable fields: `worker`, `vendor`. |
| [GET Retrieve a specific card transaction](https://developer.rippling.com/documentation/rest-api/reference/get-card-transactions) | -   `card-transactions.read` | -   `CardTransaction`<br>-   `MetaResponse` | -   Requires an `id` from [GET List card transactions](https://developer.rippling.com/documentation/rest-api/reference/list-card-transactions). |
| [PATCH Update a card transaction](https://developer.rippling.com/documentation/rest-api/reference/update-card-transactions) | -   `card-transactions.read-write` | -   `CardTransaction` | -   Requires an `id` from [GET List card transactions](https://developer.rippling.com/documentation/rest-api/reference/list-card-transactions).<br>-   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](https://developer.rippling.com/documentation/rest-api/reference/upload-receipt-card-transactions) | -   `card-transactions.read-write` | -   `CardTransaction` | -   Requires an `id` from [GET List card transactions](https://developer.rippling.com/documentation/rest-api/reference/list-card-transactions).<br>-   Send the receipt as `multipart/form-data` in a `file` field. |
| [GET List reimbursements](https://developer.rippling.com/documentation/rest-api/reference/list-reimbursements) | -   `reimbursements.read` | -   `ExpenseRequest`<br>-   `RedactedFields` | -   Expandable fields: `worker`, `vendor`, `mileage_rate`, `per_diem_rate`. |
| [GET Retrieve a specific reimbursement](https://developer.rippling.com/documentation/rest-api/reference/get-reimbursements) | -   `reimbursements.read` | -   `ExpenseRequest`<br>-   `MetaResponse` | -   Requires an `id` from [GET List reimbursements](https://developer.rippling.com/documentation/rest-api/reference/list-reimbursements). |
| [PATCH Update a reimbursement](https://developer.rippling.com/documentation/rest-api/reference/update-reimbursements) | -   `reimbursements.read-write` | -   `ExpenseRequest` | -   Requires an `id` from [GET List reimbursements](https://developer.rippling.com/documentation/rest-api/reference/list-reimbursements).<br>-   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](https://developer.rippling.com/documentation/rest-api/reference/upload-receipt-reimbursements) | -   `reimbursements.read-write` | -   `ExpenseRequest` | -   Requires an `id` from [GET List reimbursements](https://developer.rippling.com/documentation/rest-api/reference/list-reimbursements).<br>-   Send the receipt as `multipart/form-data` in a `file` field. Paid, finalized, or failed reimbursements cannot be changed. |
| [GET List finance vendors](https://developer.rippling.com/documentation/rest-api/reference/list-finance-vendors) | -   `finance-vendors.read` | -   `VendorResource`<br>-   `RedactedFields` |  |
| [GET Retrieve a specific finance vendor](https://developer.rippling.com/documentation/rest-api/reference/get-finance-vendors) | -   `finance-vendors.read` | -   `VendorResource`<br>-   `MetaResponse` | -   Requires an `id` from [GET List finance vendors](https://developer.rippling.com/documentation/rest-api/reference/list-finance-vendors). |
| [GET List finance categories](https://developer.rippling.com/documentation/rest-api/reference/list-finance-categories) | -   `finance-categories.read` | -   `Category`<br>-   `RedactedFields` |  |
| [GET Retrieve a specific finance category](https://developer.rippling.com/documentation/rest-api/reference/get-finance-categories) | -   `finance-categories.read` | -   `Category`<br>-   `MetaResponse` | -   Requires an `id` from [GET List finance categories](https://developer.rippling.com/documentation/rest-api/reference/list-finance-categories). |

### Suggested workflow

1.  [List finance categories](https://developer.rippling.com/documentation/rest-api/reference/list-finance-categories) and [list finance vendors](https://developer.rippling.com/documentation/rest-api/reference/list-finance-vendors). Keep the `id` values you will assign to line items and use for `vendor_id`.
2.  [List bills](https://developer.rippling.com/documentation/rest-api/reference/list-bills), [list card transactions](https://developer.rippling.com/documentation/rest-api/reference/list-card-transactions), or [list reimbursements](https://developer.rippling.com/documentation/rest-api/reference/list-reimbursements). Keep each record `id`.
3.  [Retrieve the bill record](https://developer.rippling.com/documentation/rest-api/reference/get-bills) and copy the `line_items` you want to keep.
4.  [Update the bill](https://developer.rippling.com/documentation/rest-api/reference/update-bills), [card transaction](https://developer.rippling.com/documentation/rest-api/reference/update-card-transactions), or [reimbursement](https://developer.rippling.com/documentation/rest-api/reference/update-reimbursements) with the full `line_items` list.
5.  [Upload a card receipt](https://developer.rippling.com/documentation/rest-api/reference/upload-receipt-card-transactions) or [upload a reimbursement receipt](https://developer.rippling.com/documentation/rest-api/reference/upload-receipt-reimbursements) 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](https://developer.rippling.com/documentation/rest-api/reference/list-bills) to return a paginated list of Spend Management bills for a company.

_Request:_

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

_Response:_

```json
{
  "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 field | Description |
| --- | --- |
| `id` | Bill ID. Use it on retrieve and update. |
| `created_at` | When the bill record was created. |
| `updated_at` | When the bill record was last updated. |
| `invoice_number` | Invoice number. Null when the bill has no invoice number. |
| `invoice_date` | Invoice date, as an ISO 8601 date (`YYYY-MM-DD`). Null when it is not set. |
| `due_date` | Invoice due date, as an ISO 8601 date. A draft can omit it. |
| `approval_status` | `DRAFT`, `PENDING`, `REQUESTED`, `APPROVED`, or `REJECTED`. |
| `vendor_id` | Finance vendor. Retrieve it with GET Retrieve a specific finance vendor. |
| `worker_id` | Worker who made the transaction. |
| `submitter_id` | Bill manager who submitted the bill. Null before submission. Can differ from `worker_id`. |
| `merchant_amount` | Amount charged by the merchant. `currency_type` is the currency, such as `USD`. `value` is a decimal string. |
| `line_items` | Category splits of the bill amount. |
| `line_items[].id` | Line ID. Null on older lines that have not been assigned one yet. |
| `line_items[].category_id` | Finance category for this split. |
| `line_items[].category_name` | Name of that finance category. |
| `line_items[].amount` | Split amount in the merchant currency. `value` is a decimal string. |
| `next_link` | URL of the next page. `null` when there are no more results. |

### Card transactions

Use [GET List card transactions](https://developer.rippling.com/documentation/rest-api/reference/list-card-transactions) to return a paginated list of all Spend Management card transactions for a company.

_Request:_

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

_Response:_

```json
{
  "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 field | Description |
| --- | --- |
| `id` | Card transaction ID. Use it on retrieve, update, and receipt upload. |
| `created_at` | When the transaction record was created. |
| `updated_at` | When the transaction record was last updated. |
| `transaction_type` | `CARD_TRANSACTION` for a posted charge. `CARD_AUTHORIZATION` for a hold. |
| `transaction_date` | When the purchase or authorization happened, as an ISO 8601 date-time in UTC. |
| `authorization_state` | `PENDING` for an active hold. `CLOSED` when the authorization was declined, or when it completed and was replaced by a posted charge. |
| `approval_status` | `DRAFT`, `PENDING`, `REQUESTED`, `APPROVED`, or `REJECTED`. |
| `worker_id` | Worker who made the transaction. |
| `vendor_id` | Finance vendor for the merchant. |
| `card_id` | Finance card used for the purchase. No public API currently retrieves this card. |
| `merchant_amount` | Amount charged by the merchant. `value` is a decimal string. |
| `receipts` | Receipt files in display order, up to 5. Empty when there are none. Null when the caller cannot read this transaction's receipts. |
| `next_link` | URL of the next page. `null` when there are no more results. |

### Reimbursements

Use [GET List reimbursements](https://developer.rippling.com/documentation/rest-api/reference/list-reimbursements) to return a paginated list of Spend Management reimbursements for a company.

_Request:_

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

_Response:_

```json
{
  "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 field | Description |
| --- | --- |
| `id` | Reimbursement ID. Use it on retrieve, update, and receipt upload. |
| `created_at` | When the reimbursement record was created. |
| `updated_at` | When the reimbursement record was last updated. |
| `transaction_type` | `REIMBURSEMENT`, `MILEAGE_REIMBURSEMENT`, or `PER_DIEM_REIMBURSEMENT`. |
| `transaction_date` | When the purchase happened, as an ISO 8601 date-time in UTC. |
| `approval_status` | `DRAFT`, `PENDING`, `REQUESTED`, `APPROVED`, or `REJECTED`. |
| `worker_id` | Worker who made the transaction. |
| `merchant_amount` | Amount charged by the merchant. `value` is a decimal string. |
| `payout_method` | `NOT_SET`, `US_PAYROLL`, `GLOBAL_PAYROLL`, or `DIRECT_DEPOSIT`. |
| `payout_date` | Date the worker is paid, as `YYYY-MM-DD`. Null before a payout run is assigned. |
| `receipt` | Receipt file and its filename. Null when no receipt is attached. |
| `next_link` | URL of the next page. `null` when there are no more results. |

### Finance vendors

Use [GET List finance vendors](https://developer.rippling.com/documentation/rest-api/reference/list-finance-vendors) to return a paginated list of Spend Management finance vendors for a company.

_Request:_

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

_Response:_

```json
{
  "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 field | Description |
| --- | --- |
| `id` | Finance vendor ID. This is the `vendor_id` on a bill, card transaction, or reimbursement. |
| `created_at` | When the vendor record was created. |
| `updated_at` | When the vendor record was last updated. |
| `name` | Canonical vendor name. A `name` filter with `eq`, `ne`, or `in` also matches alternate names. |
| `logo` | URL of the vendor logo. Null when no logo is available. |
| `is_archived` | Whether the vendor is archived. Archived vendors remain available for historical transactions. |
| `next_link` | URL of the next page. `null` when there are no more results. |

### Finance categories

Use [GET List finance categories](https://developer.rippling.com/documentation/rest-api/reference/list-finance-categories) to return a paginated list of all Spend Management finance categories for a company.

_Request:_

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

_Response:_

```json
{
  "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 field | Description |
| --- | --- |
| `id` | Finance category ID. Send this as `category_id` on a line item. |
| `created_at` | When the category record was created. |
| `updated_at` | When the category record was last updated. |
| `name` | Category name. |
| `active` | Whether the category is active. Inactive categories remain available for historical line items. |
| `next_link` | URL of the next page. `null` when there are no more results. |

* * *

## Update

### Bills

Use [PATCH Update a bill](https://developer.rippling.com/documentation/rest-api/reference/update-bills) 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:_

```json
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:_

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

_Response:_

```json
{
  "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](https://developer.rippling.com/documentation/rest-api/reference/update-card-transactions) 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:_

```json
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:_

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

_Response:_

```json
{
  "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](https://developer.rippling.com/documentation/rest-api/reference/update-reimbursements) 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:_

```json
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:_

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

_Response:_

```json
{
  "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](https://developer.rippling.com/documentation/rest-api/reference/upload-receipt-card-transactions) 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:_

```json
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 field | Required | Description |
| --- | --- | --- |
| `file` | Yes | Receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. |

_Response:_

```json
{
  "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](https://developer.rippling.com/documentation/rest-api/reference/upload-receipt-reimbursements) 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:_

```json
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:_

```json
{
  "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

| Status | Description |
| --- | --- |
| 400 | The `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. |
| 403 | The token lacks `card-transactions.read-write` or `reimbursements.read-write`, or the caller cannot change this record's receipts. |
| 404 | The record does not exist or is not visible to the caller. |
| 409 | Another request changed the record during the upload. Retry the upload. |
| 413 | The file is larger than 10 MB. |
| 415 | The request body is not `multipart/form-data`. |

* * *

## See also

-   [Get started with the Spend API](https://developer.rippling.com/documentation/rest-api/guides/spend-getting-started)
-   [API tokens and permissions](https://developer.rippling.com/documentation/rest-api/essentials/api-tokens)

Source: https://developer.rippling.com/documentation/rest-api/guides/spend

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
