Projects API is for reporting on pricing project states and to aid in building custom quote flows
Retrieve all projects
Return all pricing project versions
get
Query parameters
project_referencestringOptional
Project reference. It is a UUID.
Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
statusstringOptional
Pricing project published status. It can be in draft, approved, published or subsequently unpublished
Example: draft
Responses
200
/sw/projects response
application/json
get
/sw/projects
200
/sw/projects response
This will retrieve all projects within your account. It will show the latest published version along with other useful project details.
Retrieve a specific project
Return the latest pricing project
get
Path parameters
project_referencestringRequired
Project reference. It is a UUID.
Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
Query parameters
statusstringOptional
Pricing project published status. It can be in draft, approved, published or subsequently unpublished
Example: draft
version_referencestringOptional
Project version reference. It is a UUID.
Example: 46c575d2-b6b9-44ed-9c75-5d705b987ec1
Responses
200
/sw/projects/{project_reference} response
application/json
get
/sw/projects/{project_reference}
200
/sw/projects/{project_reference} response
This will show a specific project with the latest published version, all versions to date and their status.
Each project has a unique project_reference and each version has a unique version_reference.
Retrieve all project versions
Return all pricing project versions
get
Query parameters
project_referencestringOptional
Project reference. It is a UUID.
Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
version_referencestringOptional
Project version reference. It is a UUID.
Example: 46c575d2-b6b9-44ed-9c75-5d705b987ec1
summarystringOptional
A html formatted change log of a project version.
Example: <p>Example change log of version</p>
Responses
200
/sw/projects/versions response
application/json
get
/sw/projects/versions
200
/sw/projects/versions response
Project versions can be returned in bulk or filtered via the summary change log (using ?summary)
or via project_reference
Help building your own quote flows
This is a public API endpoint. You can hit this endpoint for client-side code by just providing client_id_key in the header. View authentication to find out more. Public APIs have /public/ within the endpoint url.
Returns public project details to build custom form
get
Path parameters
project_referencestringRequired
Project reference. It is a UUID.
Example: 56c575d2-b6b9-44ed-9c75-5d705b987ec1
Responses
200
/sw/public/projects/{project_reference} response
application/json
get
/sw/public/projects/{project_reference}
200
/sw/public/projects/{project_reference} response
The public project endpoint will return all the input parameters needed for a Swallow pricing project and all the lists of data options (generated by factor table data). This allows you to build custom and validated custom quote flows.
The quote flows can be programmatic (aggregator integrations) or via custom build user interfaces (within an app or website).