---
title: "Test Bill.com connection"
method: POST
path: "/api/admin/billcom/test-connection"
tags: ["Bill.com Integration"]
---

# Test Bill.com connection

`POST /api/admin/billcom/test-connection`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/admin/billcom/test-connection`
- Auth: none declared

Attempts to authenticate with Bill.com to verify credentials are valid.

## Response `200`

Test result returned

- object
  - `connected` boolean
  - `message` string
  - `last_checked` string, date-time

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
