Fetch Declarations Quantities Given Producer
Path parameters
-
ProducerNrn
string Required Producer Unique NRN
Query parameters
-
DeclarationPeriodCode
string Required 2023, 2024, etc.
-
EprCountryCode
string Required FR, ES, etc.
-
Search
string Perform Search In Columns (Depending Of The Table Searched)
-
Limit
number Maximum number of items to return
Minimum value is
1
, maximum value is25
. -
Offset
number Number of items to skip in the pagination system
Minimum value is
0
.
GET
/producers/{ProducerNrn}/declarations
curl \
--request GET 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/producers/34368801600504/declarations?DeclarationPeriodCode=2023&EprCountryCode=FR' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{
"id": "1a0dde4e-151f-4eb9-a26b-6e5cf2e428c0",
"ecoProductId": "1a0dde4e-151f-4eb9-a26b-6e5cf2e428c0",
"producerNrn": "161481911005x636197106288257400",
"eprCountryCode": "FR",
"ecoProductUrl": "https://link-to-the-product.com",
"ecoProductStatus": "AI_QUALIFIED",
"createdAt": "2023-12-08T18:27:15.895Z",
"updatedAt": "2023-12-08T18:27:15.895Z",
"ecoProduct": {
"id": "1a0dde4e-151f-4eb9-a26b-6e5cf2e428c0",
"externalId": "B07LGH32TM",
"externalIdType": "ASIN",
"title": "Nike Jordan Clc99 Snapback - Chapeau - Mixte",
"description": "Tissu extensible confortable avec technologie respirant, pour une sensation de fraîcheur et de légèreté. La technologie dri-fit garantit la peau sèche, le confort et la concentration.",
"imageUrl": "https://m.media-amazon.com/images/I/51eA4-lLSDL.jpg",
"weight": "42,5",
"createdAt": "2023-12-08T18:27:15.895Z",
"updatedAt": "2023-12-08T18:27:15.895Z",
"ecoContributions": [
{
"id": "6b1d9468-0e7e-47ef-bb05-9b158637bf79",
"ecoProductId": "07b456f3-5b03-4987-a7df-cbfdb14f9540",
"declarationPeriodCode": "2023",
"eprCountryCode": "FR",
"schemeCode": "TLC",
"ecoOrganismName": "Refashion",
"scaleCode": "V-30-N-EM0",
"quantityUnit": "Unité de vente",
"price": 0.0124,
"createdAt": "2023-12-08T19:12:30.082+01:00",
"updatedAt": "2023-12-08T19:12:30.082+01:00",
"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"
}
}
}
]
},
"quantityDeclaration": {
"id": "1a0dde4e-151f-4eb9-a26b-6e5cf2e428c0",
"producerEcoProductId": "1a0dde4e-151f-4eb9-a26b-6e5cf2e428c0",
"declarationPeriodCode": "2023",
"quantity": 4235,
"validatedAt": "2023-12-08T18:27:15.895Z",
"createdAt": "2023-12-08T18:27:15.895Z",
"updatedAt": "2023-12-08T18:27:15.895Z"
}
}
],
"_meta": {
"limit": 7,
"offset": 10,
"search": "Nike Jordan",
"total": 42,
"hasAlreadyValidated": false
}
}
Response examples (400)
{
"error": "ALGOREP_001"
}
Response examples (500)
{
"error": "ALGOREP_001"
}