Skip to content

Update company

POST
/api/connector/v1/companies/update

Updates information of the company. Note this operation supports Portfolio Access Tokens.

CompanyUpdateParameters
object
ClientToken
required

Token identifying the client application.

string
>= 1 characters
AccessToken
required

Access token of the client application.

string
>= 1 characters
Client
required

Name and version of the client application.

string
>= 1 characters
ChainId

Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.

string format: uuid
nullable
CompanyId
required

Unique identifier of the Company.

string format: uuid
Name
String update value

Name of the company (or null if the name should not be updated).

object
Value

Value which is to be updated.

string
nullable
MotherCompanyId
Guid update value

Unique identifier of the mother company (or null if the mother company should not be updated).

object
Value

Value which is to be updated.

string format: uuid
nullable
InvoicingEmail
String update value

Email for issuing invoices to the company (or null if the email for issuing invoices should not be updated).

object
Value

Value which is to be updated.

string
nullable
WebsiteUrl
String update value

The website url of the company (or null if the website url should not be updated).

object
Value

Value which is to be updated.

string
nullable
InvoiceDueInterval
String update value

The maximum time, when the invoice has to be be paid in ISO 8601 duration format (or null if the interval should not be updated).

object
Value

Value which is to be updated.

string
nullable
Options
Company update options

Options of the company (or null if the company options should not be updated).

object
Invoiceable
Boolean update value

Whether the company is invoiceable or not (or null if the Invoiceable field should not be updated).

object
Value

Value which is to be updated.

boolean
AddFeesToInvoices
Boolean update value

Whether the company has an additional fee applied for invoicing or not (or null if the AddFeesToInvoices field should not be updated).

object
Value

Value which is to be updated.

boolean
AddTaxDeductedPaymentToInvoices
Boolean update value

Whether tax-deducted payments should be automatically added to invoices (or null if the AddTaxDeductedPaymentToInvoices field should not be updated).

object
Value

Value which is to be updated.

boolean
CreditRating
Credit rating update parameters

Credit rating to define creditworthiness of the company (or null if the credit rating should not be updated).

object
Basic
Credit rating basic update value

Credit status of a company (or null if the credit status should not be updated).

object
Value
Credit rating basic

Value which is to be updated.

string
Allowed values: CreditOk PaymentRequiredUpfront LocalDecisionRequired
Department
String update value

The internal segmentation of a company, e.g. sales department (or null if the department should not be updated).

object
Value

Value which is to be updated.

string
nullable
DunsNumber
String update value

The Dun & Bradstreet unique 9-digit DUNS number (or null if the Duns number should not be updated).

object
Value

Value which is to be updated.

string
nullable
ReferenceIdentifier
String update value

External system identifier - custom identifier used by an external system such as an external database (or null if the identifier should not be updated).

object
Value

Value which is to be updated.

string
nullable
AccountingCode
String update value

Accounting code of the company (or null if the accounting code should not be updated).

object
Value

Value which is to be updated.

string
nullable
AdditionalTaxIdentifier
String update value

Additional tax identifier of the company (or null if the additional tax identifier should not be updated).

object
Value

Value which is to be updated.

string
nullable
BillingCode
String update value

Billing code of the company (or null if the billing code should not be updated).

object
Value

Value which is to be updated.

string
nullable
Contact
String update value

Other contact details, such as telephone, email or similar (or null if the contact should not be updated).

object
Value

Value which is to be updated.

string
nullable
ContactPerson
String update value

Contact person of the company (or null if the contact person should not be updated).

object
Value

Value which is to be updated.

string
nullable
Identifier
String update value

Fiscal or legal identifier of the company (or null if the identifier should not be updated).

object
Value

Value which is to be updated.

string
nullable
Iata
String update value

Iata of the company (or null if the Iata should not be updated).

object
Value

Value which is to be updated.

string
nullable
Notes
String update value

Notes of the company (or null if the notes should not be updated).

object
Value

Value which is to be updated.

string
nullable
TaxIdentifier
String update value

Tax identification number of the company (or null if the tax identifier should not be updated).

object
Value

Value which is to be updated.

string
nullable
Telephone
String update value

Contact telephone number (or null if the telephone number should not be updated).

object
Value

