Returns a list of companies in the network.
Success
{- "_object": "/api/response",
 - "version": 2,
 - "data": {
- "_object": "/api/collections/paginated",
 - "next": null,
 - "total_count": 121,
 - "data": [
- {
- "_object": "/network/company",
 - "id": "ABC123",
 - "metadata": { },
 - "name": "CompanyFoo",
 - "ref": "ref_for_company",
 - "editable": true,
 - "entities": [
- {
- "_object": "/company_entity",
 - "id": 9281,
 - "name": "Zoomit",
 - "mailing_address": {
- "_object": "/address",
 - "street_address": "1641 Settlers Lane",
 - "street_address2": "STE 2918",
 - "city": "Albany",
 - "state": "MN",
 - "country": "United States of America",
 - "country_code": "US",
 - "zip": "56307",
 - "unlocode": "USAL2",
 - "timezone": "America/Los_Angeles",
 - "ref": "zoomit_address_ref"
 
}, - "ref": "zoomit_ref",
 - "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
 - "country_code": "US",
 - "number": "US 123746396"
 
} 
] 
} 
], - "locations": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/location",
 
}, - "contacts": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/contacts",
 
} 
} 
] 
} 
}The created company
error
{- "name": "Zoomit",
 - "ref": "zoomit-ref"
 
}Success
{- "_object": "/api/response",
 - "version": 2,
 - "data": {
- "_object": "/network/company",
 - "id": "K67EZV1K8cQ5afQErZwk1Q",
 - "name": "Zoomit",
 - "ref": "zoomit_ref",
 - "editable": true,
 - "entities": [
- {
- "_object": "/company/entity",
 - "id": 123456,
 - "name": "Zoomit",
 - "mailing_address": {
- "_object": "/address",
 - "street_address": "1641 Settlers Lane",
 - "street_address2": "STE 2918",
 - "city": "Albany",
 - "state": "MN",
 - "country": "United States of America",
 - "country_code": "US",
 - "zip": "56307",
 - "unlocode": "USAL2",
 - "timezone": "America/Los_Angeles",
 - "ref": "zoomit_address_ref"
 
}, - "ref": "id-123456",
 - "vat_numbers": [ ]
 
} 
], - "locations": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/location",
 
}, - "contacts": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/contact",
 
} 
} 
}Retrieves the details of a single company.
Success
| _object | string  | ||||||||||||||||||
| self | string  | ||||||||||||||||||
| version | integer  | ||||||||||||||||||
object (Company)   | |||||||||||||||||||
  | |||||||||||||||||||
Success
{- "_object": "/api/response",
 - "version": 2,
 - "data": {
- "_object": "/network/company",
 - "id": "ABC123",
 - "metadata": { },
 - "name": "CompanyFoo",
 - "ref": "ref_for_company",
 - "editable": true,
 - "entities": [
- {
- "_object": "/company_entity",
 - "id": 9281,
 - "name": "Zoomit",
 - "mailing_address": {
- "_object": "/address",
 - "street_address": "1641 Settlers Lane",
 - "street_address2": "STE 2918",
 - "city": "Albany",
 - "state": "MN",
 - "country": "United States of America",
 - "country_code": "US",
 - "zip": "56307",
 - "unlocode": "USAL2",
 - "timezone": "America/Los_Angeles",
 - "ref": "zoomit_address_ref"
 
}, - "ref": "zoomit_ref",
 - "vat_numbers": [
- {
- "_object": "company_entity/vat_number",
 - "country_code": "US",
 - "number": "US 123746396"
 
} 
] 
} 
], - "locations": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/location",
 
}, - "contacts": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/contact",
 
} 
} 
}The updated company
| _object | string  | ||||||||||||||||||
| self | string  | ||||||||||||||||||
| version | integer  | ||||||||||||||||||
object (Company)   | |||||||||||||||||||
  | |||||||||||||||||||
error
{- "name": "Updated Zoomit",
 - "ref": "zoomit_ref"
 
}Success
{- "_object": "/api/response",
 - "version": 2,
 - "data": {
- "_object": "/network/company",
 - "id": "K67EZV1K8cQ5afQErZwk1Q",
 - "name": "Updated Zoomit",
 - "ref": "zoomit_ref",
 - "editable": true,
 - "entities": [
- {
- "_object": "/company/entity",
 - "id": 123456,
 - "name": "Zoomit",
 - "mailing_address": {
- "_object": "/address",
 - "street_address": "1641 Settlers Lane",
 - "street_address2": "STE 2918",
 - "city": "Albany",
 - "state": "MN",
 - "country": "United States of America",
 - "country_code": "US",
 - "zip": "56307",
 - "unlocode": "USAL2",
 - "timezone": "America/Los_Angeles",
 - "ref": "zoomit_address_ref"
 
}, - "ref": "id-123456",
 - "vat_numbers": [ ]
 
} 
], - "locations": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/location",
 
}, - "contacts": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/contact",
 
} 
} 
}Retrieves the details of your own organization.
Success
| _object | string  | ||||||||||||||||||
| self | string  | ||||||||||||||||||
| version | integer  | ||||||||||||||||||
object (Company)   | |||||||||||||||||||
  | |||||||||||||||||||
error
Success
{- "_object": "/api/response",
 - "version": 2,
 - "data": {
- "_object": "/network/company",
 - "id": "ABC123",
 - "name": "CompanyFoo",
 - "ref": "ref_for_company",
 - "editable": true,
 - "entities": [
- {
- "_object": "/company_entity",
 - "id": 9281,
 - "name": "Zoomit",
 - "mailing_address": {
- "_object": "/address",
 - "street_address": "1641 Settlers Lane",
 - "street_address2": "STE 2918",
 - "city": "Albany",
 - "state": "MN",
 - "country": "United States of America",
 - "country_code": "US",
 - "zip": "56307",
 - "unlocode": "USAL2",
 - "timezone": "America/Los_Angeles",
 - "ref": "zoomit_address_ref"
 
}, - "ref": "zoomit_ref",
 - "vat_numbers": [ ]
 
} 
], - "locations": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/location",
 
}, - "contacts": {
- "_object": "/api/refs/collection",
 - "ref_type": "/network/contact",
 
} 
} 
}