Skip to main content

Bulk Companies by source id

POST 

/companies/bulk/sourceId

The bulk endpoints offer an efficient way of importing/updating large amounts of companies with just a single API call. When using the bulk sourceId endpoint, the companies are identified by sourceId, source and language. If a company doesn't already exist, it will be created. If it does exist, the company found will be updated.

Company bulk endpoints support bulk change of attributes for multiple companies as well. To learn more about Attributes, go here.

Company bulk endpoints support bulk change of pricing for multiple companies as well. To learn more about Pricing, go here.

A single company's attributes can be modified as explained in Bulk resource attribute values by resource lookup key, but if it's needed to modify attributes for multiple companies in a single call, this endpoint should be used.

Fields

NameRequired
companies (array of company objects)yes
sourceyes
sourceIdyes
nameno
languageyes
parentno
taxNumberno
cocNumberno
departmentno
officeno
notesno
inheritProductListno

Default is Y
inheritOrderListno

Default is Y
budgetno

Default is N
budgetInheritno

Default is Y
orderListAllowAllno

Default is U
attributes

Read more about attributes
no
pricing

Read more about pricing
no
addresses

Read more about addresses
no

Directives

NameDescriptionFields
skipIfNotEmptyOn update, skip updating fields of an existing company that are not emptyarray of field names
e.g. name, office etc.
skipMoveOnUpdateOn update, skip moving an existing company in the parent providedempty array

What are directives?

Request

Body

    companies

    object[]

  • Array [

  • budget string
    budgetInherit string
    cocNumber string
    company string
    department string
    inheritOrderList string
    inheritProductList string
    language string
    name string
    notes string
    office string

    parent

    object

    sourceId number
    source string
    sourceId number
    taxNumber string
  • ]

  • directives

    object[]

  • Array [

  • fields undefined[]
    operation string
  • ]

Responses

Bulk Companies by source id - 200

Response Headers

  • Alt-Svc

    string

  • Via

    string

  • alt-svc

    string

  • content-length

    string

  • date

    string

  • return-format

    string

  • x-request-id

    string

Schema

    data

    object[]

  • Array [

  • action string
    id number
    key number
    lookupKey string
    success boolean
  • ]

  • messages string[]
    total number
Loading...