Retrieve exported invoice records by gu_id
curl --request GET \
--url https://api.tangoanalytics.com/v1/batch/status \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>'const options = {method: 'GET', headers: {'x-client': '<api-key>', 'x-api-key': '<api-key>'}};
fetch('https://api.tangoanalytics.com/v1/batch/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/batch/status"
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"records": [
{
"inv_id": 123,
"inv_number": "<string>",
"inv_type": "<string>",
"inv_date": "<string>",
"po_number": "<string>",
"project_number": "<string>",
"location_number": "<string>",
"supplier_number": "<string>",
"supplier_site_number": "<string>",
"currency": "<string>",
"pct_inv_amt": 123,
"exchange_rate": 123,
"payment_terms": "<string>",
"retainage_pct": 123,
"status": "<string>",
"submitted_by": "<string>",
"approved_by": "<string>",
"created_by": "<string>",
"creation_date": "<string>",
"state": "<string>",
"zip": "<string>",
"final_invoice": "<string>",
"details": [
{
"detail_id": 123,
"task_id": 123,
"seq_no": 123,
"currency": "<string>",
"po_amount": 123,
"amount": 123,
"remaining_bal": 123,
"net_amount": 123,
"retainage_pct": 123,
"tax_group": "<string>",
"tax_rate": 123,
"vendor_tax": 123,
"accrued_tax": 123,
"seg1": "<string>",
"seg2": "<string>",
"seg3": "<string>",
"seg4": "<string>",
"seg5": "<string>",
"seg6": "<string>",
"acct_code": "<string>",
"comments": "<string>",
"nattr1": "<string>",
"nattr2": "<string>",
"task_name": "<string>",
"line_item_name": "<string>",
"division": "<string>"
}
]
}
]
}Status
Retrieve exported invoice records by gu_id
Returns the invoice records associated with the gu_id. Same gu_id can be polled repeatedly. Any field that’s null in Tango is omitted from the JSON response entirely.
GET
/
v1
/
batch
/
status
Retrieve exported invoice records by gu_id
curl --request GET \
--url https://api.tangoanalytics.com/v1/batch/status \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>'const options = {method: 'GET', headers: {'x-client': '<api-key>', 'x-api-key': '<api-key>'}};
fetch('https://api.tangoanalytics.com/v1/batch/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/batch/status"
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"records": [
{
"inv_id": 123,
"inv_number": "<string>",
"inv_type": "<string>",
"inv_date": "<string>",
"po_number": "<string>",
"project_number": "<string>",
"location_number": "<string>",
"supplier_number": "<string>",
"supplier_site_number": "<string>",
"currency": "<string>",
"pct_inv_amt": 123,
"exchange_rate": 123,
"payment_terms": "<string>",
"retainage_pct": 123,
"status": "<string>",
"submitted_by": "<string>",
"approved_by": "<string>",
"created_by": "<string>",
"creation_date": "<string>",
"state": "<string>",
"zip": "<string>",
"final_invoice": "<string>",
"details": [
{
"detail_id": 123,
"task_id": 123,
"seq_no": 123,
"currency": "<string>",
"po_amount": 123,
"amount": 123,
"remaining_bal": 123,
"net_amount": 123,
"retainage_pct": 123,
"tax_group": "<string>",
"tax_rate": 123,
"vendor_tax": 123,
"accrued_tax": 123,
"seg1": "<string>",
"seg2": "<string>",
"seg3": "<string>",
"seg4": "<string>",
"seg5": "<string>",
"seg6": "<string>",
"acct_code": "<string>",
"comments": "<string>",
"nattr1": "<string>",
"nattr2": "<string>",
"task_name": "<string>",
"line_item_name": "<string>",
"division": "<string>"
}
]
}
]
}