Value which is to be updated.

string
nullable
ExternalIdentifier
String update value

Identifier of the company from external system (or null if the External Identifier should not be updated).

object
Value

Value which is to be updated.

string
nullable
Example
{
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"ChainId": "1df21f06-0cfc-4960-9c58-a3bf1261663e",
"CompanyId": "7a1e4d67-d6a2-4a4c-a464-ab1100bea786",
"Name": {
"Value": "Sample company name"
},
"Options": {
"Invoiceable": {
"Value": true
},
"AddFeesToInvoices": {
"Value": false
}
},
"MotherCompanyId": {
"Value": "ff649bce-0c4b-4395-9cdd-02039acb7cb3"
},
"Identifier": null,
"TaxIdentifier": null,
"AdditionalTaxIdentifier": null,
"BillingCode": null,
"AccountingCode": null,
"InvoiceDueInterval": {
"Value": "P2DT23H"
},
"ContactPerson": {
"Value": "John Snow"
},
"Contact": {
"Value": "John Snow"
},
"Notes": {
"Value": "Notes"
},
"Iata": {
"Value": "PAO"
},
"Department": {
"Value": "Marketing"
},
"DunsNumber": {
"Value": "123456789"
},
"CreditRating": {
"Basic": {
"Value": "PaymentRequiredUpfront"
}
},
"ExternalIdentifier": {
"Value": "4321"
},
"ReferenceIdentifier": {
"Value": "ff64395-9cdd-4395-9cdd-02039acb7cb3"
},
"WebsiteUrl": {
"Value": "https://www.mews.com"
}
}

OK

CompanyResult
object
Companies
required

The company profiles of the enterprise.

Array<object>
Company
object
Id
required

Unique identifier of the company.

string format: uuid
ChainId
required

Unique identifier of the chain.

string format: uuid
Name
required

Name of the company.

string
>= 1 characters
MotherCompanyId

Unique identifier of mother company.

string format: uuid
nullable
InvoicingEmail

Email for issuing invoices to the company.

string format: email
nullable
WebsiteUrl

The website url of the company.

string format: uri
nullable
InvoiceDueInterval

The maximum time, when the invoice has to be be paid in ISO 8601 duration format.

string
nullable
Options
required
Company Options

Options of the company.

object
Invoiceable

Whether the company is invoiceable or not.

boolean
AddFeesToInvoices

Whether the company has an additional fee applied for invoicing or not.

boolean
AddTaxDeductedPaymentToInvoices

Whether tax-deducted payments should be automatically added to invoices.

boolean
CreditRating
required
Credit Rating

Credit rating to define creditworthiness of the company.

object
Basic

Indicates the credit status of a company.

CreditOk (Company can book services.)

PaymentRequiredUpfront (Company must pay upfront.)

LocalDecisionRequired (Requires local approval.)

string
Allowed values: CreditOk PaymentRequiredUpfront LocalDecisionRequired
Department

The internal segmentation of a company, e.g. sales department.

string
nullable
DunsNumber

The Dun & Bradstreet unique 9-digit DUNS number.

string
nullable
ReferenceIdentifier

External system identifier - custom identifier used by an external system such as an external database.

string
nullable
AccountingCode

Accounting code of the company.

string
nullable
AdditionalTaxIdentifier

Additional tax identifier of the company.

string
nullable
BillingCode

Billing code of the company.

string
nullable
Contact

Other contact details, such as telephone, email or similar.

string
nullable
ContactPerson

Contact person of the company.

string
nullable
ElectronicInvoiceIdentifier

Electronic invoice identifier of the company.

string
nullable
Identifier

Fiscal or legal identifier of the company.

string
nullable
Iata

Iata of the company.

string
nullable
IsActive
required

Whether the company is still active.

boolean
Notes

Additional notes.

string
nullable
Number
required

Unique number of the company.

integer format: int64
TaxIdentifier

Tax identification number of the company.

string
nullable
Telephone

Contact telephone number.

string format: tel
nullable
CreatedUtc

Date of Company creation date and time.

string format: date-time
nullable
UpdatedUtc

Date of Company last update date and time.

string format: date-time
nullable
Address
Address
object
Id

Unique identifier of the address.

