Recurly Business Entities API

Describes the business address that will be used for invoices and taxes depending on settings and subscriber location.

GitHub OpenAPI

Operations 3

GET /business_entities/{business_entity_id} Fetch a business entity #
GET /business_entities List business entities #
GET /business_entities/{uuid} Fetch a Business Entity #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/recurly:recurly-business-entities-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

recurly-business-entities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Recurly Business Entities API
  version: '1.0'
  description: 'Operations tagged Business Entities across 2 of this provider''s published API definitions: recurly-openapi.yml, recurly-v2-v2.29-api.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://v3.recurly.com
- url: https://v3.eu.recurly.com
- url: https://{subdomain}.{domain}/v2
  variables:
    subdomain:
      description: Subdomain of your Recurly site.
      default: my-super-successful-company
    domain:
      description: Domain of your Recurly site.
      default: recurly.com
security:
- api_key: []
tags:
- name: Business Entities
  description: Describes the business address that will be used for invoices and taxes depending on settings and subscriber location.
paths:
  /business_entities/{business_entity_id}:
    parameters:
    - $ref: '#/components/parameters/business_entity_id'
    get:
      tags:
      - Business Entities
      operationId: get_business_entity
      summary: Fetch a business entity
      parameters:
      - $ref: '#/components/parameters/accept_header'
      responses:
        '200':
          description: Business entity details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BusinessEntity'
        '404':
          description: Incorrect site or business entity ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Unexpected error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-code-samples: []
    servers:
    - url: https://v3.recurly.com
    - url: https://v3.eu.recurly.com
  /business_entities:
    get:
      tags:
      - Business Entities
      operationId: list_business_entities
      summary: List business entities
      parameters:
      - $ref: '#/components/parameters/accept_header'
      responses:
        '200':
          description: List of all business entities on your site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BusinessEntityList'
        '404':
          description: Incorrect site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Unexpected error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-code-samples: []
    servers:
    - url: https://v3.recurly.com
    - url: https://v3.eu.recurly.com
  /business_entities/{uuid}:
    get:
      summary: Fetch a Business Entity
      description: Returns a specific business entity.
      tags:
      - Business Entities
      operationId: fetchBusinessEntity
      parameters:
      - in: path
        name: uuid
        schema:
          type: string
          default: ''
        required: true
        description: The uuid for the business entity.
      responses:
        '200':
          description: ''
          content:
            application/xml:
              example: "<business_entity href=\"https://your-subdomain.recurly.com/v2/business_entities/su3n18oalr9m\">\n  <invoices href=\"https://your-subdomain.recurly.com/v2/business_entities/su3n18oalr9m/invoices\"/>\n  <id>su3n18oalr9m</id>\n  <code>legacy_usa</code>\n  <name>Legacy USA</name>\n  <invoice_display_address>\n    <address1>94250 Sadye Ramp</address1>\n    <address2>Apt. 771</address2>\n    <city>Oakland</city>\n    <state>CA</state>\n    <zip>94605</zip>\n    <country>US</country>\n    <phone>718-555-1234</phone>\n  </invoice_display_address>\n  <tax_address>\n    <address1>94250 Sadye Ramp</address1>\n    <address2>Apt. 771</address2>\n    <city>Oakland</city>\n    <state>CA</state>\n    <zip>94605</zip>\n    <country>US</country>\n    <phone>718-555-1234</phone>\n  </tax_address>\n  <subscriber_location_countries type=\"array\">\n    <subscriber_location_country>GB</subscriber_location_country>\n    <subscriber_location_country>CO</subscriber_location_country>\n  </subscriber_location_countries>\n  <default_vat_number>1234</default_vat_number>\n  <default_registration_number>5678</default_registration_number>\n  <created_at type=\"datetime\">2023-05-04T17:45:43Z</created_at>\n  <updated_at type=\"datetime\">2023-05-04T17:45:43Z</updated_at>\n  <default_liability_gl_account_id>8djclk3992</default_liability_gl_account_id>\n  <default_revenue_gl_account_id>ikv8737kc9l</default_revenue_gl_account_id>\n</business_entity>"
              schema:
                $ref: '#/components/schemas/BusinessEntity_2'
        '404':
          description: ''
          content:
            application/xml:
              example: "<error>\n  <symbol>not_found</symbol>\n  <description lang=\"en-US\">Couldn't find BusinessEntity with uuid = xxx</description>\n</error>"
      x-codeSamples:
      - lang: PHP
        source: "<?php\n\ntry {\n  $business_entity = Recurly_BusinessEntity::get('p7gnbhfxbe8o');\n  print \"Business Entity: $business_entity\\n\";\n} catch (Recurly_NotFoundError $e) {\n  print \"Business Entity does not exist\";\n}"
      - lang: Ruby
        source: 'business_entity = Recurly::BusinessEntity.find(''sbup2j0fx800'')


          account = Recurly::Account.find(''my_account_code'')

          entity = account.override_business_entity


          invoice = Recurly::Invoice.find(''1'')

          entity = invoice.business_entity'
      - lang: Python
        source: 'entity = recurly.BusinessEntity.get(''sy8yqpgxmeqc'')


          account = recurly.Account.get(''account-code'')

          entity = account.override_business_entity()


          invoice - recurly.Invoice.get(123)

          entity = invoice.business_entity()'
      - lang: Dotnet
        source: 'var businessEntity = BusinessEntities.Get("su3n18oalr9m");

          Console.WriteLine("Business Entity: " + businessEntity);'
      - lang: Java
        source: 'BusinessEntity businessEntity = client.getBusinessEntity("sg2e75h5bdr4");

          System.out.println("Business Entity: " + businessEntity);'
    servers:
    - url: https://{subdomain}.{domain}/v2
      variables:
        subdomain:
          description: Subdomain of your Recurly site.
          default: my-super-successful-company
        domain:
          description: Domain of your Recurly site.
          default: recurly.com
