Taxes Invoice
Get taxes invoice from an invoice pdf
Get taxes invoice from an invoice pdf
STEP 1
POST https://api.transiteo.io/v1/importFileService/invoicePdf/taxesInvoice
Get a timestamp to request the step 2
Headers
Name
Value
Content-Type
application/json
Authorization
id token from cognito
JSON REQUEST FORMAT
{
"content": "data:application/pdf;base64,JVBERi0xLjQKJfbk/N8KMSAwIG9iago8PA..."
}Response
{
"timestamp": 1671483327236
}Incorrect Json (json body request incorrect)1. Max requests exceed
{
"code": "MAX_REQUESTS_EXCEED",
"httpCode": 403,
"name": "ClientError",
"message": "You've reached the max requests authorized for your account. Please contact our service to upgrade your account",
"details": [
{
"parameter": {
"name": "UserRequests",
"value": "${leftCredits}"
},
"causes": [
"Max requests authorized for your account is ${capacity}. Left credits is ${leftCredits}"
]
}
]
}
2. TRIAL_LIMIT_EXCEED
{
"code": "TRIAL_LIMIT_EXCEED",
"httpCode": 403,
"name": "ClientError",
"message": "You have exceeded the trial limit. Please contact our service to upgrade your account",
"details": [
{
"parameter": {
"name": "UserTrialLimit",
"value": "${validity} days"
},
"causes": [
"User trial is limited to ${validity} days of usage"
]
}
]
}STEP 2
GET https://api.transiteo.io/v1/importFileService/invoicePdf/taxesInvoice/{timestamp}
Get Taxes invoice result
Headers
Name
Value
Content-Type
application/json
Authorization
id token from cognito
Path parameters
Name
Type
Description
timestamp
string
timestamp in millis
Response
Last updated