Mews Bills API

The Bills API from Mews — 6 operation(s) for bills.

OpenAPI Specification

mews-systems-bills-api-openapi.yml Raw ↑
openapi: 3.0.4
info:
  title: Mews Booking Engine API (Distributor) Account notes Bills API
  version: v1
  description: The Mews Booking Engine API (historically the Distributor API, served from /api/distributor/v1) lets developers build guest-facing booking engines that create reservations directly in Mews. It exposes enterprise configuration, availability, pricing, products, vouchers, payment cards, and reservation group creation for front-end client consumption.
  x-generated-from: documentation
  x-source-url: https://api.mews.com/Swagger/distributor/swagger.json
  x-last-validated: '2026-06-02'
servers:
- url: https://api.mews.com
  description: Production
- url: https://api.mews-demo.com
  description: Demo / sandbox
security:
- MewsClientToken: []
  MewsAccessToken: []
tags:
- name: Bills
paths:
  /api/connector/v1/bills/update:
    post:
      tags:
      - Bills
      summary: Mews Update Bills
      description: Updates one or more existing bills in the system. Closed bills cannot be updated. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property/).
      operationId: bills_update
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MultipleBillsUpdateParameters'
            example:
              ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
              AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
              Client: Sample Client 1.0.0
              BillsUpdates:
              - BillId: ea087d64-3901-4eee-b0b7-9fce4c58a005
                AccountId:
                  Value: c6f5c82d-621a-4c8a-903b-1b0a9a23b71f
                AssociatedAccountIds:
                  Value:
                  - fadd5bb6-b428-45d5-94f8-fd0d89fece6d
              EnterpriseId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillsUpdateResult'
              example:
                Bills:
                - Id: ea087d64-3901-4eee-b0b7-9fce4c58a005
                  Name: Accommodation Charges
                  EnterpriseId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  AccountId: c6f5c82d-621a-4c8a-903b-1b0a9a23b71f
                  AccountType: Company
                  CustomerId: null
                  CompanyId: null
                  AssociatedAccountIds:
                  - fadd5bb6-b428-45d5-94f8-fd0d89fece6d
                  CounterId: null
                  State: Closed
                  Type: Invoice
                  Number: '29'
                  VariableSymbol: null
                  CreatedUtc: '2017-01-31T10:48:06Z'
                  IssuedUtc: '2017-01-31T10:58:06Z'
                  TaxedUtc: null
                  PaidUtc: null
                  DueUtc: null
                  LastReminderDateUtc: null
                  UpdatedUtc: '2017-01-31T10:58:06Z'
                  PurchaseOrderNumber: XX-123
                  Notes: ''
                  Options:
                    DisplayCustomer: true
                    DisplayTaxation: true
                    TrackReceivable: true
                    DisplayCid: false
                    Rebated: false
                  Revenue: []
                  Payments: []
                  OrderItems: []
                  PaymentItems: []
                  AssigneeData: null
                  OwnerData:
                    Discriminator: BillCompanyData
                    Value:
                      Id: 26afba60-06c3-455b-92db-0e3983be0b1d
                      Address:
                        Line1: I.P. Pavlova 5
                        Line2: null
                        City: Prague
                        PostalCode: '12000'
                        SubdivisionCode: CZ-PR
                        CountryCode: CZ
                      LegalIdentifiers:
                        TaxIdentifier: CZ24227781
                        CityOfRegistration: Prague
                      BillingCode: Billing code value
                      Name: Acme, Inc.
                      FiscalIdentifier: Fiscal identifier
                      AdditionalTaxIdentifier: Additional tax identifier
                      DUNS: '150483782'
                      Telephone: '+420123456789'
                      TaxIdentifier: CZ24227781
                      InvoicingEmail: billing@acme.example
                      Department: Billing
                  CompanyDetails: null
                  AssociatedAccountData:
                  - Discriminator: BillCompanyData
                    BillCustomerData: null
                    BillCompanyData:
                      Id: 26afba60-06c3-455b-92db-0e3983be0b1d
                      Address:
                        Line1: I.P. Pavlova 5
                        Line2: null
                        City: Prague
                        PostalCode: '12000'
                        SubdivisionCode: CZ-PR
                        CountryCode: CZ
                      LegalIdentifiers:
                        TaxIdentifier: CZ24227781
                        CityOfRegistration: Prague
                      BillingCode: Billing code value
                      Name: Acme, Inc.
                      FiscalIdentifier: Fiscal identifier
                      AdditionalTaxIdentifier: Additional tax identifier
                      DUNS: '150483782'
                      Telephone: '+420123456789'
                      TaxIdentifier: CZ24227781
                      InvoicingEmail: billing@acme.example
                      Department: Billing
                  EnterpriseData:
                    AdditionalTaxIdentifier: XY00112233445
                    CompanyName: The Sample Hotel Group AS
                    BankAccount: CZ3808000000000012345678
                    BankName: CESKA SPORITELNA A.S.
                    Iban: CZ6508000000192000145399
                    Bic: GIBACZPX
                  CorrectionState: Bill
                  CorrectionType: null
                  CorrectedBillId: null
        '400':
          description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate400Example:
                  summary: Default bills_update 400 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '401':
          description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate401Example:
                  summary: Default bills_update 401 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '403':
          description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate403Example:
                  summary: Default bills_update 403 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '408':
          description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate408Example:
                  summary: Default bills_update 408 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '204':
          description: Server has successfully fulfilled the request and there is no additional information to send back.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate204Example:
                  summary: Default bills_update 204 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '429':
          description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate429Example:
                  summary: Default bills_update 429 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '500':
          description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsUpdate500Example:
                  summary: Default bills_update 500 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
      x-restricted: true
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/connector/v1/bills/getAll:
    post:
      tags:
      - Bills
      summary: Mews Get All Bills
      description: Returns all bills, optionally filtered by customers, identifiers and other filters. Note this operation uses [Pagination](https://mews-systems.gitbook.io/connector-api/guidelines/pagination/).
      operationId: bills_getAll
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillFilterParameters'
            example:
              ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
              AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
              Client: Sample Client 1.0.0
              Extent:
                Items: false
              ClosedUtc:
                StartUtc: '2020-02-05T00:00:00Z'
                EndUtc: '2020-02-10T00:00:00Z'
              CreatedUtc:
                StartUtc: '2020-02-05T00:00:00Z'
                EndUtc: '2020-02-10T00:00:00Z'
              UpdatedUtc:
                StartUtc: '2020-02-05T00:00:00Z'
                EndUtc: '2020-02-10T00:00:00Z'
              BillIds:
              - e654f217-d1b5-46be-a820-e93ba568dfac
              CustomerIds:
              - fe795f96-0b64-445b-89ed-c032563f2bac
              State: Closed
              EnterpriseIds:
              - 3fa85f64-5717-4562-b3fc-2c963f66afa6
              - 4d0201db-36f5-428b-8d11-4f0a65e960cc
              Limitation:
                Count: 100
                Cursor: e7f26210-10e7-462e-9da8-ae8300be8ab7
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillsResult'
              example:
                Bills:
                - Id: ea087d64-3901-4eee-b0b7-9fce4c58a005
                  Name: Accommodation Charges
                  EnterpriseId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  AccountId: c6f5c82d-621a-4c8a-903b-1b0a9a23b71f
                  AccountType: Company
                  CustomerId: null
                  CompanyId: null
                  AssociatedAccountIds:
                  - fadd5bb6-b428-45d5-94f8-fd0d89fece6d
                  CounterId: null
                  State: Closed
                  Type: Invoice
                  Number: '29'
                  VariableSymbol: null
                  CreatedUtc: '2017-01-31T10:48:06Z'
                  IssuedUtc: '2017-01-31T10:58:06Z'
                  TaxedUtc: null
                  PaidUtc: null
                  DueUtc: null
                  LastReminderDateUtc: null
                  UpdatedUtc: '2017-01-31T10:58:06Z'
                  PurchaseOrderNumber: XX-123
                  Notes: ''
                  Options:
                    DisplayCustomer: true
                    DisplayTaxation: true
                    TrackReceivable: true
                    DisplayCid: false
                    Rebated: false
                  Revenue: []
                  Payments: []
                  OrderItems: []
                  PaymentItems: []
                  AssigneeData: null
                  OwnerData:
                    Discriminator: BillCompanyData
                    Value:
                      Id: 26afba60-06c3-455b-92db-0e3983be0b1d
                      Address:
                        Line1: I.P. Pavlova 5
                        Line2: null
                        City: Prague
                        PostalCode: '12000'
                        SubdivisionCode: CZ-PR
                        CountryCode: CZ
                      LegalIdentifiers:
                        TaxIdentifier: CZ24227781
                        CityOfRegistration: Prague
                      BillingCode: Billing code value
                      Name: Acme, Inc.
                      FiscalIdentifier: Fiscal identifier
                      AdditionalTaxIdentifier: Additional tax identifier
                      DUNS: '150483782'
                      Telephone: '+420123456789'
                      TaxIdentifier: CZ24227781
                      InvoicingEmail: billing@acme.example
                      Department: Billing
                  CompanyDetails: null
                  AssociatedAccountData:
                  - Discriminator: BillCompanyData
                    BillCustomerData: null
                    BillCompanyData:
                      Id: 26afba60-06c3-455b-92db-0e3983be0b1d
                      Address:
                        Line1: I.P. Pavlova 5
                        Line2: null
                        City: Prague
                        PostalCode: '12000'
                        SubdivisionCode: CZ-PR
                        CountryCode: CZ
                      LegalIdentifiers:
                        TaxIdentifier: CZ24227781
                        CityOfRegistration: Prague
                      BillingCode: Billing code value
                      Name: Acme, Inc.
                      FiscalIdentifier: Fiscal identifier
                      AdditionalTaxIdentifier: Additional tax identifier
                      DUNS: '150483782'
                      Telephone: '+420123456789'
                      TaxIdentifier: CZ24227781
                      InvoicingEmail: billing@acme.example
                      Department: Billing
                  EnterpriseData:
                    AdditionalTaxIdentifier: XY00112233445
                    CompanyName: The Sample Hotel Group AS
                    BankAccount: CZ3808000000000012345678
                    BankName: CESKA SPORITELNA A.S.
                    Iban: CZ6508000000192000145399
                    Bic: GIBACZPX
                  CorrectionState: Bill
                  CorrectionType: null
                  CorrectedBillId: null
                Cursor: ea087d64-3901-4eee-b0b7-9fce4c58a005
        '400':
          description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll400Example:
                  summary: Default bills_getAll 400 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '401':
          description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll401Example:
                  summary: Default bills_getAll 401 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '403':
          description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll403Example:
                  summary: Default bills_getAll 403 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '408':
          description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll408Example:
                  summary: Default bills_getAll 408 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '204':
          description: Server has successfully fulfilled the request and there is no additional information to send back.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll204Example:
                  summary: Default bills_getAll 204 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '429':
          description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll429Example:
                  summary: Default bills_getAll 429 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '500':
          description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetAll500Example:
                  summary: Default bills_getAll 500 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/connector/v1/bills/getPdf:
    post:
      tags:
      - Bills
      summary: Mews Get Bill PDF
      description: "Generates a PDF document of the specified bill. If the PDF cannot be returned immediately, retry the call later with the unique event identifier returned by the first invocation as `BillPrintEventId`.\r\n\r\nThis operation is subject to the [Mews Operations quota](https://help.mews.com/s/article/Quotas-in-Mews-Operations) \"Property Financial Document Print Event Weekly Count\". Each bill can be printed or previewed up to 30 times within 7 days. Requests that include an existing `BillPrintEventId` do not count against this quota."
      operationId: bills_getPdf
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BillPdfParameters'
            example:
              ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
              AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
              Client: Sample Client 1.0.0
              BillId: 44eba542-193e-47c7-8077-abd7008eb206
              PdfTemplate: Detailed
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillPdfResult'
              example:
                BillId: 44eba542-193e-47c7-8077-abd7008eb206
                Result:
                  Discriminator: BillPdfFile
                  Value:
                    Base64Data: JVBERi0xLj...
        '400':
          description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf400Example:
                  summary: Default bills_getPdf 400 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '401':
          description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf401Example:
                  summary: Default bills_getPdf 401 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '403':
          description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf403Example:
                  summary: Default bills_getPdf 403 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '408':
          description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeouts](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-timeouts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf408Example:
                  summary: Default bills_getPdf 408 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '204':
          description: Server has successfully fulfilled the request and there is no additional information to send back.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf204Example:
                  summary: Default bills_getPdf 204 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '429':
          description: Error caused by too many requests sent in a given amount of time. Response contains `Retry-After` header indicating how long the user agent should wait before making a follow-up request. For more information, see [Request limits](https://mews-systems.gitbook.io/connector-api/guidelines/requests#request-limits).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf429Example:
                  summary: Default bills_getPdf 429 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '500':
          description: Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our [documentation repository](https://github.com/MewsSystems/gitbook-connector-api).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsGetPdf500Example:
                  summary: Default bills_getPdf 500 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/connector/v1/bills/add:
    post:
      tags:
      - Bills
      summary: Mews Add Bill
      description: Creates new empty bill assigned to specified account. Note this operation supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property).
      operationId: bills_add
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MultipleBillAddParameters'
            example:
              ClientToken: E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D
              AccessToken: C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D
              Client: Sample Client 1.0.0
              EnterpriseId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
              Bills:
              - AccountId: a5786a7b-a388-43cc-a838-abd7007b5ff7
                Name: Bill of Joe Doe
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillsAddResult'
              example:
                BillId: 44eba542-193e-47c7-8077-abd7008eb206
                Result:
                  Discriminator: BillPdfFile
                  Value:
                    Base64Data: JVBER.....
        '400':
          description: Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsAdd400Example:
                  summary: Default bills_add 400 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '401':
          description: Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsAdd401Example:
                  summary: Default bills_add 401 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '403':
          description: Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorApiExceptionResult'
              examples:
                BillsAdd403Example:
                  summary: Default bills_add 403 response
                  x-microcks-default: true
                  value:
                    Message: string
                    RequestId: 3edd5f9e-7e64-4f2a-9a0e-b3f200e6c111
                    Details: string
        '408':
          description: Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see [Request timeo

# --- truncated at 32 KB (122 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mews-systems/refs/heads/main/openapi/mews-systems-bills-api-openapi.yml