Table of Contents

API : Economic Layout List

Introduction

E-conomic layouts determine how invoices will look: text size, which information is on the invoice, and so on. The endpoint lists the layouts of the caller's own customer's e-conomic agreement, for picking the layout of an invoice export.

Request

URL https://api.telecomx.dk/integration/economic/layout
Method GET
Access level RESELLER, RESELLER_ADMIN or ADMIN. The layouts listed are always those of the caller's own customer.
Query customer [optional] Id of a customer the caller must have read access to (RESELLER_ADMIN and ADMIN only). Defaults to the user's own customer

Query examples

https://api.telecomx.dk/integration/economic/layout
https://api.telecomx.dk/integration/economic/layout?customer=650000000000000000000001

Response

An array of e-conomic layout objects, passed on as e-conomic returns them.

Layout object
Property Type Description
layoutNumber Number The ID of the layout
name String Name of the given layout
self String URL of the layout in e-conomic

Note that since this data is fetched from a third-party, the data returned can not be guaranteed.

Example - normal

[
  {
    "layoutNumber": 19,
    "name": "DK std. m. bankoplys. 1.5",
    "self": "https://restapi.e-conomic.com/layouts/19"
  },
  {
    "layoutNumber": 30,
    "name": "Betalingsservice",
    "self": "https://restapi.e-conomic.com/layouts/30"
  }
]

Errors

Error code Message Description
422 <property> Invalid input for the named property - the request body, query or URL parameter failed validation
403 access_denied Insufficient access level
404 id Customer not found
404 economic.agreementGrantToken Not found
401 e-conomic rejected the stored agreement grant token. The body is e-conomic's own error, not the standard error object
500 internal_error <Unspecified>