Fetch Declaration Summary Given Producer
Path parameters
-
ProducerNrn
string Required Producer Unique NRN
Query parameters
-
DeclarationPeriodCode
string Required 2023, 2024, etc.
-
EprCountryCode
string Required FR, ES, etc.
GET
/producers/{ProducerNrn}/declarations/summary
curl \
--request GET 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/producers/34368801600504/declarations/summary?DeclarationPeriodCode=2023&EprCountryCode=FR' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{
"id": "23a00f43-1045-439f-a581-e07eb834f61c",
"producerNrn": "1705999971243x819474718191779800",
"eprCountryCode": "FR",
"declarationPeriodCode": "2023",
"lastDeadline": "2024-06-12T17:02:32.902Z",
"declarationCurrency": "EUR",
"startedAt": "2024-02-12T17:02:32.902Z",
"completedAt": "2024-02-12T17:02:32.902Z",
"createdAt": "2024-02-12T17:02:32.902Z",
"updatedAt": "2024-02-12T17:02:32.902Z",
"totalQuantity": 654987654,
"totalAmount": 89797465564,
"totalProductsMarketed": 654,
"totalWeight": 654987654,
"schemes": [
{
"proMemberId": "EZRT978",
"schemeCode": "EMPAP",
"ecoOrganismName": "LEKO",
"totalQuantityScheme": 45654,
"totalWeightScheme": 45647897888,
"totalAmountScheme": 898,
"startedAt": "2024-02-12T17:02:32.902Z",
"completedAt": "2024-02-12T17:02:32.902Z",
"producerPaidAt": "2024-02-12T17:02:32.902Z",
"transferedProAt": "2024-02-12T17:02:32.902Z",
"invoiceProReceivedAt": "2024-02-12T17:02:32.902Z",
"paidProAt": "2024-02-12T17:02:32.902Z",
"transferedProFile": "path/to/file/on/s3.xlsx",
"deadline": "2024-02-12T17:02:32.902Z"
}
]
}
],
"_meta": {}
}
Response examples (400)
{
"error": "ALGOREP_001"
}
Response examples (500)
{
"error": "ALGOREP_001"
}