Business partners

Update a business partner.

PUT /businesspartners/<id> replaces all the details of an existing business partner. Use PATCH /businesspartners/<id> if you need the previous functionality to update values of specific fields only.

put/businesspartners/{id}

Request

  • Base URL: https://pts-api.procountor.com/api
  • URL: https://pts-api.procountor.com/api/businesspartners/{id}
  • Auth: HTTP bearer

Path parameters

idinteger required

Business partner identifier

Request body

idinteger

Unique identifier of the partner.

namestring required

Name of the partner.

type'CUSTOMER' | 'SUPPLIER' | 'PERSON' required

Type of the partner.

versionstring date-time

Business partner version timestamp. Automatically generated by Procountor and updated every time the partner is modified. When using PATCH /businesspartners, it is required to include the latest version timestamp of the partner to the request. This prevents conflicts if the partner is being modified from several sources.It is not required for POST and will be omitted

Example request

{
  "address": {
    "country": "SWEDEN"
  },
  "billingAddress": {
    "country": "SWEDEN"
  },
  "deliveryAddress": {
    "country": "SWEDEN"
  },
  "attachments": [
    {
      "name": "Picture.jpg"
    }
  ]
}

Response

Business partner was successfully updated.

idinteger

Unique identifier of the partner.

namestring required

Name of the partner.

type'CUSTOMER' | 'SUPPLIER' | 'PERSON' required

Type of the partner.

versionstring date-time

Business partner version timestamp. Automatically generated by Procountor and updated every time the partner is modified. When using PATCH /businesspartners, it is required to include the latest version timestamp of the partner to the request. This prevents conflicts if the partner is being modified from several sources.It is not required for POST and will be omitted

Example response

{
  "address": {
    "country": "SWEDEN"
  },
  "billingAddress": {
    "country": "SWEDEN"
  },
  "deliveryAddress": {
    "country": "SWEDEN"
  },
  "attachments": [
    {
      "name": "Picture.jpg"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.