API > List IAE activity codes

List IAE activity codes

GET  https://api.ticketbaiws.eus/epigrafes/

This method returns the list of IAE activity codes needed to register Ticketbai WS accounts that send invoices for self-employed individuals, joint ownerships (comunidades de bienes) or civil partnerships (sociedades civiles)

GET methods accept the parameters either in the body as a JSON payload or as a query string in the URL, as shown in the cURL example.

PARAMETERS

This method does not require any parameters

GET https://api.ticketbaiws.eus/epigrafes/
$ curl --request GET \
     --url https://api.ticketbaiws.eus/epigrafes/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
$ composer require ticketbaiws/ticketbaiws-php
<?php
// Installation: composer require ticketbaiws/ticketbaiws-php
require 'vendor/autoload.php';

$tbai = new \TicketbaiWS\Client('xxx', '00000014Z', ['entorno' => 'real']);

$r = $tbai->epigrafes();

if ($r->isError()) {
    echo $r->getMessageText();
} else {
    print_r($r->getData());
}
$ python -m pip install requests
import requests

url = "https://api.ticketbaiws.eus/epigrafes/"
headers = {"Accept": "application/json", "Token" : "xxx", "Nif" : "00000014Z"}
response = requests.request("GET", url, headers=headers)
print(response.text)
CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.ticketbaiws.eus/epigrafes/");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.ticketbaiws.eus/epigrafes/")
  .get()
  .addHeader("Accept", "application/json")
  .addHeader("Token", "xxx")
  .addHeader("Nif", "00000014Z")
  .build();
  
Response response = client.newCall(request).execute();
{ } Response JSON
HTTP/1.1 200 OK
{ 
	"result": "OK", 
	"return": [
  {
    "codigo": "101100",
    "nombre_es": "EXPLOTACION EXTENSIVA DE GANADO BOVINO",
    "nombre_eu": "BETABEREEN USTIAPEN ESTENSIBOA "
  },
  {
    "codigo": "101200",
    "nombre_es": "EXPLOTACION INTENSIVA DE GANADO BOVINO DE LECHE",
    "nombre_eu": "ESNETARAKO BETABEREEN USTIAPEN SARRIA "
  },
  {
    "codigo": "101300",
    "nombre_es": "EXPLOTACION INTENSIVA DE GANADO BOVINO DE CEBO",
    "nombre_eu": "GIZENTZEKO BETABEREEN USTIAPEN SARRIA "
  },
  {
    "codigo": "102100",
    "nombre_es": "EXPLOTACION EXTENSIVA DE GANADO OVINO",
    "nombre_eu": "ARDI-ABEREEN USTIAPEN ESTENSIBOA "
  },
  {
    "codigo": "102200",
    "nombre_es": "EXPLOTACION INTENSIVA DE GANADO OVINO DE CRIA",
    "nombre_eu": "HAZKUNTZARAKO ARDI-ABEREEN USTIAPEN SARRIA "
  },
  {
    "codigo": "102300",
    "nombre_es": "EXPLOTACION INTENSIVA DE GANADO OVINO DE CEBO",
    "nombre_eu": "GIZENTZEKO ARDI-ABEREEN USTIAPEN SARRIA "
  },
  {
    "codigo": "102400",
    "nombre_es": "EXPLOTACION DE GANADO CAPRINO",
    "nombre_eu": "AHUNTZ-ABEREEN USTIAPENA "
  }
  (...)
], 
	"msg": "Ready" 
}