2023-02-11 04:54:54 +01:00
paths :
/api/v1/activities :
get :
tags :
2024-02-09 14:02:57 +01:00
- activities
summary : "Returns a list of activities"
2023-02-18 04:21:42 +01:00
description : "Lists all activities related to this company"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-07-08 12:16:09 +02:00
description : "Returns the list of activities"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 05:17:16 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 05:17:16 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 05:17:16 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Activity'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2024-02-09 14:02:57 +01:00
"/api/v1/activities/download_entity/{activity_id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2024-02-09 14:02:57 +01:00
- activities
2023-02-18 04:21:42 +01:00
summary : "Returns a PDF for the given activity"
description : "Returns a PDF for the given activity"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Activity Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "PDF File"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
/api/v1/login :
post :
tags :
- login
2023-02-18 04:21:42 +01:00
summary : "Attempts authentication"
2024-03-09 07:57:16 +01:00
description : |
After authenticating with the API, the returned object is a CompanyUser object which is a bridge linking the user to the company.
The company user object itself contains the users permissions (admin/owner or fine grained permissions) You will most likely want to
also include in the response of this object both the company and the user object, this can be done by using the include parameter.
/api/v1/login?include=company,user
2023-02-11 04:54:54 +01:00
operationId : postLogin
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "User credentials"
2023-02-11 04:54:54 +01:00
required : true
content :
application/json :
schema :
properties :
email :
2023-02-18 04:21:42 +01:00
description : "The users email address."
2023-02-11 04:54:54 +01:00
type : string
2023-02-18 04:21:42 +01:00
example : "demo@invoiceninja.com"
2023-02-11 04:54:54 +01:00
password :
2023-02-18 04:21:42 +01:00
description : "The user password. Must meet minimum criteria ~ > 6 characters"
2023-02-11 04:54:54 +01:00
type : string
2023-02-18 04:21:42 +01:00
example : "Password0"
2024-03-09 07:57:16 +01:00
one_time_password :
description : "The one time password if 2FA is enabled"
type : string
example : "123456"
2024-03-09 08:09:43 +01:00
required :
- email
- password
2023-02-11 04:54:54 +01:00
type : object
responses :
200 :
2023-02-18 05:17:16 +01:00
description : "Returns the company user object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 05:17:16 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 05:17:16 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 05:17:16 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2024-03-09 07:57:16 +01:00
$ref : "#/components/schemas/CompanyUser"
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"
2024-03-09 07:57:16 +01:00
429 :
$ref : "#/components/responses/429"
2023-04-29 16:34:08 +02:00
5XX :
2024-02-09 14:02:57 +01:00
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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
2024-03-09 08:09:43 +01:00
This endpoint can be used if you only need to access the most recent data from a certain point in time. For example, if you only want to retrieve The
most recent data from the last time you accessed the system, you would pass the query parameter ?updated_at=1676173763. (unix timestamp)
2024-02-09 14:02:57 +01:00
operationId : refresh
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Company User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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."
2023-02-11 04:54:54 +01:00
operationId : yodleeRefreshWebhook
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : ""
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : query
2023-02-18 04:21:42 +01:00
description : "The number of bank integrations to return"
2023-02-11 04:54:54 +01:00
required : false
schema :
type : number
format : integer
2023-02-18 04:21:42 +01:00
example : "50"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of bank integrations"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/BankIntegration'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved bank_integration object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/bank_integrations/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
- bank_integrations
2023-02-18 04:21:42 +01:00
summary : "Shows a bank_integration"
description : "Displays a bank_integration by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankIntegration Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankIntegration Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankIntegration Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/bank_integrations/{id}/edit" :
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankIntegration Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A blank bank_integration object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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 : ""
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "Action paramters"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Bulk Action response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved bank_integration object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the bank_integration object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Retrieve transactions for a account"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : query
2023-02-18 04:21:42 +01:00
description : "The number of bank integrations to return"
2023-02-11 04:54:54 +01:00
required : false
schema :
type : number
format : integer
2023-02-18 04:21:42 +01:00
example : "50"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of bank integrations"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/BankTransaction'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved bank_transaction object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/bank_transactions/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
- bank_transactions
2023-02-18 04:21:42 +01:00
summary : "Shows a bank_transaction"
description : "Displays a bank_transaction by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankTransaction Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankTransaction Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankTransaction Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +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/bank_transactions/{id}/edit" :
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The BankTransaction Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A blank bank_transaction object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/api/v1/bank_transations/bulk :
post :
tags :
- bank_transactions
2024-08-03 01:36:46 +02:00
summary : "Bulk actions"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "Action paramters"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Bulk Action response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/api/v1/bank_transations/match :
post :
tags :
- bank_transactions
2024-08-03 01:36:46 +02:00
summary : "Match transactions"
description : |
Matching invoices or a payment to a bank transactions.
The API expects the id of the transaction along with either a comma separated list of invoice ids OR the payment id to associate the transaction to.
Example for matching a transaction to two invoices :
{"transactions" : [ {"id" : "olejRl5ejN" , "invoice_ids" : "JxboYBLegw,JxboYBLeXX" }] }
Example for matching a transaction and a paymente :
{"transactions" : [ {"id" : "olejRl5ejN" , "payment_id" : "JxboYBLeXf" }] }
Matching expenses.
You can match an existing expense within Invoice Ninja - or - create a new expense using the following :
{"transactions" : [ {"id" : "open5pld7A" , "vendor_id" : "gl9avJnaG1" , "ninja_category_id" : "" }] }
To match to an existing expense :
{"transactions" : [ {"id" : "Jxbo2qKagw" , "expense_id" : "7N1aMM1aWm" }] }
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "Action paramters"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Bulk Action response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : query
2023-02-18 04:21:42 +01:00
description : "The number of bank integrations to return"
2023-02-11 04:54:54 +01:00
required : false
schema :
type : number
format : integer
2023-02-18 04:21:42 +01:00
example : "50"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of bank integrations"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/BankTransactionRule'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved bank_transaction rule object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/bank_transaction_rules/{id}" :
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Bank Transaction RuleHashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Bank Transaction Rule Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Bank Transaction Rule Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/bank_transaction_rules/{id}/edit" :
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Bank Transaction Rule Hashed ID"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A blank bank_transaction rule object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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 : ""
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "Action paramters"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Bulk Action response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/api/v1/charts/totals :
post :
tags :
- charts
2023-02-18 04:21:42 +01:00
summary : "Get chart data"
description : "Get chart data"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : query
2023-02-18 04:21:42 +01:00
description : "The chart"
2023-02-11 04:54:54 +01:00
required : false
schema :
type : number
format : integer
2023-02-18 04:21:42 +01:00
example : "50"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "json dataset of chart data"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-12 08:58:00 +01:00
2023-02-11 04:54:54 +01:00
/api/v1/client_gateway_tokens :
get :
tags :
- client_gateway_tokens
2024-01-24 23:03:10 +01:00
summary : "List of client payment tokens"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of client_gateway_tokens"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/ClientGatewayToken'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
- client_gateway_tokens
2024-01-24 23:03:10 +01:00
summary : "Adds a client payment token"
description : "Adds a client payment token to a company"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2024-01-24 23:03:10 +01:00
description : "Returns the saved client payment token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/client_gateway_tokens/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
- client_gateway_tokens
2024-01-24 23:03:10 +01:00
summary : "Shows a client payment token"
description : "Displays a client payment token by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The ClientGatewayToken Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2024-01-24 23:03:10 +01:00
description : "Returns the client payment token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
- client_gateway_tokens
2024-01-24 23:03:10 +01:00
summary : "Updates a client payment token"
description : "Handles the updating of a client payment token by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The ClientGatewayToken Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2024-01-24 23:03:10 +01:00
description : "Returns the client payment token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
- client_gateway_tokens
2023-02-18 04:21:42 +01:00
summary : "Deletes a client"
2024-01-24 23:03:10 +01:00
description : "Handles the deletion of a client payment token by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The ClientGatewayToken Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/client_gateway_tokens/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
- client_gateway_tokens
2024-01-24 23:03:10 +01:00
summary : "Shows a client payment token for editting"
2023-02-18 04:21:42 +01:00
description : "Displays a client by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The ClientGatewayToken Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2024-01-24 23:03:10 +01:00
description : "Returns the client payment token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/api/v1/client_gateway_tokens/create :
get :
tags :
- client_gateway_tokens
2024-01-24 23:03:10 +01:00
summary : "Gets a new blank client payment token object"
2023-02-18 04:21:42 +01:00
description : "Returns a blank object with default values"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2024-01-24 23:03:10 +01:00
description : "A blank client payment token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-18 04:21:42 +01:00
2023-02-11 04:54:54 +01:00
/api/v1/companies :
get :
tags :
- companies
2023-02-18 04:21:42 +01:00
summary : "Gets a list of companies"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of companies"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Company'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
- companies
2023-02-18 04:21:42 +01:00
summary : "Adds a company"
description : "Adds an company to the system"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved company object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A blank company object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/companies/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
- companies
2023-02-18 04:21:42 +01:00
summary : "Shows an company"
description : "Displays an company by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the company object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
- companies
2023-02-18 04:21:42 +01:00
summary : "Updates an company"
description : "Handles the updating of an company by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the company object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
- companies
2023-02-18 04:21:42 +01:00
summary : "Deletes a company"
description : "Handles the deletion of an company by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/companies/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
- companies
2023-02-18 04:21:42 +01:00
summary : "Shows an company for editting"
description : "Displays an company by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the company object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/companies/{id}/upload" :
2023-11-23 02:08:50 +01:00
post :
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-11-23 02:08:50 +01:00
requestBody :
description : "File Upload Body"
required : true
content :
multipart/form-data :
schema :
type : object
properties :
_method :
type : string
example : PUT
documents :
type : array
items :
description : "Array of binary documents for upload"
type : string
format : binary
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the client object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +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/companies/{company}/default" :
2023-02-11 04:54:54 +01:00
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."
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the company object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-18 04:21:42 +01:00
$ref : "#/components/schemas/Company"
2024-06-08 01:13:47 +02:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
422 :
$ref : "#/components/responses/422"
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
default :
$ref : "#/components/responses/default"
"/api/v1/companies/current" :
post :
tags :
- companies
summary : "Returns the current comapny"
description : "Returns the current company based on the API token passed in"
operationId : showCurrentCompany
parameters :
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
responses :
200 :
description : "Returns the company object"
headers :
X-MINIMUM-CLIENT-VERSION :
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining :
$ref : "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit :
$ref : "#/components/headers/X-RateLimit-Limit"
content :
application/json :
schema :
$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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/api/v1/company_gateways :
get :
tags :
- company_gateways
2023-02-18 04:21:42 +01:00
summary : "Gets a list of company_gateways"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of company_gateways"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/CompanyGateway'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
- company_gateways
2023-02-18 04:21:42 +01:00
summary : "Adds a CompanyGateway"
description : "Adds an CompanyGateway to the system"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved CompanyGateway object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2024-03-09 08:09:43 +01:00
429 :
$ref : "#/components/responses/429"
5XX :
description : 'Server error'
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A blank CompanyGateway object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +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/company_gateways/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
- company_gateways
2023-02-18 04:21:42 +01:00
summary : "Shows an CompanyGateway"
description : "Displays an CompanyGateway by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The CompanyGateway Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the CompanyGateway object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The CompanyGateway Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the CompanyGateway object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The CompanyGateway Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +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/company_gateways/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
- company_gateways
2023-02-18 04:21:42 +01:00
summary : "Shows an CompanyGateway for editting"
description : "Displays an CompanyGateway by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The CompanyGateway Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the CompanyGateway object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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 : ""
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "Array of company gateway IDs"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Company Gateways response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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."
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of company_ledger"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/CompanyLedger'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
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"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
operationId : updateCompanyUser
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Company User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Company User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/designs :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Gets a list of designs"
description : "Lists designs"
operationId : getDesigns
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of designs"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Design'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Adds a design"
description : "Adds an design to a company"
operationId : storeDesign
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved design object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/designs/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Shows a design"
description : "Displays a design by id"
operationId : showDesign
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The Design Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Updates a design"
description : "Handles the updating of a design by id"
operationId : updateDesign
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Design Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the design object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Deletes a design"
description : "Handles the deletion of a design by id"
operationId : deleteDesign
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Design Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/designs/{id}/edit" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Shows a design for editting"
description : "Displays a design by id"
operationId : editDesign
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Design Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the design object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/designs/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Gets a new blank design object"
description : "Returns a blank object with default values"
operationId : getDesignsCreate
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank design object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/designs/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- designs
summary : "Performs bulk actions on an array of designs"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-19 06:16:55 +01:00
operationId : bulkDesigns
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "User credentials"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Design User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/documents :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- documents
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
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of documents"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Document'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/emails :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- emails
summary : "Sends an email for an entity"
description : "Sends an email for an entity"
operationId : sendEmailTemplate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
2023-10-01 02:06:40 +02:00
description : "Required fields to send an email"
2023-02-19 06:16:55 +01:00
required : true
content :
application/json :
schema :
2023-10-01 02:06:40 +02:00
required :
- entity
- entity_id
- template
2023-02-19 06:16:55 +01:00
properties :
subject :
description : "The email subject"
type : string
body :
description : "The email body"
type : string
entity :
description : "The entity name"
type : string
entity_id :
description : "The entity_id"
type : string
2023-10-01 02:06:40 +02:00
cc_email :
description : "The email address of a user to be CC'd on the email"
type : string
2023-02-19 06:16:55 +01:00
template :
description : "The template required"
type : string
2023-10-01 02:06:40 +02:00
example : invoice,quote,credit,purchase_order,payment,payment_partial,reminder1,reminder2,reminder3,reminder_endless
2023-02-19 06:16:55 +01:00
type : object
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Template"
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/expense_categories :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Gets a list of expense_categories"
description : "Lists tax rates"
operationId : getExpenseCategorys
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of expense_categories"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/ExpenseCategory'
meta :
type : object
$ref : '#/components/schemas/Meta'
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Adds a expense category"
description : "Adds an expense category to the system"
operationId : storeExpenseCategory
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved invoice object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/ExpenseCategory"
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/expense_categories/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Gets a new blank Expens Category object"
description : "Returns a blank object with default values"
operationId : getExpenseCategoryCreate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank Expens Category object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/ExpenseCategory"
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/expense_categories/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Shows a Expens Category"
description : "Displays an ExpenseCategory by id"
operationId : showExpenseCategory
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The ExpenseCategory Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Expens Category object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/ExpenseCategory"
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Updates a tax rate"
description : "Handles the updating of a tax rate by id"
operationId : updateExpenseCategory
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The ExpenseCategory Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the ExpenseCategory object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/ExpenseCategory"
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Deletes a ExpenseCategory"
description : "Handles the deletion of an ExpenseCategory by id"
operationId : deleteExpenseCategory
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The ExpenseCategory Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/expense_categories/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Shows a Expens Category for editting"
description : "Displays a Expens Category by id"
operationId : editExpenseCategory
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The ExpenseCategory Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Expens Category object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/ExpenseCategory"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/expense_categories/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- expense_categories
summary : "Performs bulk actions on an array of ExpenseCategorys"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-19 06:16:55 +01:00
operationId : bulkExpenseCategorys
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-19 06:16:55 +01:00
description : "Expens Categorys"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The ExpenseCategory List response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/expenses :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- expenses
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
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of expenses"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Expense'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- expenses
2023-10-30 23:17:43 +01:00
summary : "Adds an expense"
description : "Adds a expense to a company"
2023-02-19 06:16:55 +01:00
operationId : storeExpense
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "Returns the saved expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/expenses/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- expenses
2023-10-30 23:17:43 +01:00
summary : "Shows a expense"
description : "Displays a expense by id"
2023-02-19 06:16:55 +01:00
operationId : showExpense
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
- name : id
in : path
description : "The Expense Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expenses
2023-10-30 23:17:43 +01:00
summary : "Updates a expense"
description : "Handles the updating of a expense by id"
2023-02-19 06:16:55 +01:00
operationId : updateExpense
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The Expense Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "Returns the expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expenses
2023-10-30 23:17:43 +01:00
summary : "Deletes a expense"
description : "Handles the deletion of a expense by id"
2023-02-19 06:16:55 +01:00
operationId : deleteExpense
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
- name : id
in : path
description : "The Expense Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/expenses/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- expenses
2023-10-30 23:17:43 +01:00
summary : "Shows a expense for editing"
2023-02-19 06:16:55 +01:00
description : "Displays a client by id"
operationId : editExpense
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Expense Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "Returns the expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/expenses/create :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expenses
2023-10-30 23:17:43 +01:00
summary : "Gets a new blank expense object"
2023-02-19 06:16:55 +01:00
description : "Returns a blank object with default values"
operationId : getExpensesCreate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "A blank expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/expenses/bulk :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expenses
summary : "Performs bulk actions on an array of expenses"
description : ""
operationId : bulkExpenses
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "User credentials"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Expense User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/expenses/{id}/upload" :
2023-11-23 02:08:50 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- expense
summary : "Uploads a document to a expense"
description : "Handles the uploading of a document to a expense"
operationId : uploadExpense
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Expense Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-11-23 02:08:50 +01:00
requestBody :
description : "File Upload Body"
required : true
content :
multipart/form-data :
schema :
type : object
properties :
_method :
type : string
example : PUT
documents :
type : array
items :
description : "Array of binary documents for upload"
type : string
format : binary
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Expense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/export :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- export
summary : "Export data from the system"
description : "Export data from the system"
operationId : getExport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/group_settings :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- group_settings
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
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of group_settings"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/GroupSetting'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Adds a GroupSetting"
description : "Adds an GroupSetting to the system"
operationId : storeGroupSetting
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved GroupSetting object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/group_settings/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Gets a new blank GroupSetting object"
description : "Returns a blank object with default values"
operationId : getGroupSettingsCreate
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank GroupSetting object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/group_settings/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Shows an GroupSetting"
description : "Displays an GroupSetting by id"
operationId : showGroupSetting
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The GroupSetting Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the GroupSetting object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Updates an GroupSetting"
description : "Handles the updating of an GroupSetting by id"
operationId : updateGroupSetting
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The GroupSetting Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the GroupSetting object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Deletes a GroupSetting"
description : "Handles the deletion of an GroupSetting by id"
operationId : deleteGroupSetting
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The GroupSetting Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/group_settings/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Shows an GroupSetting for editting"
description : "Displays an GroupSetting by id"
operationId : editGroupSetting
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The GroupSetting Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the GroupSetting object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GroupSetting"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/group_settings/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Performs bulk actions on an array of group_settings"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-19 06:16:55 +01:00
operationId : bulkGroupSettings
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-19 06:16:55 +01:00
description : "An array of group_settings ids"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Bulk Action response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/group_settings/{id}/upload" :
2023-11-23 02:08:50 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- group_settings
summary : "Uploads a document to a group setting"
description : "Handles the uploading of a document to a group setting"
operationId : uploadGroupSetting
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Group Setting Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-11-23 02:08:50 +01:00
requestBody :
description : "File Upload Body"
required : true
content :
multipart/form-data :
schema :
type : object
properties :
_method :
type : string
example : PUT
documents :
type : array
items :
description : "Array of binary documents for upload"
type : string
format : binary
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Group Setting object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Invoice"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/preimport :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- imports
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
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
requestBody :
description : "The CSV file"
required : true
content :
multipart/form-data :
schema :
type : string
format : binary
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a reference to the file"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/import_json :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- import
summary : "Import data from the system"
description : "Import data from the system"
operationId : getImportJson
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/apple/confirm_purchase :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- postmark
summary : "Processing webhooks from Apple for in app purchases"
description : "Adds an credit to the system"
operationId : confirmApplePurchase
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved credit object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/apple/process_webhook :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- postmark
summary : "Processing event webhooks from Apple for in purchase / subscription status update"
description : "Adds an credit to the system"
operationId : processAppleWebhook
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved credit object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/claim_license :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- claim_license
summary : "Attempts to claim a white label license"
description : "Attempts to claim a white label license"
operationId : getClaimLicense
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- name : license_key
in : query
description : "The license hash"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
2023-02-19 06:16:55 +01:00
example : d87sh-s755s-s7d76-sdsd8
- name : product_id
in : query
description : "The ID of the product purchased."
required : true
schema :
type : string
format : string
example : "1"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : Success!
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/logout :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- logout
2023-07-08 12:16:09 +02:00
summary : "Logs the user out of their current session"
description : "Logs the user out of their current session"
2023-02-19 06:16:55 +01:00
operationId : getLogout
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
responses :
200 :
description : "Success message"
headers :
X-MINIMUM-CLIENT-VERSION :
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining :
$ref : "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit :
$ref : "#/components/headers/X-RateLimit-Limit"
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
422 :
$ref : "#/components/responses/422"
default :
$ref : "#/components/responses/default"
"/api/v1/migration/purge/{company}" :
post :
tags :
- migration
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 :
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : company
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : Success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/migration/purge_save_settings/{company}" :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- migration
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
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- name : company
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Company Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : Success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/migration/start :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- migration
summary : "Starts the migration from previous version of Invoice Ninja"
description : "Starts the migration from previous version of Invoice Ninja"
operationId : postStartMigration
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-PASSWORD"
- name : migration
in : query
description : "The migraton file"
2023-02-11 04:54:54 +01:00
required : true
schema :
2023-02-19 06:16:55 +01:00
type : object
format : file
example : migration.zip
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : Success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/one_time_token :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- one_time_token
summary : "Attempts to create a one time token"
description : "Attempts to create a one time token"
operationId : oneTimeToken
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Company User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/payment_terms :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Gets a list of payment terms"
description : "Lists payment terms"
operationId : getPaymentTerms
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of payment terms"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/PaymentTerm'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Adds a Payment"
description : "Adds a Payment Term to the system"
operationId : storePaymentTerm
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-19 06:16:55 +01:00
description : "The payment_terms request"
2023-02-11 04:54:54 +01:00
required : true
content :
2023-02-19 06:16:55 +01:00
application/json :
2023-02-11 04:54:54 +01:00
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/PaymentTerm"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved Payment object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/payment_terms/create :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Gets a new blank PaymentTerm object"
description : "Returns a blank object with default values"
operationId : getPaymentTermsCreate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank PaymentTerm object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/Payment"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/payment_terms/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Shows a Payment Term"
description : "Displays an Payment Term by id"
operationId : showPaymentTerm
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The Payment Term Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Payment Term object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Updates a Payment Term"
description : "Handles the updating of an Payment Termby id"
operationId : updatePaymentTerm
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The Payment Term Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Payment Term object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- payment_termss
summary : "Deletes a Payment Term"
description : "Handles the deletion of an PaymentTerm by id"
operationId : deletePaymentTerm
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
- name : id
in : path
description : "The Payment Term Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
2023-02-19 06:16:55 +01:00
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/payment_terms/{id}/edit" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Shows an Payment Term for editting"
description : "Displays an Payment Term by id"
operationId : editPaymentTerms
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The Payment Term Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Payment object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/payment_terms/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- payment_terms
summary : "Performs bulk actions on an array of payment terms"
description : ""
operationId : bulkPaymentTerms
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "Payment Ter,s"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Payment Terms response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/PaymentTerm"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/ping :
get :
tags :
- ping
summary : "Attempts to ping the API"
description : "Attempts to ping the API"
operationId : getPing
parameters :
- $ref : "#/components/parameters/X-Requested-With"
responses :
200 :
description : "The company and user name"
headers :
X-MINIMUM-CLIENT-VERSION :
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining :
$ref : "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit :
$ref : "#/components/headers/X-RateLimit-Limit"
/api/v1/health_check :
get :
tags :
- health_check
summary : "Attempts to get a health check from the API"
description : "Attempts to get a health check from the API"
operationId : getHealthCheck
parameters :
- $ref : "#/components/parameters/X-Requested-With"
responses :
200 :
description : "A key/value map of the system health"
headers :
X-MINIMUM-CLIENT-VERSION :
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining :
$ref : "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit :
$ref : "#/components/headers/X-RateLimit-Limit"
/api/v1/postmark_webhook :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- postmark
summary : "Processing webhooks from PostMark"
description : "Adds an credit to the system"
operationId : postmarkWebhook
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved credit object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/Credit"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/preview :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- preview
summary : "Returns a pdf preview"
description : "Returns a pdf preview."
operationId : getPreview
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The pdf response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/preview/purchase_order :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- preview
summary : "Returns a pdf preview for purchase order"
description : "Returns a pdf preview for purchase order."
operationId : getPreviewPurchaseOrder
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The pdf response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/recurring_expenses :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
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
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of recurring_expenses"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/RecurringExpense'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
2023-10-30 23:17:43 +01:00
summary : "Adds a recurring expense"
description : "Adds a recurring expense to a company"
2023-02-19 06:16:55 +01:00
operationId : storeRecurringExpense
parameters :
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "Returns the saved recurring expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/recurring_expenses/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
2023-10-30 23:17:43 +01:00
summary : "Shows a recurring expense"
description : "Displays a recurring expense by id"
2023-02-19 06:16:55 +01:00
operationId : showRecurringExpense
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The RecurringExpense Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the recurring_expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
2023-10-30 23:17:43 +01:00
summary : "Updates a recurring expense"
description : "Handles the updating of a recurring expense by id"
2023-02-19 06:16:55 +01:00
operationId : updateRecurringExpense
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringExpense Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "Returns the recurring expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
2023-10-30 23:17:43 +01:00
summary : "Deletes a recurring expense"
description : "Handles the deletion of a recurring expense by id"
2023-02-19 06:16:55 +01:00
operationId : deleteRecurringExpense
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringExpense Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/recurring_expenses/{id}/edit" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
2023-10-30 23:17:43 +01:00
summary : "Shows a recurring expense for editting"
description : "Displays a recurring expense by id"
2023-02-19 06:16:55 +01:00
operationId : editRecurringExpense
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringExpense Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "Returns the recurring expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/recurring_expenses/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
2023-10-30 23:17:43 +01:00
summary : "Gets a new blank recurring expense object"
2023-02-19 06:16:55 +01:00
description : "Returns a blank object with default values"
operationId : getRecurringExpensesCreate
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-10-30 23:17:43 +01:00
description : "A blank recurring expense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/recurring_expenses/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- recurring_expenses
summary : "Performs bulk actions on an array of recurring_expenses"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-19 06:16:55 +01:00
operationId : bulkRecurringExpenses
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "User credentials"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The RecurringExpense User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/recurring_expenses/{id}/upload" :
2023-11-23 02:08:50 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_expense
summary : "Uploads a document to a recurring_expense"
description : "Handles the uploading of a document to a recurring_expense"
operationId : uploadRecurringExpense
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringExpense Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-11-23 02:08:50 +01:00
requestBody :
description : "File Upload Body"
required : true
content :
multipart/form-data :
schema :
type : object
properties :
_method :
type : string
example : PUT
documents :
type : array
items :
description : "Array of binary documents for upload"
type : string
format : binary
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the RecurringExpense object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringExpense"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/recurring_quotes :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
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
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of recurring_quotes"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/RecurringQuote'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Adds a RecurringQuote"
description : "Adds an RecurringQuote to the system"
operationId : storeRecurringQuote
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved RecurringQuote object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/recurring_quotes/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Gets a new blank RecurringQuote object"
description : "Returns a blank object with default values"
operationId : getRecurringQuotesCreate
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank RecurringQuote object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/recurring_quotes/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Shows an RecurringQuote"
description : "Displays an RecurringQuote by id"
operationId : showRecurringQuote
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The RecurringQuote Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the RecurringQuote object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Updates an RecurringQuote"
description : "Handles the updating of an RecurringQuote by id"
operationId : updateRecurringQuote
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The RecurringQuote Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the RecurringQuote object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Deletes a RecurringQuote"
description : "Handles the deletion of an RecurringQuote by id"
operationId : deleteRecurringQuote
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringQuote Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/recurring_quotes/{id}/edit" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Shows an RecurringQuote for editting"
description : "Displays an RecurringQuote by id"
operationId : editRecurringQuote
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringQuote Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the RecurringQuote object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/recurring_quotes/bulk :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
summary : "Performs bulk actions on an array of recurring_quotes"
description : ""
operationId : bulkRecurringQuotes
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "Hashed ids"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The RecurringQuote response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/recurring_quotes/{id}/{action}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- recurring_quotes
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
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The RecurringQuote Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-19 06:16:55 +01:00
- name : action
in : path
description : "The action string to be performed"
required : true
schema :
type : string
format : string
example : clone_to_quote
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the RecurringQuote object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/RecurringQuote"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/contacts :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Contact reports"
description : "Export contact reports"
operationId : getContactReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
requestBody :
required : true
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/clients :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Client reports"
description : "Export client reports"
operationId : getClientReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
422 :
$ref : "#/components/responses/422"
default :
$ref : "#/components/responses/default"
/api/v1/reports/credit :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Credit reports"
description : "Export credit reports"
operationId : getCreditReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/documents :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Document reports"
description : "Export document reports"
operationId : getDocumentReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/expense :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Expense reports"
description : "Export expense reports"
operationId : getExpenseReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/invoice_items :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Invoice item reports"
description : "Export invoice item reports"
operationId : getInvoiceItemReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/invoices :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Invoice reports"
description : "Export invoice reports"
operationId : getInvoiceReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/payments :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Payment reports"
description : "Export payment reports"
operationId : getPaymentReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/products :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Product reports"
description : "Export product reports"
operationId : getProductReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/product_sales :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Product Salesreports"
description : "Export product sales reports"
operationId : getProductSalesReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
requestBody :
required : true
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/profitloss :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Profit loss reports"
description : "Profit loss report"
operationId : getProfitLossReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
requestBody :
required : true
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/quote_items :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Quote item reports"
description : "Export Quote item reports"
operationId : getQuoteItemReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/quotes :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Quote reports"
description : "Export quote reports"
operationId : getQuoteReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/recurring_invoices :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Recurring Invoice reports"
description : "Export recurring invoice reports"
operationId : getRecurringInvoiceReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/reports/tasks :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- reports
summary : "Task reports"
description : "Export task reports"
operationId : getTaskReport
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/GenericReportSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/self-update :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- update
summary : "Performs a system update"
description : "Performs a system update"
operationId : selfUpdate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-PASSWORD"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Success/failure response"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/statics :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- statics
summary : "Gets a list of statics"
description : "Lists all statics"
operationId : getStatics
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of static data"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/subscriptions :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Gets a list of subscriptions"
description : "Lists subscriptions."
operationId : getSubscriptions
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of subscriptions"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Subscription'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Adds a subscriptions"
description : "Adds an subscriptions to the system"
operationId : storeSubscription
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved subscriptions object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/subscriptions/create :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Gets a new blank subscriptions object"
description : "Returns a blank object with default values"
operationId : getSubscriptionsCreate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank subscriptions object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/subscriptions/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Shows an subscriptions"
description : "Displays an subscriptions by id"
operationId : showSubscription
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Subscription Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Subscription object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Updates an subscriptions"
description : "Handles the updating of an subscriptions by id"
operationId : updateSubscription
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The Subscription Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the subscriptions object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Deletes a subscriptions"
description : "Handles the deletion of an subscriptions by id"
operationId : deleteSubscription
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
- name : id
in : path
description : "The Subscription Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
422 :
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/subscriptions/{id}/edit" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Shows an subscriptions for editting"
description : "Displays an subscriptions by id"
operationId : editSubscription
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
- name : id
in : path
description : "The Subscription Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the invoice object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/subscriptions/bulk :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- subscriptions
summary : "Performs bulk actions on an array of subscriptions"
description : ""
operationId : bulkSubscriptions
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "User credentials"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Subscription response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Subscription"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/support/messages/send :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- support
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
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
description : "The message"
required : true
content :
application/json :
schema :
properties :
message :
description : "The support message"
type : string
type : string
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : Success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
type : array
items :
description : "Server response"
type : string
example : true
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/system_logs :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- system_logs
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 :
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of system logs"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/SystemLog'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/system_logs/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- system_logs
summary : "Shows a system_logs"
description : "Displays a system_logs by id"
operationId : showSystemLogs
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The system_logs Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the system_logs object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/SystemLog"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/task_schedulers/ :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
summary : "Task Scheduler Index"
description : "Get all schedulers with associated jobs"
operationId : getTaskSchedulers
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
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
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-SECRET"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
requestBody :
required : true
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskSchedulerSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/task_schedulers/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
summary : "Gets a new blank scheduler object"
2023-02-18 04:21:42 +01:00
description : "Returns a blank object with default values"
2023-02-19 06:16:55 +01:00
operationId : getTaskScheduler
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank scheduler object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskSchedulerSchema"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/task_schedulers/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
summary : "Show given scheduler"
description : "Get scheduler with associated job"
operationId : showTaskScheduler
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Scheduler Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
summary : "Update task scheduler "
description : "Update task scheduler"
operationId : updateTaskScheduler
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-SECRET"
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Scheduler Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-19 06:16:55 +01:00
requestBody :
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/TaskSchedulerSchema"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
summary : "Destroy Task Scheduler"
description : "Destroy task scheduler and its associated job"
operationId : destroyTaskScheduler
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Scheduler Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : success
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/task_schedulers/bulk :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- task_schedulers
summary : "Performs bulk actions on an array of task_schedulers"
description : ""
operationId : bulkTaskSchedulerActions
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "array of ids"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The TaskSchedule response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskSchedulerSchema"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/task_statuses :
get :
2023-02-11 04:54:54 +01:00
tags :
- task_status
2023-02-19 06:16:55 +01:00
summary : "Gets a list of task statuses"
description : "Lists task statuses"
operationId : getTaskStatuses
parameters :
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of task statuses"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/TaskStatus'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- task_status
summary : "Adds a TaskStatus"
description : "Adds a TaskStatusto the system"
operationId : storeTaskStatus
2023-02-11 04:54:54 +01:00
parameters :
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
requestBody :
description : "The task_status request"
required : true
content :
application/json :
schema :
$ref : "#/components/schemas/TaskStatus"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved TaskStatus object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/task_statuses/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- task_status
summary : "Gets a new blank TaskStatus object"
2023-02-18 04:21:42 +01:00
description : "Returns a blank object with default values"
2023-02-19 06:16:55 +01:00
operationId : getTaskStatussCreate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank TaskStatus object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/task_statuses/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- task_status
summary : "Shows a TaskStatus Term"
description : "Displays an TaskStatusby id"
operationId : showTaskStatus
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaskStatusHashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the TaskStatusobject"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
2023-02-19 06:16:55 +01:00
- task_status
summary : "Updates a TaskStatus Term"
description : "Handles the updating of an TaskStatus Termby id"
operationId : updateTaskStatus
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaskStatusHashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the TaskStatusobject"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
2023-02-19 06:16:55 +01:00
- task_statuss
summary : "Deletes a TaskStatus Term"
description : "Handles the deletion of an TaskStatus by id"
operationId : deleteTaskStatus
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaskStatusHashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/task_statuses/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- task_status
summary : "Shows an TaskStatusfor editting"
description : "Displays an TaskStatusby id"
operationId : editTaskStatuss
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaskStatusHashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the TaskStatus object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/task_statuses/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- task_status
summary : "Performs bulk actions on an array of task statuses"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-19 06:16:55 +01:00
operationId : bulkTaskStatuss
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-19 06:16:55 +01:00
description : "TaskStatus Ter,s"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The TaskStatus Terms response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaskStatus"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/tax_rates :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Gets a list of tax_rates"
description : "Lists tax rates"
operationId : getTaxRates
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of tax_rates"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/TaxRate'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/tax_rates/create :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Gets a new blank Tax Rate object"
description : "Returns a blank object with default values"
operationId : getTaxRateCreate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank Tax Rate object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/tax_rates/{id}" :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Shows a Tax Rate"
description : "Displays an TaxRate by id"
operationId : showTaxRate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaxRate Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Tax Rate object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
put :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Updates a tax rate"
description : "Handles the updating of a tax rate by id"
operationId : updateTaxRate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaxRate Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the TaxRate object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
delete :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Deletes a TaxRate"
description : "Handles the deletion of an TaxRate by id"
operationId : deleteTaxRate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The TaxRate Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/tax_rates/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Shows a Tax Rate for editting"
description : "Displays a Tax Rate by id"
operationId : editTaxRate
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- name : id
in : path
description : "The TaxRate Hashed ID"
required : true
schema :
type : string
format : string
example : D2J234DFA
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the Tax Rate object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/TaxRate"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/tax_rates/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- tax_rates
summary : "Performs bulk actions on an array of TaxRates"
2023-02-18 04:21:42 +01:00
description : ""
2023-02-19 06:16:55 +01:00
operationId : bulkTaxRates
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-19 06:16:55 +01:00
description : "Tax Rates"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The TaxRate List response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Webhook"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/templates :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- templates
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
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
requestBody :
description : "The template subject and body"
required : true
content :
application/json :
schema :
properties :
subject :
description : "The email template subject"
type : string
body :
description : "The email template body"
type : string
type : object
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The template response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/Template"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/tokens :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- tokens
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
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of tokens"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/CompanyToken'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Adds a token"
description : "Adds an token to a company"
operationId : storeToken
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/tokens/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Shows a token"
description : "Displays a token by id"
operationId : showToken
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Token Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Updates a token"
description : "Handles the updating of a token by id"
operationId : updateToken
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Token Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Deletes a token"
description : "Handles the deletion of a token by id"
operationId : deleteToken
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Token Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/tokens/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Shows a token for editting"
description : "Displays a token by id"
operationId : editToken
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The Token Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/tokens/create :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Gets a new blank token object"
description : "Returns a blank object with default values"
operationId : getTokensCreate
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank token object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/tokens/bulk :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- tokens
summary : "Performs bulk actions on an array of tokens"
description : ""
operationId : bulkTokens
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "Token ids"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The Token response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
schema :
$ref : "#/components/schemas/CompanyToken"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/users :
get :
2023-02-11 04:54:54 +01:00
tags :
- users
2023-02-19 06:16:55 +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
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A list of users"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-19 06:16:55 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/User'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Adds a User"
description : "Adds an User to the system"
operationId : storeUser
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the saved User object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/users/create :
get :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Gets a new blank User object"
description : "Returns a blank object with default values"
operationId : getUsersCreate
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "A blank User object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/users/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Shows an User"
description : "Displays an User by id"
operationId : showUser
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The User Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the User object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Updates an User"
description : "Handles the updating of an User by id"
operationId : updateUser
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The User Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the User object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Deletes a User"
description : "Handles the deletion of an User by id"
operationId : deleteUser
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : token_name
in : query
description : "Customized name for the Users API Token"
required : false
schema :
type : string
format : string
example : "iOS Device 11 iPad"
2023-02-18 04:21:42 +01:00
- name : id
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The User Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/users/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Shows an User for editting"
description : "Displays an User by id"
operationId : editUser
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The User Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Returns the User object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/User"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
/api/v1/users/bulk :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Performs bulk actions on an array of users"
description : ""
operationId : bulkUsers
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/index"
requestBody :
description : "Hashed ids"
required : true
content :
application/json :
schema :
type : array
items :
description : "Array of hashed IDs to be bulk 'actioned"
type : integer
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "The User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
schema :
2023-02-19 06:16:55 +01:00
$ref : "#/components/schemas/User"
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
422 :
$ref : "#/components/responses/422"
default :
$ref : "#/components/responses/default"
"/api/v1/users/{user}/detach_from_company" :
delete :
tags :
- users
summary : "Detach an existing user to a company"
description : "Detach an existing user from a company"
operationId : detachUser
parameters :
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
- $ref : "#/components/parameters/include"
- name : user
in : path
description : "The user hashed_id"
required : true
schema :
type : string
format : string
example : FD767dfd7
responses :
200 :
description : "Success response"
headers :
X-MINIMUM-CLIENT-VERSION :
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
X-RateLimit-Remaining :
$ref : "#/components/headers/X-RateLimit-Remaining"
X-RateLimit-Limit :
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/users/{user}/invite" :
2023-02-11 04:54:54 +01:00
post :
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Reconfirm an existing user to a company"
description : "Reconfirm an existing user from a company"
operationId : inviteUser
2023-02-11 04:54:54 +01:00
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-API-TOKEN"
- $ref : "#/components/parameters/X-Requested-With"
2023-02-19 06:16:55 +01:00
- $ref : "#/components/parameters/include"
- name : user
in : path
description : "The user hashed_id"
required : true
schema :
type : string
format : string
example : FD767dfd7
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Success response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
"/api/v1/users/{user}/reconfirm" :
post :
2023-02-11 04:54:54 +01:00
tags :
2023-02-19 06:16:55 +01:00
- users
summary : "Reconfirm an existing user to a company"
description : "Reconfirm an existing user from a company"
operationId : inviteUserReconfirm
2023-02-11 04:54:54 +01:00
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"
2023-02-19 06:16:55 +01:00
- name : user
2023-02-11 04:54:54 +01:00
in : path
2023-02-19 06:16:55 +01:00
description : "The user hashed_id"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
2023-02-19 06:16:55 +01:00
example : FD767dfd7
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-19 06:16:55 +01:00
description : "Success response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-19 06:16:55 +01:00
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
operationId : webcron
parameters :
2023-02-18 04:21:42 +01:00
- $ref : "#/components/parameters/X-Requested-With"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Success response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/api/v1/webhooks :
get :
tags :
- webhooks
2023-02-18 04:21:42 +01:00
summary : "Gets a list of Webhooks"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A list of Webhooks"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
content :
application/json :
2023-07-08 12:16:09 +02:00
schema :
type : object
properties :
data :
type : array
items :
$ref : '#/components/schemas/Webhook'
meta :
type : object
$ref : '#/components/schemas/Meta'
2023-02-18 05:17:16 +01:00
401 :
$ref : "#/components/responses/401"
403 :
$ref : "#/components/responses/403"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
post :
tags :
- webhooks
2023-02-18 04:21:42 +01:00
summary : "Adds a Webhook"
description : "Adds an Webhook to a company"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the saved Webhook object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +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/webhooks/{id}" :
2023-02-11 04:54:54 +01:00
get :
tags :
- webhooks
2023-02-18 04:21:42 +01:00
summary : "Shows a Webhook"
description : "Displays a Webhook by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Webhook Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the Webhook object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
put :
tags :
- webhooks
2023-02-18 04:21:42 +01:00
summary : "Updates a Webhook"
description : "Handles the updating of a Webhook by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Webhook Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the Webhook object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
delete :
tags :
- Webhooks
2023-02-18 04:21:42 +01:00
summary : "Deletes a Webhook"
description : "Handles the deletion of a Webhook by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Webhook Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns a HTTP status"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +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/webhooks/{id}/edit" :
2023-02-11 04:54:54 +01:00
get :
tags :
- webhooks
2023-02-18 04:21:42 +01:00
summary : "Shows a Webhook for editting"
description : "Displays a Webhook by id"
2023-02-11 04:54:54 +01:00
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
2023-02-11 04:54:54 +01:00
in : path
2023-02-18 04:21:42 +01:00
description : "The Webhook Hashed ID"
2023-02-11 04:54:54 +01:00
required : true
schema :
type : string
format : string
example : D2J234DFA
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "Returns the Webhook object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "A blank Webhook object"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"
2023-02-11 04:54:54 +01:00
/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 : ""
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
requestBody :
2023-02-18 04:21:42 +01:00
description : "User credentials"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
type : integer
2023-02-18 04:21:42 +01:00
example : "[0,1,2,3]"
2023-02-11 04:54:54 +01:00
responses :
200 :
2023-02-18 04:21:42 +01:00
description : "The Webhook User response"
2023-02-11 04:54:54 +01:00
headers :
X-MINIMUM-CLIENT-VERSION :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-MINIMUM-CLIENT-VERSION"
2023-02-11 04:54:54 +01:00
X-RateLimit-Remaining :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Remaining"
2023-02-11 04:54:54 +01:00
X-RateLimit-Limit :
2023-02-18 04:21:42 +01:00
$ref : "#/components/headers/X-RateLimit-Limit"
2023-02-11 04:54:54 +01:00
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"
2023-02-11 04:54:54 +01:00
422 :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/422"
2023-02-11 04:54:54 +01:00
default :
2023-02-18 05:17:16 +01:00
$ref : "#/components/responses/default"