Path parameters
-
UserBubbleId
string Required User Unique Bubble ID
-
SellerNrn
string Required Seller Unique NRN
Body
Required
Seller to upsert into database. 'id' should NOT be in the payload. If the given 'nrn' already exists, the Seller 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 Seller
-
companyName
string -
nrn
string -
vat
string -
companyAddress
string -
companyLogo
string -
superAdminEmail
string -
superAdminMobilePhone
string -
superAdminFirstName
string -
superAdminLastName
string -
registrationFeesId
string -
declarationBasicFeesId
string -
connectAlgorepId
string -
commissionPercentage
string -
createdAt
string -
updatedAt
string
POST
/users/{UserBubbleId}/sellers/{SellerNrn}
curl \
--request POST 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/users/1708861331497x933611102973227500/sellers/34368801600504' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"bubbleId":"1708861331497x933611102973227500","companyName":"Coca-Cola","nrn":"45649879465","vat":"FR95645645678","companyAddress":"42 RUE VICTOR HUGO","companyLogo":"https://my-url","superAdminEmail":"super-admin@email.com","superAdminMobilePhone":"0609921214","superAdminFirstName":"Nicolas","superAdminLastName":"Delalande","registrationFeesId":"string","declarationBasicFeesId":"string","declarationPremiumFeesId":"string","connectAlgorepId":"string","commissionPercentage":"string","createdAt":"2024-01-19T12:45:04.147Z","updatedAt":"2024-01-19T12:45:04.147Z"}'
Request examples
{
"bubbleId": "1708861331497x933611102973227500",
"companyName": "Coca-Cola",
"nrn": "45649879465",
"vat": "FR95645645678",
"companyAddress": "42 RUE VICTOR HUGO",
"companyLogo": "https://my-url",
"superAdminEmail": "super-admin@email.com",
"superAdminMobilePhone": "0609921214",
"superAdminFirstName": "Nicolas",
"superAdminLastName": "Delalande",
"registrationFeesId": "string",
"declarationBasicFeesId": "string",
"declarationPremiumFeesId": "string",
"connectAlgorepId": "string",
"commissionPercentage": "string",
"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",
"companyName": "Coca-Cola",
"nrn": "45649879465",
"vat": "FR95645645678",
"companyAddress": "42 RUE VICTOR HUGO",
"companyLogo": "https://my-url",
"superAdminEmail": "super-admin@email.com",
"superAdminMobilePhone": "0609921214",
"superAdminFirstName": "Nicolas",
"superAdminLastName": "Delalande",
"registrationFeesId": "string",
"declarationBasicFeesId": "string",
"declarationPremiumFeesId": "string",
"connectAlgorepId": "string",
"commissionPercentage": "string",
"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"
}