1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/openapi/paths.yaml

10743 lines
360 KiB
YAML
Raw Normal View History

paths:
/api/v1/activities:
get:
tags:
- actvities
2023-02-18 04:21:42 +01:00
summary: "Returns a list of actvities"
description: "Lists all activities related to this company"
operationId: getActivities
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/activity_include"
- $ref: "#/components/parameters/index"
- $ref: "#/components/parameters/per_page_meta"
- $ref: "#/components/parameters/page_meta"
responses:
200:
2023-02-18 05:17:16 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 05:17:16 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 05:17:16 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 05:17:16 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 05:17:16 +01:00
$ref: "#/components/schemas/Client"
2023-02-18 04:21:42 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
2023-02-18 04:21:42 +01:00
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/actvities/download_entity/{activity_id}":
get:
tags:
- actvities
2023-02-18 04:21:42 +01:00
summary: "Returns a PDF for the given activity"
description: "Returns a PDF for the given activity"
operationId: getActivityHistoricalEntityPdf
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/activity_include"
- name: activity_id
in: path
2023-02-18 04:21:42 +01:00
description: "The Activity Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "PDF File"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
404:
2023-02-18 04:21:42 +01:00
description: "No file exists for the given record"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
2023-02-18 04:21:42 +01:00
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/login:
post:
tags:
- login
2023-02-18 04:21:42 +01:00
summary: "Attempts authentication"
description: "Returns a CompanyUser object on success"
operationId: postLogin
2023-02-11 05:46:41 +01:00
security:
- []
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-SECRET"
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/login_include"
- $ref: "#/components/parameters/include_static"
- $ref: "#/components/parameters/clear_cache"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
properties:
email:
2023-02-18 04:21:42 +01:00
description: "The users email address."
type: string
2023-02-18 04:21:42 +01:00
example: "demo@invoiceninja.com"
password:
2023-02-18 04:21:42 +01:00
description: "The user password. Must meet minimum criteria ~ > 6 characters"
type: string
2023-02-18 04:21:42 +01:00
example: "Password0"
type: object
responses:
200:
2023-02-18 05:17:16 +01:00
description: "Returns the company user object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 05:17:16 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 05:17:16 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 05:17:16 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 05:17:16 +01:00
$ref: "#/components/schemas/Client"
2023-02-11 05:46:41 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/refresh:
post:
tags:
- refresh
2023-02-18 04:21:42 +01:00
summary: "Refresh data by timestamp"
2023-02-12 05:11:39 +01:00
description: |
2023-02-18 04:21:42 +01:00
Refreshes the dataset.
2023-02-12 05:11:39 +01:00
2023-02-18 04:21:42 +01:00
This endpoint can be used if you only need to access the most recent data from a certain point in time.
operationId: refresh
parameters:
2023-02-18 04:21:42 +01:00
- name: updated_at
2023-02-12 05:11:39 +01:00
in: query
2023-02-18 04:21:42 +01:00
description: "The unix timestamp from which the refreshed data should be sent from, if no value is passed the system will assume you require all data."
2023-02-12 05:11:39 +01:00
required: true
schema:
type: number
format: integer
example: 1676173763
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/include_static"
- $ref: "#/components/parameters/clear_cache"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Company User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
$ref: "#/components/schemas/CompanyUser"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/yodlee/refresh:
post:
tags:
- yodlee
2023-02-18 04:21:42 +01:00
summary: "Yodlee Webhook"
description: "Webhook endpoint for Yodlee. Used to notify the system that a data point can be updated."
operationId: yodleeRefreshWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: ""
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_integrations:
get:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Returns a list of Bank Integrations"
description: "Lists all bank integrations"
operationId: getBankIntegrations
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/bank_integration_include"
- $ref: "#/components/parameters/index"
- name: rows
in: query
2023-02-18 04:21:42 +01:00
description: "The number of bank integrations to return"
required: false
schema:
type: number
format: integer
2023-02-18 04:21:42 +01:00
example: "50"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of bank integrations"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Adds a bank_integration"
description: "Adds an bank_integration to a company"
operationId: storeBankIntegration
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/bank_integrations/{id}":
get:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Shows a bank_integration"
description: "Displays a bank_integration by id"
operationId: showBankIntegration
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankIntegration Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Updates a bank_integration"
description: "Handles the updating of a bank_integration by id"
operationId: updateBankIntegration
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankIntegration Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Deletes a bank_integration"
description: "Handles the deletion of a bank_integration by id"
operationId: deleteBankIntegration
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankIntegration Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/bank_integrations/{id}/edit":
get:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Shows a bank_integration for editing"
description: "Displays a bank_integration by id"
operationId: editBankIntegration
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankIntegration Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_integrations/create:
get:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank bank_integration object"
description: "Returns a blank object with default values"
operationId: getBankIntegrationsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 04:21:42 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 04:21:42 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_integrations/bulk:
post:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of bank_integrations"
description: ""
operationId: bulkBankIntegrations
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Action paramters"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_integrations/refresh_accounts:
post:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Gets the list of accounts from the remote server"
description: "Adds an bank_integration to a company"
operationId: getRefreshAccounts
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_integrations/remove_account/account_id:
post:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Removes an account from the integration"
description: "Removes an account from the integration"
operationId: getRemoveAccount
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_integration object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_integrations/get_transactions/account_id:
post:
tags:
- bank_integrations
2023-02-18 04:21:42 +01:00
summary: "Retrieve transactions for a account"
description: "Retrieve transactions for a account"
operationId: getAccountTransactions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Retrieve transactions for a account"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankIntegration"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transactions:
get:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Gets a list of bank_transactions"
description: "Lists all bank integrations"
operationId: getBankTransactions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
- name: rows
in: query
2023-02-18 04:21:42 +01:00
description: "The number of bank integrations to return"
required: false
schema:
type: number
format: integer
2023-02-18 04:21:42 +01:00
example: "50"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of bank integrations"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransaction"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Adds a bank_transaction"
description: "Adds an bank_transaction to a company"
operationId: storeBankTransaction
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved bank_transaction object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransaction"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/bank_transactions/{id}":
get:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Shows a bank_transaction"
description: "Displays a bank_transaction by id"
operationId: showBankTransaction
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankTransaction Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_transaction object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransaction"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Updates a bank_transaction"
description: "Handles the updating of a bank_transaction by id"
operationId: updateBankTransaction
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankTransaction Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_transaction object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransaction"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Deletes a bank_transaction"
description: "Handles the deletion of a bank_transaction by id"
operationId: deleteBankTransaction
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankTransaction Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/bank_transactions/{id}/edit":
get:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Shows a bank_transaction for editing"
description: "Displays a bank_transaction by id"
operationId: editBankTransaction
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The BankTransaction Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_transaction object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransaction"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transactions/create:
get:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank bank_transaction object"
description: "Returns a blank object with default values"
operationId: getBankTransactionsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank bank_transaction object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransaction"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transations/bulk:
post:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of bank_transations"
description: ""
operationId: bulkBankTransactions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Action paramters"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transations/match:
post:
tags:
- bank_transactions
2023-02-18 04:21:42 +01:00
summary: "Performs match actions on an array of bank_transactions"
description: ""
operationId: matchBankTransactions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Action paramters"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transaction_rules:
get:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Gets a list of bank_transaction_rules"
description: "Lists all bank transaction rules"
operationId: getBankTransactionRules
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
- name: rows
in: query
2023-02-18 04:21:42 +01:00
description: "The number of bank integrations to return"
required: false
schema:
type: number
format: integer
2023-02-18 04:21:42 +01:00
example: "50"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of bank integrations"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransactionRule"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Adds a bank_transaction rule"
description: "Adds an bank_transaction to a company"
operationId: storeBankTransactionRule
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved bank_transaction rule object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransactionRule"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/bank_transaction_rules/{id}":
get:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Shows a bank_transaction"
description: "Displays a bank_transaction by id"
operationId: showBankTransactionRule
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Bank Transaction RuleHashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_transaction rule object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransactionRule"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Updates a bank_transaction Rule"
description: "Handles the updating of a bank_transaction rule by id"
operationId: updateBankTransactionRule
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Bank Transaction Rule Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_transaction rule object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransactionRule"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Deletes a bank_transaction rule"
description: "Handles the deletion of a bank_transaction rule by id"
operationId: deleteBankTransactionRule
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Bank Transaction Rule Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/bank_transaction_rules/{id}/edit":
get:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Shows a bank_transaction for editing"
description: "Displays a bank_transaction by id"
operationId: editBankTransactionRule
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Bank Transaction Rule Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the bank_transaction rule object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransactionRule"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transaction_rules/create:
get:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank bank_transaction rule object"
description: "Returns a blank object with default values"
operationId: getBankTransactionRulesCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank bank_transaction rule object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/BankTransactionRule"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/bank_transation_rules/bulk:
post:
tags:
- bank_transaction_rules
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of bank_transation rules"
description: ""
operationId: bulkBankTransactionRules
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Action paramters"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/charts/totals:
post:
tags:
- charts
2023-02-18 04:21:42 +01:00
summary: "Get chart data"
description: "Get chart data"
operationId: getChartTotals
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
- name: rows
in: query
2023-02-18 04:21:42 +01:00
description: "The chart"
required: false
schema:
type: number
format: integer
2023-02-18 04:21:42 +01:00
example: "50"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "json dataset of chart data"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-12 08:58:00 +01:00
/api/v1/client_gateway_tokens:
get:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "List of client tokens"
description: "Lists client_gateway_tokens, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the client_gateway_tokens, these are handled by the ClientGatewayTokenFilters class which defines the methods available"
operationId: getClientGatewayTokens
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of client_gateway_tokens"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ClientGatewayToken"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "Adds a client"
description: "Adds an client to a company"
operationId: storeClientGatewayToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ClientGatewayToken"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/client_gateway_tokens/{id}":
get:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "Shows a client"
description: "Displays a client by id"
operationId: showClientGatewayToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ClientGatewayToken Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the cl.ient object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ClientGatewayToken"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "Updates a client"
description: "Handles the updating of a client by id"
operationId: updateClientGatewayToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ClientGatewayToken Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ClientGatewayToken"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "Deletes a client"
description: "Handles the deletion of a client by id"
operationId: deleteClientGatewayToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ClientGatewayToken Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/client_gateway_tokens/{id}/edit":
get:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "Shows a client for editting"
description: "Displays a client by id"
operationId: editClientGatewayToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ClientGatewayToken Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ClientGatewayToken"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/client_gateway_tokens/create:
get:
tags:
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank client object"
description: "Returns a blank object with default values"
operationId: getClientGatewayTokensCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ClientGatewayToken"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
/api/v1/companies:
get:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Gets a list of companies"
description: "Lists companies, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the companies, these are handled by the CompanyFilters class which defines the methods available"
operationId: getCompanies
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of companies"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Adds a company"
description: "Adds an company to the system"
operationId: storeCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved company object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/companies/create:
get:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank company object"
description: "Returns a blank object with default values"
operationId: getCompaniesCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank company object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/companies/{id}":
get:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Shows an company"
description: "Displays an company by id"
operationId: showCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the company object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Updates an company"
description: "Handles the updating of an company by id"
operationId: updateCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the company object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Deletes a company"
description: "Handles the deletion of an company by id"
operationId: deleteCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/companies/{id}/edit":
get:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Shows an company for editting"
description: "Displays an company by id"
operationId: editCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the company object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/companies/{id}/upload":
put:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a company"
description: "Handles the uploading of a document to a company"
operationId: uploadCompanies
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/companies/{company}/default":
post:
tags:
- companies
2023-02-18 04:21:42 +01:00
summary: "Sets the company as the default company."
description: "Sets the company as the default company."
operationId: setDefaultCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: company
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the company object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Company"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/company_gateways:
get:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Gets a list of company_gateways"
description: "Lists company_gateways, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the company_gateways, these are handled by the CompanyGatewayFilters class which defines the methods available"
operationId: getCompanyGateways
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of company_gateways"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Adds a CompanyGateway"
description: "Adds an CompanyGateway to the system"
operationId: storeCompanyGateway
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved CompanyGateway object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/company_gateways/create:
get:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank CompanyGateway object"
description: "Returns a blank object with default values"
operationId: getCompanyGatewaysCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank CompanyGateway object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/company_gateways/{id}":
get:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Shows an CompanyGateway"
description: "Displays an CompanyGateway by id"
operationId: showCompanyGateway
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The CompanyGateway Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the CompanyGateway object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Updates an CompanyGateway"
description: "Handles the updating of an CompanyGateway by id"
operationId: updateCompanyGateway
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The CompanyGateway Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the CompanyGateway object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Deletes a CompanyGateway"
description: "Handles the deletion of an CompanyGateway by id"
operationId: deleteCompanyGateway
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The CompanyGateway Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/company_gateways/{id}/edit":
get:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Shows an CompanyGateway for editting"
description: "Displays an CompanyGateway by id"
operationId: editCompanyGateway
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The CompanyGateway Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the CompanyGateway object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/company_gateways/bulk:
post:
tags:
- company_gateways
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of company_gateways"
description: ""
operationId: bulkCompanyGateways
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Array of company gateway IDs"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Company Gateways response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyGateway"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/company_ledger:
get:
tags:
- company_ledger
2023-02-18 04:21:42 +01:00
summary: "Gets a list of company_ledger"
description: "Lists the company_ledger."
operationId: getCompanyLedger
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of company_ledger"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 05:08:56 +01:00
$ref: "#/components/schemas/CompanyLedger"
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
2023-02-18 05:08:56 +01:00
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
2023-02-18 05:08:56 +01:00
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/company_users:
post:
tags:
- company_user
2023-02-18 04:21:42 +01:00
summary: "Update a company user record"
description: "Attempts to update a company user record. A company user can modify only their settings fields. Full access for Admin users"
operationId: updateCompanyUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Company User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyUser"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/connected_account:
post:
tags:
- connected_account
2023-02-18 04:21:42 +01:00
summary: "Connect an oauth user to an existing user"
description: "Refreshes the dataset"
operationId: connected_account
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/include_static"
- $ref: "#/components/parameters/clear_cache"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Company User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/credits:
get:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Gets a list of credits"
description: "Lists credits, search and filters allow fine grained lists to be generated.\n *\n * Query parameters can be added to performed more fine grained filtering of the credits, these are handled by the CreditFilters class which defines the methods available"
operationId: getCredits
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of credits"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Adds a credit"
description: "Adds an credit to the system"
operationId: storeCredit
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/credits/create:
get:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank credit object"
description: "Returns a blank object with default values"
operationId: getCreditsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/credits/{id}":
get:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Shows an credit"
description: "Displays an credit by id"
operationId: showCredit
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Credit Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- Credits
2023-02-18 04:21:42 +01:00
summary: "Updates an Credit"
description: "Handles the updating of an Credit by id"
operationId: updateCredit
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Credit Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Deletes a credit"
description: "Handles the deletion of an credit by id"
operationId: deleteCredit
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Credit Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/credits/{id}/edit":
get:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Shows an credit for editting"
description: "Displays an credit by id"
operationId: editCredit
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Invoice Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Invoice"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/credits/bulk:
post:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of credits"
description: ""
operationId: bulkCredits
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/credit/{invitation_key}/download":
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Download a specific credit by invitation key"
description: "Downloads a specific quote"
operationId: downloadCredit
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: invitation_key
in: path
2023-02-18 04:21:42 +01:00
description: "The Credit Invitation Key"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the credit pdf"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/credits/{id}/upload":
put:
tags:
- credits
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a credit"
description: "Handles the uploading of a document to a credit"
operationId: uploadCredits
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Credit Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/designs:
get:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Gets a list of designs"
description: "Lists designs"
operationId: getDesigns
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of designs"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Adds a design"
description: "Adds an design to a company"
operationId: storeDesign
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved design object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/designs/{id}":
get:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Shows a design"
description: "Displays a design by id"
operationId: showDesign
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Design Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the expense object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Updates a design"
description: "Handles the updating of a design by id"
operationId: updateDesign
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Design Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the design object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:08:56 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:08:56 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Deletes a design"
description: "Handles the deletion of a design by id"
operationId: deleteDesign
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Design Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:10:13 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:10:13 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/designs/{id}/edit":
get:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Shows a design for editting"
description: "Displays a design by id"
operationId: editDesign
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Design Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the design object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:10:13 +01:00
401:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/401"
2023-02-18 05:10:13 +01:00
403:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/designs/create:
get:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank design object"
description: "Returns a blank object with default values"
operationId: getDesignsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank design object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/designs/bulk:
post:
tags:
- designs
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of designs"
description: ""
operationId: bulkDesigns
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Design User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Design"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/documents:
get:
tags:
- documents
2023-02-18 04:21:42 +01:00
summary: "Gets a list of documents"
description: "Lists documents, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the documents, these are handled by the DocumentsFilters class which defines the methods available"
operationId: getDocuments
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of documents"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Document"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/emails:
post:
tags:
- emails
2023-02-18 04:21:42 +01:00
summary: "Sends an email for an entity"
description: "Sends an email for an entity"
operationId: sendEmailTemplate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The template subject and body"
required: true
content:
application/json:
schema:
properties:
subject:
2023-02-18 04:21:42 +01:00
description: "The email subject"
type: string
body:
2023-02-18 04:21:42 +01:00
description: "The email body"
type: string
entity:
2023-02-18 04:21:42 +01:00
description: "The entity name"
type: string
entity_id:
2023-02-18 04:21:42 +01:00
description: "The entity_id"
type: string
template:
2023-02-18 04:21:42 +01:00
description: "The template required"
type: string
type: object
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Template"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/expense_categories:
get:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Gets a list of expense_categories"
description: "Lists tax rates"
operationId: getExpenseCategorys
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of expense_categories"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Adds a expense category"
description: "Adds an expense category to the system"
operationId: storeExpenseCategory
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved invoice object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/expense_categories/create:
get:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank Expens Category object"
description: "Returns a blank object with default values"
operationId: getExpenseCategoryCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank Expens Category object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/expense_categories/{id}":
get:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Shows a Expens Category"
description: "Displays an ExpenseCategory by id"
operationId: showExpenseCategory
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ExpenseCategory Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Expens Category object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Updates a tax rate"
description: "Handles the updating of a tax rate by id"
operationId: updateExpenseCategory
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ExpenseCategory Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the ExpenseCategory object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Deletes a ExpenseCategory"
description: "Handles the deletion of an ExpenseCategory by id"
operationId: deleteExpenseCategory
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ExpenseCategory Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/expense_categories/{id}/edit":
get:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Shows a Expens Category for editting"
description: "Displays a Expens Category by id"
operationId: editExpenseCategory
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The ExpenseCategory Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Expens Category object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/expense_categories/bulk:
post:
tags:
- expense_categories
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of ExpenseCategorys"
description: ""
operationId: bulkExpenseCategorys
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Expens Categorys"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The ExpenseCategory List response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/expenses:
get:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Gets a list of expenses"
description: "Lists expenses, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the expenses, these are handled by the ExpenseFilters class which defines the methods available"
operationId: getExpenses
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of expenses"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Adds a client"
description: "Adds an client to a company"
operationId: storeExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/expenses/{id}":
get:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Shows a client"
description: "Displays a client by id"
operationId: showExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Expense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the expense object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Updates a client"
description: "Handles the updating of a client by id"
operationId: updateExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Expense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Deletes a client"
description: "Handles the deletion of a client by id"
operationId: deleteExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Expense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/expenses/{id}/edit":
get:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Shows a client for editting"
description: "Displays a client by id"
operationId: editExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Expense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/expenses/create:
get:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank client object"
description: "Returns a blank object with default values"
operationId: getExpensesCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/expenses/bulk:
post:
tags:
- expenses
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of expenses"
description: ""
operationId: bulkExpenses
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Expense User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/expenses/{id}/upload":
put:
tags:
- expense
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a expense"
description: "Handles the uploading of a document to a expense"
operationId: uploadExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Expense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Expense object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/export:
post:
tags:
- export
2023-02-18 04:21:42 +01:00
summary: "Export data from the system"
description: "Export data from the system"
operationId: getExport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/group_settings:
get:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Gets a list of group_settings"
description: "Lists group_settings, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the group_settings, these are handled by the GroupSettingFilters class which defines the methods available"
operationId: getGroupSettings
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of group_settings"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Adds a GroupSetting"
description: "Adds an GroupSetting to the system"
operationId: storeGroupSetting
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved GroupSetting object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/group_settings/create:
get:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank GroupSetting object"
description: "Returns a blank object with default values"
operationId: getGroupSettingsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank GroupSetting object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/group_settings/{id}":
get:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Shows an GroupSetting"
description: "Displays an GroupSetting by id"
operationId: showGroupSetting
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The GroupSetting Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the GroupSetting object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Updates an GroupSetting"
description: "Handles the updating of an GroupSetting by id"
operationId: updateGroupSetting
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The GroupSetting Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the GroupSetting object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Deletes a GroupSetting"
description: "Handles the deletion of an GroupSetting by id"
operationId: deleteGroupSetting
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The GroupSetting Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/group_settings/{id}/edit":
get:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Shows an GroupSetting for editting"
description: "Displays an GroupSetting by id"
operationId: editGroupSetting
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The GroupSetting Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the GroupSetting object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/group_settings/bulk:
post:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of group_settings"
description: ""
operationId: bulkGroupSettings
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "An array of group_settings ids"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/group_settings/{id}/upload":
put:
tags:
- group_settings
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a group setting"
description: "Handles the uploading of a document to a group setting"
operationId: uploadGroupSetting
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Group Setting Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Group Setting object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Invoice"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/preimport:
post:
tags:
- imports
2023-02-18 04:21:42 +01:00
summary: "Pre Import checks - returns a reference to the job and the headers of the CSV"
description: "Pre Import checks - returns a reference to the job and the headers of the CSV"
operationId: preimport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The CSV file"
required: true
content:
multipart/form-data:
schema:
type: string
format: binary
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a reference to the file"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/import_json:
post:
tags:
- import
2023-02-18 04:21:42 +01:00
summary: "Import data from the system"
description: "Import data from the system"
operationId: getImportJson
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/apple/confirm_purchase:
post:
tags:
- postmark
2023-02-18 04:21:42 +01:00
summary: "Processing webhooks from Apple for in app purchases"
description: "Adds an credit to the system"
operationId: confirmApplePurchase
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/apple/process_webhook:
post:
tags:
- postmark
2023-02-18 04:21:42 +01:00
summary: "Processing event webhooks from Apple for in purchase / subscription status update"
description: "Adds an credit to the system"
operationId: processAppleWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 09:58:40 +01:00
/api/v1/claim_license:
get:
tags:
- claim_license
2023-02-18 04:21:42 +01:00
summary: "Attempts to claim a white label license"
description: "Attempts to claim a white label license"
operationId: getClaimLicense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
- name: license_key
in: query
2023-02-18 04:21:42 +01:00
description: "The license hash"
required: true
schema:
type: string
format: string
example: d87sh-s755s-s7d76-sdsd8
2023-02-18 04:21:42 +01:00
- name: product_id
in: query
2023-02-18 04:21:42 +01:00
description: "The ID of the product purchased."
required: true
schema:
type: string
format: string
2023-02-18 04:21:42 +01:00
example: "1"
responses:
200:
description: Success!
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/logout:
post:
tags:
- logout
2023-02-18 04:21:42 +01:00
summary: "Gets a list of logout"
description: "Lists all logout"
operationId: getLogout
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Success message"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/migration/purge/{company}":
post:
tags:
- migration
2023-02-18 04:21:42 +01:00
summary: "Attempts to purge a company record and all its child records"
description: "Attempts to purge a company record and all its child records"
operationId: postPurgeCompany
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: company
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
description: Success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/migration/purge_save_settings/{company}":
post:
tags:
- migration
2023-02-18 04:21:42 +01:00
summary: "Attempts to purge a companies child records but save the company record and its settings"
description: "Attempts to purge a companies child records but save the company record and its settings"
operationId: postPurgeCompanySaveSettings
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: company
in: path
2023-02-18 04:21:42 +01:00
description: "The Company Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
description: Success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/migration/start:
post:
tags:
- migration
2023-02-18 04:21:42 +01:00
summary: "Starts the migration from previous version of Invoice Ninja"
description: "Starts the migration from previous version of Invoice Ninja"
operationId: postStartMigration
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/X-API-PASSWORD"
- name: migration
in: query
2023-02-18 04:21:42 +01:00
description: "The migraton file"
required: true
schema:
type: object
format: file
example: migration.zip
responses:
200:
description: Success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/one_time_token:
post:
tags:
- one_time_token
2023-02-18 04:21:42 +01:00
summary: "Attempts to create a one time token"
description: "Attempts to create a one time token"
operationId: oneTimeToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Company User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payments:
get:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Gets a list of payments"
description: "Lists payments, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the payments, these are handled by the PaymentFilters class which defines the methods available"
operationId: getPayments
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of payments"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Adds a Payment"
description: "Adds an Payment to the system"
operationId: storePayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The payment request"
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payments/create:
get:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank Payment object"
description: "Returns a blank object with default values"
operationId: getPaymentsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/payments/{id}":
get:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Shows an Payment"
description: "Displays an Payment by id"
operationId: showPayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Updates an Payment"
description: "Handles the updating of an Payment by id"
operationId: updatePayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Deletes a Payment"
description: "Handles the deletion of an Payment by id"
operationId: deletePayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/payments/{id}/edit":
get:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Shows an Payment for editting"
description: "Displays an Payment by id"
operationId: editPayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payments/bulk:
post:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of payments"
description: ""
operationId: bulkPayments
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Payment response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/payments/{id}/{action}":
get:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Performs a custom action on an Payment"
description: "Performs a custom action on an Payment.\n\n The current range of actions are as follows\n - clone_to_Payment\n - clone_to_quote\n - history\n - delivery_note\n - mark_paid\n - download\n - archive\n - delete\n - email"
operationId: actionPayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
2023-02-18 04:21:42 +01:00
- name: action
in: path
2023-02-18 04:21:42 +01:00
description: "The action string to be performed"
required: true
schema:
type: string
format: string
example: clone_to_quote
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payments/refund:
post:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Adds a Refund"
description: "Adds an Refund to the system"
operationId: storeRefund
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The refund request"
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/payments/{id}/upload":
put:
tags:
- payments
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a payment"
description: "Handles the uploading of a document to a payment"
operationId: uploadPayment
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payment_terms:
get:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Gets a list of payment terms"
description: "Lists payment terms"
operationId: getPaymentTerms
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of payment terms"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Adds a Payment"
description: "Adds a Payment Term to the system"
operationId: storePaymentTerm
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The payment_terms request"
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payment_terms/create:
get:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank PaymentTerm object"
description: "Returns a blank object with default values"
operationId: getPaymentTermsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank PaymentTerm object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/payment_terms/{id}":
get:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Shows a Payment Term"
description: "Displays an Payment Term by id"
operationId: showPaymentTerm
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Term Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment Term object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Updates a Payment Term"
description: "Handles the updating of an Payment Termby id"
operationId: updatePaymentTerm
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Term Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment Term object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- payment_termss
2023-02-18 04:21:42 +01:00
summary: "Deletes a Payment Term"
description: "Handles the deletion of an PaymentTerm by id"
operationId: deletePaymentTerm
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Term Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/payment_terms/{id}/edit":
get:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Shows an Payment Term for editting"
description: "Displays an Payment Term by id"
operationId: editPaymentTerms
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Payment Term Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Payment object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/payment_terms/bulk:
post:
tags:
- payment_terms
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of payment terms"
description: ""
operationId: bulkPaymentTerms
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Payment Ter,s"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Payment Terms response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/ping:
get:
tags:
- ping
2023-02-18 04:21:42 +01:00
summary: "Attempts to ping the API"
description: "Attempts to ping the API"
operationId: getPing
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The company and user name"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
/api/v1/health_check:
get:
tags:
- health_check
2023-02-18 04:21:42 +01:00
summary: "Attempts to get a health check from the API"
description: "Attempts to get a health check from the API"
operationId: getHealthCheck
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A key/value map of the system health"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
/api/v1/postmark_webhook:
post:
tags:
- postmark
2023-02-18 04:21:42 +01:00
summary: "Processing webhooks from PostMark"
description: "Adds an credit to the system"
operationId: postmarkWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved credit object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/preview:
post:
tags:
- preview
2023-02-18 04:21:42 +01:00
summary: "Returns a pdf preview"
description: "Returns a pdf preview."
operationId: getPreview
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The pdf response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/preview/purchase_order:
post:
tags:
- preview
2023-02-18 04:21:42 +01:00
summary: "Returns a pdf preview for purchase order"
description: "Returns a pdf preview for purchase order."
operationId: getPreviewPurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The pdf response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
/api/v1/projects:
get:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Gets a list of projects"
description: "Lists projects"
operationId: getProjects
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of projects"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Adds a project"
description: "Adds an project to a company"
operationId: storeProject
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved project object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/projects/{id}":
get:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Shows a project"
description: "Displays a project by id"
operationId: showProject
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Project Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the expense object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Updates a project"
description: "Handles the updating of a project by id"
operationId: updateProject
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Project Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the project object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Deletes a project"
description: "Handles the deletion of a project by id"
operationId: deleteProject
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Project Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/projects/{id}/edit":
get:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Shows a project for editting"
description: "Displays a project by id"
operationId: editProject
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Project Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the project object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/projects/create:
get:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank project object"
description: "Returns a blank object with default values"
operationId: getProjectsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank project object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/projects/bulk:
post:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of projects"
description: ""
operationId: bulkProjects
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Project User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/projects/{id}/upload":
put:
tags:
- projects
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a project"
description: "Handles the uploading of a document to a project"
operationId: uploadProject
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Project Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Project object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Project"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/purchase_orders:
get:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Gets a list of purchase orders"
description: "Lists purchase orders, search and filters allow fine grained lists to be generated.\n *\n * Query parameters can be added to performed more fine grained filtering of the purchase orders, these are handled by the PurchaseOrderFilters class which defines the methods available"
operationId: getPurchaseOrders
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of purchase orders"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- purhcase_orders
2023-02-18 04:21:42 +01:00
summary: "Adds a purchase order"
description: "Adds an purchase order to the system"
operationId: storePurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved purchase order object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/purchase_orders/create:
get:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank purchase order object"
description: "Returns a blank object with default values"
operationId: getPurchaseOrderCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank purchase order object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/purchase_orders/{id}":
get:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Shows an purcase orders"
description: "Displays an purchase order by id"
operationId: showPurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Purchase order Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the purchase order object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Deletes a purchase order"
description: "Handles the deletion of an purchase orders by id"
operationId: deletePurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The purhcase order Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/purchase_orders/{id}/edit":
get:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Shows an purchase order for editting"
description: "Displays an purchase order by id"
operationId: editPurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The purchase order Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the purchase order object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Invoice"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/purchase_order/{id}":
put:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Updates an purchase order"
description: "Handles the updating of an purchase order by id"
operationId: updatePurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The purchase order Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the purchase order object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/purchase_orders/bulk:
post:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of purchase_orders"
description: ""
operationId: bulkPurchaseOrderss
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Purchase Order IDS"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Bulk Action response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/purchase_orders/{id}/{action}":
get:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Performs a custom action on an purchase order"
description: "Performs a custom action on an purchase order.\n *\n * The current range of actions are as follows\n * - mark_paid\n * - download\n * - archive\n * - delete\n * - email"
operationId: actionPurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Purchase Order Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
2023-02-18 04:21:42 +01:00
- name: action
in: path
2023-02-18 04:21:42 +01:00
description: "The action string to be performed"
required: true
schema:
type: string
format: string
example: clone_to_quote
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the invoice object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Invoice"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/purchase_orders/{id}/upload":
put:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a purchase_orders"
description: "Handles the uploading of a document to a purchase_order"
operationId: uploadPurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Purchase Order Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Purchase Order object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/purchase_order/{invitation_key}/download":
get:
tags:
- purchase_orders
2023-02-18 04:21:42 +01:00
summary: "Download a specific purchase order by invitation key"
description: "Downloads a specific purchase order"
operationId: downloadPurchaseOrder
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: invitation_key
in: path
2023-02-18 04:21:42 +01:00
description: "The Purchase Order Invitation Key"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Purchase Order pdf"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/quotes:
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Gets a list of quotes"
description: "Lists quotes, search and filters allow fine grained lists to be generated.\n *\n * Query parameters can be added to performed more fine grained filtering of the quotes, these are handled by the QuoteFilters class which defines the methods available"
operationId: getQuotes
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of quotes"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Adds a Quote"
description: "Adds an Quote to the system"
operationId: storeQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/quotes/create:
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank Quote object"
description: "Returns a blank object with default values"
operationId: getQuotesCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/quotes/{id}":
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Shows an Quote"
description: "Displays an Quote by id"
operationId: showQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Updates an Quote"
description: "Handles the updating of an Quote by id"
operationId: updateQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Deletes a Quote"
description: "Handles the deletion of an Quote by id"
operationId: deleteQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/quotes/{id}/edit":
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Shows an Quote for editting"
description: "Displays an Quote by id"
operationId: editQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/quotes/bulk:
post:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of quotes"
description: ""
operationId: bulkQuotes
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Hashed ids"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Quote response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/quotes/{id}/{action}":
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Performs a custom action on an Quote"
description: "Performs a custom action on an Quote.\n\n The current range of actions are as follows\n - clone_to_quote\n - history\n - delivery_note\n - mark_paid\n - download\n - archive\n - delete\n - convert\n - convert_to_invoice\n - email"
operationId: actionQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
2023-02-18 04:21:42 +01:00
- name: action
in: path
2023-02-18 04:21:42 +01:00
description: "The action string to be performed"
required: true
schema:
type: string
format: string
example: clone_to_quote
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/quote/{invitation_key}/download":
get:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Download a specific quote by invitation key"
description: "Downloads a specific quote"
operationId: downloadQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: invitation_key
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Invitation Key"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the quote pdf"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/quotes/{id}/upload":
put:
tags:
- quotes
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a quote"
description: "Handles the uploading of a document to a quote"
operationId: uploadQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Quote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Quote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Quote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/recurring_expenses:
get:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Gets a list of recurring_expenses"
description: "Lists recurring_expenses, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the recurring_expenses, these are handled by the RecurringExpenseFilters class which defines the methods available"
operationId: getRecurringExpenses
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of recurring_expenses"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Adds a client"
description: "Adds an client to a company"
operationId: storeRecurringExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/recurring_expenses/{id}":
get:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Shows a client"
description: "Displays a client by id"
operationId: showRecurringExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringExpense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the recurring_expense object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Updates a client"
description: "Handles the updating of a client by id"
operationId: updateRecurringExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringExpense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Deletes a client"
description: "Handles the deletion of a client by id"
operationId: deleteRecurringExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringExpense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/recurring_expenses/{id}/edit":
get:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Shows a client for editting"
description: "Displays a client by id"
operationId: editRecurringExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringExpense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/recurring_expenses/create:
get:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank client object"
description: "Returns a blank object with default values"
operationId: getRecurringExpensesCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/recurring_expenses/bulk:
post:
tags:
- recurring_expenses
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of recurring_expenses"
description: ""
operationId: bulkRecurringExpenses
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The RecurringExpense User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/recurring_expenses/{id}/upload":
put:
tags:
- recurring_expense
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a recurring_expense"
description: "Handles the uploading of a document to a recurring_expense"
operationId: uploadRecurringExpense
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringExpense Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the RecurringExpense object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-19 05:28:38 +01:00
/api/v1/recurring_quotes:
get:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Gets a list of recurring_quotes"
description: "Lists recurring_quotes, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the recurring_quotes, these are handled by the RecurringQuoteFilters class which defines the methods available"
operationId: getRecurringQuotes
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of recurring_quotes"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Adds a RecurringQuote"
description: "Adds an RecurringQuote to the system"
operationId: storeRecurringQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved RecurringQuote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/recurring_quotes/create:
get:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank RecurringQuote object"
description: "Returns a blank object with default values"
operationId: getRecurringQuotesCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank RecurringQuote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/recurring_quotes/{id}":
get:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Shows an RecurringQuote"
description: "Displays an RecurringQuote by id"
operationId: showRecurringQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringQuote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the RecurringQuote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Updates an RecurringQuote"
description: "Handles the updating of an RecurringQuote by id"
operationId: updateRecurringQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringQuote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the RecurringQuote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Deletes a RecurringQuote"
description: "Handles the deletion of an RecurringQuote by id"
operationId: deleteRecurringQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringQuote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/recurring_quotes/{id}/edit":
get:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Shows an RecurringQuote for editting"
description: "Displays an RecurringQuote by id"
operationId: editRecurringQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringQuote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the RecurringQuote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/recurring_quotes/bulk:
post:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of recurring_quotes"
description: ""
operationId: bulkRecurringQuotes
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Hashed ids"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The RecurringQuote response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/recurring_quotes/{id}/{action}":
get:
tags:
- recurring_quotes
2023-02-18 04:21:42 +01:00
summary: "Performs a custom action on an RecurringQuote"
description: "Performs a custom action on an RecurringQuote.\n\n The current range of actions are as follows\n - clone_to_RecurringQuote\n - clone_to_quote\n - history\n - delivery_note\n - mark_paid\n - download\n - archive\n - delete\n - email"
operationId: actionRecurringQuote
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The RecurringQuote Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
2023-02-18 04:21:42 +01:00
- name: action
in: path
2023-02-18 04:21:42 +01:00
description: "The action string to be performed"
required: true
schema:
type: string
format: string
example: clone_to_quote
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the RecurringQuote object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/contacts:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Contact reports"
description: "Export contact reports"
operationId: getContactReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/clients:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Client reports"
description: "Export client reports"
operationId: getClientReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/credit:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Credit reports"
description: "Export credit reports"
operationId: getCreditReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/documents:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Document reports"
description: "Export document reports"
operationId: getDocumentReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/expense:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Expense reports"
description: "Export expense reports"
operationId: getExpenseReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/invoice_items:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Invoice item reports"
description: "Export invoice item reports"
operationId: getInvoiceItemReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/invoices:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Invoice reports"
description: "Export invoice reports"
operationId: getInvoiceReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/payments:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Payment reports"
description: "Export payment reports"
operationId: getPaymentReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/products:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Product reports"
description: "Export product reports"
operationId: getProductReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/product_sales:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Product Salesreports"
description: "Export product sales reports"
operationId: getProductSalesReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/profitloss:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Profit loss reports"
description: "Profit loss report"
operationId: getProfitLossReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/quote_items:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Quote item reports"
description: "Export Quote item reports"
operationId: getQuoteItemReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/quotes:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Quote reports"
description: "Export quote reports"
operationId: getQuoteReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/recurring_invoices:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Recurring Invoice reports"
description: "Export recurring invoice reports"
operationId: getRecurringInvoiceReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/reports/tasks:
post:
tags:
- reports
2023-02-18 04:21:42 +01:00
summary: "Task reports"
description: "Export task reports"
operationId: getTaskReport
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/GenericReportSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/self-update:
post:
tags:
- update
2023-02-18 04:21:42 +01:00
summary: "Performs a system update"
description: "Performs a system update"
operationId: selfUpdate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-API-PASSWORD"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Success/failure response"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/statics:
get:
tags:
- statics
2023-02-18 04:21:42 +01:00
summary: "Gets a list of statics"
description: "Lists all statics"
operationId: getStatics
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of static data"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/subscriptions:
get:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Gets a list of subscriptions"
description: "Lists subscriptions."
operationId: getSubscriptions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of subscriptions"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Adds a subscriptions"
description: "Adds an subscriptions to the system"
operationId: storeSubscription
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved subscriptions object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/subscriptions/create:
get:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank subscriptions object"
description: "Returns a blank object with default values"
operationId: getSubscriptionsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank subscriptions object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/subscriptions/{id}":
get:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Shows an subscriptions"
description: "Displays an subscriptions by id"
operationId: showSubscription
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Subscription Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Subscription object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Updates an subscriptions"
description: "Handles the updating of an subscriptions by id"
operationId: updateSubscription
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Subscription Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the subscriptions object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Deletes a subscriptions"
description: "Handles the deletion of an subscriptions by id"
operationId: deleteSubscription
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Subscription Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/subscriptions/{id}/edit":
get:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Shows an subscriptions for editting"
description: "Displays an subscriptions by id"
operationId: editSubscription
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Subscription Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the invoice object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/subscriptions/bulk:
post:
tags:
- subscriptions
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of subscriptions"
description: ""
operationId: bulkSubscriptions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Subscription response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/support/messages/send:
post:
tags:
- support
2023-02-18 04:21:42 +01:00
summary: "Sends a support message to Invoice Ninja team"
description: "Allows a user to send a support message to the Invoice Ninja Team"
operationId: supportMessage
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The message"
required: true
content:
application/json:
schema:
properties:
message:
2023-02-18 04:21:42 +01:00
description: "The support message"
type: string
type: string
responses:
200:
description: Success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Server response"
type: string
example: true
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/system_logs:
get:
tags:
- system_logs
2023-02-18 04:21:42 +01:00
summary: "Gets a list of system logs"
description: "Lists system logs, search and filters allow fine grained lists to be generated.\n *\n * Query parameters can be added to performed more fine grained filtering of the system logs, these are handled by the SystemLogFilters class which defines the methods available"
operationId: getSystemLogs
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of system logs"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/SystemLog"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/system_logs/{id}":
get:
tags:
- system_logs
2023-02-18 04:21:42 +01:00
summary: "Shows a system_logs"
description: "Displays a system_logs by id"
operationId: showSystemLogs
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The system_logs Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the system_logs object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/SystemLog"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tasks:
get:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Gets a list of tasks"
description: "Lists tasks, search and filters allow fine grained lists to be generated.\n *\n * Query parameters can be added to performed more fine grained filtering of the tasks, these are handled by the TaskFilters class which defines the methods available"
operationId: getTasks
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of tasks"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Adds a client"
description: "Adds an client to a company"
operationId: storeTask
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tasks/{id}":
get:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Shows a client"
description: "Displays a client by id"
operationId: showTask
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Task Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the task object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Updates a client"
description: "Handles the updating of a client by id"
operationId: updateTask
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Task Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Deletes a client"
description: "Handles the deletion of a client by id"
operationId: deleteTask
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Task Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tasks/{id}/edit":
get:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Shows a client for editting"
description: "Displays a client by id"
operationId: editTask
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Task Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tasks/create:
get:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank client object"
description: "Returns a blank object with default values"
operationId: getTasksCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tasks/bulk:
post:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of tasks"
description: ""
operationId: bulkTasks
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Task User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tasks/{id}/upload":
put:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a task"
description: "Handles the uploading of a document to a task"
operationId: uploadTask
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Task Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Task object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Task"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tasks/stort:
post:
tags:
- tasks
2023-02-18 04:21:42 +01:00
summary: "Sort tasks on KanBan"
description: "Sorts tasks after drag and drop on the KanBan."
operationId: sortTasks
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns an Ok, 200 HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/task_schedulers/:
get:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Task Scheduler Index"
description: "Get all schedulers with associated jobs"
operationId: getTaskSchedulers
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Create task scheduler with job "
description: "Create task scheduler with a job (action(job) request should be sent via request also. Example: We want client report to be job which will be run\n * multiple times, we should send the same parameters in the request as we would send if we wanted to get report, see example"
operationId: createTaskScheduler
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-SECRET"
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskSchedulerSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 09:58:40 +01:00
/api/v1/task_schedulers/create:
get:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank scheduler object"
description: "Returns a blank object with default values"
operationId: getTaskScheduler
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank scheduler object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskSchedulerSchema"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/task_schedulers/{id}":
get:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Show given scheduler"
description: "Get scheduler with associated job"
operationId: showTaskScheduler
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Scheduler Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Update task scheduler "
description: "Update task scheduler"
operationId: updateTaskScheduler
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-SECRET"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Scheduler Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
requestBody:
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskSchedulerSchema"
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Destroy Task Scheduler"
description: "Destroy task scheduler and its associated job"
operationId: destroyTaskScheduler
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Scheduler Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
description: success
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/task_schedulers/bulk:
post:
tags:
- task_schedulers
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of task_schedulers"
description: ""
operationId: bulkTaskSchedulerActions
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "array of ids"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The TaskSchedule response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskSchedulerSchema"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/task_statuses:
get:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Gets a list of task statuses"
description: "Lists task statuses"
operationId: getTaskStatuses
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of task statuses"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Adds a TaskStatus"
description: "Adds a TaskStatusto the system"
operationId: storeTaskStatus
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The task_status request"
required: true
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved TaskStatus object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/task_statuses/create:
get:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank TaskStatus object"
description: "Returns a blank object with default values"
operationId: getTaskStatussCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank TaskStatus object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/task_statuses/{id}":
get:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Shows a TaskStatus Term"
description: "Displays an TaskStatusby id"
operationId: showTaskStatus
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaskStatusHashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the TaskStatusobject"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Updates a TaskStatus Term"
description: "Handles the updating of an TaskStatus Termby id"
operationId: updateTaskStatus
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaskStatusHashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the TaskStatusobject"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- task_statuss
2023-02-18 04:21:42 +01:00
summary: "Deletes a TaskStatus Term"
description: "Handles the deletion of an TaskStatus by id"
operationId: deleteTaskStatus
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaskStatusHashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/task_statuses/{id}/edit":
get:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Shows an TaskStatusfor editting"
description: "Displays an TaskStatusby id"
operationId: editTaskStatuss
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaskStatusHashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the TaskStatus object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/task_statuses/bulk:
post:
tags:
- task_status
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of task statuses"
description: ""
operationId: bulkTaskStatuss
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "TaskStatus Ter,s"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The TaskStatus Terms response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tax_rates:
get:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Gets a list of tax_rates"
description: "Lists tax rates"
operationId: getTaxRates
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of tax_rates"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tax_rates/create:
get:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank Tax Rate object"
description: "Returns a blank object with default values"
operationId: getTaxRateCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank Tax Rate object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tax_rates/{id}":
get:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Shows a Tax Rate"
description: "Displays an TaxRate by id"
operationId: showTaxRate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaxRate Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Tax Rate object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Updates a tax rate"
description: "Handles the updating of a tax rate by id"
operationId: updateTaxRate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaxRate Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the TaxRate object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Deletes a TaxRate"
description: "Handles the deletion of an TaxRate by id"
operationId: deleteTaxRate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaxRate Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tax_rates/{id}/edit":
get:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Shows a Tax Rate for editting"
description: "Displays a Tax Rate by id"
operationId: editTaxRate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The TaxRate Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Tax Rate object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tax_rates/bulk:
post:
tags:
- tax_rates
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of TaxRates"
description: ""
operationId: bulkTaxRates
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Tax Rates"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The TaxRate List response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/templates:
post:
tags:
- templates
2023-02-18 04:21:42 +01:00
summary: "Returns a entity template with the template variables replaced with the Entities"
description: "Returns a entity template with the template variables replaced with the Entities"
operationId: getShowTemplate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
requestBody:
2023-02-18 04:21:42 +01:00
description: "The template subject and body"
required: true
content:
application/json:
schema:
properties:
subject:
2023-02-18 04:21:42 +01:00
description: "The email template subject"
type: string
body:
2023-02-18 04:21:42 +01:00
description: "The email template body"
type: string
type: object
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The template response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Template"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tokens:
get:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Gets a list of company tokens"
description: "Lists company tokens.\n *\n * Query parameters can be added to performed more fine grained filtering of the tokens, these are handled by the TokenFilters class which defines the methods available"
operationId: getTokens
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of tokens"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Adds a token"
description: "Adds an token to a company"
operationId: storeToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved token object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tokens/{id}":
get:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Shows a token"
description: "Displays a token by id"
operationId: showToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Token Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the token object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Updates a token"
description: "Handles the updating of a token by id"
operationId: updateToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Token Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the token object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Deletes a token"
description: "Handles the deletion of a token by id"
operationId: deleteToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Token Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/tokens/{id}/edit":
get:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Shows a token for editting"
description: "Displays a token by id"
operationId: editToken
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Token Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the token object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tokens/create:
get:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank token object"
description: "Returns a blank object with default values"
operationId: getTokensCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank token object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/tokens/bulk:
post:
tags:
- tokens
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of tokens"
description: ""
operationId: bulkTokens
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Token ids"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Token response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/users:
get:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Gets a list of users"
description: "Lists users, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the users, these are handled by the UserFilters class which defines the methods available"
operationId: getUsers
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of users"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Adds a User"
description: "Adds an User to the system"
operationId: storeUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved User object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/users/create:
get:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank User object"
description: "Returns a blank object with default values"
operationId: getUsersCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank User object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/users/{id}":
get:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Shows an User"
description: "Displays an User by id"
operationId: showUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The User Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the User object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Updates an User"
description: "Handles the updating of an User by id"
operationId: updateUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The User Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the User object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Deletes a User"
description: "Handles the deletion of an User by id"
operationId: deleteUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: token_name
in: query
2023-02-18 04:21:42 +01:00
description: "Customized name for the Users API Token"
required: false
schema:
type: string
format: string
2023-02-18 04:21:42 +01:00
example: "iOS Device 11 iPad"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The User Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/users/{id}/edit":
get:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Shows an User for editting"
description: "Displays an User by id"
operationId: editUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The User Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the User object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/users/bulk:
post:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of users"
description: ""
operationId: bulkUsers
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "Hashed ids"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/users/{user}/detach_from_company":
delete:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Detach an existing user to a company"
description: "Detach an existing user from a company"
operationId: detachUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: user
in: path
2023-02-18 04:21:42 +01:00
description: "The user hashed_id"
required: true
schema:
type: string
format: string
example: FD767dfd7
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Success response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/users/{user}/invite":
post:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Reconfirm an existing user to a company"
description: "Reconfirm an existing user from a company"
operationId: inviteUser
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: user
in: path
2023-02-18 04:21:42 +01:00
description: "The user hashed_id"
required: true
schema:
type: string
format: string
example: FD767dfd7
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Success response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/users/{user}/reconfirm":
post:
tags:
- users
2023-02-18 04:21:42 +01:00
summary: "Reconfirm an existing user to a company"
description: "Reconfirm an existing user from a company"
operationId: inviteUserReconfirm
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: user
in: path
2023-02-18 04:21:42 +01:00
description: "The user hashed_id"
required: true
schema:
type: string
format: string
example: FD767dfd7
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Success response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/vendors:
get:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Gets a list of vendors"
description: "Lists vendors, search and filters allow fine grained lists to be generated.\n\n Query parameters can be added to performed more fine grained filtering of the vendors, these are handled by the VendorFilters class which defines the methods available"
operationId: getVendors
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of vendors"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Adds a client"
description: "Adds an client to a company"
operationId: storeVendor
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/vendors/{id}":
get:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Shows a client"
description: "Displays a client by id"
operationId: showVendor
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Vendor Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the vendor object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Updates a client"
description: "Handles the updating of a client by id"
operationId: updateVendor
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Vendor Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Deletes a client"
description: "Handles the deletion of a client by id"
operationId: deleteVendor
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Vendor Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/vendors/{id}/edit":
get:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Shows a client for editting"
description: "Displays a client by id"
operationId: editVendor
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Vendor Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/vendors/create:
get:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank client object"
description: "Returns a blank object with default values"
operationId: getVendorsCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank client object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/vendors/bulk:
post:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of vendors"
description: ""
operationId: bulkVendors
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Vendor User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/vendors/{id}/upload":
put:
tags:
- vendors
2023-02-18 04:21:42 +01:00
summary: "Uploads a document to a vendor"
description: "Handles the uploading of a document to a vendor"
operationId: uploadVendor
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Vendor Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Vendor object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Vendor"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/webcron:
get:
tags:
- webcron
2023-02-18 04:21:42 +01:00
summary: "Executes the task scheduler via a webcron service"
description: "Executes the task scheduler via a webcron service"
operationId: webcron
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-Requested-With"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Success response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/webhooks:
get:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Gets a list of Webhooks"
description: "Lists Webhooks, search and filters allow fine grained lists to be generated.\n *\n * Query parameters can be added to performed more fine grained filtering of the Webhooks, these are handled by the WebhookFilters class which defines the methods available"
operationId: getWebhooks
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- $ref: "#/components/parameters/index"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A list of Webhooks"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
post:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Adds a Webhook"
description: "Adds an Webhook to a company"
operationId: storeWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the saved Webhook object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/webhooks/{id}":
get:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Shows a Webhook"
description: "Displays a Webhook by id"
operationId: showWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Webhook Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Webhook object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
put:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Updates a Webhook"
description: "Handles the updating of a Webhook by id"
operationId: updateWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Webhook Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Webhook object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
delete:
tags:
- Webhooks
2023-02-18 04:21:42 +01:00
summary: "Deletes a Webhook"
description: "Handles the deletion of a Webhook by id"
operationId: deleteWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Webhook Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns a HTTP status"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
2023-02-18 04:21:42 +01:00
"/api/v1/webhooks/{id}/edit":
get:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Shows a Webhook for editting"
description: "Displays a Webhook by id"
operationId: editWebhook
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
- name: id
in: path
2023-02-18 04:21:42 +01:00
description: "The Webhook Hashed ID"
required: true
schema:
type: string
format: string
example: D2J234DFA
responses:
200:
2023-02-18 04:21:42 +01:00
description: "Returns the Webhook object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/webhooks/create:
get:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Gets a new blank Webhook object"
description: "Returns a blank object with default values"
operationId: getWebhooksCreate
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/include"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "A blank Webhook object"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"
/api/v1/webhooks/bulk:
post:
tags:
- webhooks
2023-02-18 04:21:42 +01:00
summary: "Performs bulk actions on an array of Webhooks"
description: ""
operationId: bulkWebhooks
parameters:
2023-02-18 04:21:42 +01:00
- $ref: "#/components/parameters/X-API-TOKEN"
- $ref: "#/components/parameters/X-Requested-With"
- $ref: "#/components/parameters/index"
requestBody:
2023-02-18 04:21:42 +01:00
description: "User credentials"
required: true
content:
application/json:
schema:
type: array
items:
2023-02-18 04:21:42 +01:00
description: "Array of hashed IDs to be bulk 'actioned"
type: integer
2023-02-18 04:21:42 +01:00
example: "[0,1,2,3]"
responses:
200:
2023-02-18 04:21:42 +01:00
description: "The Webhook User response"
headers:
X-MINIMUM-CLIENT-VERSION:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit:
2023-02-18 04:21:42 +01:00
$ref: "#/components/headers/X-RateLimit-Limit"
content:
application/json:
schema:
2023-02-18 04:21:42 +01:00
$ref: "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401:
$ref: "#/components/responses/401"
403:
$ref: "#/components/responses/403"
422:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/422"
default:
2023-02-18 05:17:16 +01:00
$ref: "#/components/responses/default"