addedOutput schema / definitions / InvoiceQuery
Added value: +{
+ "additionalProperties": false,
+ "properties": {
+ "contactId": {
+ "description": "Id of the contact who raised it, as used by get_contact",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "createdAt": {
+ "description": "When the query was raised",
+ "example": "2026-06-16T08:00:00.000Z",
+ "type": "string"
+ },
+ "detail": {
+ "description": "What the customer said, required when reason is other",
+ "type": "string"
+ },
+ "dueDate": {
+ "description": "YYYY-MM-DD in the organisation's timezone, when the next action is due",
+ "type": "string"
+ },
+ "id": {
+ "description": "Paidnice invoice query id",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "invoiceId": {
+ "description": "Id of the queried invoice, as used by get_invoice",
+ "type": "string"
+ },
+ "nextAction": {
+ "description": "What the team plans to do next",
+ "type": "string"
+ },
+ "reason": {
+ "description": "Why the customer queried the invoice",
+ "enum": [
+ "pricing",
+ "quantity",
+ "quality",
+ "not_received",
+ "duplicate",
+ "other"
+ ],
+ "type": "string"
+ },
+ "resolution": {
+ "description": "How it was resolved, once resolved",
+ "enum": [
+ "paid",
+ "credit_note",
+ "voided",
+ "withdrawn",
+ "written_off"
+ ],
+ "type": "string"
+ },
+ "resolvedAt": {
+ "description": "When it was resolved",
+ "type": "string"
+ },
+ "source": {
+ "description": "Where the query was raised",
+ "enum": [
+ "user",
+ "portal",
+ "ai_agent",
+ "escalation",
+ "call"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "description": "open until the team resolves it",
+ "enum": [
+ "open",
+ "resolved"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "invoiceId",
+ "contactId",
+ "status",
+ "reason",
+ "source",
+ "createdAt"
+ ],
+ "type": "object"
+}
addedOutput schema / definitions / PaymentPlan
Added value: +{
+ "additionalProperties": false,
+ "properties": {
+ "contactId": {
+ "description": "Id of the contact on the plan, as used by get_contact",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "createdAt": {
+ "description": "When the plan was set up",
+ "example": "2026-06-16T08:00:00.000Z",
+ "type": "string"
+ },
+ "id": {
+ "description": "Paidnice payment plan id",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "instalments": {
+ "description": "In due date order. Amounts are in the invoice currency",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "description": "Amount due for this instalment",
+ "example": 100,
+ "type": "number"
+ },
+ "dueDate": {
+ "description": "YYYY-MM-DD the instalment is due",
+ "example": "2026-07-01",
+ "type": "string"
+ },
+ "id": {
+ "description": "Paidnice instalment id",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "paidAmount": {
+ "description": "Amount paid towards this instalment so far",
+ "example": 0,
+ "type": "number"
+ },
+ "paidDate": {
+ "description": "YYYY-MM-DD a payment was first applied to it",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "amount",
+ "paidAmount",
+ "dueDate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "invoiceId": {
+ "description": "Id of the invoice the plan pays off, as used by get_invoice",
+ "type": "string"
+ },
+ "originalDueAmount": {
+ "description": "The invoice amount due when the plan was set up, in the invoice currency",
+ "type": "number"
+ },
+ "status": {
+ "description": "active while any instalment is not fully paid, completed once all are",
+ "enum": [
+ "active",
+ "completed"
+ ],
+ "type": "string"
+ },
+ "surchargeAmount": {
+ "description": "Fee added to the invoice for the plan, if any",
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "invoiceId",
+ "contactId",
+ "status",
+ "originalDueAmount",
+ "createdAt",
+ "instalments"
+ ],
+ "type": "object"
+}
addedOutput schema / definitions / PaymentPromise
Added value: +{
+ "additionalProperties": false,
+ "properties": {
+ "contactId": {
+ "description": "Id of the contact who made it, as used by get_contact",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "createdAt": {
+ "description": "When the promise was recorded",
+ "example": "2026-06-16T08:00:00.000Z",
+ "type": "string"
+ },
+ "id": {
+ "description": "Paidnice promise to pay id",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "invoiceId": {
+ "description": "Id of the invoice it is for, as used by get_invoice",
+ "type": "string"
+ },
+ "notes": {
+ "description": "Internal notes recorded with the promise. Never shown to the customer",
+ "type": "string"
+ },
+ "promisedAmount": {
+ "description": "In the invoice currency",
+ "example": 250,
+ "type": "number"
+ },
+ "promisedDate": {
+ "description": "YYYY-MM-DD in the organisation's timezone",
+ "example": "2026-06-30",
+ "type": "string"
+ },
+ "resolvedAt": {
+ "description": "When it became kept, broken or cancelled",
+ "type": "string"
+ },
+ "source": {
+ "description": "Where the promise was recorded",
+ "enum": [
+ "user",
+ "portal",
+ "escalation",
+ "call",
+ "ai_agent"
+ ],
+ "type": "string"
+ },
+ "status": {
+ "description": "open until the promised date passes or the invoice is paid, then kept or broken. cancelled when withdrawn",
+ "enum": [
+ "open",
+ "kept",
+ "broken",
+ "cancelled"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "invoiceId",
+ "contactId",
+ "status",
+ "promisedAmount",
+ "promisedDate",
+ "source",
+ "createdAt"
+ ],
+ "type": "object"
+}
addedOutput schema / definitions / User / properties / firstName / description
Added value: +"First name, when set"
addedOutput schema / definitions / User / properties / lastName / description
Added value: +"Last name, when set"
addedOutput schema / properties / invoiceQueries
Added value: +{
+ "description": "Queries across the contact's invoices, newest first. Only present with includeInvoiceQueries",
+ "items": {
+ "$ref": "#/definitions/InvoiceQuery"
+ },
+ "type": "array"
+}
addedOutput schema / properties / paymentPlans
Added value: +{
+ "description": "Payment plans across the contact's invoices, newest first. Only present with includePaymentPlans",
+ "items": {
+ "$ref": "#/definitions/PaymentPlan"
+ },
+ "type": "array"
+}
addedOutput schema / properties / paymentPromises
Added value: +{
+ "description": "Promises to pay across the contact's invoices, newest first. Only present with includePaymentPromises",
+ "items": {
+ "$ref": "#/definitions/PaymentPromise"
+ },
+ "type": "array"
+}