Divvy · Schema

CustomerResponseDto

Customers response.

CompanyPaymentsSpend ManagementCorporate CardsExpense ManagementFintechBills

Properties

Name Type Description
id string BILL-generated ID of the customer. The value begins with `0cu`.
archived boolean Set as `true` if the customer is archived.
name string Customer name
companyName string Customer company name. This field is overridden when you connect with a customer in the BILL network.
contact object
email string Customer email address
phone string Customer phone number. This field is overridden when you connect with a customer in the BILL network.
fax string Customer fax number
description string Customer description
invoiceCurrency object
accountType object
paymentTermId string BILL-generated ID of the payment term. Use payment terms to set the number of days the customer has to clear an invoice.
accountNumber string Customer account number. The number appears in customer invoices.
billingAddress object
shippingAddress object
balance object
hasBankAccount boolean Set as `true` if the customer bank account is added
authorizedToCharge boolean Set as `true` if your organization is authorized to charge the customer for invoices
createdTime string Created date and time
updatedTime string Updated date and time
View JSON Schema on GitHub

JSON Schema

divvy-customer-response-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-customer-response-dto-schema.json",
  "title": "CustomerResponseDto",
  "description": "Customers response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-customers-api-openapi.yml#/components/schemas/CustomerResponseDto",
  "required": [
    "email",
    "name"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "BILL-generated ID of the customer. The value begins with `0cu`."
    },
    "archived": {
      "type": "boolean",
      "description": "Set as `true` if the customer is archived."
    },
    "name": {
      "type": "string",
      "description": "Customer name"
    },
    "companyName": {
      "type": "string",
      "description": "Customer company name. This field is overridden when you connect with a customer in the BILL network."
    },
    "contact": {
      "allOf": [
        {
          "$ref": "#/$defs/CustomerContact"
        },
        {
          "description": "Customer contact information"
        }
      ]
    },
    "email": {
      "type": "string",
      "description": "Customer email address"
    },
    "phone": {
      "pattern": "^.{0,20}$",
      "type": "string",
      "description": "Customer phone number. This field is overridden when you connect with a customer in the BILL network."
    },
    "fax": {
      "pattern": "^.{0,20}$",
      "type": "string",
      "description": "Customer fax number"
    },
    "description": {
      "type": "string",
      "description": "Customer description"
    },
    "invoiceCurrency": {
      "allOf": [
        {
          "$ref": "#/$defs/CurrencyCode"
        },
        {
          "description": "Invoice currency. Three-letter abbreviation."
        }
      ]
    },
    "accountType": {
      "allOf": [
        {
          "$ref": "#/$defs/CustomerAccountTypeResponse"
        },
        {
          "description": "Customer account type"
        }
      ]
    },
    "paymentTermId": {
      "type": "string",
      "description": "BILL-generated ID of the payment term. Use payment terms to set the number of days the customer has to clear an invoice."
    },
    "accountNumber": {
      "type": "string",
      "description": "Customer account number. The number appears in customer invoices."
    },
    "billingAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/AddressResponse"
        },
        {
          "description": "Customer billing address. This information is overridden when you connect with a customer in the BILL network."
        }
      ]
    },
    "shippingAddress": {
      "allOf": [
        {
          "$ref": "#/$defs/AddressResponse"
        },
        {
          "description": "Customer shipping address. This information is overridden when you connect with a customer in the BILL network."
        }
      ]
    },
    "balance": {
      "allOf": [
        {
          "$ref": "#/$defs/CustomerBalance"
        },
        {
          "description": "Current balance to be paid by the customer"
        }
      ]
    },
    "hasBankAccount": {
      "type": "boolean",
      "description": "Set as `true` if the customer bank account is added"
    },
    "authorizedToCharge": {
      "type": "boolean",
      "description": "Set as `true` if your organization is authorized to charge the customer for invoices"
    },
    "createdTime": {
      "type": "string",
      "description": "Created date and time",
      "format": "date-time"
    },
    "updatedTime": {
      "type": "string",
      "description": "Updated date and time",
      "format": "date-time"
    }
  },
  "$defs": {
    "AddressResponse": {
      "required": [
        "city",
        "country",
        "line1",
        "zipOrPostalCode"
      ],
      "type": "object",
      "properties": {
        "line1": {
          "minLength": 1,
          "pattern": "^.{0,1000}$",
          "type": "string",
          "description": "Address line 1"
        },
        "line2": {
          "pattern": "^.{0,100}$",
          "type": "string",
          "description": "Address line 2"
        },
        "city": {
          "minLength": 1,
          "pattern": "^.{0,100}$",
          "type": "string",
          "description": "Address city"
        },
        "stateOrProvince": {
          "pattern": "^.{0,100}$",
          "type": "string",
          "description": "State or province"
        },
        "zipOrPostalCode": {
          "minLength": 1,
          "pattern": "^.{0,30}$",
          "type": "string",
          "description": "Zip or postal code"
        },
        "country": {
          "allOf": [
            {
              "$ref": "#/$defs/CountryCode"
            },
            {
              "description": "Country code (ISO2)"
            }
          ]
        },
        "countryName": {
          "type": "string",
          "description": "Country name."
        }
      },
      "description": "Address response."
    },
    "CountryCode": {
      "type": "string",
      "description": "Enumeration based on the ISO2 country code specification.",
      "enum": [
        "AD",
        "AE",
        "AF",
        "AG",
        "AI",
        "AL",
        "AM",
        "AO",
        "AQ",
        "AR",
        "AS",
        "AT",
        "AU",
        "AW",
        "AZ",
        "BA",
        "BB",
        "BD",
        "BE",
        "BF",
        "BG",
        "BH",
        "BI",
        "BJ",
        "BM",
        "BN",
        "BO",
        "BR",
        "BS",
        "BT",
        "BW",
        "BY",
        "BZ",
        "CA",
        "CC",
        "CD",
        "CF",
        "CG",
        "CH",
        "CI",
        "CK",
        "CL",
        "CM",
        "CN",
        "CO",
        "CR",
        "CV",
        "CX",
        "CY",
        "CZ",
        "DE",
        "DJ",
        "DK",
        "DM",
        "DO",
        "DZ",
        "EC",
        "EE",
        "EG",
        "EH",
        "ER",
        "ES",
        "ET",
        "FI",
        "FJ",
        "FK",
        "FM",
        "FO",
        "FR",
        "GA",
        "GB",
        "GD",
        "GE",
        "GF",
        "GH",
        "GI",
        "GL",
        "GM",
        "GN",
        "GP",
        "GQ",
        "GR",
        "GS",
        "GT",
        "GW",
        "GY",
        "HK",
        "HM",
        "HN",
        "HR",
        "HT",
        "HU",
        "ID",
        "IE",
        "IL",
        "IN",
        "IO",
        "IQ",
        "IS",
        "IT",
        "JM",
        "JO",
        "JP",
        "KE",
        "KG",
        "KH",
        "KI",
        "KM",
        "KN",
        "KR",
        "KW",
        "KY",
        "KZ",
        "LA",
        "LB",
        "LC",
        "LI",
        "LK",
        "LR",
        "LS",
        "LT",
        "LU",
        "LV",
        "LY",
        "MA",
        "MC",
        "MD",
        "ME",
        "MG",
        "MH",
        "MK",
        "ML",
        "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",
        "PS",
        "PT",
        "PW",
        "PY",
        "QA",
        "RE",
        "RO",
        "RS",
        "RU",
        "RW",
        "SA",
        "SB",
        "SC",
        "SE",
        "SG",
        "SH",
        "SI",
        "SJ",
        "SK",
        "SL",
        "SM",
        "SN",
        "SO",
        "SR",
        "ST",
        "SV",
        "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",
        "VN",
        "VU",
        "WF",
        "WS",
        "YE",
        "YT",
        "ZA",
        "ZM",
        "ZW"
      ]
    },
    "CurrencyCode": {
      "type": "string",
      "description": "Enumeration based on the ISO2 country code specification.",
      "enum": [
        "AED",
        "AFN",
        "ALL",
        "AMD",
        "ANG",
        "AOA",
        "ARS",
        "AUD",
        "AWG",
        "AZN",
        "BAM",
        "BBD",
        "BDT",
        "BGN",
        "BHD",
        "BIF",
        "BMD",
        "BND",
        "BOB",
        "BRL",
        "BSD",
        "BTN",
        "BWP",
        "BYN",
        "BZD",
        "CAD",
        "CDF",
        "CHF",
        "CLP",
        "CNY",
        "COP",
        "CRC",
        "CUC",
        "CUP",
        "CVE",
        "CZK",
        "DJF",
        "DKK",
        "DOP",
        "DZD",
        "EGP",
        "ERN",
        "ETB",
        "EUR",
        "FJD",
        "FKP",
        "GBP",
        "GEL",
        "GGP",
        "GHS",
        "GIP",
        "GMD",
        "GNF",
        "GTQ",
        "GYD",
        "HKD",
        "HNL",
        "HRK",
        "HTG",
        "HUF",
        "IDR",
        "ILS",
        "IMP",
        "INR",
        "IQD",
        "IRR",
        "ISK",
        "JEP",
        "JMD",
        "JOD",
        "JPY",
        "KES",
        "KGS",
        "KHR",
        "KMF",
        "KPW",
        "KRW",
        "KWD",
        "KYD",
        "KZT",
        "LAK",
        "LBP",
        "LKR",
        "LRD",
        "LSL",
        "LYD",
        "MAD",
        "MDL",
        "MGA",
        "MKD",
        "MMK",
        "MNT",
        "MOP",
        "MRU",
        "MUR",
        "MVR",
        "MWK",
        "MXN",
        "MYR",
        "MZN",
        "NAD",
        "NGN",
        "NIO",
        "NOK",
        "NPR",
        "NZD",
        "OMR",
        "PAB",
        "PEN",
        "PGK",
        "PHP",
        "PKR",
        "PLN",
        "PYG",
        "QAR",
        "RON",
        "RSD",
        "RUB",
        "RWF",
        "SAR",
        "SBD",
        "SCR",
        "SDG",
        "SEK",
        "SGD",
        "SHP",
        "SLE",
        "SLL",
        "SOS",
        "SPL",
        "SRD",
        "STN",
        "SVC",
        "SYP",
        "SZL",
        "THB",
        "TJS",
        "TMT",
        "TND",
        "TOP",
        "TRY",
        "TTD",
        "TVD",
        "TWD",
        "TZS",
        "UAH",
        "UGX",
        "USD",
        "UYU",
        "UZS",
        "VEF",
        "VND",
        "VUV",
        "WST",
        "XAF",
        "XCD",
        "XDR",
        "XOF",
        "XPF",
        "YER",
        "ZAR",
        "ZMW",
        "ZWD"
      ]
    },
    "CustomerAccountTypeResponse": {
      "type": "string",
      "description": "CustomerAccountType.",
      "enum": [
        "NONE",
        "BUSINESS",
        "PERSON",
        "UNDEFINED"
      ]
    },
    "CustomerBalance": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number"
        }
      },
      "description": "The type CustomerBalance dto."
    },
    "CustomerContact": {
      "type": "object",
      "properties": {
        "firstName": {
          "maxLength": 100,
          "type": "string",
          "description": "First name"
        },
        "lastName": {
          "maxLength": 100,
          "type": "string",
          "description": "Last name"
        }
      },
      "description": "Customer contact."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/divvy-customer-response-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.