Schema: HealthInvoice
All schemas · API reference · Data mapping guide
Fields
Section titled “Fields”| Field | Required | Type / allowed values |
|---|---|---|
id |
Yes | string |
clientId |
Yes | string |
clientName |
Yes | string |
locationId |
Yes | string or null |
totalAmount |
Yes | number |
creditedAmount |
Yes | number |
status |
Yes | HealthDocumentStatus |
statusMessage |
Yes | string or null |
assignedInvoiceNumber |
Yes | string or null |
cufe |
Yes | string or null |
dianStatusCode |
Yes | string or null |
submittedByUserId |
Yes | string or null |
isActive |
Yes | boolean |
createdAt |
Yes | string |
updatedAt |
Yes | string |
dianStatusDescription |
Yes | string or null |
invoiceResolutionId |
Yes | string or null |
invoicePayloadJson |
Yes | string or null |
workingRipsJson |
Yes | string or null |
invoiceDispatchHistory |
Yes | array |
ripsPackages |
Yes | array |
documentAvailability |
Yes | array |
JSON definition
Section titled “JSON definition”The JSON retains the source contract descriptions. Do not translate property names or enum values.
{ "type": "object", "properties": { "id": { "type": "string" }, "clientId": { "type": "string" }, "clientName": { "type": "string" }, "locationId": { "type": [ "string", "null" ] }, "totalAmount": { "type": "number" }, "creditedAmount": { "type": "number", "description": "Suma de notas crédito aceptadas o en curso." }, "status": { "$ref": "#/components/schemas/HealthDocumentStatus" }, "statusMessage": { "type": [ "string", "null" ] }, "assignedInvoiceNumber": { "type": [ "string", "null" ] }, "cufe": { "type": [ "string", "null" ] }, "dianStatusCode": { "type": [ "string", "null" ] }, "submittedByUserId": { "type": [ "string", "null" ] }, "isActive": { "type": "boolean" }, "createdAt": { "type": "string", "description": "Fecha y hora ISO 8601 (UTC).", "example": "2026-10-15T12:00:00.000Z" }, "updatedAt": { "type": "string", "description": "Fecha y hora ISO 8601 (UTC).", "example": "2026-10-15T12:00:00.000Z" }, "dianStatusDescription": { "type": [ "string", "null" ] }, "invoiceResolutionId": { "type": [ "string", "null" ] }, "invoicePayloadJson": { "type": [ "string", "null" ] }, "workingRipsJson": { "type": [ "string", "null" ] }, "invoiceDispatchHistory": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentAttempt" } }, "ripsPackages": { "type": "array", "items": { "$ref": "#/components/schemas/LinkedRipsPackage" } }, "documentAvailability": { "type": "array", "items": { "$ref": "#/components/schemas/ArtifactAvailability" } } }, "required": [ "id", "clientId", "clientName", "locationId", "totalAmount", "creditedAmount", "status", "statusMessage", "assignedInvoiceNumber", "cufe", "dianStatusCode", "submittedByUserId", "isActive", "createdAt", "updatedAt", "dianStatusDescription", "invoiceResolutionId", "invoicePayloadJson", "workingRipsJson", "invoiceDispatchHistory", "ripsPackages", "documentAvailability" ], "description": "Factura de salud emitida por PahFacturar."}