Express interest to be a contributor
POST/customers/ {customerId}/ contributor/
v2
POST
contributor-express-interest-to-contribute
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X POST \
-d '{"deviatingContactPersonUserId":"f0f86186-0a5a-45b2-aa33-502777496347","deviatingContractOwner":{"firstName":"string","lastName":"string","title":"string","salutation":"mr","company":"string","address":{"street":"Königsberger Straße","houseNumber":"4-6","city":"Espelkamp","zip":"32339","countryCode":"DE","addressPrefix":"c/o Ada Lovelace"},"emailAddress":"email@mittwald.example","phoneNumbers":["string"],"useFormalTerm":true},"deviatingName":"string","deviatingSupportInformation":{"email":"a.lovelace@example.com","phone":"string"},"imprint":{"text":"string"}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/customers/string/contributor
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.marketplace.contributorExpressInterestToContribute({
"customerId": "string",
"data": {
"deviatingContactPersonUserId": "f0f86186-0a5a-45b2-aa33-502777496347",
"deviatingContractOwner": {
"firstName": "string",
"lastName": "string",
"title": "string",
"salutation": "mr",
"company": "string",
"address": {
"street": "Königsberger Straße",
"houseNumber": "4-6",
"city": "Espelkamp",
"zip": "32339",
"countryCode": "DE",
"addressPrefix": "c/o Ada Lovelace"
},
"emailAddress": "email@mittwald.example",
"phoneNumbers": [
"string"
],
"useFormalTerm": true
},
"deviatingName": "string",
"deviatingSupportInformation": {
"email": "a.lovelace@example.com",
"phone": "string"
},
"imprint": {
"text": "string"
}
}
});
assertStatus(response, 201);
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ContributorExpressInterestToContribute\ContributorExpressInterestToContributeRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Marketplace\ContributorExpressInterestToContribute\ContributorExpressInterestToContributeRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// ContributorExpressInterestToContributeRequestBody to learn how to construct a valid instance
$body = new ContributorExpressInterestToContributeRequestBody(/* TODO: ... */);
$request = (new ContributorExpressInterestToContributeRequest(
customerId: "string",
body: $body
));
$response = $client->marketplace()->contributorExpressInterestToContribute($request);
var_dump($response->getBody();