Fiscal data

Contain all the operations related to fiscal data.


Parameters

Name In Type Required Description
body body FiscalDataPost true ‘none’

Request body - JsonObject

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "id": 0,
  "companyType": "AUTÓNOMO",
  "companyName": "FOO S.L.",
  "documentType": "NIF",
  "documentNumber": "1234567X",
  "address": "C/Ocaña 9",
  "city": "Madrid",
  "province": "Madrid",
  "postalCode": 28011,
  "country": "ES"
}
None

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17

curl -X POST https://dealers.masstack.com/v1/fiscal-data \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'id': 0,
  'companyType': 'AUTÓNOMO',
  'companyName': 'FOO S.L.',
  'documentType': 'NIF',
  'documentNumber': '1234567X',
  'address': 'C/Ocaña 9',
  'city': 'Madrid',
  'province': 'Madrid',
  'postalCode': 28011,
  'country': 'ES'
}" 

Responses

Code Meaning Description Schema
201 Created Successful creation. None
400 Bad Request Bad request ApiErrorResponse
401 Unauthorized Unauthorized string

Request example

1
2
3
4

curl -X GET https://dealers.masstack.com/v1/fiscal-data \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK Successful response. [FiscalData]
204 No Content No content. None
401 Unauthorized Unauthorized string

200 - instance of FiscalData

Custom schema example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[
  {
    "id": 0,
    "companyType": "AUTÓNOMO",
    "companyName": "FOO S.L.",
    "documentType": "NIF",
    "documentNumber": "1234567X",
    "address": "C/Ocaña 9",
    "city": "Madrid",
    "province": "Madrid",
    "postalCode": 28011,
    "country": "ES"
  }
]
Name Type Required Description
id integer false none
Name Type Required Description
anonymous CompanyBase false none
Name Type Required Description
anonymous Document false none
Name Type Required Description
anonymous Address false none

401 - JsonObject

Custom schema example

1
2
3
4
5
6
{
  "code": "0003",
  "status": "UNAUTHORIZED",
  "message": "Unauthorized",
  "detailMsg": "Audience not found to access URI /example-uri"
}
Name Type Required Description
id integer false none
Name Type Required Description
anonymous CompanyBase false none
Name Type Required Description
anonymous Document false none
Name Type Required Description
anonymous Address false none

Parameters

Name In Type Required Description
fiscal_data_id path integer true ‘none’

Request example

1
2
3
4

curl -X GET https://dealers.masstack.com/v1/fiscal-data/{fiscal_data_id} \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK Successful response. FiscalDataDetail
401 Unauthorized Unauthorized string
404 Not Found Custom information not found ApiErrorResponse

Parameters

Name In Type Required Description
fiscal_data_id path integer true ‘none’
body body FiscalDataPatch true ‘none’

Request body - JsonObject

1
2
3
4
5
6
7
8
{
  "companyName": "FOO S.L.",
  "address": "C/Ocaña 9",
  "city": "Madrid",
  "province": "Madrid",
  "postalCode": 28011,
  "country": "ES"
}
Name Type Required Description
companyName string false none

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

curl -X PATCH https://dealers.masstack.com/v1/fiscal-data/{fiscal_data_id} \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'companyName': 'FOO S.L.',
  'address': 'C/Ocaña 9',
  'city': 'Madrid',
  'province': 'Madrid',
  'postalCode': 28011,
  'country': 'ES'
}" 

Responses

Code Meaning Description Schema
204 No Content Successful response. None
401 Unauthorized Unauthorized string
404 Not Found Custom information not found ApiErrorResponse

Parameters

Name In Type Required Description
fiscal_data_id path integer true ‘none’

Request example

1
2
3
4

curl -X DELETE https://dealers.masstack.com/v1/fiscal-data/{fiscal_data_id} \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
204 No Content Successful delete. Not content. None
401 Unauthorized Unauthorized string
404 Not Found Custom information not found ApiErrorResponse

Endpoints

Default

    Dealer

      Fiscal data

        Custom information

          Campaign

            Subchannel

              Store

                Iam

                  Request