> ## 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.

# Unarchive customer

> Unarchive an archived customer.



## OpenAPI

````yaml put /v1/customers/{id}/unarchive
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:
  /v1/customers/{id}/unarchive:
    put:
      tags:
        - Customers > Lifecycle
      summary: Unarchive customer
      description: Unarchive an archived customer.
      operationId: unarchiveCustomer
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Customer unarchived
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerV1'
        '404':
          description: Customer not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '409':
          description: >-
            External ID uniqueness is enforced and another active customer
            already uses this external ID.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    CustomerV1:
      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
        vat_number:
          type:
            - string
            - 'null'
          description: Deprecated field, please use `tax_ids`.
          deprecated: true
        vat_number_valid:
          type: boolean
          description: Deprecated field, please use `tax_ids`.
          deprecated: true
        vat_rate_custom:
          type:
            - number
            - 'null'
          description: Deprecated field, please use `tax_rate_custom`.
          deprecated: true
        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: ID of the default price book 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
        current_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
        current_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
        custom_payment_delay:
          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
        custom_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
        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: ID of the plan the subscription is based on.
                example: plan_34hdd843hReh
                deprecated: true
              checkout_session_id:
                type:
                  - string
                  - 'null'
                description: ID of the checkout session linked to the subscription.
                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
      required:
        - id
        - name
        - type
        - status
        - currency
        - country
        - domain
        - vat_number
        - vat_number_valid
        - vat_rate_custom
        - 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
        - current_payment_method_type
        - current_payment_method_id
        - custom_payment_delay
        - custom_payment_initiation_delay
        - subscriptions
        - segment_ids
        - integrations
        - created_at
        - updated_at
        - deleted_at
    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.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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