openapi: 3.2.0 info: title: Monite Counterpart e-invoicing credentials API contact: name: Monite team url: https://monite.com/about/ email: developers@monite.com termsOfService: https://monite.com/terms version: '1.0' description: 'Operations tagged Counterpart e-invoicing credentials across 3 of this provider''s published API definitions: monite-openapi-2023-09-01.json, monite-openapi-2024-05-25.json, monite-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment tags: - name: Counterpart e-invoicing credentials paths: /counterparts/{counterpart_id}/einvoicing_credentials: get: tags: - Counterpart e-invoicing credentials summary: Get a list of a counterpart's e-invoicing credentials operationId: get_counterparts_id_einvoicing_credentials parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: counterpart_id in: path - description: The ID of the entity that owns the requested resource. required: true schema: type: string format: uuid examples: - 9d2b4c8f-2087-4738-ba91-7359683c49a4 name: x-monite-entity-id in: header responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CounterpartEinvoicingCredentialResponseList' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '409': description: Business logic error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] post: tags: - Counterpart e-invoicing credentials summary: Add e-invoicing credentials for a counterpart operationId: post_counterparts_id_einvoicing_credentials parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: counterpart_id in: path - description: The ID of the entity that owns the requested resource. required: true schema: type: string format: uuid examples: - 9d2b4c8f-2087-4738-ba91-7359683c49a4 name: x-monite-entity-id in: header requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateCounterpartEinvoicingCredentialPayload' required: true responses: '201': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CounterpartEinvoicingCredentialResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '409': description: Business logic error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment /counterparts/{counterpart_id}/einvoicing_credentials/{credential_id}: get: tags: - Counterpart e-invoicing credentials summary: Get a counterpart's e-invoicing credentials by ID operationId: get_counterparts_id_einvoicing_credentials_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: credential_id in: path - required: true schema: type: string format: uuid name: counterpart_id in: path - description: The ID of the entity that owns the requested resource. required: true schema: type: string format: uuid examples: - 9d2b4c8f-2087-4738-ba91-7359683c49a4 name: x-monite-entity-id in: header responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CounterpartEinvoicingCredentialResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '404': description: Not found content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] patch: tags: - Counterpart e-invoicing credentials summary: Update a counterpart's e-invoicing credentials operationId: patch_counterparts_id_einvoicing_credentials_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: credential_id in: path - required: true schema: type: string format: uuid name: counterpart_id in: path - description: The ID of the entity that owns the requested resource. required: true schema: type: string format: uuid examples: - 9d2b4c8f-2087-4738-ba91-7359683c49a4 name: x-monite-entity-id in: header requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateCounterpartEinvoicingCredentialSchema' required: true responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/CounterpartEinvoicingCredentialResponse' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '404': description: Not found content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] delete: tags: - Counterpart e-invoicing credentials summary: Delete a counterpart's e-invoicing credentials operationId: delete_counterparts_id_einvoicing_credentials_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - required: true schema: type: string format: uuid name: credential_id in: path - required: true schema: type: string format: uuid name: counterpart_id in: path - description: The ID of the entity that owns the requested resource. required: true schema: type: string format: uuid examples: - 9d2b4c8f-2087-4738-ba91-7359683c49a4 name: x-monite-entity-id in: header responses: '204': description: Successful Response '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '404': description: Not found content: application/json: schema: $ref: '#/components/schemas/ErrorSchemaResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] servers: - url: https://api.dev.monite.com/v1 description: Development environment - url: https://api.sandbox.monite.com/v1 description: Sandbox environment - url: https://api.monite.com/v1 description: Production environment (Europe) - url: https://us.api.monite.com/v1 description: Production environment (North America) - url: https://api.monite.oaknorth.co.uk/v1 description: Oak POC environment components: schemas: CreateCounterpartEinvoicingCredentialCounterpartVatId: properties: counterpart_vat_id_id: type: string format: uuid description: ID of Counterpart VAT ID additionalProperties: false type: object required: - counterpart_vat_id_id CreateCounterpartEinvoicingCredentialPayload: anyOf: - $ref: '#/components/schemas/CreateCounterpartEinvoicingCredentialCounterpartVatId' - $ref: '#/components/schemas/CounterpartEinvoicingCredentialSchema' additionalProperties: false HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array type: object ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array msg: type: string type: type: string type: object required: - loc - msg - type CounterpartEinvoicingCredentialSchema: properties: network_identifier: type: string maxLength: 255 minLength: 1 network_schema: $ref: '#/components/schemas/EinvoiceSchemaTypeEnum' additionalProperties: false type: object required: - network_identifier - network_schema UpdateCounterpartEinvoicingCredentialSchema: properties: network_identifier: type: string maxLength: 255 minLength: 1 network_schema: $ref: '#/components/schemas/EinvoiceSchemaTypeEnum' additionalProperties: false type: object EinvoiceSchemaTypeEnum: type: string enum: - DE:VAT - NL:KVK - NL:VAT - BE:VAT - BE:EN CounterpartEinvoicingCredentialResponseList: properties: data: items: $ref: '#/components/schemas/CounterpartEinvoicingCredentialResponse' type: array additionalProperties: false type: object required: - data ErrorSchemaResponse: properties: error: $ref: '#/components/schemas/ErrorSchema' type: object required: - error CounterpartEinvoicingCredentialResponse: properties: id: type: string format: uuid network_identifier: type: string maxLength: 255 minLength: 1 network_schema: $ref: '#/components/schemas/EinvoiceSchemaTypeEnum' type: object required: - id - network_identifier - network_schema ErrorSchema: properties: message: type: string type: object required: - message securitySchemes: HTTPBearer: type: http scheme: bearer x-refined-from: - monite-openapi-2023-09-01.json - monite-openapi-2024-05-25.json - monite-openapi.yml