Retrieve transaction
Use this request to retrieve the record for a specified transaction.
To retrieve the transaction's record, use a GET method and the following URL:
https://services.taxamo.com/api/v2/transactions/:key
where :key
is the Transaction Key of the transaction you want to retrieve.
For example:
$ curl -H "Private-Token: priv_***********" 'https://services.taxamo.com/api/v2/transactions/TYGYAAAABWvKsHyzI67tUz1As6Bc'
Details
Type | Value |
---|---|
Endpoint | /api/v2/transactions/:key |
Method | GET |
API Reference | Retrieve transaction |
Query Parameters
Parameter | Description |
---|---|
private_token | Private token. |
key | The Transaction Key. |
Example Response
The following is an example of the information that is returned after a successful request:
{
"transaction": {
"order_date": "2015-02-02T00:00:00Z",
"status": "N",
"buyer_name": "",
"deducted_tax_amount": 0,
"manual": true,
"custom_fields": null,
"transaction_lines": [
{
"line_key": "THdzq2QNFMmS1_7N",
"custom_id": "1",
"quantity": 1,
"product_type": "default",
"total_amount": 123.00,
"amount": 100.00,
"tax_amount": 23.00,
"line_num": 1,
"tax_name": "European VAT",
"tax_rate": 23,
"unit_price": 100.00
}
],
"create_timestamp": "2015-02-02T10:23:40Z",
"key": "TYGYAAAABWvKsHyzI67tUz1As6Bc",
"test": true,
"tax_country_code": "IE",
"tax_timezone": "GB",
"invoice_address": {
},
"currency_code": "EUR",
"total_amount": 123.00,
"amount": 100.00,
"tax_amount": 23.00,
"evidence": null,
"invoice_date": "2015-02-02T00:00:00Z",
"additional_currencies": {
"invoice": {
}
},
"billing_country_code": "IE",
"tax_entity_name": "Ireland",
"update_timestamp": 1422872620077,
"invoice_place": "Killorglin232323",
"tax_supported": true,
"supply_date": "2015-02-02T00:00:00Z"
}
}
Updated over 2 years ago