GET
/v1/invoices/{id}/traceReturns where each value of an invoice made through a mapping came from: read from the customer’s file, set in the mapping, or worked out. A value read from a CSV or Excel file also names its place: the row the file shows and the column’s name. The row is worked out from the file the invoice was made from and the mapping that read it; when either is not kept, the entries come back without a place.
Path parameters
- idstring (uuid)Required
Response
A 200 answer carries these fields.
- tracearray of objectRequired
Show 6 child fields
- atstringRequired
The value's place in the invoice.
- btstringRequired
Its business term
- originstringRequiredOne of
source,card,derived. - sourcestring
Where it was read in the customer's record.
- fromstring
What a derived value was worked out from.
- placeobject
Show 2 child fields
- rowintegerRequired
- columnstringRequired
Status codes
| Status | Meaning |
|---|---|
200 |
The trace, one entry per value. |
401 |
No usable credential was sent (invalid_credentials). |
404 |
This company filed no invoice with this id (unknown_invoice), or the invoice was made through no mapping (no_trace). |
GET
/v1/invoices/{id}/traceExample
curl https://api.certinvo.com/v1/invoices/$INVOICE_ID/trace \
-H "Authorization: Bearer $CERTINVO_API_KEY"const invoiceId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'
const response = await fetch(`https://api.certinvo.com/v1/invoices/${invoiceId}/trace`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
invoice_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"
response = requests.get(
f"https://api.certinvo.com/v1/invoices/{invoice_id}/trace",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
application/json
{
"trace": [
{
"at": "string",
"bt": "string",
"origin": "source",
"source": "string",
"from": "string",
"place": {
"row": 0,
"column": "string"
}
}
]
}Success response