Upsert Producer

POST /users/{UserBubbleId}/producers/{ProducerNrn}

Path parameters

application/json

Body Required

Producer to upsert into database. 'id' should NOT be in the payload. If the given 'nrn' already exists, the Producer will be updated. If a field is not present in the payload, it won't be updated. If you want to erase a field, you have to send a nullish value.

Responses

POST /users/{UserBubbleId}/producers/{ProducerNrn}
curl \
 --request POST 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/users/1708861331497x933611102973227500/producers/34368801600504' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"bubbleId":"1708861331497x933611102973227500","originBubbleId":"1708861331497x933611102973227500","originId":"a490126c-51b7-4ee0-916a-9b15757cc8ff","nrn":"78965413","vat":"FR9798787","companyName":"LVMH UNLIMITED","companyAddress":"42 MONEY STREET","companyAddressComplement":"RIGHT CORNER","companyCity":"PARIS","companyZipCode":"75019","companyCountryBubbleId":"1708861331497x933611102973227500","companyCountryId":"50658c1e-356e-4407-b120-d110552292d8","shareCapital":"2500 EUR","sectorCode":"6420Z","legalStatus":"Société par actions simplifiée","incorporationCertificateFile":"https://url-to-file","poaSignedAt":"2024-01-19T12:45:04.147Z","poaFile":"https://url-to-file","poaSignedFile":"https://url-to-file","signatureUserBubbleId":"1708861331497x933611102973227500","algoliaId":"4545454","planFrequency":"Yearly","planName":"Serenity","onboardingStep":"5 - onboardingCompleted","offerEndAt":"2024-01-19T12:45:04.147Z","originFees":42,"originPaidAt":"2024-01-19T12:45:04.147Z","originReportedAt":"2024-01-19T12:45:04.147Z","status":"Activated","terminatedAt":"2024-01-19T12:45:04.147Z","tryEndAt":"2024-01-19T12:45:04.147Z","isLegalVerified":true,"isWelcomeEmailSent":true,"stripeCancelAtEnd":false,"stripeCustomerId":"SomeId","stripeSubscriptionId":"SomeId","stripePaiementMethodId":"SomeId","youSignSignatureLink":"https://some-url","youSignSignatureRequestId":"SomeId","createdAt":"2024-01-19T12:45:04.147Z","updatedAt":"2024-01-19T12:45:04.147Z"}'
Request examples
{
  "bubbleId": "1708861331497x933611102973227500",
  "originBubbleId": "1708861331497x933611102973227500",
  "originId": "a490126c-51b7-4ee0-916a-9b15757cc8ff",
  "nrn": "78965413",
  "vat": "FR9798787",
  "companyName": "LVMH UNLIMITED",
  "companyAddress": "42 MONEY STREET",
  "companyAddressComplement": "RIGHT CORNER",
  "companyCity": "PARIS",
  "companyZipCode": "75019",
  "companyCountryBubbleId": "1708861331497x933611102973227500",
  "companyCountryId": "50658c1e-356e-4407-b120-d110552292d8",
  "shareCapital": "2500 EUR",
  "sectorCode": "6420Z",
  "legalStatus": "Société par actions simplifiée",
  "incorporationCertificateFile": "https://url-to-file",
  "poaSignedAt": "2024-01-19T12:45:04.147Z",
  "poaFile": "https://url-to-file",
  "poaSignedFile": "https://url-to-file",
  "signatureUserBubbleId": "1708861331497x933611102973227500",
  "algoliaId": "4545454",
  "planFrequency": "Yearly",
  "planName": "Serenity",
  "onboardingStep": "5 - onboardingCompleted",
  "offerEndAt": "2024-01-19T12:45:04.147Z",
  "originFees": 42,
  "originPaidAt": "2024-01-19T12:45:04.147Z",
  "originReportedAt": "2024-01-19T12:45:04.147Z",
  "status": "Activated",
  "terminatedAt": "2024-01-19T12:45:04.147Z",
  "tryEndAt": "2024-01-19T12:45:04.147Z",
  "isLegalVerified": true,
  "isWelcomeEmailSent": true,
  "stripeCancelAtEnd": false,
  "stripeCustomerId": "SomeId",
  "stripeSubscriptionId": "SomeId",
  "stripePaiementMethodId": "SomeId",
  "youSignSignatureLink": "https://some-url",
  "youSignSignatureRequestId": "SomeId",
  "createdAt": "2024-01-19T12:45:04.147Z",
  "updatedAt": "2024-01-19T12:45:04.147Z"
}
Response examples (200)
{
  "id": "50658c1e-356e-4407-b120-d110552292d8",
  "bubbleId": "1708861331497x933611102973227500",
  "originBubbleId": "1708861331497x933611102973227500",
  "originId": "a490126c-51b7-4ee0-916a-9b15757cc8ff",
  "nrn": "78965413",
  "vat": "FR9798787",
  "companyName": "LVMH UNLIMITED",
  "companyAddress": "42 MONEY STREET",
  "companyAddressComplement": "RIGHT CORNER",
  "companyCity": "PARIS",
  "companyZipCode": "75019",
  "companyCountryBubbleId": "1708861331497x933611102973227500",
  "companyCountryId": "50658c1e-356e-4407-b120-d110552292d8",
  "shareCapital": "2500 EUR",
  "sectorCode": "6420Z",
  "legalStatus": "Société par actions simplifiée",
  "incorporationCertificateFile": "https://url-to-file",
  "poaSignedAt": "2024-01-19T12:45:04.147Z",
  "poaFile": "https://url-to-file",
  "poaSignedFile": "https://url-to-file",
  "signatureUserBubbleId": "1708861331497x933611102973227500",
  "algoliaId": "4545454",
  "planFrequency": "Yearly",
  "planName": "Serenity",
  "onboardingStep": "5 - onboardingCompleted",
  "offerEndAt": "2024-01-19T12:45:04.147Z",
  "originFees": 42,
  "originPaidAt": "2024-01-19T12:45:04.147Z",
  "originReportedAt": "2024-01-19T12:45:04.147Z",
  "status": "Activated",
  "terminatedAt": "2024-01-19T12:45:04.147Z",
  "tryEndAt": "2024-01-19T12:45:04.147Z",
  "isLegalVerified": true,
  "isWelcomeEmailSent": true,
  "stripeCancelAtEnd": false,
  "stripeCustomerId": "SomeId",
  "stripeSubscriptionId": "SomeId",
  "stripePaiementMethodId": "SomeId",
  "youSignSignatureLink": "https://some-url",
  "youSignSignatureRequestId": "SomeId",
  "createdAt": "2024-01-19T12:45:04.147Z",
  "updatedAt": "2024-01-19T12:45:04.147Z"
}
Response examples (400)
{
  "error": "ALGOREP_001"
}
Response examples (500)
{
  "error": "ALGOREP_001"
}