iotoms Docs

Get an EC Sales List

GET
/api/v1/reports/tax/europe/esl

Returns sales to VAT-registered business customers in other EU member states between from and to, for the EC Sales List (ESL).

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Query Parameters

from*string

Period start (yyyy-MM-dd)

Formatdate
to*string

Period end (yyyy-MM-dd)

Formatdate

Header Parameters

X-TenantID*string

Tenant identifier

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request was processed; otherwise an error status.

message*string

Short human-readable message describing the outcome, e.g. which record was saved or why the call failed.

data?

The EC Sales List lines, one per customer VAT number and member state.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/reports/tax/europe/esl?from=2019-08-24&to=2019-08-24' \  -H 'X-TenantID: your-tenant-code'
Example Response
{  "status": "string",  "message": "string",  "data": {    "tenantId": "string",    "from": "2019-08-24",    "to": "2019-08-24",    "vatRegistrationNumber": "string",    "entries": [      {        "customerVatNumber": "string",        "customerVatCountryCode": "string",        "memberStateOfSupply": "string",        "totalNetSales": 0,        "transactionCount": 0      }    ],    "totalEntries": 0  }}