Path parameters
-
UserBubbleId
string Required User Unique Bubble ID
-
ProducerNrn
string Required Producer Unique NRN
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.
-
bubbleId
string Bubble unique ID of the Producer. It can be null if the Producer was not created on Bubble at first.
-
originBubbleId
string Origin unique ID from Bubble. It can be null if the Origin was not created on Bubble at first.
-
originId
string Origin unique UUID from database
-
nrn
string Producer unique nrn
-
vat
string Producer unique vat number
-
companyName
string Name of the company
-
companyAddress
string Address of the company
-
companyAddressComplement
string -
companyCity
string -
companyZipCode
string -
companyCountryBubbleId
string Country unique ID from Bubble. It can be null if the Country was not created on Bubble at first.
-
companyCountryId
string Database UUID of the country
-
sectorCode
string -
legalStatus
string -
incorporationCertificateFile
string URL of incorporation certificate
-
poaSignedAt
string -
poaFile
string -
poaSignedFile
string -
signatureUserBubbleId
string Bubble unique ID of the user that signed the document
-
algoliaId
string -
planFrequency
string -
planName
string -
onboardingStep
string -
offerEndAt
string -
originFees
number -
originPaidAt
string -
originReportedAt
string -
status
string -
terminatedAt
string -
tryEndAt
string -
isLegalVerified
boolean -
isWelcomeEmailSent
boolean -
stripeCancelAtEnd
boolean -
stripeCustomerId
string -
stripeSubscriptionId
string -
stripePaiementMethodId
string -
youSignSignatureLink
string -
youSignSignatureRequestId
string -
createdAt
string -
updatedAt
string
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"}'
{
"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"
}
{
"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"
}
{
"error": "ALGOREP_001"
}
{
"error": "ALGOREP_001"
}