openapi: 3.2.0 info: title: Monite Entity VAT IDs 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 Entity VAT IDs 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: Entity VAT IDs paths: /entities/{entity_id}/vat_ids: get: tags: - Entity VAT IDs summary: Get an entity's VAT IDs operationId: get_entities_id_vat_ids parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - name: entity_id in: path required: true schema: type: string format: uuid responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/EntityVatIDResourceList' '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' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [] post: tags: - Entity VAT IDs summary: Create an entity VAT ID operationId: post_entities_id_vat_ids parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - name: entity_id in: path required: true schema: type: string format: uuid requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/EntityVatID' responses: '201': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/EntityVatIDResponse' '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 /entities/{entity_id}/vat_ids/{id}: get: tags: - Entity VAT IDs summary: Get an entity's VAT ID operationId: get_entities_id_vat_ids_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - name: id in: path required: true schema: type: string format: uuid - name: entity_id in: path required: true schema: type: string format: uuid responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/EntityVatIDResponse' '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: - Entity VAT IDs summary: Update an entity's VAT ID operationId: patch_entities_id_vat_ids_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - name: id in: path required: true schema: type: string format: uuid - name: entity_id in: path required: true schema: type: string format: uuid requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/EntityUpdateVatID' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/EntityVatIDResponse' '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: - Entity VAT IDs summary: Delete an entity's VAT ID operationId: delete_entities_id_vat_ids_id parameters: - required: true schema: type: string format: date example: '2023-09-01' name: x-monite-version in: header - name: id in: path required: true schema: type: string format: uuid - name: entity_id in: path required: true schema: type: string format: uuid 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: EntityVatIDResponse: properties: id: type: string format: uuid country: $ref: '#/components/schemas/AllowedCountries' entity_id: type: string format: uuid type: $ref: '#/components/schemas/VatIDTypeEnum' default: unknown examples: - eu_vat value: type: string maxLength: 32 examples: - '123456789' type: object required: - id - country - entity_id - value EntityVatIDResourceList: properties: data: items: $ref: '#/components/schemas/EntityVatIDResponse' type: array type: object required: - data 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 AllowedCountries: type: string enum: - AF - AX - AL - DZ - AS - AD - AO - AI - AQ - AG - AR - AM - AW - AU - AT - AZ - BS - BH - BD - BB - BY - BE - BZ - BJ - BM - BT - BO - BA - BW - BV - BR - IO - BN - BG - BF - BI - KH - CM - CA - IC - CV - KY - CF - EA - TD - CL - CN - CX - CC - CO - KM - CG - CD - CK - CR - CI - HR - CU - CY - CZ - DK - DJ - DM - DO - EC - EG - SV - GQ - ER - EE - SZ - ET - FK - FO - FJ - FI - FR - GF - PF - TF - GA - GM - GE - DE - GH - GI - GR - GL - GD - GP - GU - GT - GG - GN - GW - GY - HT - HM - VA - HN - HK - HU - IS - IN - ID - IR - IQ - IE - IM - IL - IT - JM - JP - JE - JO - KZ - KE - KI - KP - KR - KW - KG - LA - LV - LB - LS - LR - LY - LI - LT - LU - MO - MG - MW - MY - MV - ML - MT - MH - MQ - MR - MU - YT - MX - FM - MD - MC - MN - ME - MS - MA - MZ - MM - NA - NR - NP - NL - AN - NC - NZ - NI - NE - NG - NU - NF - MP - MK - 'NO' - OM - PK - PW - PS - PA - PG - PY - PE - PH - PN - PL - PT - PR - QA - RE - RO - RU - RW - SH - KN - LC - PM - VC - WS - SM - ST - SA - SN - RS - SC - SL - SG - SK - SI - SB - SO - ZA - SS - GS - ES - LK - SD - SR - SJ - SE - CH - SY - TW - TJ - TZ - TH - TL - TG - TK - TO - TT - TN - TR - TM - TC - TV - UG - UA - AE - GB - US - UM - UY - UZ - VU - VE - VN - VG - VI - WF - EH - YE - ZM - ZW - BL - BQ - CW - MF - SX ErrorSchemaResponse: properties: error: $ref: '#/components/schemas/ErrorSchema' type: object required: - error VatIDTypeEnum: type: string enum: - ae_trn - au_abn - au_arn - bg_uic - br_cnpj - br_cpf - ca_bn - ca_gst_hst - ca_pst_bc - ca_pst_mb - ca_pst_sk - ca_qst - ch_vat - cl_tin - es_cif - eu_oss_vat - eu_vat - gb_vat - ge_vat - hk_br - hu_tin - id_npwp - il_vat - in_gst - is_vat - jp_cn - jp_rn - kr_brn - li_uid - mx_rfc - my_frp - my_itn - my_sst - no_vat - nz_gst - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin - th_vat - tw_vat - ua_vat - us_ein - za_vat - unknown EntityVatID: properties: country: $ref: '#/components/schemas/AllowedCountries' type: $ref: '#/components/schemas/VatIDTypeEnum' default: unknown examples: - eu_vat value: type: string maxLength: 32 examples: - '123456789' additionalProperties: false type: object required: - country - value EntityUpdateVatID: properties: country: anyOf: - $ref: '#/components/schemas/AllowedCountries' - type: 'null' type: anyOf: - $ref: '#/components/schemas/VatIDTypeEnum' - type: 'null' examples: - eu_vat value: anyOf: - type: string maxLength: 32 - type: 'null' additionalProperties: false type: object 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