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.
-
Bubble unique ID of the Producer. It can be null if the Producer was not created on Bubble at first.
-
Origin unique ID from Bubble. It can be null if the Origin was not created on Bubble at first.
-
Origin unique UUID from database
-
Producer unique nrn
-
Producer unique vat number
-
Name of the company
-
Address of the company
-
Country unique ID from Bubble. It can be null if the Country was not created on Bubble at first.
-
Database UUID of the country
-
URL of incorporation certificate
-
Bubble unique ID of the user that signed the document
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"
}