Syntax

GET /api/suppliers/{id}/

Returns a JSON object that contains several core and custom fields for a supplier identified by its {id}. The user performing this request has to be authorized to View Suppliers.

Example:

GET /api/suppliers/20100/

Request Parameters

ParameterTypeDescriptionExample
idNumberSupplier identifierGET /api/suppliers/20100/ will return all core and custom fields for the supplier 20100.

Sample Response

An example JSON response can be seen here:

{
    "id": 9631991,
    "connection_status": {
      "is_connected": true,
      "connected_acct_has_company": true
    },
    "vendor_num": "777",
    "site_code": "1",
    "supplier_name": "Other",
    "address_type": 0,
    "address_pay_to": null,
    "address1": null,
    "address2": null,
    "city": null,
    "state": null,
    "country": "US",
    "zipcode": null,
    "tin": "112233445",
    "ts": "2023-01-26T12:18:41.867431-05:00",
    "last_modified": "2023-01-26T12:22:12.691297-05:00",
    "normalized_vendor_num": "777",
    "contact_email": null,
    "request_id": "19938",
    "status": null,
    "additional_field_1": null,
    "additional_field_2": null,
    "additional_field_3": null,
    "additional_field_4": null,
    "additional_field_5": null,
    "bank_acct_num": null,
    "bank_name": null,
    "routing_num": null,
    "name_on_acct": null,
    "bank_country": null,
    "payment_method": null,
    "hashed_bank_acct_num": null,
    "virtual_card_category": null,
    "acct": 17075,
    "acct_company": 15007
  }

JSON Response Key/Value Explanations

KeyTypeSample ValueDescription
idNumber20100
address_typeStringRType of address. Possible values are:

  • C (Corporate)
  • R (Remit)
  • O (Order)

HTTP Response Codes

Status CodeDescription
200 OKThe request was processed successfully.
400 Bad RequestThe request could not be understood by the server due to incorrect syntax.
401 Unauthenticated
The request requires user authentication information. Your API token is missing or invalid.
403 ForbiddenPermission Denied – User does not have permission to perform this request
404 Not FoundThe resource you requested on the server does not exist
500The request has failed due to a temporary failure of the server. You can try this request at a later time.
503The request has failed due to a temporary failure of the server. You can try this request at a later time.

Calling the API