The Vendor object
A Rutter Vendor represents a business or contact that the business entity has purchased from. In some accounting systems, a vendor may be called a Supplier. The vendor object contains contact information as well as shipping and billing addresses.
Properties
id
stringThe Rutter generated unique ID of the vendor.
platform_id
stringThe platform specific ID of the vendor.
vendor_name
stringnullableThe name of the vendor.
contact_name
stringnullableThe name of the primary contact associated with the vendor.
email
stringnullableThe email of the primary contact associated with the vendor.
website
stringnullableThe website associated with the vendor.
phone
stringnullableThe phone number of the primary contact associated with the vendor.
addresses
arrayAn array of addresses associated with the vendor.
addresses
attributesregistration_number
stringnullableThe registration number of the vendor
tax_number
stringnullableThe tax number of the vendor.
status
enumThe status of the address.
created_at
stringThe ISO 8601 timestamp that the vendor was created.
updated_at
stringThe ISO 8601 timestamp that the vendor was last updated.
platform_data
optionalThe raw platform data corresponding to the Rutter object.
currency
enumnullableThe ISO 4217 currency code of the vendor.
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"vendor_name": "Rutter",
"contact_name": "Eric Yu",
"email": "eric@rutter.com",
"website": "https://rutter.com",
"currency": "USD",
"phone": "1234567890",
"addresses": [
{
"type": "billing",
"address1": "123 Rutter Road",
"address2": "Floor 4",
"city": "San Francisco",
"region": "CA",
"country": "USA",
"postal_code": "94110"
}
],
"registration_number": "123456789",
"tax_number": "12-3456789",
"status": "active",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z"
}
List Vendors
GET /accounting/vendorsRequest Parameters
access_token
stringqueryThe access token of the connection.
cursor
stringoptionalqueryThe cursor to use for pagination. This value is passed in from next_cursor
field in a previous request.
expand
enumoptionalqueryUsed to request inclusion of optional objects.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
limit
integeroptionalqueryThe limit on the number of entities returned.
updated_at_max
integeroptionalqueryThe Unix Timestamp in milliseconds maximum updated_at datetime to fetch entities from.
updated_at_min
integeroptionalqueryThe Unix Timestamp in milliseconds minimum updated_at datetime to fetch entities from.
Response Body
connection
Connectionconnection
attributesvendors
arrayvendors
attributesnext_cursor
stringnullableoptional{
"vendors": [
{
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"vendor_name": "Rutter",
"contact_name": "Eric Yu",
"email": "eric@rutter.com",
"website": "https://rutter.com",
"currency": "USD",
"phone": "1234567890",
"addresses": [
{
"type": "billing",
"address1": "123 Rutter Road",
"address2": "Floor 4",
"city": "San Francisco",
"region": "CA",
"country": "USA",
"postal_code": "94110"
}
],
"registration_number": "123456789",
"tax_number": "12-3456789",
"status": "active",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z"
}
],
"next_cursor": "MTY3NDgzMTk0Ml82MDY4ZDI0ZC02NGRmLTRmN2EtYTM0Ny0zN2ZmNjY5MGVmMjU=",
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE",
"orgId": "00000000-0000-0000-0000-000000000000"
}
}
Fetch a Vendor
GET /accounting/vendors/:idRequest Parameters
id
stringpathThe Rutter generated unique ID of the object.
access_token
stringqueryThe access token of the connection.
force_fetch
enumoptionalqueryForce a response even if the underlying connection hasn't finished the initial sync.
Response Body
connection
Connectionconnection
attributesvendor
Vendorvendor
attributes{
"vendor": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"vendor_name": "Rutter",
"contact_name": "Eric Yu",
"email": "eric@rutter.com",
"website": "https://rutter.com",
"currency": "USD",
"phone": "1234567890",
"addresses": [
{
"type": "billing",
"address1": "123 Rutter Road",
"address2": "Floor 4",
"city": "San Francisco",
"region": "CA",
"country": "USA",
"postal_code": "94110"
}
],
"registration_number": "123456789",
"tax_number": "12-3456789",
"status": "active",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z"
},
"connection": {
"id": "00000000-0000-0000-0000-000000000000",
"platform": "NETSUITE",
"orgId": "00000000-0000-0000-0000-000000000000"
}
}
Create a Vendor
POST /accounting/vendorsRequest Parameters
access_token
stringqueryThe access token of the connection.
Request Body
vendor
objectvendor
attributesResponse Body
Any of:
Vendor Response
vendor
Vendorvendor
attributesAsync Response Payload
async_response
objectoptionalasync_response
attributeserrors
arrayoptionalerrors
attributes{
"vendor": {
"vendor_name": "Rutter",
"contact_name": "Eric Yu",
"email": "eric@rutter.com",
"website": "https://rutter.com",
"currency": "USD",
"phone": "1234567890",
"addresses": [
{
"type": "billing",
"address1": "123 Rutter Road",
"address2": "Floor 4",
"city": "San Francisco",
"region": "CA",
"country": "USA",
"postal_code": "94110"
}
],
"registration_number": "123456789",
"tax_number": "12-3456789"
}
}
{
"vendor": {
"id": "00000000-0000-0000-0000-000000000000",
"platform_id": "12345678",
"vendor_name": "Rutter",
"contact_name": "Eric Yu",
"email": "eric@rutter.com",
"website": "https://rutter.com",
"currency": "USD",
"phone": "1234567890",
"addresses": [
{
"type": "billing",
"address1": "123 Rutter Road",
"address2": "Floor 4",
"city": "San Francisco",
"region": "CA",
"country": "USA",
"postal_code": "94110"
}
],
"registration_number": "123456789",
"tax_number": "12-3456789",
"status": "active",
"created_at": "2023-01-02T02:34:56.000Z",
"updated_at": "2023-01-02T02:34:56.000Z"
}
}