Country Group
...
It allows to create a country group in the system. The request must be done through POST method.
URL base: admin/jsapi/countrygroup?op=a
Mandatory parameters:
- nombre: name
- country: codes ISO-3166 countries listing, separated by space (i.e: “US CA MX”)
Request example:
https://admin.eu.e-planning.net/admin/jsapi/countrygroup?op=a&nombre=test&country=AR EU
Response example without errors:
{'countrygroup_id':'19','status':200}
Response example with errors:
{'errors':{'country':'OPCION_INVALIDA','nombre':'ERROR_NOMBRE_DUPLICADO'},'status':400}
Edit
It allows to edit a country group in the system. The request must be done through POST method.
URL base: admin/jsapi/countrygroup?op=m
Mandatory parameters:
- countrygroup_id: group identifier
- country: codes ISO-3166 countries listing, separated by space (i.e: “US CA MX”)
- nombre: name
...
https://admin.eu.e-planning.net/admin/jsapi/countrygroup?op=m&nombre=grupopaisapieditado&country=AR EU CA&countrygroup_id=19
Response example without errors:
{'countrygroup_id':'19','status':200}
Response example with errors:
{'countrygroup_id':'19','errors':{'country':'ERROR_AL_MENOS_UNA'},'status':400}
Delete
It allows to erase a country group in the system. The request must be done through POST method.
URL base: admin/jsapi/countrygroup?op=b
Mandatory parameters:
- countrygroup_id: group identifier
Request example:
https://admin.eu.e-planning.net/admin/jsapi/countrygroup?op=b&countrygroup_id=19
Response example without errors:
{'countrygroup_id':'19','status':200}
Response example with errors:
{'status':400}
...
This function provides information about a country group previously created in the system.
URL base: admin/jsapi/countrygroup?op=v
Mandatory parameters:
- countrygroup_id: group identifier
Request example:
https://admin.eu.e-planning.net/admin/jsapi/countrygroup?op=b&countrygroup_id=14
Response example without errors:
{'countrygroup':{'country':['AR','BO','BR','CL','CO','EC','GY','PE','PY','SR','UY','VE'],'countrygroup_id':'14','fecha_alta':'2013-04-25 22:28:36','fecha_baja':null,'nombre':'Latam'},'status':200}
Response example with errors:
{'status':400}
List
This function lists the country groups created in the system.
URL base: admin/jsapi/countrygroup?op=l
...
Request example:
https://admin.eu.e-planning.net/admin/jsapi/countrygroup?op=b&countrygroup_id=14
Response example without errors:
{'countrygroup':{'country':['AR','BO','BR','CL','CO','EC','GY','PE','PY','SR','UY','VE'],'countrygroup_id':'14','fecha_alta':'2013-04-25 22:28:36','fecha_baja':null,'nombre':'Latam'},'status':200}
Response example with errors:
{'status':400}
Region Group
...
It allows to create a region group in the system. The request must be done through POST method.
URL base: admin/jsapi/regiongroup?op=a
Mandatory parameters:
- nombre: name
- country: codes ISO-3166 countries listing, separated by space (i.e: “US CA MX”)
- region_id
Request example:
https://admin.eu.e-planning.net/admin/jsapi/regiongroup?op=a&nombre=gruporegapi&country=AR®ion_id=6337
Response example without errors:
{'status':200,'regiongroup_id':'6'}
Response example with errors:
...
Edit
It allows to edit a region group in the system. The request must be done through POST method.
URL base: admin/jsapi/regiongroup?op=m
Mandatory parameters:
- regiongroup_id: group identifier
- country: codes ISO-3166 countries listing, separated by space (i.e: “US CA MX”)
- region_id
- nombre: name
Request example:
...
Response example without errors:
...
Response example with errors:
...
Delete
It allows to erase a region group in the system. The request must be done through POST method.
URL base: admin/jsapi/regiongroup?op=b
Mandatory parameters:
- regiongroup_id: group identifier
Request example:
...
Response example without errors:
{'status':200,'regiongroup_id':'6'}
Response example with errors:
{'status':400}
...
This function provides information about a region group previously created in the system.
URL base: admin/jsapi/regiongroup?op=v
Mandatory parameters:
- regiongroup_id: group identifier
Request example:
...
Response example without errors:
...
Response example with errors:
...
List
This function lists the region groups created in the system.
URL base: admin/jsapi/regiongroup?op=l
Request example:
...
Response example without errors:
...
Response example with errors:
...
City Group
...
It allows to create a city group in the system. The request must be done through POST method.
URL base: admin/jsapi/citygroup?op=a
Mandatory parameters:
- nombre: name
- country: codes ISO-3166 countries listing, separated by space (i.e: “US CA MX”)
- city_id
Request example:
...
Response example without errors:
...
Response example with errors:
...
Edit
It allows to edit a region group in the system. The request must be done through POST method.
URL base: admin/jsapi/citygroup?op=m
Mandatory parameters:
- citygroup_id: group identifier
- country: codes ISO-3166 countries listing, separated by space (i.e: “US CA MX”)
- city_id
- nombre: name
Request example:
...
Response example without errors:
...
Response example with errors:
...
Delete
It allows to erase a region group in the system. The request must be done through POST method.
URL base: admin/jsapi/citygroup?op=b
Mandatory parameters:
- citygroup_id: group identifier
Request example:
...
Response example without errors:
...
Response example with errors:
...
...
This function provides information about a city group previously created in the system.
URL base: admin/jsapi/citygroup?op=v
...
- citygroup_id
Request example:
...
Response example without errors:
...
Response example with errors:
...
List
This function lists the city groups created in the system.
URL base: admin/jsapi/citygroup?op=v
Request example:
...
Response example without errors:
...
Response example with errors:
...