> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperline.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get customer

> Retrieve the details of an existing customer.



## OpenAPI

````yaml get /v2/customers/{id}
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v2/customers/{id}:
    get:
      tags:
        - Customers
      summary: Get customer
      description: Retrieve the details of an existing customer.
      operationId: getCustomer
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetails'
        '404':
          description: Customer not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    CustomerDetails:
      allOf:
        - $ref: '#/components/schemas/Customer'
        - type: object
          properties:
            payment_method:
              allOf:
                - $ref: '#/components/schemas/PaymentMethod'
                - description: >-
                    Default payment method of the customer. Only applies to card
                    and direct debit.
            bank_account:
              allOf:
                - $ref: '#/components/schemas/BankAccount'
                - description: >-
                    Custom bank account for the customer. If not defined and
                    customer paying by bank transfer, the bank accounts
                    configured in your account settings will be used.
          required:
            - payment_method
            - bank_account
    Customer:
      type: object
      properties:
        id:
          type: string
          description: Customer ID.
          example: cus_Typ0px2W0aiEtl
        name:
          type: string
          description: Customer name.
          example: Acme
        type:
          type:
            - string
            - 'null'
          enum:
            - corporate
            - person
            - automatically_created
          description: >-

            Customer type.


            - `corporate`: The customer is a business entity.

            - `person`: The customer is a natural person.

            - `automatically_created`: The customer was automatically imported
            (e.g. from a data loader). This value cannot be used when
            creating/editing.
             
          example: corporate
        status:
          type: string
          enum:
            - active
            - archived
          description: Customer status.
          example: active
        currency:
          type:
            - string
            - 'null'
          enum:
            - EUR
            - AED
            - AFN
            - XCD
            - ALL
            - AMD
            - AOA
            - ARS
            - USD
            - AUD
            - AWG
            - AZN
            - BAM
            - BBD
            - BDT
            - BGN
            - BHD
            - BIF
            - XOF
            - BMD
            - BND
            - BOB
            - BRL
            - BSD
            - BTN
            - NOK
            - BWP
            - BYR
            - BZD
            - CAD
            - CDF
            - XAF
            - CHF
            - NZD
            - CLP
            - CNY
            - COP
            - CRC
            - CUP
            - CVE
            - ANG
            - CZK
            - DJF
            - DKK
            - DOP
            - DZD
            - EGP
            - MAD
            - ERN
            - ETB
            - FJD
            - FKP
            - GBP
            - GEL
            - GHS
            - GIP
            - GMD
            - GNF
            - GTQ
            - GYD
            - HKD
            - HNL
            - HRK
            - HTG
            - HUF
            - IDR
            - ILS
            - INR
            - IQD
            - IRR
            - ISK
            - JMD
            - JOD
            - JPY
            - KES
            - KGS
            - KHR
            - KMF
            - KPW
            - KRW
            - KWD
            - KYD
            - KZT
            - LAK
            - LBP
            - LKR
            - LRD
            - LSL
            - LYD
            - MDL
            - MGA
            - MKD
            - MMK
            - MNT
            - MOP
            - MRO
            - MUR
            - MVR
            - MWK
            - MXN
            - MYR
            - MZN
            - NAD
            - XPF
            - NGN
            - NIO
            - NPR
            - OMR
            - PAB
            - PEN
            - PGK
            - PHP
            - PKR
            - PLN
            - PYG
            - QAR
            - RON
            - RSD
            - RUB
            - RWF
            - SAR
            - SBD
            - SCR
            - SDG
            - SEK
            - SGD
            - SHP
            - SLL
            - SOS
            - SRD
            - SSP
            - STD
            - SYP
            - SZL
            - THB
            - TJS
            - TMT
            - TND
            - TOP
            - TRY
            - TTD
            - TWD
            - TZS
            - UAH
            - UGX
            - UYU
            - UZS
            - VEF
            - VND
            - VUV
            - WST
            - YER
            - ZAR
            - ZMW
            - ZWL
          description: >-
            Currency code. See [ISO
            4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).
          example: EUR
        country:
          type:
            - string
            - 'null'
          enum:
            - AD
            - AE
            - AF
            - AG
            - AI
            - AL
            - AM
            - AO
            - AQ
            - AR
            - AS
            - AT
            - AU
            - AW
            - AX
            - AZ
            - BA
            - BB
            - BD
            - BE
            - BG
            - BH
            - BI
            - BJ
            - BL
            - BM
            - BN
            - BO
            - BQ
            - BR
            - BS
            - BT
            - BF
            - BV
            - BW
            - BY
            - BZ
            - CA
            - CC
            - CD
            - CF
            - CG
            - CH
            - CI
            - CK
            - CL
            - CM
            - CN
            - CO
            - CR
            - CU
            - CV
            - CW
            - CX
            - CY
            - CZ
            - DE
            - DJ
            - DK
            - DM
            - DO
            - DZ
            - EC
            - EE
            - EG
            - EH
            - ER
            - ES
            - ES-CE
            - ES-ML
            - ET
            - FI
            - FJ
            - FK
            - FM
            - FO
            - FR
            - GA
            - GB
            - GD
            - GE
            - GF
            - GG
            - GH
            - GI
            - GL
            - GM
            - GN
            - GP
            - GQ
            - GR
            - GS
            - GT
            - GU
            - GW
            - GY
            - HK
            - HM
            - HN
            - HR
            - HT
            - HU
            - IC
            - ID
            - IE
            - IL
            - IM
            - IN
            - IO
            - IQ
            - IR
            - IS
            - IT
            - JE
            - JM
            - JO
            - JP
            - KE
            - KG
            - KH
            - KI
            - KM
            - KN
            - KP
            - KR
            - KW
            - KY
            - KZ
            - LA
            - LB
            - LC
            - LI
            - LK
            - LR
            - LS
            - LT
            - LU
            - LV
            - LY
            - MA
            - MC
            - MD
            - ME
            - MF
            - MG
            - MH
            - MK
            - ML
            - MM
            - MN
            - MO
            - MP
            - MQ
            - MR
            - MS
            - MT
            - MU
            - MV
            - MW
            - MX
            - MY
            - MZ
            - NA
            - NC
            - NE
            - NF
            - NG
            - NI
            - NL
            - 'NO'
            - NP
            - NR
            - NU
            - NZ
            - OM
            - PA
            - PE
            - PF
            - PG
            - PH
            - PK
            - PL
            - PM
            - PN
            - PR
            - PS
            - PT
            - PT-20
            - PT-30
            - PW
            - PY
            - QA
            - RE
            - RO
            - RS
            - RU
            - RW
            - SA
            - SB
            - SC
            - SD
            - SE
            - SG
            - SH
            - SI
            - SJ
            - SK
            - SL
            - SM
            - SN
            - SO
            - SR
            - SS
            - ST
            - SV
            - SX
            - SY
            - SZ
            - TC
            - TD
            - TF
            - TG
            - TH
            - TJ
            - TK
            - TL
            - TM
            - TN
            - TO
            - TR
            - TT
            - TV
            - TW
            - TZ
            - UA
            - UG
            - UM
            - US
            - UY
            - UZ
            - VA
            - VC
            - VE
            - VG
            - VI
            - VN
            - VU
            - WF
            - WS
            - XK
            - YE
            - YT
            - ZA
            - ZM
            - ZW
          description: >-
            Two-letter country code in ISO format. See [ISO 3166-1
            alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
          example: FR
        domain:
          type:
            - string
            - 'null'
          description: >-
            Customer domain. If not defined, it is inferred from the billing
            email.
          example: acme.com
        tax_ids:
          type: array
          items:
            type: object
            properties:
              value:
                type: string
                description: Value of the customer tax ID.
                example: FR123456789
              status:
                type: string
                enum:
                  - valid
                  - invalid
                  - mismatch
                  - unverified
                  - unsupported
                description: >-

                  Verification status of the customer tax ID.


                  - `valid`: Tax ID has been verified and is valid.

                  - `invalid`: Tax ID has been verified and is invalid.

                  - `mismatch`: Tax ID is valid but is for a different country
                  than the customer's country.

                  - `unverified`: Tax ID has not been verified yet.

                  - `unsupported`: Tax ID verification for this type not
                  supported yet.
                   
                example: valid
            required:
              - value
              - status
          description: Customer tax IDs.
        local_tax_number:
          type:
            - string
            - 'null'
          description: Customer local tax number.
          example: 12/345/67890
        tax_rate_custom:
          type:
            - number
            - 'null'
          minimum: 0
          maximum: 100
          description: >-
            Customer custom tax rate. If not defined, the rate will be
            automatically determined based on the customer's country, your
            country, and applicable legal requirements.
        taxability:
          type: string
          enum:
            - taxable
            - exempt
          description: |-
            Customer taxability.

            - `taxable`: Taxes are automatically determined for the customer.
            - `exempt`: The customer is exempt from tax.
             
          example: taxable
        registration_number:
          type:
            - string
            - 'null'
          description: Customer registration number.
          example: '36252187900034'
        is_government_affiliated:
          type: boolean
          description: Indicates if the customer is affiliated with a government entity.
          example: false
        einvoicing_code:
          type:
            - string
            - 'null'
          description: >-
            Customer electronic invoicing code, used to route their e-invoices
            to the relevant platform (e.g. Chorus Pro routing code or Peppol
            identifier).
          example: '0009:36252187900034'
        language:
          type:
            - string
            - 'null'
          enum:
            - fr
            - en
            - de
            - it
            - lt
            - nl
            - es
            - pt
            - pl
          description: Language used for invoices, emails, and hosted pages.
          example: fr
        timezone:
          type:
            - string
            - 'null'
          enum:
            - Pacific/Midway
            - Pacific/Pago_Pago
            - Pacific/Niue
            - Pacific/Rarotonga
            - America/Adak
            - Pacific/Honolulu
            - Pacific/Tahiti
            - Pacific/Marquesas
            - America/Anchorage
            - Pacific/Gambier
            - America/Los_Angeles
            - America/Tijuana
            - Pacific/Pitcairn
            - America/Hermosillo
            - America/Ciudad_Juarez
            - America/Denver
            - America/Phoenix
            - America/Vancouver
            - America/Whitehorse
            - America/Belize
            - America/Chicago
            - America/Guatemala
            - America/Managua
            - America/Mexico_City
            - America/Matamoros
            - America/Costa_Rica
            - America/El_Salvador
            - America/Regina
            - America/Tegucigalpa
            - Pacific/Galapagos
            - America/Edmonton
            - America/Rio_Branco
            - America/Winnipeg
            - America/Bogota
            - America/Havana
            - Pacific/Easter
            - America/Atikokan
            - America/Cancun
            - America/Cayman
            - America/Jamaica
            - America/Nassau
            - America/New_York
            - America/Panama
            - America/Port-au-Prince
            - America/Grand_Turk
            - America/Toronto
            - America/Guayaquil
            - America/Lima
            - America/Manaus
            - America/St_Kitts
            - America/Blanc-Sablon
            - America/Montserrat
            - America/Barbados
            - America/Port_of_Spain
            - America/Martinique
            - America/St_Lucia
            - America/St_Barthelemy
            - America/Halifax
            - Atlantic/Bermuda
            - America/St_Vincent
            - America/Kralendijk
            - America/Guadeloupe
            - America/Marigot
            - America/Aruba
            - America/Lower_Princes
            - America/Tortola
            - America/Dominica
            - America/St_Thomas
            - America/Grenada
            - America/Antigua
            - America/Puerto_Rico
            - America/Santo_Domingo
            - America/Anguilla
            - America/Thule
            - America/Curacao
            - America/La_Paz
            - America/Guyana
            - America/Caracas
            - America/St_Johns
            - America/Argentina/Buenos_Aires
            - America/Sao_Paulo
            - Antarctica/Palmer
            - America/Punta_Arenas
            - America/Santiago
            - Atlantic/Stanley
            - America/Cayenne
            - America/Asuncion
            - America/Miquelon
            - America/Paramaribo
            - America/Montevideo
            - America/Noronha
            - America/Nuuk
            - Atlantic/South_Georgia
            - Atlantic/Azores
            - Atlantic/Cape_Verde
            - Etc/UTC
            - Africa/Abidjan
            - Africa/Bamako
            - Africa/Bissau
            - Africa/Conakry
            - Africa/Dakar
            - America/Danmarkshavn
            - Europe/Isle_of_Man
            - Europe/Dublin
            - Africa/Freetown
            - Atlantic/St_Helena
            - Africa/Accra
            - Africa/Lome
            - Europe/London
            - Africa/Monrovia
            - Africa/Nouakchott
            - Africa/Ouagadougou
            - Atlantic/Reykjavik
            - Europe/Jersey
            - Europe/Guernsey
            - Africa/Sao_Tome
            - Africa/Banjul
            - Antarctica/Troll
            - Africa/Casablanca
            - Africa/El_Aaiun
            - Atlantic/Canary
            - Europe/Lisbon
            - Atlantic/Faroe
            - Africa/Algiers
            - Europe/Andorra
            - Europe/Belgrade
            - Europe/Berlin
            - Europe/Bratislava
            - Europe/Brussels
            - Europe/Budapest
            - Europe/Copenhagen
            - Europe/Gibraltar
            - Europe/Ljubljana
            - Arctic/Longyearbyen
            - Europe/Luxembourg
            - Europe/Madrid
            - Europe/Monaco
            - Europe/Oslo
            - Europe/Paris
            - Europe/Podgorica
            - Europe/Prague
            - Europe/Rome
            - Europe/Amsterdam
            - Europe/San_Marino
            - Europe/Malta
            - Europe/Sarajevo
            - Europe/Skopje
            - Europe/Stockholm
            - Europe/Tirane
            - Africa/Tunis
            - Europe/Vaduz
            - Europe/Vatican
            - Europe/Vienna
            - Europe/Warsaw
            - Europe/Zagreb
            - Europe/Zurich
            - Africa/Bangui
            - Africa/Malabo
            - Africa/Brazzaville
            - Africa/Porto-Novo
            - Africa/Douala
            - Africa/Kinshasa
            - Africa/Lagos
            - Africa/Libreville
            - Africa/Luanda
            - Africa/Ndjamena
            - Africa/Niamey
            - Africa/Bujumbura
            - Africa/Gaborone
            - Africa/Harare
            - Africa/Juba
            - Africa/Khartoum
            - Africa/Kigali
            - Africa/Blantyre
            - Africa/Lubumbashi
            - Africa/Lusaka
            - Africa/Maputo
            - Africa/Windhoek
            - Europe/Athens
            - Asia/Beirut
            - Europe/Bucharest
            - Africa/Cairo
            - Europe/Chisinau
            - Asia/Hebron
            - Europe/Helsinki
            - Europe/Kaliningrad
            - Europe/Kyiv
            - Europe/Mariehamn
            - Asia/Nicosia
            - Europe/Riga
            - Europe/Sofia
            - Europe/Tallinn
            - Africa/Tripoli
            - Europe/Vilnius
            - Asia/Jerusalem
            - Africa/Johannesburg
            - Africa/Mbabane
            - Africa/Maseru
            - Asia/Kuwait
            - Asia/Bahrain
            - Asia/Baghdad
            - Asia/Qatar
            - Asia/Riyadh
            - Asia/Aden
            - Asia/Amman
            - Asia/Damascus
            - Africa/Addis_Ababa
            - Indian/Antananarivo
            - Africa/Asmara
            - Africa/Dar_es_Salaam
            - Africa/Djibouti
            - Africa/Kampala
            - Indian/Mayotte
            - Africa/Mogadishu
            - Indian/Comoro
            - Africa/Nairobi
            - Europe/Minsk
            - Europe/Moscow
            - Europe/Simferopol
            - Antarctica/Syowa
            - Europe/Istanbul
            - Asia/Tehran
            - Asia/Yerevan
            - Asia/Baku
            - Asia/Tbilisi
            - Asia/Dubai
            - Asia/Muscat
            - Indian/Mauritius
            - Indian/Reunion
            - Europe/Samara
            - Indian/Mahe
            - Asia/Kabul
            - Indian/Kerguelen
            - Asia/Almaty
            - Indian/Maldives
            - Antarctica/Mawson
            - Asia/Karachi
            - Asia/Dushanbe
            - Asia/Ashgabat
            - Asia/Tashkent
            - Asia/Yekaterinburg
            - Asia/Colombo
            - Asia/Kolkata
            - Asia/Kathmandu
            - Asia/Dhaka
            - Asia/Thimphu
            - Asia/Urumqi
            - Indian/Chagos
            - Asia/Bishkek
            - Asia/Omsk
            - Indian/Cocos
            - Asia/Yangon
            - Indian/Christmas
            - Antarctica/Davis
            - Asia/Hovd
            - Asia/Bangkok
            - Asia/Ho_Chi_Minh
            - Asia/Phnom_Penh
            - Asia/Vientiane
            - Asia/Novosibirsk
            - Asia/Jakarta
            - Antarctica/Casey
            - Australia/Perth
            - Asia/Brunei
            - Asia/Makassar
            - Asia/Macau
            - Asia/Shanghai
            - Asia/Hong_Kong
            - Asia/Irkutsk
            - Asia/Kuala_Lumpur
            - Asia/Manila
            - Asia/Singapore
            - Asia/Taipei
            - Asia/Ulaanbaatar
            - Australia/Eucla
            - Asia/Jayapura
            - Asia/Tokyo
            - Asia/Pyongyang
            - Asia/Seoul
            - Pacific/Palau
            - Asia/Dili
            - Asia/Chita
            - Australia/Darwin
            - Australia/Brisbane
            - Pacific/Guam
            - Pacific/Saipan
            - Pacific/Chuuk
            - Antarctica/DumontDUrville
            - Pacific/Port_Moresby
            - Asia/Vladivostok
            - Australia/Adelaide
            - Australia/Sydney
            - Pacific/Bougainville
            - Pacific/Kosrae
            - Australia/Lord_Howe
            - Pacific/Noumea
            - Asia/Sakhalin
            - Pacific/Guadalcanal
            - Pacific/Efate
            - Pacific/Fiji
            - Pacific/Tarawa
            - Asia/Kamchatka
            - Pacific/Majuro
            - Pacific/Nauru
            - Pacific/Norfolk
            - Pacific/Funafuti
            - Pacific/Wake
            - Pacific/Wallis
            - Pacific/Auckland
            - Antarctica/McMurdo
            - Pacific/Kanton
            - Pacific/Apia
            - Pacific/Fakaofo
            - Pacific/Tongatapu
            - Pacific/Chatham
            - Pacific/Kiritimati
          description: Customer timezone.
          example: Europe/Paris
        external_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the customer in your system. This helps matching your customer
            with the one on Hyperline. When external ID uniqueness is enforced
            for your account, two active customers cannot share the same
            external ID.
          example: null
        properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: 'null'
              - type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
                    - type: boolean
                    - type: 'null'
                    - type: 'null'
              - type: 'null'
          description: Key/value pairs to store any metadata useful in your context.
          example: null
        custom_properties:
          type:
            - object
            - 'null'
          additionalProperties:
            anyOf:
              - type: string
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: >-
                  UTC date time string in the [ISO
                  8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-12-20T16:04:11Z'
              - type: array
                items:
                  type: string
              - type: 'null'
          description: >-
            A list of key value with the slug of the custom property as the key
            and the custom property value as value.
        billing_address:
          allOf:
            - $ref: '#/components/schemas/Address'
            - type: object
        shipping_address:
          type:
            - object
            - 'null'
          properties:
            name:
              type:
                - string
                - 'null'
              description: Address name.
              example: Acme
            line1:
              type:
                - string
                - 'null'
              description: Address first line.
              example: 5 rue de Paradis
            line2:
              type:
                - string
                - 'null'
              description: Address second line (optional).
              example: null
            city:
              type:
                - string
                - 'null'
              description: Address city.
              example: Paris
            zip:
              type:
                - string
                - 'null'
              description: Address ZIP code.
              example: '75010'
            state:
              type:
                - string
                - 'null'
              description: >-
                State or province of the address, stored as its code (the second
                part of the ISO 3166-2 code, e.g. `CA` for `US-CA`) for:

                - United States: state, see [ISO
                3166-2:US](https://en.wikipedia.org/wiki/ISO_3166-2:US)

                - Canada: province or territory, see [ISO
                3166-2:CA](https://en.wikipedia.org/wiki/ISO_3166-2:CA)

                - Italy: province, see [ISO
                3166-2:IT](https://en.wikipedia.org/wiki/ISO_3166-2:IT)

                - Brazil: state, see [ISO
                3166-2:BR](https://en.wikipedia.org/wiki/ISO_3166-2:BR)


                A code or a name is accepted (e.g. `ON` or `Ontario`); a value
                that matches neither for these countries is rejected. For any
                other country, the state is ignored.
              example: CA
            country:
              type:
                - string
                - 'null'
              enum:
                - AD
                - AE
                - AF
                - AG
                - AI
                - AL
                - AM
                - AO
                - AQ
                - AR
                - AS
                - AT
                - AU
                - AW
                - AX
                - AZ
                - BA
                - BB
                - BD
                - BE
                - BG
                - BH
                - BI
                - BJ
                - BL
                - BM
                - BN
                - BO
                - BQ
                - BR
                - BS
                - BT
                - BF
                - BV
                - BW
                - BY
                - BZ
                - CA
                - CC
                - CD
                - CF
                - CG
                - CH
                - CI
                - CK
                - CL
                - CM
                - CN
                - CO
                - CR
                - CU
                - CV
                - CW
                - CX
                - CY
                - CZ
                - DE
                - DJ
                - DK
                - DM
                - DO
                - DZ
                - EC
                - EE
                - EG
                - EH
                - ER
                - ES
                - ES-CE
                - ES-ML
                - ET
                - FI
                - FJ
                - FK
                - FM
                - FO
                - FR
                - GA
                - GB
                - GD
                - GE
                - GF
                - GG
                - GH
                - GI
                - GL
                - GM
                - GN
                - GP
                - GQ
                - GR
                - GS
                - GT
                - GU
                - GW
                - GY
                - HK
                - HM
                - HN
                - HR
                - HT
                - HU
                - IC
                - ID
                - IE
                - IL
                - IM
                - IN
                - IO
                - IQ
                - IR
                - IS
                - IT
                - JE
                - JM
                - JO
                - JP
                - KE
                - KG
                - KH
                - KI
                - KM
                - KN
                - KP
                - KR
                - KW
                - KY
                - KZ
                - LA
                - LB
                - LC
                - LI
                - LK
                - LR
                - LS
                - LT
                - LU
                - LV
                - LY
                - MA
                - MC
                - MD
                - ME
                - MF
                - MG
                - MH
                - MK
                - ML
                - MM
                - MN
                - MO
                - MP
                - MQ
                - MR
                - MS
                - MT
                - MU
                - MV
                - MW
                - MX
                - MY
                - MZ
                - NA
                - NC
                - NE
                - NF
                - NG
                - NI
                - NL
                - 'NO'
                - NP
                - NR
                - NU
                - NZ
                - OM
                - PA
                - PE
                - PF
                - PG
                - PH
                - PK
                - PL
                - PM
                - PN
                - PR
                - PS
                - PT
                - PT-20
                - PT-30
                - PW
                - PY
                - QA
                - RE
                - RO
                - RS
                - RU
                - RW
                - SA
                - SB
                - SC
                - SD
                - SE
                - SG
                - SH
                - SI
                - SJ
                - SK
                - SL
                - SM
                - SN
                - SO
                - SR
                - SS
                - ST
                - SV
                - SX
                - SY
                - SZ
                - TC
                - TD
                - TF
                - TG
                - TH
                - TJ
                - TK
                - TL
                - TM
                - TN
                - TO
                - TR
                - TT
                - TV
                - TW
                - TZ
                - UA
                - UG
                - UM
                - US
                - UY
                - UZ
                - VA
                - VC
                - VE
                - VG
                - VI
                - VN
                - VU
                - WF
                - WS
                - XK
                - YE
                - YT
                - ZA
                - ZM
                - ZW
              description: >-
                Two-letter country code in ISO format. See [ISO 3166-1
                alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
              example: FR
          description: Customer shipping address.
        billing_email:
          type:
            - string
            - 'null'
          format: email
          description: Email to which all communications will be sent.
          example: billing@acme.com
        invoice_emails:
          type: array
          items:
            type: string
            format: email
          description: >-
            Emails to which invoices will be sent (e.g. payer, finance team,
            accounting firm). If not defined, invoices will be sent to the
            `billing_email`; otherwise, they won't be sent to the
            `billing_email`.
          example:
            - accounting@acme.com
        invoicing_entity_id:
          type: string
          description: ID of the invoicing entity this customer will be attached to.
          example: ive_484dn4U48E
        invoice_reminders_enabled:
          anyOf:
            - type: boolean
            - type: string
              enum:
                - 'true'
                - 'false'
          description: Indicates if invoice reminders are enabled for the customer.
        consolidated_invoicing_enabled:
          anyOf:
            - type: boolean
            - type: string
              enum:
                - 'true'
                - 'false'
          description: >-
            Indicates if consolidated invoicing is enabled for the customer.
            When enabled, subscription invoices billed on the same day are
            grouped into a single invoice. Cannot be disabled while invoices are
            pending consolidation.
        force_invoice_draft:
          anyOf:
            - type: boolean
            - type: string
              enum:
                - 'true'
                - 'false'
          description: Indicates if customer invoices should be created as draft invoices.
          example: true
        price_book_id:
          type:
            - string
            - 'null'
          description: Default price book ID assigned to the customer.
          example: prib_613_WbVIZ1329e
        available_payment_methods:
          type: array
          items:
            type: string
            enum:
              - card
              - apple_pay
              - google_pay
              - direct_debit
              - direct_debit_ach
              - direct_debit_bacs
              - stripe_link
              - paypal
              - transfer
              - transfer_automated
          description: >-
            List of payment methods you allow your customer to pay with. You
            customer will be able to select one of them in their portal page and
            those will be the default options when creating a checkout session.
          example:
            - card
            - direct_debit
        subscriptions:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Subscription ID.
                example: sub_0kIc7jrF7gV00V
              status:
                type: string
                enum:
                  - draft
                  - pending
                  - trialing
                  - active
                  - paused
                  - errored
                  - cancelled
                  - voided
                  - archived
                description: Status of the subscription.
                example: active
              current_period_started_at:
                type:
                  - string
                  - 'null'
                format: date
                description: >-
                  Start date of the current period. UTC date time string in the
                  [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-10-12T07:00:01.860Z'
              current_period_ends_at:
                type:
                  - string
                  - 'null'
                format: date
                description: >-
                  End date of the current period. UTC date time string in the
                  [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
                example: '2024-11-12T07:00:01.860Z'
              plan_id:
                type:
                  - string
                  - 'null'
                description: Plan ID.
                example: plan_34hdd843hReh
                deprecated: true
              checkout_session_id:
                type:
                  - string
                  - 'null'
                description: Checkout session ID.
                example: che_949djdj39RJj
            required:
              - id
              - status
              - current_period_started_at
              - current_period_ends_at
              - plan_id
              - checkout_session_id
        segment_ids:
          type: array
          items:
            type: string
          description: IDs of segments this customer belongs to.
          example:
            - seg_0kIc7jrF7gV00V
        integrations:
          type: array
          items:
            type: object
            properties:
              entity_id:
                type: string
                description: ID of the entity in the provider.
              provider_name:
                type: string
                enum:
                  - adyen
                  - stripe
                  - mollie
                  - gocardless
                  - airwallex
                  - paypal
                  - salesforce
                  - hubspot
                  - attio
                  - xero
                  - pennylane
                  - zoho-books
                  - exact-online
                  - quickbooks
                  - netsuite
                  - rillet
                  - campfire
                  - dualentry
                  - datev
                  - anrok
                  - sphere
                  - chargebee
                  - slack
                  - plain
                  - zendesk
                  - pylon
                  - intercom
                  - front
                  - helpscout
                  - claap
                  - grain
                  - gong
                  - jiminny
                  - modjo
                  - posthog
                description: Provider name.
              provider_account_id:
                type: string
                description: ID of the connected provider account.
              created_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Creation date of the entity in the provider, when it was
                  imported from there. Exposed on products, coupons and
                  subscriptions; `null` when the provider does not report one.
                example: '2024-12-20T16:04:11Z'
              activated_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Activation date of the entity in the provider, when it was
                  imported from there. Exposed on subscriptions; `null` when the
                  provider does not report one.
                example: '2024-12-20T16:04:11Z'
            required:
              - entity_id
              - provider_name
              - provider_account_id
            description: Reference to the entity in an external provider.
            example:
              entity_id: '123456789'
              provider_name: stripe
              provider_account_id: acc_1234567890
        created_at:
          type: string
          format: date-time
          description: >-
            Customer creation date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-10-12T07:00:01.860Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Customer last edition date. UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: '2024-10-12T07:00:01.860Z'
        deleted_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            UTC date time string in the [ISO
            8601](https://en.wikipedia.org/wiki/ISO_8601) format.
          example: null
        organisation_id:
          type:
            - string
            - 'null'
          description: Parent organization ID to which the client is attached.
          example: null
        organisation_invoicing:
          type:
            - string
            - 'null'
          enum:
            - none
            - every_invoice
            - concat
          description: >-

            How customer invoices are issued from the parent organisation.


            - `none`: Invoices will keep being issued from this customer.

            - `every_invoice`: Customer invoices will be issued from the
            organisation individually.

            - `concat`: Customer invoices will be grouped into a global parent
            invoice at a regular schedule (configured on the organisation).
             
          example: null
        owner_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the Hyperline user responsible for this customer and targeted
            by customer agent notifications.
          example: usr_KMcxRWc1ZQwvJG
        owner:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              description: Hyperline user ID.
              example: usr_KMcxRWc1ZQwvJG
            email:
              type: string
              format: email
              description: User email.
              example: owner@acme.com
            first_name:
              type:
                - string
                - 'null'
              description: User first name.
              example: Ada
            last_name:
              type:
                - string
                - 'null'
              description: User last name.
              example: Lovelace
            picture_url:
              type:
                - string
                - 'null'
              description: User picture URL.
              example: null
          required:
            - id
            - email
            - first_name
            - last_name
            - picture_url
          description: >-
            Hyperline user responsible for this customer and targeted by
            customer agent notifications.
        followers:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Hyperline user ID.
                example: usr_KMcxRWc1ZQwvJG
              email:
                type: string
                format: email
                description: User email.
                example: owner@acme.com
              first_name:
                type:
                  - string
                  - 'null'
                description: User first name.
                example: Ada
              last_name:
                type:
                  - string
                  - 'null'
                description: User last name.
                example: Lovelace
              picture_url:
                type:
                  - string
                  - 'null'
                description: User picture URL.
                example: null
            required:
              - id
              - email
              - first_name
              - last_name
              - picture_url
          description: >-
            Hyperline users following this customer and targeted by customer
            agent notifications.
        payment_terms:
          type:
            - number
            - 'null'
          description: >-
            Custom payment terms in days. If not defined, the default one
            defined on the related invoicing entity will be used.
          example: 30
        payment_initiation_delay:
          type:
            - number
            - 'null'
          description: >-
            Custom initiation delay in days before triggering payment. If not
            defined, the default one defined on the related invoicing entity
            will be used.
          example: 7
        payment_method_type:
          type:
            - string
            - 'null'
          enum:
            - card
            - apple_pay
            - google_pay
            - direct_debit
            - direct_debit_ach
            - direct_debit_bacs
            - stripe_link
            - paypal
            - transfer
            - transfer_automated
            - external
          description: >-
            Default payment method type used to pay subscriptions and one-off
            invoices.
          example: card
        payment_method_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the default payment method of the customer. Only applies to
            card and direct debit.
          example: pm_UTclbc1US8GzCe
      required:
        - id
        - name
        - type
        - status
        - currency
        - country
        - domain
        - tax_ids
        - local_tax_number
        - tax_rate_custom
        - taxability
        - registration_number
        - is_government_affiliated
        - einvoicing_code
        - language
        - timezone
        - external_id
        - properties
        - custom_properties
        - billing_address
        - shipping_address
        - billing_email
        - invoice_emails
        - invoicing_entity_id
        - invoice_reminders_enabled
        - consolidated_invoicing_enabled
        - force_invoice_draft
        - price_book_id
        - available_payment_methods
        - subscriptions
        - segment_ids
        - integrations
        - created_at
        - updated_at
        - deleted_at
        - organisation_id
        - organisation_invoicing
        - owner_id
        - owner
        - followers
        - payment_terms
        - payment_initiation_delay
        - payment_method_type
        - payment_method_id
    PaymentMethod:
      anyOf:
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - active
                - pending
                - expired
                - errored
              description: >-

                Payment method status.


                - `active`: The payment method is ready to be used.

                - `pending`: The payment method is pending activation or being
                validated.
                  
              example: active
            type:
              type: string
              enum:
                - card
                - apple_pay
                - google_pay
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: card
            last_4_digits:
              type:
                - number
                - 'null'
              description: Last four digits of the card.
              example: 2718
            expiration_date:
              type:
                - string
                - 'null'
              description: Expiration date of the card using YYYY-MM format.
              example: 2027-11
            brand:
              type:
                - string
                - 'null'
              enum:
                - amex
                - bancontact
                - cartes_bancaires
                - diners
                - discover
                - jcb
                - link
                - maestro
                - mastercard
                - other
                - unionpay
                - unknown
                - visa
              description: Card brand.
              examples:
                - visa
                - mastercard
                - amex
          required:
            - id
            - status
            - type
            - last_4_digits
            - expiration_date
            - brand
          title: Card
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - errored
              description: >-

                Payment method status.


                - `errored`: The payment method has failed and can no longer be
                used.
                  
              example: errored
            error_type:
              type: string
              enum:
                - authentication_required
                - authorization_error
                - insufficient_funds
                - declined
                - expired
                - fraud
                - invalid
                - mandate_invalid
                - not_supported
                - unknown
              description: >-

                Payment method error type.


                - `authentication_required`: The card was declined as the
                transaction requires authentication (e.g. 3-D Secure). The
                customer should go to their portal page and authenticate their
                card. If the error happened on an already authenticated
                transaction, the customer needs to contact their card issuer for
                more information.

                - `authorization_error`: A transaction authorization cannot be
                created for a variety of reasons such as the card issuer
                couldn't be reached, or the card requires a PIN.

                - `declined`: The payment method was declined for a variety of
                reasons such as a card reported as lost or stolen, insufficient
                funds or reaching the limit available on the method to complete
                the purchase, a payment method on a known block list, etc.

                - `expired`: The payment method is expired. The customer should
                go to their portal page and change their payment method.

                - `fraud`: The payment provider suspected the payment method was
                fraudulent and has been blocked. Don't report more detailed
                information to your customer, and check on your provider
                account.

                - `invalid`: The payment method is invalid in most cases because
                of incorrect details (card/account number, CVC, expiration date,
                postal code).

                - `not_supported`: The payment method doesn't support this type
                of purchase (e.g. currency, online payment).

                - `unknown`: A generic error happened on the payment provider
                side.
                  
              example: expired
            type:
              type: string
              enum:
                - card
                - apple_pay
                - google_pay
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: card
            last_4_digits:
              type:
                - number
                - 'null'
              description: Last four digits of the card.
              example: 2718
            expiration_date:
              type:
                - string
                - 'null'
              description: Expiration date of the card using YYYY-MM format.
              example: 2027-11
            brand:
              type:
                - string
                - 'null'
              enum:
                - amex
                - bancontact
                - cartes_bancaires
                - diners
                - discover
                - jcb
                - link
                - maestro
                - mastercard
                - other
                - unionpay
                - unknown
                - visa
              description: Card brand.
              examples:
                - visa
                - mastercard
                - amex
          required:
            - id
            - status
            - error_type
            - type
            - last_4_digits
            - expiration_date
            - brand
          title: Card (errored)
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - active
                - pending
                - expired
                - errored
              description: >-

                Payment method status.


                - `active`: The payment method is ready to be used.

                - `pending`: The payment method is pending activation or being
                validated.
                  
              example: active
            type:
              type: string
              enum:
                - direct_debit
                - direct_debit_ach
                - direct_debit_bacs
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: direct_debit
            account_number_ending:
              type:
                - string
                - 'null'
              description: Last characters of the account number.
              example: '6789'
          required:
            - id
            - status
            - type
            - account_number_ending
          title: Direct Debit
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - errored
              description: >-

                Payment method status.


                - `errored`: The payment method has failed and can no longer be
                used.
                  
              example: errored
            error_type:
              type: string
              enum:
                - authentication_required
                - authorization_error
                - insufficient_funds
                - declined
                - expired
                - fraud
                - invalid
                - mandate_invalid
                - not_supported
                - unknown
              description: >-

                Payment method error type.


                - `authentication_required`: The card was declined as the
                transaction requires authentication (e.g. 3-D Secure). The
                customer should go to their portal page and authenticate their
                card. If the error happened on an already authenticated
                transaction, the customer needs to contact their card issuer for
                more information.

                - `authorization_error`: A transaction authorization cannot be
                created for a variety of reasons such as the card issuer
                couldn't be reached, or the card requires a PIN.

                - `declined`: The payment method was declined for a variety of
                reasons such as a card reported as lost or stolen, insufficient
                funds or reaching the limit available on the method to complete
                the purchase, a payment method on a known block list, etc.

                - `expired`: The payment method is expired. The customer should
                go to their portal page and change their payment method.

                - `fraud`: The payment provider suspected the payment method was
                fraudulent and has been blocked. Don't report more detailed
                information to your customer, and check on your provider
                account.

                - `invalid`: The payment method is invalid in most cases because
                of incorrect details (card/account number, CVC, expiration date,
                postal code).

                - `not_supported`: The payment method doesn't support this type
                of purchase (e.g. currency, online payment).

                - `unknown`: A generic error happened on the payment provider
                side.
                  
              example: expired
            type:
              type: string
              enum:
                - direct_debit
                - direct_debit_ach
                - direct_debit_bacs
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: direct_debit
            account_number_ending:
              type:
                - string
                - 'null'
              description: Last characters of the account number.
              example: '6789'
          required:
            - id
            - status
            - error_type
            - type
            - account_number_ending
          title: Direct Debit (errored)
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - active
                - pending
                - expired
                - errored
              description: >-

                Payment method status.


                - `active`: The payment method is ready to be used.

                - `pending`: The payment method is pending activation or being
                validated.
                  
              example: active
            type:
              type: string
              enum:
                - stripe_link
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: stripe_link
          required:
            - id
            - status
            - type
          title: Stripe Link
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - errored
              description: >-

                Payment method status.


                - `errored`: The payment method has failed and can no longer be
                used.
                  
              example: errored
            error_type:
              type: string
              enum:
                - authentication_required
                - authorization_error
                - insufficient_funds
                - declined
                - expired
                - fraud
                - invalid
                - mandate_invalid
                - not_supported
                - unknown
              description: >-

                Payment method error type.


                - `authentication_required`: The card was declined as the
                transaction requires authentication (e.g. 3-D Secure). The
                customer should go to their portal page and authenticate their
                card. If the error happened on an already authenticated
                transaction, the customer needs to contact their card issuer for
                more information.

                - `authorization_error`: A transaction authorization cannot be
                created for a variety of reasons such as the card issuer
                couldn't be reached, or the card requires a PIN.

                - `declined`: The payment method was declined for a variety of
                reasons such as a card reported as lost or stolen, insufficient
                funds or reaching the limit available on the method to complete
                the purchase, a payment method on a known block list, etc.

                - `expired`: The payment method is expired. The customer should
                go to their portal page and change their payment method.

                - `fraud`: The payment provider suspected the payment method was
                fraudulent and has been blocked. Don't report more detailed
                information to your customer, and check on your provider
                account.

                - `invalid`: The payment method is invalid in most cases because
                of incorrect details (card/account number, CVC, expiration date,
                postal code).

                - `not_supported`: The payment method doesn't support this type
                of purchase (e.g. currency, online payment).

                - `unknown`: A generic error happened on the payment provider
                side.
                  
              example: expired
            type:
              type: string
              enum:
                - stripe_link
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: stripe_link
          required:
            - id
            - status
            - error_type
            - type
          title: Stripe Link (errored)
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - active
                - pending
                - expired
                - errored
              description: >-

                Payment method status.


                - `active`: The payment method is ready to be used.

                - `pending`: The payment method is pending activation or being
                validated.
                  
              example: active
            type:
              type: string
              enum:
                - paypal
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: paypal
          required:
            - id
            - status
            - type
          title: PayPal
        - type: object
          properties:
            id:
              type: string
              description: Payment method ID.
              example: pm_1xMpj5bwRqN7LM
            status:
              type: string
              enum:
                - errored
              description: >-

                Payment method status.


                - `errored`: The payment method has failed and can no longer be
                used.
                  
              example: errored
            error_type:
              type: string
              enum:
                - authentication_required
                - authorization_error
                - insufficient_funds
                - declined
                - expired
                - fraud
                - invalid
                - mandate_invalid
                - not_supported
                - unknown
              description: >-

                Payment method error type.


                - `authentication_required`: The card was declined as the
                transaction requires authentication (e.g. 3-D Secure). The
                customer should go to their portal page and authenticate their
                card. If the error happened on an already authenticated
                transaction, the customer needs to contact their card issuer for
                more information.

                - `authorization_error`: A transaction authorization cannot be
                created for a variety of reasons such as the card issuer
                couldn't be reached, or the card requires a PIN.

                - `declined`: The payment method was declined for a variety of
                reasons such as a card reported as lost or stolen, insufficient
                funds or reaching the limit available on the method to complete
                the purchase, a payment method on a known block list, etc.

                - `expired`: The payment method is expired. The customer should
                go to their portal page and change their payment method.

                - `fraud`: The payment provider suspected the payment method was
                fraudulent and has been blocked. Don't report more detailed
                information to your customer, and check on your provider
                account.

                - `invalid`: The payment method is invalid in most cases because
                of incorrect details (card/account number, CVC, expiration date,
                postal code).

                - `not_supported`: The payment method doesn't support this type
                of purchase (e.g. currency, online payment).

                - `unknown`: A generic error happened on the payment provider
                side.
                  
              example: expired
            type:
              type: string
              enum:
                - paypal
              description: |-

                Payment method type.

                - `card`: Credit or debit card
                - `apple_pay`: Apple Pay
                - `google_pay`: Google Pay
                - `direct_debit_sepa`: SEPA Direct Debit
                - `direct_debit_ach`: ACH Direct Debit
                - `direct_debit_bacs`: Bacs Direct Debit
                - `stripe_link`: Stripe Link
                - `paypal`: PayPal
                  
              example: paypal
          required:
            - id
            - status
            - error_type
            - type
          title: PayPal (errored)
        - type: 'null'
      description: Payment method used for a card or direct debit transaction.
    BankAccount:
      anyOf:
        - $ref: '#/components/schemas/StandardBankAccount'
        - $ref: '#/components/schemas/ConnectedBankAccount'
        - type: 'null'
      description: Bank account used for a bank transfer transaction.
    Address:
      type:
        - object
        - 'null'
      properties:
        name:
          type:
            - string
            - 'null'
          description: Address name.
          example: Acme
        line1:
          type:
            - string
            - 'null'
          description: Address first line.
          example: 5 rue de Paradis
        line2:
          type:
            - string
            - 'null'
          description: Address second line (optional).
          example: null
        city:
          type:
            - string
            - 'null'
          description: Address city.
          example: Paris
        zip:
          type:
            - string
            - 'null'
          description: Address ZIP code.
          example: '75010'
        state:
          type:
            - string
            - 'null'
          description: >-
            State or province of the address, stored as its code (the second
            part of the ISO 3166-2 code, e.g. `CA` for `US-CA`) for:

            - United States: state, see [ISO
            3166-2:US](https://en.wikipedia.org/wiki/ISO_3166-2:US)

            - Canada: province or territory, see [ISO
            3166-2:CA](https://en.wikipedia.org/wiki/ISO_3166-2:CA)

            - Italy: province, see [ISO
            3166-2:IT](https://en.wikipedia.org/wiki/ISO_3166-2:IT)

            - Brazil: state, see [ISO
            3166-2:BR](https://en.wikipedia.org/wiki/ISO_3166-2:BR)


            A code or a name is accepted (e.g. `ON` or `Ontario`); a value that
            matches neither for these countries is rejected. For any other
            country, the state is ignored.
          example: CA
        country:
          type:
            - string
            - 'null'
          enum:
            - AD
            - AE
            - AF
            - AG
            - AI
            - AL
            - AM
            - AO
            - AQ
            - AR
            - AS
            - AT
            - AU
            - AW
            - AX
            - AZ
            - BA
            - BB
            - BD
            - BE
            - BG
            - BH
            - BI
            - BJ
            - BL
            - BM
            - BN
            - BO
            - BQ
            - BR
            - BS
            - BT
            - BF
            - BV
            - BW
            - BY
            - BZ
            - CA
            - CC
            - CD
            - CF
            - CG
            - CH
            - CI
            - CK
            - CL
            - CM
            - CN
            - CO
            - CR
            - CU
            - CV
            - CW
            - CX
            - CY
            - CZ
            - DE
            - DJ
            - DK
            - DM
            - DO
            - DZ
            - EC
            - EE
            - EG
            - EH
            - ER
            - ES
            - ES-CE
            - ES-ML
            - ET
            - FI
            - FJ
            - FK
            - FM
            - FO
            - FR
            - GA
            - GB
            - GD
            - GE
            - GF
            - GG
            - GH
            - GI
            - GL
            - GM
            - GN
            - GP
            - GQ
            - GR
            - GS
            - GT
            - GU
            - GW
            - GY
            - HK
            - HM
            - HN
            - HR
            - HT
            - HU
            - IC
            - ID
            - IE
            - IL
            - IM
            - IN
            - IO
            - IQ
            - IR
            - IS
            - IT
            - JE
            - JM
            - JO
            - JP
            - KE
            - KG
            - KH
            - KI
            - KM
            - KN
            - KP
            - KR
            - KW
            - KY
            - KZ
            - LA
            - LB
            - LC
            - LI
            - LK
            - LR
            - LS
            - LT
            - LU
            - LV
            - LY
            - MA
            - MC
            - MD
            - ME
            - MF
            - MG
            - MH
            - MK
            - ML
            - MM
            - MN
            - MO
            - MP
            - MQ
            - MR
            - MS
            - MT
            - MU
            - MV
            - MW
            - MX
            - MY
            - MZ
            - NA
            - NC
            - NE
            - NF
            - NG
            - NI
            - NL
            - 'NO'
            - NP
            - NR
            - NU
            - NZ
            - OM
            - PA
            - PE
            - PF
            - PG
            - PH
            - PK
            - PL
            - PM
            - PN
            - PR
            - PS
            - PT
            - PT-20
            - PT-30
            - PW
            - PY
            - QA
            - RE
            - RO
            - RS
            - RU
            - RW
            - SA
            - SB
            - SC
            - SD
            - SE
            - SG
            - SH
            - SI
            - SJ
            - SK
            - SL
            - SM
            - SN
            - SO
            - SR
            - SS
            - ST
            - SV
            - SX
            - SY
            - SZ
            - TC
            - TD
            - TF
            - TG
            - TH
            - TJ
            - TK
            - TL
            - TM
            - TN
            - TO
            - TR
            - TT
            - TV
            - TW
            - TZ
            - UA
            - UG
            - UM
            - US
            - UY
            - UZ
            - VA
            - VC
            - VE
            - VG
            - VI
            - VN
            - VU
            - WF
            - WS
            - XK
            - YE
            - YT
            - ZA
            - ZM
            - ZW
          description: >-
            Two-letter country code in ISO format. See [ISO 3166-1
            alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
          example: FR
      description: Customer billing address.
    StandardBankAccount:
      allOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - standard
              description: |
                Bank account type.

                - `standard`: Bank account not connected through open banking.
                - `connected`: Bank account connected through open banking.
              example: standard
          required:
            - type
        - type: object
          properties:
            id:
              type: string
              description: Bank account ID.
              example: bac_KJyPrMA1toAqRG
            currency:
              type: string
              enum:
                - EUR
                - AED
                - AFN
                - XCD
                - ALL
                - AMD
                - AOA
                - ARS
                - USD
                - AUD
                - AWG
                - AZN
                - BAM
                - BBD
                - BDT
                - BGN
                - BHD
                - BIF
                - XOF
                - BMD
                - BND
                - BOB
                - BRL
                - BSD
                - BTN
                - NOK
                - BWP
                - BYR
                - BZD
                - CAD
                - CDF
                - XAF
                - CHF
                - NZD
                - CLP
                - CNY
                - COP
                - CRC
                - CUP
                - CVE
                - ANG
                - CZK
                - DJF
                - DKK
                - DOP
                - DZD
                - EGP
                - MAD
                - ERN
                - ETB
                - FJD
                - FKP
                - GBP
                - GEL
                - GHS
                - GIP
                - GMD
                - GNF
                - GTQ
                - GYD
                - HKD
                - HNL
                - HRK
                - HTG
                - HUF
                - IDR
                - ILS
                - INR
                - IQD
                - IRR
                - ISK
                - JMD
                - JOD
                - JPY
                - KES
                - KGS
                - KHR
                - KMF
                - KPW
                - KRW
                - KWD
                - KYD
                - KZT
                - LAK
                - LBP
                - LKR
                - LRD
                - LSL
                - LYD
                - MDL
                - MGA
                - MKD
                - MMK
                - MNT
                - MOP
                - MRO
                - MUR
                - MVR
                - MWK
                - MXN
                - MYR
                - MZN
                - NAD
                - XPF
                - NGN
                - NIO
                - NPR
                - OMR
                - PAB
                - PEN
                - PGK
                - PHP
                - PKR
                - PLN
                - PYG
                - QAR
                - RON
                - RSD
                - RUB
                - RWF
                - SAR
                - SBD
                - SCR
                - SDG
                - SEK
                - SGD
                - SHP
                - SLL
                - SOS
                - SRD
                - SSP
                - STD
                - SYP
                - SZL
                - THB
                - TJS
                - TMT
                - TND
                - TOP
                - TRY
                - TTD
                - TWD
                - TZS
                - UAH
                - UGX
                - UYU
                - UZS
                - VEF
                - VND
                - VUV
                - WST
                - YER
                - ZAR
                - ZMW
                - ZWL
              description: Bank account currency.
              example: EUR
            bank_name:
              type:
                - string
                - 'null'
              description: Bank name.
              example: Fake bank
            name:
              type:
                - string
                - 'null'
              description: Bank account display name.
              example: Main account
            country:
              type:
                - string
                - 'null'
              description: Bank account country.
              example: FR
          required:
            - id
            - currency
            - bank_name
            - name
            - country
        - anyOf:
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - iban_bic_swift
                  description: Bank account details format.
                  example: iban_bic_swift
                iban:
                  type: string
                  description: IBAN.
                  example: FR7630006000011234567890189
                bic_swift:
                  type:
                    - string
                    - 'null'
                  description: BIC or SWIFT code.
                  example: BNPAFRPP
              required:
                - format
                - iban
                - bic_swift
              title: IBAN / BIC / SWIFT
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - sort_code_account_number
                  description: Bank account details format.
                  example: sort_code_account_number
                sort_code:
                  type: string
                  description: Sort code.
                  example: '123456'
                account_number:
                  type: string
                  description: Account number.
                  example: '000123456789'
              required:
                - format
                - sort_code
                - account_number
              title: Sort code / Account number
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - account_number_routing_number
                  description: Bank account details format.
                  example: account_number_routing_number
                account_number:
                  type: string
                  description: Account number.
                  example: '000123456789'
                routing_number:
                  type: string
                  description: Routing number.
                  example: '021000021'
              required:
                - format
                - account_number
                - routing_number
              title: Account number / Routing number
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - account_number_bic_swift
                  description: Bank account details format.
                  example: account_number_bic_swift
                account_number:
                  type: string
                  description: Account number.
                  example: '000123456789'
                bic_swift:
                  type: string
                  description: BIC or SWIFT code.
                  example: BNPAFRPP
              required:
                - format
                - account_number
                - bic_swift
              title: Account number / BIC / SWIFT
          example:
            format: iban_bic_swift
            iban: FR7630006000011234567890189
            bic_swift: BNPAFRPP
      title: Standard bank account
    ConnectedBankAccount:
      allOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - connected
              description: |
                Bank account type.

                - `standard`: Bank account not connected through open banking.
                - `connected`: Bank account connected through open banking.
              example: connected
            status:
              type: string
              enum:
                - active
                - error
              description: Bank account connection status.
              example: active
            balance:
              type:
                - number
                - 'null'
              description: >-
                Latest known balance for connected bank accounts, expressed in
                the currency's smallest unit.
              example: 120500
            last_refreshed_at:
              type:
                - string
                - 'null'
              format: date-time
              description: Date when the connected bank account was last refreshed.
              example: '2026-01-15T10:30:00.000Z'
            last_error_type:
              type:
                - string
                - 'null'
              enum:
                - provider_error
                - invalid_credentials
                - unknown
              description: Latest connection error type, when the account is errored.
              example: null
          required:
            - type
            - status
            - balance
            - last_refreshed_at
            - last_error_type
        - type: object
          properties:
            id:
              type: string
              description: Bank account ID.
              example: bac_KJyPrMA1toAqRG
            currency:
              type: string
              enum:
                - EUR
                - AED
                - AFN
                - XCD
                - ALL
                - AMD
                - AOA
                - ARS
                - USD
                - AUD
                - AWG
                - AZN
                - BAM
                - BBD
                - BDT
                - BGN
                - BHD
                - BIF
                - XOF
                - BMD
                - BND
                - BOB
                - BRL
                - BSD
                - BTN
                - NOK
                - BWP
                - BYR
                - BZD
                - CAD
                - CDF
                - XAF
                - CHF
                - NZD
                - CLP
                - CNY
                - COP
                - CRC
                - CUP
                - CVE
                - ANG
                - CZK
                - DJF
                - DKK
                - DOP
                - DZD
                - EGP
                - MAD
                - ERN
                - ETB
                - FJD
                - FKP
                - GBP
                - GEL
                - GHS
                - GIP
                - GMD
                - GNF
                - GTQ
                - GYD
                - HKD
                - HNL
                - HRK
                - HTG
                - HUF
                - IDR
                - ILS
                - INR
                - IQD
                - IRR
                - ISK
                - JMD
                - JOD
                - JPY
                - KES
                - KGS
                - KHR
                - KMF
                - KPW
                - KRW
                - KWD
                - KYD
                - KZT
                - LAK
                - LBP
                - LKR
                - LRD
                - LSL
                - LYD
                - MDL
                - MGA
                - MKD
                - MMK
                - MNT
                - MOP
                - MRO
                - MUR
                - MVR
                - MWK
                - MXN
                - MYR
                - MZN
                - NAD
                - XPF
                - NGN
                - NIO
                - NPR
                - OMR
                - PAB
                - PEN
                - PGK
                - PHP
                - PKR
                - PLN
                - PYG
                - QAR
                - RON
                - RSD
                - RUB
                - RWF
                - SAR
                - SBD
                - SCR
                - SDG
                - SEK
                - SGD
                - SHP
                - SLL
                - SOS
                - SRD
                - SSP
                - STD
                - SYP
                - SZL
                - THB
                - TJS
                - TMT
                - TND
                - TOP
                - TRY
                - TTD
                - TWD
                - TZS
                - UAH
                - UGX
                - UYU
                - UZS
                - VEF
                - VND
                - VUV
                - WST
                - YER
                - ZAR
                - ZMW
                - ZWL
              description: Bank account currency.
              example: EUR
            bank_name:
              type:
                - string
                - 'null'
              description: Bank name.
              example: Fake bank
            name:
              type:
                - string
                - 'null'
              description: Bank account display name.
              example: Main account
            country:
              type:
                - string
                - 'null'
              description: Bank account country.
              example: FR
          required:
            - id
            - currency
            - bank_name
            - name
            - country
        - anyOf:
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - iban_bic_swift
                  description: Bank account details format.
                  example: iban_bic_swift
                iban:
                  type: string
                  description: IBAN.
                  example: FR7630006000011234567890189
                bic_swift:
                  type:
                    - string
                    - 'null'
                  description: BIC or SWIFT code.
                  example: BNPAFRPP
              required:
                - format
                - iban
                - bic_swift
              title: IBAN / BIC / SWIFT
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - sort_code_account_number
                  description: Bank account details format.
                  example: sort_code_account_number
                sort_code:
                  type: string
                  description: Sort code.
                  example: '123456'
                account_number:
                  type: string
                  description: Account number.
                  example: '000123456789'
              required:
                - format
                - sort_code
                - account_number
              title: Sort code / Account number
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - account_number_routing_number
                  description: Bank account details format.
                  example: account_number_routing_number
                account_number:
                  type: string
                  description: Account number.
                  example: '000123456789'
                routing_number:
                  type: string
                  description: Routing number.
                  example: '021000021'
              required:
                - format
                - account_number
                - routing_number
              title: Account number / Routing number
            - type: object
              properties:
                format:
                  type: string
                  enum:
                    - account_number_bic_swift
                  description: Bank account details format.
                  example: account_number_bic_swift
                account_number:
                  type: string
                  description: Account number.
                  example: '000123456789'
                bic_swift:
                  type: string
                  description: BIC or SWIFT code.
                  example: BNPAFRPP
              required:
                - format
                - account_number
                - bic_swift
              title: Account number / BIC / SWIFT
          example:
            format: iban_bic_swift
            iban: FR7630006000011234567890189
            bic_swift: BNPAFRPP
      title: Connected bank account
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.