Scenario #2000: Create Self Debitor For Partner With Identical Contact Data

UseCase Create Self Debitor For Partner With Identical Contact Data => Debitor: D-3101100 - Michelle Matthieu

Given Properties

name value
partnerNumber P-31011
debitorNumberSuffix 00
billable true
vatBusiness false
vatReverseCharge false
defaultPrefix mim

Determine Partner-Person UUID

GET /api/hs/office/partners/P-31011
=> status: 200 OK 
{
  "uuid" : "3a5780a7-622e-4aa6-b69c-8b17491b26ed", // Partner: P-31011 - Michelle Matthieu
  "partnerNumber" : "P-31011",
  "partnerRel" : {
    "uuid" : "dbcff45e-3b1b-41f8-ae26-1d114cc6b971",
    "anchor" : {
      "uuid" : "c6575205-1480-4b70-a30b-d0c5a1d7cc99", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "cc841e55-8c8a-4ed6-9182-1db104966aed", // personUuid
      "personType" : "NATURAL_PERSON",
      "tradeName" : null,
      "salutation" : null,
      "title" : null,
      "givenName" : "Michelle",
      "familyName" : "Matthieu-Zhang"
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "bcc956de-51a8-460a-9b05-b693320bcb8f", // Contact: Michelle Matthieu
      "caption" : "Michelle Matthieu",
      "postalAddress" : {
        "city" : "Hamburg",
        "name" : "Michelle Matthieu",
        "street" : "An der Wandse 34",
        "country" : "Germany",
        "zipcode" : "22123"
      },
      "emailAddresses" : {
        "main" : "michelle@matthieu.example.org"
      },
      "phoneNumbers" : {
        "mobile" : "+49 152 1234567"
      }
    }
  },
  "details" : {
    "uuid" : "03337f72-2004-41e5-9ef8-a707256a1815",
    "registrationOffice" : null,
    "registrationNumber" : null,
    "birthName" : "Eichbaum",
    "birthPlace" : "Neustadt a.d.R.",
    "birthday" : "1951-03-25",
    "dateOfDeath" : null
  }
}

Create Debitor: D-3101100 - Michelle Matthieu

POST /api/hs/office/debitors
{
  "debitorRel" : {
    "anchor.uuid" : "cc841e55-8c8a-4ed6-9182-1db104966aed", // personUuid
    "holder.uuid" : "cc841e55-8c8a-4ed6-9182-1db104966aed", // personUuid
    "contact.uuid" : "bcc956de-51a8-460a-9b05-b693320bcb8f" // Contact: Michelle Matthieu
  },
  "debitorNumberSuffix" : "00",
  "billable" : true,
  "vatBusiness" : false,
  "vatReverseCharge" : false,
  "defaultPrefix" : "mim"
}
=> status: 201 CREATED cbf0e6e1-c1a0-4252-ad22-a5a4c42e3d5b

generated on 03-10-2025 12:07:40 for branch master