{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/abasky/abaninja_api/2.0.1"},{"url":"https://api.abaninja.ch","description":"Production Server"},{"url":"https://api-int.abaninja.ch","description":"Integration Test Server"},{"url":"https://api-dev.abaninja.ch","description":"Development Server"}],"info":{"description":"This is the AbaNinja API documentation","version":"2.0.1","title":"AbaNinja API","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"contact":{"name":"ABACUS Research AG","url":"https://www.abacus.ch","email":"info@abacus.ch"}},"security":[{"accessCodeTest":["https://api.abasky.net/auth/abaninja.invoice"]},{"accessCodeInt":["https://api.abasky.net/auth/abaninja.invoice"]},{"accessCode":["https://api.abasky.net/auth/abaninja.invoice"]}],"tags":[{"name":"Documents"},{"name":"Products"},{"name":"Units"}],"paths":{"/accounts/{accountUuid}/documents/v2/quotes":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Quote search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the quote should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/quote.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/quote.example.json"}}}},"responses":{"201":{"description":"Quote created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/quotes/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of quote","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Quote body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/quotes/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of quote","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Quote allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/quotes/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of quote","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/contract-notes":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Contract-note search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractNoteSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the contract note should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/contract-note.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/contract-note.example.json"}}}},"responses":{"201":{"description":"Contract note created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/contract-notes/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract-note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Contract Note body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Contract Note not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/contract-notes/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Contract note allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/contract-notes/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract note","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/delivery-notes":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Delivery-note search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the delivery note should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/delivery-note.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/delivery-note.example.json"}}}},"responses":{"201":{"description":"Delivery note created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/delivery-notes/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract-note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Delivery Note body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Delivery Note not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/delivery-notes/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of delivery note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Delivery note allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/delivery-notes/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of delivery note","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/invoices":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Invoice search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the invoice should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/invoice.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/invoice.example.json"}}}},"responses":{"201":{"description":"Invoice created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/invoices/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract-note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Invoice body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Invoice not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/invoices/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of invoice","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Invoice allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/invoices/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of invoice","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/invoices/import":{"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the invoice should be imported to","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/import-invoice.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/import-invoice.example.json"}}}},"responses":{"201":{"description":"Invoice imported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/credit-notes":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Credit-note search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditNoteSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the credit note should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/credit-note.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/credit-note.example.json"}}}},"responses":{"201":{"description":"Credit note created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/credit-notes/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract-note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Credit Note body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Credit Note found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/credit-notes/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of credit note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Credit note allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/credit-notes/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of credit note","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/recurring-invoices":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Recurring-invoice search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringInvoiceSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the recurring invoice should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/recurring-invoice.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/recurring-invoice.example.json"}}}},"responses":{"201":{"description":"Recurring Invoice created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/recurring-invoices/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract-note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Recurring Invoices body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Recurring Invoices found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/recurring-invoices/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of recurring invoice","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Recurring invoice allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Quote not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/recurring-invoices/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of recurring invoice","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/templates":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Template search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateSearchResponse"}}}}}},"post":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the template should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/template.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/template.example.json"}}}},"responses":{"201":{"description":"Template created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"202":{"description":"Async Processing","headers":{"Location":{"schema":{"type":"string","format":"url","description":"URL to access queue status"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncResponseBody"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/templates/{documentUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of contract-note","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Template body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}},"404":{"description":"Template found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/templates/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of template","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Template allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Template not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/templates/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of template","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/receipts":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"sort","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","example":"integer | all"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"extend_search","in":"query","schema":{"type":"array","items":{"type":"object","example":"<column>_<extend-param>=<value>"}}}],"responses":{"200":{"description":"Receipt search results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptSearchResponse"}}}}}}},"/accounts/{accountUuid}/documents/v2/receipts/{documentUuid}/actions":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of receipt","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Receipt allowed actions results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedDocumentActionsResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"Template not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/receipts/{documentUuid}/actions/{action}":{"patch":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account","schema":{"type":"string","format":"uuid"}},{"name":"documentUuid","in":"path","required":true,"description":"UUID of receipt","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Name of action","schema":{"type":"string"}}],"responses":{"200":{"description":"Action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessfulDocumentActionResponse"}}}},"400":{"description":"Validation or Data error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/accounts/{accountUuid}/documents/v2/queue/{queueUuid}":{"get":{"tags":["Documents"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}},{"name":"queueUuid","in":"path","required":true,"description":"UUID of the queue to get status from","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Queue Status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueStatusResponse"}}}},"404":{"description":"Unkonw QueueUuid or AccountUuid"}}}},"/accounts/{accountUuid}/products/v2":{"get":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Products list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsListResponse"}}}},"404":{"description":"Unkonw AccountUuid"}}},"post":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the product should be created","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/product.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/product.example.json"}}}},"responses":{"201":{"description":"Product created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}}}}},"/accounts/{accountUuid}/products/v2/import":{"post":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/productimport.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/productimport.example.json"}}}},"responses":{"201":{"description":"Product price created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}}}}},"/accounts/{accountUuid}/products/v2/{productUuid}":{"get":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}},{"name":"productUuid","in":"path","required":true,"description":"UUID of the product to get","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResponse"}}}},"404":{"description":"Unkonw AccountUuid or ProductUuid"}}},"patch":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the product should be created","schema":{"type":"string","format":"uuid"}},{"name":"productUuid","in":"path","required":true,"description":"UUID of the product to update","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/product.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/product.example.json"}}}},"responses":{"201":{"description":"Product created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}}}},"delete":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the product should be created","schema":{"type":"string","format":"uuid"}},{"name":"productUuid","in":"path","required":true,"description":"UUID of the product to update","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Product deleted"},"404":{"description":"Unkonw AccountUuid or ProductUuid"}}}},"/accounts/{accountUuid}/products/v2/{productUuid}/actions":{"get":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}},{"name":"productUuid","in":"path","required":true,"description":"UUID of the product","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Product actions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionsResponse"}}}},"404":{"description":"Unkonw AccountUuid or ProductUuid"}}}},"/accounts/{accountUuid}/products/v2/{productUuid}/actions/{action}":{"post":{"tags":["Products"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the product should be created","schema":{"type":"string","format":"uuid"}},{"name":"productUuid","in":"path","required":true,"description":"UUID of the product","schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"description":"Action to do","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/productaction.schema.json"},"example":{"$ref":"https://api.abaninja.ch/schemas/2.0.0/examples/productaction.example.json"}}}},"responses":{"200":{"description":"Product action successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseBody"}}}}}}},"/accounts/{accountUuid}/units/v2":{"get":{"tags":["Units"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Units list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitsListResponse"}}}},"404":{"description":"Unkonw AccountUuid"}}}},"/accounts/{accountUuid}/units/v2/{unitUuid}":{"get":{"tags":["Units"],"parameters":[{"name":"accountUuid","in":"path","required":true,"description":"UUID of account where the queue is located","schema":{"type":"string","format":"uuid"}},{"name":"unitUuid","in":"path","required":true,"description":"UUID of the unit","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Units","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitResponse"}}}},"404":{"description":"Unkonw AccountUuid or UnitUuid"}}}}},"components":{"schemas":{"Payment":{"type":"object","properties":{"payment_id":{"type":"string","format":"uuid"},"payment_date":{"type":"string","format":"date"},"type":{"type":"string","description":"Type of Payment","example":"PayPal"},"amount":{"type":"number","format":"double"},"currency_code":{"type":"string","example":"CHF"}}},"InvoiceData":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","description":"uuid of generated invoice"},"invoice_date":{"type":"string","format":"date"},"invoice_number":{"type":"string"},"amount":{"type":"number","format":"double"},"currency_code":{"type":"string","example":"CHF"},"state":{"type":"string","description":"State of the invoice","enum":["DUE","PAYMENT_REMINDER","FIRST_REMINDER","LAST_REMINDER","DRAFT","SENDING","SENDFAILED","SENT","VIEWED","PARTIAL","PAID","INBOX"]},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"address":{"type":"object"},"pdf_url":{"type":"string","description":"Link to download Invoice PDF if one available"},"confirmation_pdf_url":{"type":"string","description":"Link to download Payment Confirmation PDF if one available"}},"required":["invoice_id","invoice_date","invoice_number","amount","currency_code","state"]},"ResponseBody":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/InvoiceData"}},"required":["status","message","data"]},"AsyncResponseBody":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"type":"object","properties":{"status":{"type":"string","format":"url","description":"Url to access import status"}},"required":["status"]}},"required":["status","message","data"]},"ErrorBody":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"Error message. Can be empty"},"error":{"type":"object","description":"Error object. always empty"},"meta":{"type":"object","description":"Object with additional error informations like schema errors."}},"required":["status","message","error"]},"QueueStatusResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/QueueData"}},"required":["status","message","data"]},"QueueData":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid"},"total":{"type":"integer","format":"int32"},"successful":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"status":{"type":"string","enum":["pending","finished","failed"]},"details":{"type":"array","items":{"$ref":"#/components/schemas/QueueDetailData"}}},"required":["uuid","total","successful","failed","status"]},"QueueDetailData":{"type":"object","properties":{"status":{"type":"string","enum":"queueStatus"},"message":{"type":"string"},"invoice":{"$ref":"#/components/schemas/InvoiceData"}},"required":["status","message"]},"QuoteSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/QuoteSearchResult"}},"required":["status","message","data"]},"QuoteSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"address_id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"is_collective_bill":{"type":"boolean"},"collective_bill_id":{"type":"integer"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"due_date":{"type":"string","format":"date"}}},"ContractNoteSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/ContractNoteSearchResult"}},"required":["status","message","data"]},"ContractNoteSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"address_id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"deleted_at":{"type":"string","format":"date"},"delivery_date":{"type":"string","format":"date"},"subtype":{"type":"string"},"subtype_name":{"type":"string"}}},"DeliveryNoteSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/DeliveryNoteSearchResult"}},"required":["status","message","data"]},"DeliveryNoteSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"address_id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"is_collective_bill":{"type":"boolean"},"collective_bill_id":{"type":"integer"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"}}},"InvoiceSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/InvoiceSearchResult"}},"required":["status","message","data"]},"InvoiceSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"address_id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"is_collective_bill":{"type":"boolean"},"collective_bill_id":{"type":"integer"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"due_days":{"type":"integer"},"balance":{"type":"integer"},"source_name":{"type":"string"},"is_imported":{"type":"boolean"},"dunning_level":{"type":"integer"}}},"CreditNoteSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/CreditNoteSearchResult"}},"required":["status","message","data"]},"CreditNoteSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"address_id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"balance":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"is_collective_bill":{"type":"boolean"},"collective_bill_id":{"type":"integer"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"due_date":{"type":"string"}}},"RecurringInvoiceSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/RecurringInvoiceSearchResult"}},"required":["status","message","data"]},"RecurringInvoiceSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"frequency_name":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"start_date":{"type":"string"},"last_sent_date":{"type":"string"},"next_send_date":{"type":"string"},"end_date":{"type":"string"},"amount":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"invoice_date":{"type":"string"},"invoice_number":{"type":"string"},"is_recurring_active":{"type":"boolean"},"is_recurring_active_name":{"type":"string"}}},"TemplateSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/TemplateSearchResult"}},"required":["status","message","data"]},"TemplateSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"balance":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"due_date":{"type":"string"}}},"AllowedDocumentActionsResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/AllowedDocumentActionsResult"}},"required":["status","message","data"]},"AllowedDocumentActionsResult":{"type":"object","properties":{"archive":{"type":"string","description":"translated action description","example":"Archive document"},"restore":{"type":"string","description":"translated action description","example":"Restore document"},"clone":{"type":"string","description":"translated action description","example":"Clone document"},"delete":{"type":"string","description":"translated action description","example":"Delete document"},"cancel":{"type":"string","description":"translated action description","example":"Cancel document"},"convert":{"type":"string","description":"translated action description","example":"Convert quote to invoice"},"convertCN":{"type":"string","description":"translated action description","example":"Convert quote to contract note"},"convertCNDN":{"type":"string","description":"translated action description","example":"Convert contract note to delivery note"},"convertCNI":{"type":"string","description":"translated action description","example":"Convert contract note to invoice"},"convertDNI":{"type":"string","description":"translated action description","example":"Convert delivery note to invoice"},"convertIC":{"type":"string","description":"translated action description","example":"Convert invoice to credit note"},"convertDN":{"type":"string","description":"translated action description","example":"Convert invoice to delivery note"},"convertT":{"type":"string","description":"translated action description","example":"Convert invoice to template"},"convertTI":{"type":"string","description":"translated action description","example":"Convert template to invoice"},"print":{"type":"string","description":"translated action description","example":"Print PDF"},"email":{"type":"string","description":"translated action description","example":"Send email"},"markApproved":{"type":"string","description":"translated action description","example":"Mark quote as approved"},"markDeclined":{"type":"string","description":"translated action description","example":"Mark quote as declined"},"markSent":{"type":"string","description":"translated action description","example":"Mark as sent"},"createOnAccount":{"type":"string","description":"translated action description","example":"Create on account invoice"},"createPartial":{"type":"string","description":"translated action description","example":"Create partial invoice"},"dunningPrint":{"type":"string","description":"translated action description","example":"Print reminder"},"dunningSent":{"type":"string","description":"translated action description","example":"Send reminder"}}},"ReceiptSearchResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"Original Http Status Code"},"message":{"type":"string","description":"A message. Can be empty"},"data":{"$ref":"#/components/schemas/ReceiptSearchResult"}},"required":["status","message","data"]},"ReceiptSearchResult":{"type":"object","properties":{"id":{"type":"integer"},"address_id":{"type":"integer"},"status_id":{"type":"integer"},"status_name":{"type":"string"},"status_color":{"type":"string"},"invoice_number":{"type":"string"},"po_number":{"type":"string"},"customer_number":{"type":"string"},"receiver":{"type":"string"},"invoice_date":{"type":"string"},"amount":{"type":"integer"},"balance":{"type":"integer"},"currency_code":{"type":"string"},"raw_invoice_date":{"type":"string","format":"date"},"receiver_email":{"type":"string","format":"email"},"archived":{"type":"boolean"},"cancelled":{"type":"boolean"},"due_days":{"type":"integer"},"delivery_date":{"type":"string"}}},"SuccessfulDocumentActionResponse":{"type":"object","properties":{"id":{"type":"integer"},"uuid":{"type":"string","format":"uuid"},"type":{"type":"string"}}}},"securitySchemes":{"accessCodeTest":{"type":"oauth2","description":"Oauth for Test environment","flows":{"authorizationCode":{"authorizationUrl":"https://auth-dev.abasky.net/auth/realms/abasky/protocol/openid-connect/auth","tokenUrl":"https://auth-dev.abasky.net/auth/realms/abasky/protocol/openid-connect/token","scopes":{"https://api.abasky.net/auth/abaninja.invoice":"Allows to create and modify invoices"}}}},"accessCodeInt":{"type":"oauth2","description":"Oauth for Integration environment","flows":{"authorizationCode":{"authorizationUrl":"https://auth-int.abasky.net/auth/realms/abasky/protocol/openid-connect/auth","tokenUrl":"https://auth-int.abasky.net/auth/realms/abasky/protocol/openid-connect/token","scopes":{"https://api.abasky.net/auth/abaninja.invoice":"Allows to create and modify invoices"}}}},"accessCode":{"type":"oauth2","description":"Oauth for production","flows":{"authorizationCode":{"authorizationUrl":"https://auth.abasky.net/auth/realms/abasky/protocol/openid-connect/auth","tokenUrl":"https://auth.abasky.net/auth/realms/abasky/protocol/openid-connect/token","scopes":{"https://api.abasky.net/auth/abaninja.invoice":"Allows to create and modify invoices"}}}}}}}