Card Types
Payment card brand catalog (TipoTarjeta).
📄️ Get card type by ID
Returns a single card type by its primary key.
📄️ Update card type
Full replacement of an existing card type.
📄️ Delete card type
Deletes a card type.
📄️ Merge-patch card type
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 card types
Returns a paginated list of card types with envelope `{data, totalCount, skip, limit, hasMore}`. Supports optional RSQL `filter`, `sort` (default `lastModifiedAt:desc`), `skip`/`limit` pagination and `modifiedAfter`/`modifiedBefore` bookends.
📄️ Create card type
Creates a new card type. Business logic runs in the legacy WAR. `code` is optional: when omitted the WAR assigns the next sequential company-scoped code (same rule as `POST /card-types/new`).
📄️ Bulk delete card types
Removes every id in `ids` as a single all-or-nothing transaction.
📄️ Bulk patch card types
Applies the same `patch` to every id in `ids` as a single all-or-nothing transaction. Editable fields: `enabled`.
📄️ Prototype card type for a creation form
Returns a non-persisted card type pre-populated with backend defaults (current company, next sequential `code`, `enabled=true`). Optional JSON hints: `companyId`, `copyFromId`. Call `POST /api/v2/card-types` to persist.