---
title: "Refund an invoice"
method: POST
path: "/{companyDomain}/customers/{customerUniqueId}/refunds"
---

# Refund an invoice

`POST /{companyDomain}/customers/{customerUniqueId}/refunds`

## Request

- Base URL: `https://public.billsby.com/api/v1/rest/core`
- URL: `https://public.billsby.com/api/v1/rest/core/{companyDomain}/customers/{customerUniqueId}/refunds`
- Auth: API key in header `ApiKey`
- TypeScript: <https://skmtc.dev/billsby/apis/billsby-api/docs/:companyDomain/customers/:customerUniqueId/refunds/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `companyDomain` string, required
- `customerUniqueId` string, required

## Request body

- object
  - `invoiceNumber` string, required: The invoice number associated with the invoice you want to refund
  - `amount` integer, required: The amount you would like to refund (can be partial). Amounts are unformatted so if you're using a decimal currency, you'll need to put 100 to refund $1, for example.

## Response `200`

200

---

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