string format: uuid
Line1

First line of the address.

string
nullable
Line2

Second line of the address.

string
nullable
City

The city.

string
nullable
PostalCode

Postal code.

string
nullable
CountryCode

ISO 3166-1 code of the Country.

string
nullable
CountrySubdivisionCode

ISO 3166-2 code of the administrative division, e.g. DE-BW.

string
nullable
Latitude

The latitude.

number format: double
nullable
Longitude

The longitude.

number format: double
nullable
AddressId

Unique identifier of the company Address.

string format: uuid
nullable
MergeTargetId

Unique identifier of the account (Customer) to which this company is linked.

string format: uuid
nullable
TaxIdentificationNumber
string
nullable
ExternalIdentifier

Identifier of company from external system.

string
nullable <= 255 characters
Cursor

Unique identifier of the last and hence oldest company item returned. This can be used in Limitation in a subsequent request to fetch the next batch of older companies. If Limitation is specified in the request message, then Cursor will always be included in the response message; this is true even when using Extents set to false so that no actual data is returned.

string format: uuid
nullable
Example
{
"Companies": [
{
"Id": "a58ff7cb-77e3-495a-bd61-aecf00a3f19d",
"ChainId": "1df21f06-0cfc-4960-9c58-a3bf1261663e",
"Name": "Sample Company 1",
"IsActive": true,
"Number": 11,
"Identifier": null,
"TaxIdentifier": null,
"AdditionalTaxIdentifier": null,
"ElectronicInvoiceIdentifier": null,
"InvoiceDueInterval": "P2DT23H",
"AccountingCode": null,
"MotherCompanyId": null,
"CreatedUtc": "2022-07-11T09:56:54Z",
"UpdatedUtc": "2022-07-11T09:56:54Z",
"AddressId": "bab7441c-4b82-43bc-8001-ab0400a346ec",
"BillingCode": null,
"Iata": "PAO",
"Telephone": "111-222-333",
"InvoicingEmail": "sample1@mews.com",
"ContacPerson": "Sample Person 1",
"Contact": "Contact Info 1",
"Notes": "Note 1",
"Options": {
"Invoiceable": true,
"AddFeesToInvoices": true
},
"Department": "Sales",
"DunsNumber": "123456789",
"CreditRating": {
"Basic": "PaymentRequiredUpfront"
},
"ReferenceIdentifier": "da34b396-77e3-495a-bd61-aecf00a3f19d",
"WebsiteUrl": "https://www.mewssystems.com",
"ExternalIdentifier": "company0001"
},
{
"Id": "da34b396-41f7-47f6-8847-aecf00a3f19e",
"ChainId": "5fcd1933-22f2-40b9-84da-7db04cbecec2",
"Name": "Sample Company 2",
"IsActive": true,
"Number": 12,
"Identifier": null,
"TaxIdentifier": null,
"AdditionalTaxIdentifier": null,
"ElectronicInvoiceIdentifier": null,
"InvoiceDueInterval": "P2DT23H",
"AccountingCode": null,
"MotherCompanyId": null,
"CreatedUtc": "2022-07-11T09:56:54Z",
"UpdatedUtc": "2022-07-11T09:56:54Z",
"AddressId": null,
"BillingCode": null,
"Iata": "PAO",
"Telephone": "111-222-333",
"InvoicingEmail": "sample2@mews.com",
"ContacPerson": "Sample Person 2",
"Contact": "Contact Info 2",
"Notes": "Note 2",
"Options": {
"Invoiceable": true,
"AddFeesToInvoices": false
},
"Department": "Accounting",
"DunsNumber": "987654321",
"CreditRating": {
"Basic": "CreditOk"
},
"ReferenceIdentifier": "a58ff7cb-77e3-495a-bd61-aecf00a3f19d",
"WebsiteUrl": "https://www.mews.com",
"ExternalIdentifier": "company0002"
}
],
"Cursor": "da34b396-41f7-47f6-8847-aecf00a3f19e"
}

Server has successfully fulfilled the request and there is no additional information to send back.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see Request timeouts

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by too many requests sent in a given amount of time. Response contains Retry-After header indicating how long the user agent should wait before making a follow-up request. For more information, see Request limits.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our documentation repository.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable