Payment Terms
Create, read, update and delete payment terms (CondicionPago).
📄️ Get payment term by ID
Returns a single payment term by its primary key. The response carries a strong `ETag` header with the current version.
📄️ Update payment term
Full replacement of an existing payment term. Send the `If-Match` header with the current ETag for optimistic concurrency control.
📄️ Delete payment term
Deletes a payment term. Send the `If-Match` header with the current ETag for optimistic concurrency control.
📄️ Merge-patch payment term
RFC 7396 merge-patch over `application/merge-patch+json`. Send only the fields you want to change; include a field with value `null` to remove it. Use the `If-Match` header for optimistic concurrency control.
📄️ List payment terms
Returns a paginated list of payment terms with envelope `{data, totalCount, skip, limit, hasMore}`. Supports optional RSQL `filter`, `sort` (default `lastModifiedAt:desc`), `skip`/`limit` pagination and `modifiedAfter`/`modifiedBefore` bookends.
📄️ Create payment term
Creates a new payment term. Business logic runs in the legacy WAR.
📄️ Prototype payment term for a creation form
Returns a non-persisted payment term pre-populated with backend defaults (current company, `enabled=true`, one instalment). Optional JSON hints: `companyId`, `copyFromId`. Call `POST /api/v2/payment-terms` to persist.