Get Realtime Tax Available
GET
/realtimetaxprofile/realtimetaxprofile.json
With this API endpoint, it can override the VAT rate of one or more products during checkout in real time. As part of the call, you will receive the entire cart and the data entered by the user to verify the VAT to be applied
GET
/realtimetaxprofile/realtimetaxprofile.json
$storeden = new Storeden\Storeden($config);
$webhook_list = $storeden->get('/realtimetaxprofile/list.json');
{
"name": "Register Tax Endpoint",
"instance": "640b4f5cd4029d9a30597ac1",
"url": "https://taxes.storeden.dev/calculate",
"id": "640b4f667713b4d80ed13602"
}
POST
/realtimetaxprofile/realtimetaxprofile.json
Create a new endpoint that will be called by Storeden to get the taxes to apply on the checkout.
url required (string) | A valid endpoint url. Must be in https. |
name required (string) | Your real time taxes endpoint name |
$data = array();
$data['url'] = 'https://taxes.storeden.dev/calculate';
$data['name'] = 'Register Tax Endpoint';
$storeden = new Storeden\Storeden($config);
$tax_endpoint = $storeden->post('/realtimetaxprofile/realtimetaxprofile.json', $data);
{
"name": "Register Tax Endpoint",
"instance": "640b4f5cd4029d9a30597ac1",
"url": "https://taxes.storeden.dev/calculate",
"id": "640b4f667713b4d80ed13602"
}
DELETE
/realtimetaxprofile/realtimetaxprofile.json
id required (StoredenID) | Real Time Tax Endpoint id you want to remove |
$data = array();
$data['id'] = '640b4f667713b4d80ed13602';
$storeden = new Storeden\Storeden($config);
$webhook_list = $storeden->delete('/realtimetaxprofile/realtimetaxprofile.json', $data);
{
"ok": 1,
"err": null,
"errmsg": null,
"nRemoved": 1
}