Schema: DebitNote
All schemas · API reference · Data mapping guide
Fields
Section titled “Fields”| Field | Required | Type / allowed values |
|---|---|---|
id |
Yes | string |
invoiceId |
Yes | string |
originalInvoiceNumber |
Yes | string or null |
clientId |
Yes | string |
clientName |
Yes | string |
totalAmount |
Yes | number |
status |
Yes | HealthDocumentStatus |
statusMessage |
Yes | string or null |
assignedDebitNoteNumber |
Yes | string or null |
cude |
Yes | string or null |
discrepancyResponseCode |
Yes | DebitNoteReasonCode |
discrepancyResponseDescription |
Yes | string |
ripsPackageKind |
Yes | nd |
isActive |
Yes | boolean |
createdAt |
Yes | string |
updatedAt |
Yes | string |
originalInvoiceCufe |
Yes | string or null |
dianStatusCode |
Yes | string or null |
dianStatusDescription |
Yes | string or null |
submittedByUserId |
Yes | string or null |
debitNotePayloadJson |
Yes | string or null |
workingRipsJson |
Yes | string or null |
dispatchHistory |
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" }, "invoiceId": { "type": "string" }, "originalInvoiceNumber": { "type": [ "string", "null" ] }, "clientId": { "type": "string" }, "clientName": { "type": "string" }, "totalAmount": { "type": "number" }, "status": { "$ref": "#/components/schemas/HealthDocumentStatus" }, "statusMessage": { "type": [ "string", "null" ] }, "assignedDebitNoteNumber": { "type": [ "string", "null" ] }, "cude": { "type": [ "string", "null" ] }, "discrepancyResponseCode": { "$ref": "#/components/schemas/DebitNoteReasonCode" }, "discrepancyResponseDescription": { "type": "string" }, "ripsPackageKind": { "type": "string", "enum": [ "nd" ] }, "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" }, "originalInvoiceCufe": { "type": [ "string", "null" ] }, "dianStatusCode": { "type": [ "string", "null" ] }, "dianStatusDescription": { "type": [ "string", "null" ] }, "submittedByUserId": { "type": [ "string", "null" ] }, "debitNotePayloadJson": { "type": [ "string", "null" ] }, "workingRipsJson": { "type": [ "string", "null" ] }, "dispatchHistory": { "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", "invoiceId", "originalInvoiceNumber", "clientId", "clientName", "totalAmount", "status", "statusMessage", "assignedDebitNoteNumber", "cude", "discrepancyResponseCode", "discrepancyResponseDescription", "ripsPackageKind", "isActive", "createdAt", "updatedAt", "originalInvoiceCufe", "dianStatusCode", "dianStatusDescription", "submittedByUserId", "debitNotePayloadJson", "workingRipsJson", "dispatchHistory", "ripsPackages", "documentAvailability" ], "description": "Nota débito de salud emitida por PahFacturar. Su CUDE no es el CUFE de la factura original. Emitir la nota no envía su RIPS al Ministerio."}