Download OpenAPI specification:Download
Welcome to the Payaca API
Creates a new project for the specified customer
id required | string Example: 123 |
reference required | string or null | ||||||||||
required | object or string or null | ||||||||||
Any of
| |||||||||||
tags required | Array of strings or null | ||||||||||
required | object or object or null | ||||||||||
Any of
| |||||||||||
required | object or object or null | ||||||||||
Any of
| |||||||||||
required | object or null | ||||||||||
| |||||||||||
notes required | Array of strings or null |
{- "reference": "ABC123",
- "siteAddress": {
- "line1": "123 Wallaby Street",
- "line2": "string",
- "city": "Bristol",
- "postcode": "BS1 AAA",
- "country": "United Kingdom"
}, - "tags": [
- "Priority",
- "Install"
], - "pipeline": {
- "title": "New lead"
}, - "pipelineStage": {
- "title": "New lead"
}, - "assignTo": {
- "email": "johanna.employeeson@payaca.com"
}, - "notes": [
- "Design and estimate required"
]
}
{- "customer": {
- "id": "123",
- "reference": "ABC123",
- "pipeline": {
- "title": "Install"
}, - "pipelineStage": {
- "title": "New Lead"
}, - "customer": {
- "id": "123",
- "name": "Harper Property Management",
- "contacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful",
- "isPrimaryContact": true
}
], - "addresses": [
- {
- "line1": "123 Wallaby Street",
- "line2": "string",
- "city": "Bristol",
- "postcode": "BS1 AAA",
- "country": "United Kingdom",
- "regionallyUniqueIdentifier": "1234",
- "accessContacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful"
}
], - "isBillingAddress": true
}
]
}, - "tags": [
- "string"
], - "assignedTo": {
- "fullName": "Johanna Employeeson",
- "email": "johanna.employeeson@payaca.com"
}, - "siteAddress": {
- "line1": "123 Wallaby Street",
- "line2": "string",
- "city": "Bristol",
- "postcode": "BS1 AAA",
- "country": "United Kingdom",
- "regionallyUniqueIdentifier": "1234",
- "accessContacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful"
}
]
}, - "customFields": {
- "property1": null,
- "property2": null
}, - "notes": [
- "string"
]
}
}
Creates a new Customer, or if any Customer with an email exists, adds to that one instead. If multiple Customers are found, the earliest created one is used.
name required | string or null | ||||||||||
required | Array of objects non-empty | ||||||||||
Array (non-empty)
| |||||||||||
required | Array of objects or null | ||||||||||
Array
|
{- "name": "Harper Property Management",
- "contacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful",
- "isPrimaryContact": true
}
], - "addresses": [
- {
- "address": {
- "line1": "123 Wallaby Street",
- "line2": "string",
- "city": "Bristol",
- "postcode": "BS1 AAA",
- "country": "United Kingdom"
}, - "isBillingAddress": true,
- "accessContacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful"
}
]
}
]
}
{- "customer": {
- "id": "123",
- "name": "Harper Property Management",
- "contacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful",
- "isPrimaryContact": true
}
], - "addresses": [
- {
- "line1": "123 Wallaby Street",
- "line2": "string",
- "city": "Bristol",
- "postcode": "BS1 AAA",
- "country": "United Kingdom",
- "regionallyUniqueIdentifier": "1234",
- "accessContacts": [
- {
- "fullName": "John Doe",
- "email": "john.doe@email.com",
- "phoneNumber": "+44 7777 777777",
- "description": "Very friendly and helpful"
}
], - "isBillingAddress": true
}
]
}
}