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"
}
|
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'
}"
|
Request example
1
2
3
4
|
curl -X GET https://dealers.masstack.com/v1/fiscal-data \
-H "Accept: application/json"
|
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"
|
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'
}"
|
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"
|