Skip to content

Add a single client to an ERPHubConnection

Request

Path
connectionIdstring, (uuid)required

The connection id

Body

The client to add

namestringrequired

The name of the client to add, must be unique for the connection.

organizationNumberstringrequired

The organization number of the client to add, must be unique for the connection.

currencystring or null

The currency of the client to add, must be a valid ISO 4217 currency code. Will be made required in future versions.

{ "name": "string", "organizationNumber": "string", "currency": "string" }

Responses

OK

Bodyapplication/json
successbooleanrequired

Indicates whether the request was successful

errorstring or null

Error message, if the request was not successful

clientobject(ClientDto)

Represents a client.

Response
{ "success": true, "error": "string", "client": { "clientId": "string", "name": "string", "erpSystemType": "Unknown", "externalCompanyId": "string", "organizationNumber": "string", "accountingPeriodDeviation": 0, "currency": "string" } }