Customers

POST /api/integration/v1/customers — create a customer

D1 fix: The caller does NOT need to supply parentId in the request body — the integration API derives it from the authenticated key's organization. [AllowMissingParentId] removes the [Required]-ParentId model-state error before [ApiController] ModelStateInvalidFilter can short-circuit the request.

E2E-fix: [RequireRole(Member)] was misleading — UnifiedAuthorizationService.CanCreate hard-blocks Member from creating customers (only BillingSubTaskTimeReport allowed for Member). Changed to Manager so the route-level gate matches what CanCreate enforces, giving Member-role callers a clean 403 from [RequireRole] instead of a confusing 422 "Unauthorized" from the data layer.

post/api/integration/v1/customers

Request

  • Base URL: https://api.timix.ai
  • URL: https://api.timix.ai/api/integration/v1/customers
  • Auth: API key in header X-Api-Key

Request body

idstring
createdAtstring date-time
updatedAtstring date-time
parentIdstring required
namestring required
countrystring
descriptionstring
contactNamestring
contactEmailstring
contactPhonestring
addressstring
citystring
statestring
zipstring
status'Active' | 'Inactive'
vatNumberstring
websitestring
sizestring
currencystring
organizationIdstring
createdBystring
updatedBystring
customFieldsobject nullable

Response

idstring
createdAtstring date-time
updatedAtstring date-time
parentIdstring required
namestring required
countrystring
descriptionstring
contactNamestring
contactEmailstring
contactPhonestring
addressstring
citystring
statestring
zipstring
status'Active' | 'Inactive'
vatNumberstring
websitestring
sizestring
currencystring
organizationIdstring
createdBystring
updatedBystring
customFieldsobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.