{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/3m/refs/heads/main/json-schema/3m-partner-supplier-api-invoice-schema.json", "title": "Invoice", "description": "An invoice issued by 3M for an order", "type": "object", "properties": { "invoiceId": { "type": "string", "description": "Unique invoice identifier", "example": "INV-22222" }, "orderId": { "type": "string", "description": "Associated order identifier", "example": "ORD-67890" }, "invoiceDate": { "type": "string", "format": "date", "description": "Date the invoice was issued", "example": "2025-03-18" }, "dueDate": { "type": "string", "format": "date", "description": "Payment due date", "example": "2025-04-17" }, "totalAmount": { "type": "number", "description": "Total invoice amount", "example": 499.95 }, "currency": { "type": "string", "description": "Currency code (ISO 4217)", "example": "USD" }, "status": { "type": "string", "description": "Invoice payment status", "enum": [ "unpaid", "paid", "overdue", "disputed" ], "example": "unpaid" } } }