{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/microsoft-dynamics/refs/heads/main/json-schema/customer.json", "title": "Customer", "description": "A customer record in Microsoft Dynamics 365, representing a person or organization that purchases goods or services.", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "The unique identifier of the customer.", "readOnly": true }, "number": { "type": "string", "description": "The customer number." }, "displayName": { "type": "string", "description": "The display name of the customer." }, "type": { "type": "string", "enum": ["Person", "Company"], "description": "The type of customer." }, "addressLine1": { "type": "string", "description": "The first line of the customer address." }, "addressLine2": { "type": "string", "description": "The second line of the customer address." }, "city": { "type": "string", "description": "The city of the customer address." }, "state": { "type": "string", "description": "The state or province of the customer address." }, "country": { "type": "string", "description": "The country or region of the customer address." }, "postalCode": { "type": "string", "description": "The postal code of the customer address." }, "phoneNumber": { "type": "string", "description": "The phone number of the customer." }, "email": { "type": "string", "format": "email", "description": "The email address of the customer." }, "website": { "type": "string", "format": "uri", "description": "The website URL of the customer." }, "taxRegistrationNumber": { "type": "string", "description": "The tax registration number." }, "currencyCode": { "type": "string", "description": "The default currency code for the customer." }, "blocked": { "type": "string", "enum": [" ", "Ship", "Invoice", "All"], "description": "Indicates whether the customer is blocked for transactions." }, "balance": { "type": "number", "description": "The current balance of the customer.", "readOnly": true }, "lastModifiedDateTime": { "type": "string", "format": "date-time", "description": "The date and time the record was last modified.", "readOnly": true } }, "required": ["displayName"] }