Fetch Producer By NRN

GET /users/{UserBubbleId}/producers/{ProducerNrn}

Path parameters

  • UserBubbleId string Required

    User Unique Bubble ID

  • ProducerNrn string Required

    Producer Unique NRN

Responses

  • 200 application/json

    Producer

    Hide response attributes Show response attributes object
    • id string

      Database UUID of the Producer

    • 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

    • shareCapital string
    • 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
    • youSignSignatureRequestId string
    • createdAt string
    • updatedAt string
  • 400 application/json

    An error happenned during the request, refer to error code for more information

    Hide response attribute Show response attribute object
    • error string

      One of:

      The server encountered an unknown error!

      Default value is ALGOREP_001.

      Eco product could not be found

      Default value is ALGOREP_002.

      Dgraph Failed To Process The Request

      Default value is ALGOREP_003.

      Producer could not be found

      Default value is ALGOREP_004.

      Bad Request

      Default value is ALGOREP_005.

      Declaration already validated for this product

      Default value is ALGOREP_006.

      Producer Batch Process Failed: Invalid ContentType, Request Should Be Multipart/FormData.

      Default value is ALGOREP_007.

      No file found on request

      Default value is ALGOREP_008.

      Too many files found on request

      Default value is ALGOREP_009.

      Qualification Pipeline Failed: ExternalId Not Found

      Default value is ALGOREP_010.

      Qualification Pipeline Failed: ExternalIdType Not Found / Could Not Be Determined

      Default value is ALGOREP_011.

      Qualification Pipeline Failed: ProducerNrn Not Found

      Default value is ALGOREP_012.

      Qualification Pipeline Failed: Product 'Title' Or 'Image' Could Not Be Determined, But Necessary To Compute Contributions.

      Default value is ALGOREP_013.

      Qualification Pipeline Failed: EcoFeez Could Not Determine Contributions.

      Default value is ALGOREP_014.

      Qualification Pipeline Failed: EcoFeez Could Not Determine Some Necessary Field.

      Default value is ALGOREP_015.

      Producer Batch Pre Process Pipeline Failed: Could Not Find CSV File On S3.

      Default value is ALGOREP_016.

      Producer Batch Pre Process Pipeline Failed: CSV File Contains Errors

      Default value is ALGOREP_017.

      Producer Batch Pre Process Pipeline Failed: Did Not Find Any Product To Process In CSV File

      Default value is ALGOREP_018.

      Producer Batch Pre Process Pipeline Failed: Not Enough Credit Balance To Process All Products

      Default value is ALGOREP_019.

      Producer Batch Pre Process Pipeline Failed: ProducerId Not Found

      Default value is ALGOREP_020.

      Producer Batch Pre Process Pipeline Failed: Unable To Insert Pipeline Information Into Database

      Default value is ALGOREP_021.

      Producer Batch Pre Process Pipeline Failed: Another Running Pipeline Already Exists For This Producer

      Default value is ALGOREP_022.

      Producer Batch Process Pipeline Failed: ProducerId Not Found

      Default value is ALGOREP_023.

      Producer Batch Process Pipeline Failed: ProductId Not Found

      Default value is ALGOREP_024.

      Producer Batch Process Pipeline Failed: EprCountryCode Not Found Or Empty

      Default value is ALGOREP_025.

      Producer Batch Process Pipeline Failed: DeclarationPeriodCode Not Found

      Default value is ALGOREP_026.

      Producer Batch Process Pipeline Failed: Too Many Records Consumed At Once

      Default value is ALGOREP_027.

      No Company Found With This NRN

      Default value is ALGOREP_028.

  • 500 application/json

    An error happenned during the request, refer to error code for more information

    Hide response attribute Show response attribute object
    • error string

      One of:

      The server encountered an unknown error!

      Default value is ALGOREP_001.

      Eco product could not be found

      Default value is ALGOREP_002.

      Dgraph Failed To Process The Request

      Default value is ALGOREP_003.

      Producer could not be found

      Default value is ALGOREP_004.

      Bad Request

      Default value is ALGOREP_005.

      Declaration already validated for this product

      Default value is ALGOREP_006.

      Producer Batch Process Failed: Invalid ContentType, Request Should Be Multipart/FormData.

      Default value is ALGOREP_007.

      No file found on request

      Default value is ALGOREP_008.

      Too many files found on request

      Default value is ALGOREP_009.

      Qualification Pipeline Failed: ExternalId Not Found

      Default value is ALGOREP_010.

      Qualification Pipeline Failed: ExternalIdType Not Found / Could Not Be Determined

      Default value is ALGOREP_011.

      Qualification Pipeline Failed: ProducerNrn Not Found

      Default value is ALGOREP_012.

      Qualification Pipeline Failed: Product 'Title' Or 'Image' Could Not Be Determined, But Necessary To Compute Contributions.

      Default value is ALGOREP_013.

      Qualification Pipeline Failed: EcoFeez Could Not Determine Contributions.

      Default value is ALGOREP_014.

      Qualification Pipeline Failed: EcoFeez Could Not Determine Some Necessary Field.

      Default value is ALGOREP_015.

      Producer Batch Pre Process Pipeline Failed: Could Not Find CSV File On S3.

      Default value is ALGOREP_016.

      Producer Batch Pre Process Pipeline Failed: CSV File Contains Errors

      Default value is ALGOREP_017.

      Producer Batch Pre Process Pipeline Failed: Did Not Find Any Product To Process In CSV File

      Default value is ALGOREP_018.

      Producer Batch Pre Process Pipeline Failed: Not Enough Credit Balance To Process All Products

      Default value is ALGOREP_019.

      Producer Batch Pre Process Pipeline Failed: ProducerId Not Found

      Default value is ALGOREP_020.

      Producer Batch Pre Process Pipeline Failed: Unable To Insert Pipeline Information Into Database

      Default value is ALGOREP_021.

      Producer Batch Pre Process Pipeline Failed: Another Running Pipeline Already Exists For This Producer

      Default value is ALGOREP_022.

      Producer Batch Process Pipeline Failed: ProducerId Not Found

      Default value is ALGOREP_023.

      Producer Batch Process Pipeline Failed: ProductId Not Found

      Default value is ALGOREP_024.

      Producer Batch Process Pipeline Failed: EprCountryCode Not Found Or Empty

      Default value is ALGOREP_025.

      Producer Batch Process Pipeline Failed: DeclarationPeriodCode Not Found

      Default value is ALGOREP_026.

      Producer Batch Process Pipeline Failed: Too Many Records Consumed At Once

      Default value is ALGOREP_027.

      No Company Found With This NRN

      Default value is ALGOREP_028.

GET /users/{UserBubbleId}/producers/{ProducerNrn}
curl \
 --request GET 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/users/1708861331497x933611102973227500/producers/34368801600504' \
 --header "Authorization: $API_KEY"
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"
}