components:
  schemas:
    ErrorTypeEnum:
      type: string
      enum:
      - bad_request
      - immutable_subscription
      - internal_server_error
      - invalid_api_key
      - invalid_api_version
      - invalid_content_type
      - invalid_permissions
      - invalid_token
      - missing_feature
      - not_found
      - rate_limited
      - service_not_available
      - simultaneous_request
      - tax_service_error
      - transaction
      - unauthorized
      - unavailable_in_api_version
      - unknown_api_version
      - validation
    BusinessEntity:
      type: object
      description: Business entity details
      properties:
        id:
          title: Business entity ID
          type: string
          maxLength: 13
          readOnly: true
        object:
          title: Object type
          type: string
          readOnly: true
        code:
          title: Business entity code
          type: string
          maxLength: 50
          description: The entity code of the business entity.
        name:
          type: string
          title: Name
          description: This name describes your business entity and will appear on the invoice.
          maxLength: 255
        invoice_display_address:
          title: Invoice display address
          description: Address information for the business entity that will appear on the invoice.
          $ref: '#/components/schemas/Address'
        tax_address:
          title: Tax address
          description: Address information for the business entity that will be used for calculating taxes.
          $ref: '#/components/schemas/Address'
        origin_tax_address_source:
          $ref: '#/components/schemas/OriginTaxAddressSourceEnum'
        destination_tax_address_source:
          $ref: '#/components/schemas/DestinationTaxAddressSourceEnum'
        default_vat_number:
          type: string
          title: Default VAT number
          description: VAT number for the customer used on the invoice.
          maxLength: 20
        default_registration_number:
          type: string
          title: Default registration number
          description: Registration number for the customer used on the invoice.
          maxLength: 30
        subscriber_location_countries:
          type: array
          title: Subscriber location countries
          description: List of countries for which the business entity will be used.
          items:
            type: string
            title: Country code
        default_liability_gl_account_id:
          type: string
          title: General Ledger Account ID
          description: 'The ID of a general ledger account. General ledger accounts are

            only accessible as a part of the Recurly RevRec Standard and

            Recurly RevRec Advanced features.

            '
          maxLength: 13
        default_revenue_gl_account_id:
          type: string
          title: General Ledger Account ID
          description: 'The ID of a general ledger account. General ledger accounts are

            only accessible as a part of the Recurly RevRec Standard and

            Recurly RevRec Advanced features.

            '
          maxLength: 13
        created_at:
          type: string
          format: date-time
          title: Created at
          readOnly: true
        updated_at:
          type: string
          format: date-time
          title: Last updated at
          readOnly: true
    OriginTaxAddressSourceEnum:
      type: string
      title: Origin tax address source
      description: The source of the address that will be used as the origin in determining taxes. Available only when the site is on an Elite plan. A value of "origin" refers to the "Business entity tax address". A value of "destination" refers to the "Customer tax address".
      default: origin
      enum:
      - origin
      - destination
    Error:
      type: object
      properties:
        type:
          title: Type
          $ref: '#/components/schemas/ErrorTypeEnum'
        message:
          type: string
          title: Message
        params:
          type: array
          title: Parameter specific errors
          items:
            type: object
            properties:
              param:
                type: string
    DestinationTaxAddressSourceEnum:
      type: string
      title: Destination tax address source
      description: The source of the address that will be used as the destinaion in determining taxes. Available only when the site is on an Elite plan. A value of "destination" refers to the "Customer tax address". A value of "origin" refers to the "Business entity tax address".
      default: destination
      enum:
      - destination
      - origin
    BusinessEntityList:
      type: object
      properties:
        object:
          type: string
          title: Object type
          description: Will always be List.
        has_more:
          type: boolean
          description: Indicates there are more results on subsequent pages.
        next:
          type: string
          description: Path to subsequent page of results.
        data:
          type: array
          items:
            $ref: '#/components/schemas/BusinessEntity'
    AcceptHeaderEnum:
      type: string
      enum:
      - application/vnd.recurly.v2021-02-25
      - application/vnd.recurly.v2021-02-25+json
    Address:
      type: object
      properties:
        phone:
          type: string
          title: Phone number
        street1:
          type: string
          title: Street 1
          maxLength: 50
        street2:
          type: string
          title: Street 2
          maxLength: 50
        city:
          type: string
          title: City
        region:
          type: string
          title: State/Province
          description: State or province.
        postal_code:
          type: string
          title: Zip/Postal code
          description: Zip or postal code.
        country:
          type: string
          title: Country
          description: Country, 2-letter ISO 3166-1 alpha-2 code.
        geo_code:
          type: string
          maxLength: 20
          description: Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
    BusinessEntity_2:
      type: object
      description: Business entity details
      properties:
        id:
          title: Business entity ID
          type: string
          maxLength: 13
          readOnly: true
        code:
          title: Business entity code
          type: string
          maxLength: 50
          description: The entity code of the business entity.
        name:
          type: string
          title: Name
          description: This name describes your business entity and will appear on the invoice.
          maxLength: 255
        invoice_display_address:
          title: Invoice display address
          description: Address information for the business entity that will appear on the invoice.
          $ref: '#/components/schemas/Address_2'
        tax_address:
          title: Tax address
          description: Address information for the business entity that will be used for calculating taxes.
          $ref: '#/components/schemas/Address_2'
        origin_tax_address_source:
          $ref: '#/components/schemas/OriginTaxAddressSourceEnum'
        destination_tax_address_source:
          $ref: '#/components/schemas/DestinationTaxAddressSourceEnum'
        subscriber_location_countries:
          type: array
          title: Subscriber location countries
          description: List of countries for which the business entity will be used.
          items:
            type: object
        default_vat_number:
          type: string
          title: Default VAT number
          description: VAT number for the customer used on the invoice.
          maxLength: 20
        default_registration_number:
          type: string
          title: Default registration number
          description: Registration number for the customer used on the invoice.
          maxLength: 30
        created_at:
          type: string
          format: date-time
          title: Created at
          readOnly: true
        updated_at:
          type: string
          format: date-time
          title: Last updated at
          readOnly: true
        default_liability_gl_account_id:
          $ref: '#/components/schemas/GeneralLedgerAccountId'
        default_revenue_gl_account_id:
          $ref: '#/components/schemas/GeneralLedgerAccountId'
    GeneralLedgerAccountId:
      type: string
      title: General Ledger Account ID
      description: 'The ID of a general ledger account. General ledger accounts are

        only accessible as a part of the Recurly RevRec Standard and

        Recurly RevRec Advanced features.

        '
      maxLength: 13
      example: iiznlrvdt8py
      xml:
        name: id
    Address_2:
      type: object
      properties:
        address1:
          type: string
          example: 123 Main St.
        address2:
          type: string
          example: Suite 101
        city:
          type: string
          example: San Francisco
        state:
          type: string
          example: CA
        zip:
          type: string
          example: 94105
        country:
          type: string
          example: US
          maxLength: 2
        phone:
          type: string
          example: 555-222-1212
  parameters:
    business_entity_id:
      name: business_entity_id
      in: path
      description: Business Entity ID. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-entity1`.
      required: true
      schema:
        type: string
    accept_header:
      name: Accept
      in: header
      description: The API version to use for this request, e.g. `application/vnd.recurly.v2021-02-25`. Requests without a versioned `Accept` header return a 406 response.
      required: true
      schema:
        default: application/vnd.recurly.v2021-02-25
        $ref: '#/components/schemas/AcceptHeaderEnum'
  securitySchemes:
    api_key:
      type: http
      description: Enter the API key as the username and set the password to an empty string. You can locate and manage your API keys from the [API Credentials](https://app.recurly.com/go/developer/api_keys) page.
      scheme: basic
x-refined-from:
- recurly-openapi.yml
- recurly-v2-v2.29-api.yaml
x-readme:
  explorer-enabled: false