---
title: "POST /bills/creditNotes"
method: POST
path: "/bills/creditNotes"
tags: ["Bill", "Bill Credit Notes"]
---

# POST /bills/creditNotes

`POST /bills/creditNotes`

## Request

- Base URL: `https://api.railz.ai`
- URL: `https://api.railz.ai/bills/creditNotes`
- Auth: HTTP bearer

Posts an individual bill (vendor) credit note for a business.

## Request body

- PushBillCreditNoteDto
  - `connection` PushConnection, required
    - `businessName` string, required: Unique business name identifier.
    - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'shopify' | 'square' | 'plaid' | 'myob' | 'zohoBooks' | 'byod', required: Name of accounting platform service.
  - `data` PushBillCreditNote, required
    - `currencyRate` number, float
    - `postedDate` string, date
    - `allocatedOnDate` string, date
    - `memo` string
    - `vendorRef` string, required
    - `currency` string
    - `lines` BillCreditNoteLineItem[], required
      - `description` string
      - `unitAmount` number, float, required
      - `quantity` number, float, required
      - `billableStatus` 'billable' | 'notBillable' | 'hasBeenBilled'
      - `taxAmount` number, float
      - `taxRef` string
      - `accountRef` string
      - `subTotal` number, float
      - `totalAmount` number, float
      - `customerRef` CustomerObjectRefDto
        - `id` string, required

## Response `200`

- PushBillCreditNoteResponseDto
  - `pushCommunicationId` string, required
  - `requestedOn` string, date-time, required
  - `status` 'success' | 'failed' | 'pending', required
  - `businessName` string, required
  - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod', required
  - `data` PushBillCreditNote, required
    - `currencyRate` number, float
    - `postedDate` string, date
    - `allocatedOnDate` string, date
    - `memo` string
    - `vendorRef` string, required
    - `currency` string
    - `lines` BillCreditNoteLineItem[], required
      - `description` string
      - `unitAmount` number, float, required
      - `quantity` number, float, required
      - `billableStatus` 'billable' | 'notBillable' | 'hasBeenBilled'
      - `taxAmount` number, float
      - `taxRef` string
      - `accountRef` string
      - `subTotal` number, float
      - `totalAmount` number, float
      - `customerRef` CustomerObjectRefDto
        - `id` string, required

## Other responses

- `400`: Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401`: Unauthorized - Not logged in or log in expired
- `403`: Forbidden - Not enough permission
- `500`: Server Error

## Changes

- **2026-09-03** `1383b9a47ac9`: 1 info
  - api tag `Bill` added
- **2026-08-10** `5cdfae3fa1fa`: 5 breaking, 13 warning, 14 info
  - the `data/allocatedOnDate` request property format changed from `date-time` to `date`
  - the `data/postedDate` request property format changed from `date-time` to `date`
  - the response property `data/allOf[#/components/schemas/PushBillCreditNote]/currency` became optional for the status `200`
  - the response property `data/allOf[#/components/schemas/PushBillCreditNote]/lines/items/description` became optional for the status `200`
  - …28 more

[Operation history](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/changes/bills/creditNotes/post.md)

---

[API](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api.md) - [All operations](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/revisions/1383b9a47ac9?raw)
