biterp

Get supplier by record number

GET
/suppliers/by-record-number/{record_number}
AuthorizationBearer <token>

In: header

Query Parameters

expand?string

Comma-separated relations to expand, using dot-paths for nested ones. Absent or empty means no expansion: each relation is returned as null with its reference field filled (<rel>_id, or a natural key such as country_code). Valid paths: country, state, city.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.biterp.ai/suppliers/by-record-number/{record_number}"
{
  "id": "string",
  "record_number": 0,
  "type": "individual",
  "tax_id": "string",
  "tax_id_type": "CPF",
  "legal_name": "string",
  "trade_name": "string",
  "website": "string",
  "address_street": "string",
  "address_number": "string",
  "address_complement": "string",
  "address_district": "string",
  "city": {
    "id": 0,
    "country_id": 0,
    "state_id": 0,
    "country_code": "string",
    "state_code": "string",
    "name": "string",
    "latitude": "-23.55052000",
    "longitude": "-46.63331000",
    "wikidata_id": "string",
    "is_blocked": true,
    "display_order": 0,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "metadata": [
      {
        "id": 0,
        "metadata_type": "string",
        "metadata_value": "string",
        "description": "string"
      }
    ]
  },
  "state": {
    "id": 0,
    "country_id": 0,
    "state_code": "string",
    "country_code": "string",
    "name": "string",
    "latitude": "-23.55052000",
    "longitude": "-46.63331000",
    "is_blocked": true,
    "display_order": 0,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "metadata": [
      {
        "id": 0,
        "metadata_type": "string",
        "metadata_value": "string",
        "description": "string"
      }
    ]
  },
  "country": {
    "id": 0,
    "iso2": "string",
    "iso3": "string",
    "numeric_code": "string",
    "name_en": "string",
    "name_pt": "string",
    "name_es": "string",
    "native": "string",
    "phone_code": "string",
    "capital": "string",
    "currency": "string",
    "currency_name": "string",
    "currency_symbol": "string",
    "tld": "string",
    "region": "string",
    "subregion": "string",
    "region_id": 0,
    "subregion_id": 0,
    "nationality": "string",
    "latitude": "-14.23500000",
    "longitude": "-51.92530000",
    "emoji": "string",
    "emoji_u": "string",
    "is_blocked": true,
    "display_order": 0,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "metadata": [
      {
        "id": 0,
        "metadata_type": "string",
        "metadata_value": "string",
        "description": "string"
      }
    ]
  },
  "state_id": 0,
  "city_id": 0,
  "postal_code": "string",
  "country_code": "string",
  "reference_code": "string",
  "bank_code": "string",
  "branch_number": "string",
  "account_number": "string",
  "account_type": "string",
  "emails": [
    "string"
  ],
  "phones": [
    "string"
  ],
  "tags": [
    "string"
  ],
  "is_blocked": true,
  "metadata": {},
  "br_data": {
    "supplier_id": "3cb1e20c-c6c9-4e71-ba66-399c468f697c",
    "ie": "string",
    "ie_exempt": true,
    "im": "string",
    "suframa": "string",
    "tax_regime": "string",
    "cnae_primary": "string",
    "cnae_secondary": [
      "string"
    ],
    "nire": "string",
    "pix_key": "string",
    "pix_key_type": "string"
  },
  "us_data": {
    "supplier_id": "3cb1e20c-c6c9-4e71-ba66-399c468f697c",
    "w9_on_file": true,
    "w9_received_date": "2019-08-24",
    "naics_code": "string",
    "sic_code": "string",
    "tax_classification": "string",
    "sales_tax_exempt": true,
    "sales_tax_exempt_certificate": "string",
    "sales_tax_exempt_expiry": "2019-08-24",
    "resale_certificate": "string",
    "state_tax_id": "string",
    "state_of_incorporation": "string",
    "duns_number": "string",
    "cage_code": "string",
    "bank_name": "string",
    "routing_number": "string",
    "ach_authorized": true,
    "ach_authorization_date": "2019-08-24"
  },
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "deleted_at": "2019-08-24T14:15:22Z"
}
Empty
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND",
  "details": {
    "field": "tax_id",
    "existing_id": "018f3e4c-9b4a-7b01-8d4a-6de1f0f80001"
  }
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND",
  "details": {
    "field": "tax_id",
    "existing_id": "018f3e4c-9b4a-7b01-8d4a-6de1f0f80001"
  }
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND",
  "details": {
    "field": "tax_id",
    "existing_id": "018f3e4c-9b4a-7b01-8d4a-6de1f0f80001"
  }
}
{
  "status_code": 404,
  "message": "Customer not found",
  "error": "Not Found",
  "code": "CUSTOMER_NOT_FOUND",
  "details": {
    "field": "tax_id",
    "existing_id": "018f3e4c-9b4a-7b01-8d4a-6de1f0f80001"
  }
}