Get a certificate
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/certificates/{certificate_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/certificates/{certificate_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/certificates/{certificate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "aeat_tax_compliance",
"status": "pending",
"requested_at": "2023-11-07T05:31:56Z",
"csv": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"findings": [
"<string>"
],
"document": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"url": "<string>"
}
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Certificates
Get a certificate
Returns the certificate request, and the certificate document once issued.
GET
/
companies
/
{company_id}
/
certificates
/
{certificate_id}
Get a certificate
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/certificates/{certificate_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/certificates/{certificate_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/certificates/{certificate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "aeat_tax_compliance",
"status": "pending",
"requested_at": "2023-11-07T05:31:56Z",
"csv": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"findings": [
"<string>"
],
"document": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"url": "<string>"
}
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Preview. A contract we are building with design partners. It is not callable yet, and fields can still change. See Availability.
Authorizations
Your partner secret key, mk_live_… for real companies or mk_test_…
for test companies. Keep it on your servers. See
Authentication.
Path Parameters
The company's ID. Every company-scoped call works in exactly this company.
Response
The certificate.
aeat_tax_compliance: up to date with tax obligations. tgss_compliance: up to date with the Social Security. aeat_census_status: census situation. aeat_vat_registration: registration in the register of exporters and intra-community operators (ROI).
Available options:
aeat_tax_compliance, tgss_compliance, aeat_census_status, aeat_vat_registration negative: the administration issued it as not up to date; findings says why.
Available options:
pending, issued, negative, failed The código seguro de verificación.
Show child attributes
Show child attributes