mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
160 lines
5.9 KiB
YAML
160 lines
5.9 KiB
YAML
|
Client:
|
||
|
properties:
|
||
|
id:
|
||
|
description: 'The unique identifier of the client'
|
||
|
type: string
|
||
|
example: Opnel5aKBz
|
||
|
user_id:
|
||
|
description: 'The unique identifier of the user who created the client'
|
||
|
type: string
|
||
|
example: Ua6Rw4pVbS
|
||
|
company_id:
|
||
|
description: 'The unique identifier of the company the client belongs to'
|
||
|
type: string
|
||
|
example: Co7Vn3yLmW
|
||
|
contacts:
|
||
|
type: array
|
||
|
items:
|
||
|
$ref: '#/components/schemas/ClientContact'
|
||
|
name:
|
||
|
description: 'The name of the client company or organization'
|
||
|
type: string
|
||
|
example: "Jim's Housekeeping"
|
||
|
website:
|
||
|
description: 'The website URL of the client company or organization'
|
||
|
type: string
|
||
|
example: 'https://www.jims-housekeeping.com'
|
||
|
private_notes:
|
||
|
description: 'Notes that are only visible to the user who created the client'
|
||
|
type: string
|
||
|
example: 'Client prefers email communication over phone calls'
|
||
|
client_hash:
|
||
|
description: 'A unique hash value for the client'
|
||
|
type: string
|
||
|
example: asdfkjhk342hjhbfdvmnfb1
|
||
|
industry_id:
|
||
|
description: 'The unique identifier of the industry the client operates in'
|
||
|
type: number
|
||
|
example: '5'
|
||
|
size_id:
|
||
|
description: 'The unique identifier for the size category of the client company or organization'
|
||
|
type: number
|
||
|
example: '2'
|
||
|
address1:
|
||
|
description: "First line of the client's address"
|
||
|
type: string
|
||
|
example: '123 Main St'
|
||
|
address2:
|
||
|
description: "Second line of the client's address, if needed"
|
||
|
type: string
|
||
|
example: 'Apt 4B'
|
||
|
city:
|
||
|
description: 'The city the client is located in'
|
||
|
type: string
|
||
|
example: 'Beverly Hills'
|
||
|
state:
|
||
|
description: 'The state, province, or locality the client is located in'
|
||
|
type: string
|
||
|
example: 'California'
|
||
|
postal_code:
|
||
|
description: 'The postal code or ZIP code of the client'
|
||
|
type: string
|
||
|
example: '90210'
|
||
|
phone:
|
||
|
description: "The client's phone number"
|
||
|
type: string
|
||
|
example: '555-3434-3434'
|
||
|
country_id:
|
||
|
description: "The unique identifier of the client's country"
|
||
|
type: number
|
||
|
format: integer
|
||
|
example: '1'
|
||
|
custom_value1:
|
||
|
description: 'A custom field for storing additional information'
|
||
|
type: string
|
||
|
example: 'Preferred contact: Email'
|
||
|
custom_value2:
|
||
|
description: 'A custom field for storing additional information'
|
||
|
type: string
|
||
|
example: 'Account manager: John Doe'
|
||
|
custom_value3:
|
||
|
description: 'A custom field for storing additional information'
|
||
|
type: string
|
||
|
example: 'VIP client: Yes'
|
||
|
custom_value4:
|
||
|
description: 'A custom field for storing additional information'
|
||
|
type: string
|
||
|
example: 'Annual contract value: $50,000'
|
||
|
vat_number:
|
||
|
description: "The client's VAT (Value Added Tax) number, if applicable"
|
||
|
type: string
|
||
|
example: 'VAT123456'
|
||
|
id_number:
|
||
|
description: 'A unique identification number for the client, such as a tax ID or business registration number'
|
||
|
type: string
|
||
|
number:
|
||
|
description: 'A system-assigned unique number for the client, typically used for invoicing purposes'
|
||
|
type: string
|
||
|
example: 'CL-0001'
|
||
|
shipping_address1:
|
||
|
description: "First line of the client's shipping address"
|
||
|
type: string
|
||
|
example: '5 Wallaby Way'
|
||
|
shipping_address2:
|
||
|
description: "Second line of the client's shipping address, if needed"
|
||
|
type: string
|
||
|
example: 'Suite 5'
|
||
|
shipping_city:
|
||
|
description: "The city of the client's shipping address"
|
||
|
type: string
|
||
|
example: 'Perth'
|
||
|
shipping_state:
|
||
|
description: "The state, province, or locality of the client's shipping address"
|
||
|
type: string
|
||
|
example: 'Western Australia'
|
||
|
shipping_postal_code:
|
||
|
description: "The postal code or ZIP code of the client's shipping address"
|
||
|
type: string
|
||
|
example: '6110'
|
||
|
shipping_country_id:
|
||
|
description: "The unique identifier of the country for the client's shipping address"
|
||
|
type: number
|
||
|
format: integer
|
||
|
example: '4'
|
||
|
is_deleted:
|
||
|
description: 'A boolean value indicating whether the client has been deleted or not'
|
||
|
type: boolean
|
||
|
example: false
|
||
|
balance:
|
||
|
description: 'The outstanding balance the client owes'
|
||
|
type: number
|
||
|
format: float
|
||
|
example: '500.00'
|
||
|
paid_to_date:
|
||
|
description: 'The total amount the client has paid to date'
|
||
|
type: number
|
||
|
format: float
|
||
|
example: '2000.00'
|
||
|
credit_balance:
|
||
|
description: 'The available credit balance for the client to use on future purchases'
|
||
|
type: number
|
||
|
format: float
|
||
|
example: '100.00'
|
||
|
last_login:
|
||
|
description: "The timestamp of the client's last login"
|
||
|
type: number
|
||
|
format: integer
|
||
|
example: '1628686031'
|
||
|
created_at:
|
||
|
description: 'The timestamp when the client was created'
|
||
|
type: number
|
||
|
format: integer
|
||
|
example: '1617629031'
|
||
|
updated_at:
|
||
|
description: 'The timestamp when the client was last updated'
|
||
|
type: number
|
||
|
format: integer
|
||
|
example: '1628445631'
|
||
|
settings:
|
||
|
$ref: '#/components/schemas/CompanySettings'
|
||
|
type: object
|