# Update payment term Partially update a payment term. Only provided fields will be updated. Endpoint: PATCH /payment-terms/{id} Version: 1.0.0 Security: BearerAuth ## Path parameters: - `id` (string, required) Resource ID (UUID) or client key Example: "550e8400-e29b-41d4-a716-446655440000" ## Query parameters: - `by` (string) Specify lookup type for faster retrieval. If omitted, defaults to looking up by ID first, then falls back to client key if not found. Use by=key when you know you're providing a client key for best performance. Enum: "id", "key" ## Request fields (application/json): - `name` (string) Payment term name Example: "Net 30" - `description` (string,null) Payment term description Example: "Payment due 30 days from invoice date" - `days` (integer,null) Number of days until payment is due Example: 30 - `quickPayFee` (number,null) Quick pay fee percentage Example: 0.05 - `apOnly` (boolean,null) Whether this payment term is for accounts payable only - `doNotUse` (boolean,null) Flag to prevent using this payment term - `key` (string,null) Client-defined reference identifier Example: "ERP-PAYTERM-NET30" ## Response 200 fields (application/json): - `id` (string, required) Unique payment term identifier Example: "550e8400-e29b-41d4-a716-446655440000" - `name` (string, required) Payment term name Example: "Net 30" - `description` (string,null) Payment term description or notes Example: "Payment due 30 days from invoice date" - `days` (integer,null) Number of days until payment is due Example: 30 - `quickPayFee` (number,null) Quick pay fee percentage (e.g., 0.05 for 5%) Example: 0.05 - `apOnly` (boolean,null) Whether this payment term is for accounts payable only - `doNotUse` (boolean,null) Flag to prevent using this payment term for new transactions - `key` (string,null) Client-defined reference identifier Example: "ERP-PAYTERM-NET30" - `createdAt` (string, required) When the payment term was created Example: "2025-01-15T10:00:00Z" - `updatedAt` (string, required) When the payment term was last updated Example: "2025-01-15T14:30:00Z" - `deletedAt` (string,null) When the payment term was soft deleted (null if active) ## Response 400 fields (application/json): - `error` (string, required) Error code - `message` (string, required) Human-readable error message ## Response 401 fields (application/json): - `error` (string, required) Error code - `message` (string, required) Human-readable error message ## Response 404 fields (application/json): - `error` (string, required) Error code - `message` (string, required) Human-readable error message ## Response 422 fields (application/json): - `error` (string, required) Error code Example: "validation_error" - `message` (string, required) Human-readable error message - `details` (array, required) Validation error details - `details.field` (string, required) Field name that failed validation - `details.message` (string, required) Validation error message ## Response 429 fields (application/json): - `error` (string, required) Error code - `message` (string, required) Human-readable error message