AlmondTill/G3N API

NewCsCaseInput

input type

Create-input for a CsCase. Refs validate in-tenant + non-doomed; linkedFromCaseId validates closed-only; assignedTo validates in-tenant + active. The optional initialMessage appends in the same transaction. The consumer lane is openMyCase — NOT this shape.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — none — the CPG divergence: the caption IS the subject line, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank.
caseTypeString String!yesreturn_request | refund_inquiry | product_issue | complaint | general_inquiry | warranty_claim | shipping_issue | order_change | other — the canned registry validates.
priorityStringnoDefaults 'normal' when omitted.
consumerIdIDnoThe registered Consumer this case is FOR (omit = a guest case). Immutable at birth — a consumer-ref’d case mints its write-once casebook index row in the create transaction.
organizationIdIDno
orderIdIDno
appointmentIdIDno
returnIdIDno
fulfillmentIdIDno
paymentIdIDno
linkedFromCaseIdIDnoThe closed case this one reopens. Immutable.
assignedToIDnoIn-tenant + active User at set.
slaDueAtStringnoISO-8601 instant — manual.
initialMessageCsCaseInitialMessageInputnoOptional opening message — appends in the same transaction.

Used by