Class TaxZonesApiV2Controller
Provides tax zone information.
category |
System |
---|---|
package |
ApiV2Controllers |
__construct(\Slim\Slim $api, array $uri)
Call this constructor from every child controller class in order to set the Slim instance and the request routes arguments to the class.
deprecated |
The "__initialize" method will is deprecated and will be removed in a future version. Please use the new "init" for bootstrapping your child API controllers. |
---|---|
Throws |
|
\Slim\Slim
Slim framework instance, used for request/response manipulation.
array
This array contains all the segments of the current request, starting from the resource.
get()
apiVersion |
2.4.0 |
---|---|
apiName |
GetTaxZones |
apiGroup |
TaxRates |
apiDescription |
Get all tax zones or a single tax zone. |
apiExample |
{curl} Get All Tax Zones curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/tax_zones {curl} Get Tax Class With ID = 5 curl -i --user admin@shop.de:12345 http://shop.de/api.php/v2/tax_zones/5 |
apiSuccessExample |
{json} Success-Response [ { "id": "5", "name": "Steuerzone EU", "description": "Steuerzone f\u00fcr die EU" }, { "id": "6", "name": "Steuerzone EU-Ausland", "description": "" }, { "id": "7", "name": "Steuerzone B2B", "description": "" }, { "id": "8", "name": "Belgien", "description": "" }, { "id": "9", "name": "Bulgarien", "description": "" }, { "id": "10", "name": "D\u00e4nemark", "description": "" }, { "id": "11", "name": "Deutschland", "description": "" }, { "id": "12", "name": "\u00d6sterreich", "description": "" }, { "id": "13", "name": "Estland", "description": "" }, { "id": "14", "name": "Finnland", "description": "" }, { "id": "15", "name": "Frankreich", "description": "" }, { "id": "16", "name": "Griechenland", "description": "" }, { "id": "17", "name": "Irland", "description": "" }, { "id": "18", "name": "Italien", "description": "" }, { "id": "19", "name": "Kroatien", "description": "" }, { "id": "20", "name": "Lettland", "description": "" }, { "id": "21", "name": "Litauen", "description": "" }, { "id": "22", "name": "Luxemburg", "description": "" }, { "id": "23", "name": "Malta", "description": "" }, { "id": "24", "name": "Niederlande", "description": "" }, { "id": "25", "name": "Polen", "description": "" }, { "id": "26", "name": "Portugal", "description": "" }, { "id": "27", "name": "Rum\u00e4nien", "description": "" }, { "id": "28", "name": "Schweden", "description": "" }, { "id": "29", "name": "Slowakei", "description": "" }, { "id": "30", "name": "Slowenien", "description": "" }, { "id": "31", "name": "Spanien", "description": "" }, { "id": "32", "name": "Tschechien", "description": "" }, { "id": "33", "name": "Ungarn", "description": "" }, { "id": "34", "name": "Vereinigtes K\u00f6nigreich", "description": "" }, { "id": "35", "name": "Zypern", "description": "" } ] {json} Success-Response { "id": "5", "name": "Steuerzone EU", "description": "Steuerzone f\u00fcr die EU" } |
apiError |
404-NotFound Tax zone record could not be found. 400-BadRequest Invalid rax class id provided (expected integer). |
apiErrorExample |
Error-Response (Tax Class Not Found) HTTP/1.1 404 Not Found { "code": 404, "status": "error", "message": "Tax zone record could not be found." } Error-Response (Invalid ID) HTTP/1.1 400 Bad Request { "code": 400, "status": "error", "message": "Provided tax zone ID is invalid, integer expected." } |
getCallableResource( $controller, array $mappedURI, \Slim\Slim $api)
array
\Slim\Slim
DEFAULT_PAGE_ITEMS
var |
---|
DEFAULT_CONTROLLER_NAME
var |
---|
DEFAULT_RATE_LIMIT
var |
---|
DEFAULT_RATE_RESET_PERIOD
var |
---|