Get an Intrastat declaration
GET
Returns sold goods flagged for Intrastat between from and to, grouped by commodity code, partner member state and country of origin, with net mass and value. flowType (ARRIVALS or DISPATCHES) is echoed on the response. Lines whose item has no commodity code are skipped and counted in warningCount.
BearerAuthheader
AuthorizationBearer <JWT>flowType*stringFlow direction: ARRIVALS or DISPATCHES
from*stringPeriod start (yyyy-MM-dd)
Format
dateto*stringPeriod end (yyyy-MM-dd)
Format
dateX-TenantID*stringTenant identifier
OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was processed; otherwise an error status.
message*stringShort human-readable message describing the outcome, e.g. which record was saved or why the call failed.
data?The Intrastat lines grouped by commodity code, with totals and a warning count.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/reports/tax/europe/intrastat?flowType=string&from=2019-08-24&to=2019-08-24' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": { "tenantId": "string", "flowType": "string", "from": "2019-08-24", "to": "2019-08-24", "vatRegistrationNumber": "string", "entries": [ { "commodityCode": "string", "memberStateOfSupply": "string", "countryOfOrigin": "string", "totalNetMassKg": 0, "totalValue": 0, "transactionCount": 0 } ], "totalEntries": 0, "warningCount": 0 }}