---
agentTools:
  projectIndex: https://developer.bill.com/v2/llms.txt
---

# Record AP payment API improvements

In the Record AP payment endpoint, we have introduced the capability of adding vendor credits. In the Record AP payment (`POST /v3/bills/record-payment`) request, you can now add vendor credits in the `vendorCredits` object.

| Field    | Description                                                                                      |
| :------- | :----------------------------------------------------------------------------------------------- |
| `id`     | BILL-generated ID of the vendor credit applied to the bill payment. The value begins with `vcr`. |
| `amount` | Credit amount                                                                                    |

See [POST /v3/bills/record-payment](https://developer.bill.com/reference/recordpayment) in the API reference for more information.