Business partners

Add a business partner.

Supports customer and supplier business partners.

post/businesspartners

Request

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

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 added.

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.