Upsert Producer Registrations

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

Path parameters

application/json

Body Required

Registrations to upsert into database.

Responses

POST /users/{UserBubbleId}/producers/{ProducerNrn}/registrations
curl \
 --request POST 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/users/1708861331497x933611102973227500/producers/34368801600504/registrations' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '[{"bubbleId":"1708861331497x933611102973227500","producerBubbleId":"1708861331497x933611102973227500","producerId":"50658c1e-356e-4407-b120-d110552292d8","schemeProBubbleId":"1708861331497x933611102973227500","schemeProId":"50658c1e-356e-4407-b120-d110552292d8","uin":"5raeztrytegrfezrgtrhytuy","proMemberId":"AGJYRTYH987","status":"4 - PendingPro","schemeDepositAmount":42,"isExternalRegistration":false,"uinReceivedAt":"2024-01-19T12:45:04.147Z","registrationSentToProAt":"2024-01-19T12:45:04.147Z","createdAt":"2024-01-19T12:45:04.147Z","updatedAt":"2024-01-19T12:45:04.147Z"}]'
Request examples
[
  {
    "bubbleId": "1708861331497x933611102973227500",
    "producerBubbleId": "1708861331497x933611102973227500",
    "producerId": "50658c1e-356e-4407-b120-d110552292d8",
    "schemeProBubbleId": "1708861331497x933611102973227500",
    "schemeProId": "50658c1e-356e-4407-b120-d110552292d8",
    "uin": "5raeztrytegrfezrgtrhytuy",
    "proMemberId": "AGJYRTYH987",
    "status": "4 - PendingPro",
    "schemeDepositAmount": 42,
    "isExternalRegistration": false,
    "uinReceivedAt": "2024-01-19T12:45:04.147Z",
    "registrationSentToProAt": "2024-01-19T12:45:04.147Z",
    "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",
    "producerBubbleId": "1708861331497x933611102973227500",
    "producerId": "50658c1e-356e-4407-b120-d110552292d8",
    "schemeProBubbleId": "1708861331497x933611102973227500",
    "schemeProId": "50658c1e-356e-4407-b120-d110552292d8",
    "uin": "5raeztrytegrfezrgtrhytuy",
    "proMemberId": "AGJYRTYH987",
    "status": "4 - PendingPro",
    "schemeDepositAmount": 42,
    "isExternalRegistration": false,
    "uinReceivedAt": "2024-01-19T12:45:04.147Z",
    "registrationSentToProAt": "2024-01-19T12:45:04.147Z",
    "createdAt": "2024-01-19T12:45:04.147Z",
    "updatedAt": "2024-01-19T12:45:04.147Z",
    "schemePro": {
      "id": "50658c1e-356e-4407-b120-d110552292d8",
      "bubbleId": "1708861331497x933611102973227500",
      "ecoOrganismName": "LEKO",
      "eprCountryCode": "FR",
      "schemeCode": "EMPAP",
      "ademeSchemeCode": "PCHIM",
      "currencyDeposit": "€",
      "declarationFrequency": "Annuel",
      "proAddress": "14, Boulevard de la Chapelle",
      "proCity": "Paris",
      "proZipCode": "75018",
      "proCountryBubbleId": "1699973781289x474882884422860800",
      "proCountryId": "a3bf6503-426b-43da-a2ac-37f8d8305a78",
      "proLogo": "https://my-logo",
      "registrationDeposit": 77,
      "schemeNameEn": "Clothing textiles, household linens and shoes",
      "schemeNameFr": "Textiles d'habillement, Linge de maison et Chaussures",
      "schemePartner": true,
      "createdAt": "2024-01-19T12:45:04.147Z",
      "updatedAt": "2024-01-19T12:45:04.147Z",
      "countProductsScheme": 72,
      "country": {
        "id": "50658c1e-356e-4407-b120-d110552292d8",
        "bubbleId": "1708861331497x933611102973227500",
        "codeIso2": "FR",
        "isVat": true,
        "nameEN": "United-Kingdom",
        "nameFR": "Royaume-Uni",
        "nameZH": "英国",
        "eprActivated": true,
        "createdAt": "2024-01-19T12:45:04.147Z",
        "updatedAt": "2024-01-19T12:45:04.147Z"
      },
      "seller": {
        "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"
      },
      "sellerStripeConfig": {
        "id": "50658c1e-356e-4407-b120-d110552292d8",
        "sellerId": "50658c1e-356e-4407-b120-d110552292d8",
        "schemeProId": "50658c1e-356e-4407-b120-d110552292d8",
        "depositPriceId": "some-id",
        "ecoContributionPriceId": "some-id",
        "connectId": "some-id",
        "createdAt": "2024-01-19T12:45:04.147Z",
        "updatedAt": "2024-01-19T12:45:04.147Z"
      }
    },
    "countProductsScheme": 72,
    "totalQuantityScheme": 654,
    "totalAmountScheme": 72522.45,
    "producerPaidAt": "2024-01-19T12:45:04.147Z"
  }
]
Response examples (400)
{
  "error": "ALGOREP_001"
}
Response examples (500)
{
  "error": "ALGOREP_001"
}