v2

latestOpenAPI 3.0.32026-08-05174296703.4 KB
user

assignEndCustomer user

Search for an existing End Customer or create a new one, then assign it to the user.

post/users/assign-end-customer

Request body

company_namestring required

The End Customer company name

country_codestring required

The End Customer country code

offer_idstring required

The Offer Id

type'Sole proprietorship' | 'Partnership' | 'Corporation' | 'Limited Liability Company (LLC)'

Type of the company (required for US)

vat_numberstring

The End Customer vat number

Example request

{
  "company_name": "abc123",
  "country_code": "abc123",
  "offer_id": "abc123",
  "type": "Partnership",
  "vat_number": "abc123"
}

Response

OK response.

Example response

{
  "end_customer": {
    "billing_address": {
      "city": "abc123",
      "country_code": "DE",
      "line1": "abc123",
      "line2": "aaa",
      "postal_code": "abc123",
      "region": "abc123"
    },
    "company_registration_number": "abc123",
    "email_domain": "abc123",
    "group": "abc123",
    "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
    "in_migration": false,
    "is_new": false,
    "language": "abc123",
    "name": "abc123",
    "not_vat_registered": false,
    "risk_status": "abc123",
    "tax_number": "abc123",
    "type": "Partnership",
    "vat_number": "abc123"
  },
  "end_user": {
    "email": "abc123",
    "first_name": "abc123",
    "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
    "is_new": false,
    "last_name": "abc123",
    "phone_number": {
      "country_code": "abc123",
      "country_prefix": "abc123",
      "international_format": "abc123",
      "national": "abc123",
      "number": "abc123"
    },
    "phone_type": "abc123"
  }
}