---
updatedAt: 2026-07-03T13:08:28.000Z
agentTools:
  projectIndex: https://developer.xentral.com/llms.txt
---

# 🔒 Create contact person V3

This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.

This endpoint requires the following scopes: `supplier:create`.

Create a new contact person for a supplier.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Xentral Business Documents API v3",
    "description": "The Xentral Business Documents API v3 for working with sales orders, offers, invoices, credit notes, delivery notes, return orders, purchase orders, proforma invoices and productions.\n\nIndividual endpoints marked as *Beta* may still change without prior notice — see the respective endpoint descriptions.\n\nRequest payloads may contain properties that an endpoint does not define; these are ignored rather than rejected. Nothing is stored for them and no error is returned, so check the response body to confirm which values were actually applied.",
    "contact": {
      "name": "API Support",
      "url": "https://xentral.com",
      "email": "api@xentral.com"
    },
    "version": "0.2.0"
  },
  "servers": [
    {
      "url": "https://{xentralId}.xentral.biz",
      "description": "Your xentral instance",
      "variables": {
        "xentralId": {
          "default": "my-company",
          "description": "Your Xentral instance ID"
        }
      }
    },
    {
      "url": "https://{domain}",
      "description": "Xentral with a custom domain",
      "variables": {
        "domain": {
          "default": "demo.xentral.com",
          "description": "Your Xentral custom domain"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "ContactPerson": {
        "description": "Contact Person object",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/TimestampsResource"
          },
          {
            "properties": {
              "id": {
                "description": "ID of contact person",
                "type": "string",
                "example": "17"
              },
              "type": {
                "description": "Type of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "mrs",
                  "mr",
                  "company",
                  "other"
                ],
                "example": "mr"
              },
              "name": {
                "description": "Name of contact person",
                "type": "string",
                "example": "Alice Smith"
              },
              "title": {
                "description": "Title of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Ms."
              },
              "salutation": {
                "description": "Salutation of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Dear Alice,"
              },
              "department": {
                "description": "Department of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Sales"
              },
              "subDepartment": {
                "description": "Sub-Department of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Customer Service"
              },
              "street": {
                "description": "Street of contact person address",
                "type": [
                  "string",
                  "null"
                ],
                "example": "123 Main St"
              },
              "addressSupplement": {
                "description": "Address supplement of contact person address",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Suite 100"
              },
              "zipCode": {
                "description": "Zip code of contact person address",
                "type": [
                  "string",
                  "null"
                ],
                "example": "12345"
              },
              "city": {
                "description": "City of contact person address",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Springfield"
              },
              "country": {
                "description": "Country of contact person address",
                "type": [
                  "string",
                  "null"
                ],
                "example": "US"
              },
              "state": {
                "description": "State of contact person address",
                "type": [
                  "string",
                  "null"
                ],
                "example": "CA"
              },
              "phone": {
                "description": "Phone number of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "+1-234-567-8900"
              },
              "mobile": {
                "description": "Mobile number of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "+1-800-567-8900"
              },
              "fax": {
                "description": "Fax number of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "+1-234-567-8901"
              },
              "email": {
                "description": "Email address of contact person",
                "type": [
                  "string",
                  "null"
                ],
                "example": "alice@example.com"
              },
              "contactPersonDetails": {
                "description": "Contact person details",
                "properties": {
                  "position": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "Head of Controlling"
                  },
                  "birthday": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "example": "1980-05-21"
                  },
                  "language": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "DE"
                  },
                  "allowMarketingEmails": {
                    "type": "boolean",
                    "example": false
                  },
                  "internalNote": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "Head of Controlling"
                  },
                  "remarks": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "Head of Controlling"
                  }
                },
                "type": "object",
                "example": {
                  "position": "Head of Controlling",
                  "birthday": "1978-04-12",
                  "language": "DE",
                  "allowMarketingEmails": false,
                  "internalNote": "Key decision‑maker for raw‑material contracts; prefers email after 17:00 CET.",
                  "remarks": "Speaks fluent English, French and Mandarin. Holds a PhD in Economics."
                }
              },
              "groups": {
                "description": "Group information",
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Group"
                },
                "example": [
                  {
                    "id": "1"
                  }
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "CreateContactPersonData": {
        "required": [
          "name"
        ],
        "properties": {
          "type": {
            "description": "Type of contact person",
            "type": "string",
            "enum": [
              "mrs",
              "mr",
              "company",
              "other"
            ],
            "example": "mr"
          },
          "name": {
            "description": "Name of contact person",
            "type": "string",
            "maxLength": 255,
            "example": "John Doe"
          },
          "title": {
            "description": "Title of contact person",
            "type": "string",
            "maxLength": 255,
            "example": "Dr."
          },
          "salutation": {
            "description": "Salutation of contact person",
            "type": "string",
            "maxLength": 500,
            "example": "Sehr geehrte Damen und Herren"
          },
          "department": {
            "description": "Department of contact person",
            "type": "string",
            "maxLength": 255,
            "example": "Purchasing"
          },
          "subDepartment": {
            "description": "Sub-Department of contact person",
            "type": "string",
            "maxLength": 255,
            "example": "DACH"
          },
          "street": {
            "description": "Street of contact person address",
            "type": "string",
            "maxLength": 255,
            "example": "Industriepark 12"
          },
          "addressSupplement": {
            "description": "Address supplement of contact person address",
            "type": "string",
            "maxLength": 255,
            "example": "Gebäude A, Etage 3"
          },
          "zipCode": {
            "description": "Zip code of contact person address",
            "type": "string",
            "maxLength": 20,
            "example": "80331"
          },
          "city": {
            "description": "City of contact person address",
            "type": "string",
            "maxLength": 255,
            "example": "München"
          },
          "state": {
            "description": "State of contact person address",
            "type": "string",
            "maxLength": 100,
            "example": "BY"
          },
          "country": {
            "description": "Country of contact person address (ISO-3166-1 alpha-2)",
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "example": "DE"
          },
          "phone": {
            "description": "Phone number of contact person",
            "type": "string",
            "maxLength": 50,
            "example": "+49 89 1234567"
          },
          "mobile": {
            "description": "Mobile number of contact person",
            "type": "string",
            "maxLength": 50,
            "example": "+49 171 2345678"
          },
          "fax": {
            "description": "Fax number of contact person",
            "type": "string",
            "maxLength": 50,
            "example": "+49 89 1234567-1"
          },
          "email": {
            "description": "Email address of contact person",
            "type": "string",
            "format": "email",
            "maxLength": 255,
            "example": "john.doe@acme-gmbh.de"
          },
          "contactPersonDetails": {
            "description": "Contact person details",
            "properties": {
              "position": {
                "description": "Position/job function of contact person",
                "type": "string",
                "maxLength": 255,
                "example": "Head of Controlling"
              },
              "birthday": {
                "description": "Birthday of contact person",
                "type": "string",
                "format": "date",
                "example": "1978-04-12"
              },
              "language": {
                "description": "Preferred language code",
                "type": "string",
                "maxLength": 10,
                "example": "de"
              },
              "allowMarketingEmails": {
                "description": "Whether marketing emails are allowed",
                "type": "boolean",
                "example": true
              },
              "internalNote": {
                "description": "Internal note (staff-only)",
                "type": "string",
                "example": "Key decision‑maker for raw‑material contracts"
              },
              "remarks": {
                "description": "Additional remarks",
                "type": "string",
                "example": "Speaks fluent English, French and Mandarin"
              }
            },
            "type": "object"
          },
          "groups": {
            "description": "Groups to assign contact person to",
            "type": "array",
            "items": {
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "description": "Group ID",
                  "type": "string",
                  "example": "1"
                }
              },
              "type": "object"
            },
            "example": [
              {
                "id": "1"
              },
              {
                "id": "7"
              }
            ]
          }
        },
        "type": "object"
      },
      "Group": {
        "description": "Group object",
        "properties": {
          "id": {
            "description": "ID of group",
            "type": "string",
            "example": "4"
          },
          "name": {
            "description": "Name of the group",
            "type": [
              "string",
              "null"
            ],
            "example": "Wholesale"
          }
        },
        "type": "object",
        "example": {
          "id": "4",
          "name": "Wholesale"
        },
        "additionalProperties": false
      },
      "TimestampsResource": {
        "properties": {
          "createdAt": {
            "description": "The date and time when the resource was created.",
            "type": "string",
            "format": "date-time",
            "example": "2023-10-01T12:00:00Z"
          },
          "updatedAt": {
            "description": "The date and time when the resource was last updated.",
            "type": "string",
            "format": "date-time",
            "example": "2023-10-01T12:00:00Z"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Supplier",
      "description": "Supplier"
    }
  ],
  "paths": {
    "/api/v3/suppliers/{supplierId}/contactPersons": {
      "post": {
        "tags": [
          "Supplier"
        ],
        "summary": "🔒 Create contact person V3",
        "description": "This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.\n\nThis endpoint requires the following scopes: `supplier:create`.\n\nCreate a new contact person for a supplier.",
        "operationId": "POST::api-v3-suppliers-supplierid-contactpersons",
        "parameters": [
          {
            "name": "supplierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContactPersonData"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create a new contact person for a supplier.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ContactPerson"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Failed validation",
            "content": {
              "application/problem+json": {
                "schema": {
                  "properties": {
                    "type": {
                      "description": "Error messages",
                      "type": "string",
                      "example": "https://api.xentral.biz/problems/request-validation"
                    },
                    "title": {
                      "description": "Error messages",
                      "type": "string",
                      "example": "Request payload validation failed."
                    },
                    "violations": {
                      "description": "Error messages",
                      "type": "object",
                      "example": {
                        "name": [
                          "The name field is required."
                        ],
                        "type": [
                          "The selected type is invalid."
                        ],
                        "title": [
                          "The title field must be a string."
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Too Many Requests",
                      "type": "string",
                      "example": "Too Many Requests"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "x-beta": true,
        "x-scopes": [
          "supplier:create"
        ]
      }
    }
  }
}
```