> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.noyax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Credit Card Collection Vouchers

> Fields, POS charge date, repayment plan and value date (Valor) calculation for credit card collections.

A credit card collection voucher records money collected from one or more customers by credit card. It has the exact same shape as an incoming [bank transfer](/en/v1/finance/bank-transfers/overview) (each line carries the amount collected from a customer and produces a customer movement); the difference is that it also carries a POS charge date and an optional repayment plan.

| Operation      | Endpoint                                                                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------------------- |
| List           | [`GET /finance/credit-card-collections`](/en/v1/finance/credit-card-collections/list)                               |
| Get            | [`GET /finance/credit-card-collections/{creditCardCollectionId}`](/en/v1/finance/credit-card-collections/get)       |
| Create         | [`POST /finance/credit-card-collections`](/en/v1/finance/credit-card-collections/create)                            |
| Update         | [`PUT /finance/credit-card-collections/{creditCardCollectionId}`](/en/v1/finance/credit-card-collections/update)    |
| Partial update | [`PATCH /finance/credit-card-collections/{creditCardCollectionId}`](/en/v1/finance/credit-card-collections/patch)   |
| Delete         | [`DELETE /finance/credit-card-collections/{creditCardCollectionId}`](/en/v1/finance/credit-card-collections/delete) |

## Required fields

* `VoucherNumber`: unique in the company **across all bank voucher types**, at most 20 characters. Send `"Next"` to generate it from the same `"BANKAFİŞNO"` series used by bank transfers. Cannot be `"Next"` on update.
* `Date`: voucher date. If a time is sent it is stored as the voucher time, otherwise the current time is used.
* `BankAccountCode`: one of the company's [bank accounts](/en/v1/finance/bank-accounts/list). **Every line** of the voucher is recorded against this account.
* `Lines`: at least one line.

`Description` and `SharingCode` are optional; an empty `SharingCode` makes the voucher visible to everyone, otherwise it must be one of the user's [sharing codes](/en/v1/guides/sharing-codes).

## Lines

In addition to the same line fields as a bank transfer (`CustomerCode`, `Amount`, `ExchangeRate`, `Description`, and `CustomerAmount`/`CustomerCurrencyCode`/`CustomerExchangeRate` for the customer movement override):

* `PosChargeDate`: **required**, the date the card was charged.
* `RepaymentPlanName`: optional, one of the bank account's own [repayment plans](/en/v1/finance/bank-accounts/repayment-plans/list).

### Value date (Valor)

When `RepaymentPlanName` is sent, the line's `Valor` field in the response is calculated by the API: the voucher's `Date` plus the selected plan's `DayCount`. When no plan is sent, `Valor` stays empty.

## Line identity on update

Same rule as [bank transfers](/en/v1/finance/bank-transfers/overview): since a line's customer movement is referenced by the closed-record and payment-plan tables, lines are matched by their position on update and updated in place.

## Posted and settled voucher

* When `IsPosted` is `true` (the voucher has been linked to an accounting entry) it **cannot be updated or deleted** (`8708`).
* When `IsRepaid` is `true` (the voucher has been settled by a bank repayment voucher) it **cannot be updated or deleted** (`8709`).

Also, when a line's customer, amount, currency or rate changes and that line's customer movement has already been closed by a collection/payment or has a payment plan, the request is rejected (`8809`/`8810`), exactly as with bank transfers.
