curl --request POST \
--url https://equatetravel.ai/api/v1/invoices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fileUrl": "https://example.com/invoices/OC-44821.pdf",
"fileName": "OC-44821.pdf",
"reference": "order-9921"
}
'{
"data": {
"jobId": "<string>",
"sourceFileId": "<string>",
"processed": true,
"pipelineId": "<string>",
"reference": "<string>",
"deduped": true
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}Invoices
Push an invoice
Ingest a single invoice document into the workspace’s pipelines.
POST
/
api
/
v1
/
invoices
curl --request POST \
--url https://equatetravel.ai/api/v1/invoices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fileUrl": "https://example.com/invoices/OC-44821.pdf",
"fileName": "OC-44821.pdf",
"reference": "order-9921"
}
'{
"data": {
"jobId": "<string>",
"sourceFileId": "<string>",
"processed": true,
"pipelineId": "<string>",
"reference": "<string>",
"deduped": true
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
},
"runId": "<string>"
}Authorizations
Body
application/json
- Option 1
- Option 2
A single invoice push. Supply the file via exactly one of fileBase64 or fileUrl.
Was this page helpful?