Add Country documentgenerator.region.add
We are still updating this page
Some data may be missing — we will complete it shortly.
Scope:
documentgeneratorWho can execute the method: any user
The method documentgenerator.region.add adds a new region. It returns the same data as calling documentgenerator.region.get() on the new region.
|
Parameter |
Description |
|
fields |
Array of country fields. |
Parameters fields
|
Parameter |
Description |
|
title* |
Name of the country. |
|
languageId |
Two-letter language identifier. |
|
formatDate* |
Date format. |
|
formatDatetime* |
Date-time format. |
|
formatName* |
Name format. |
Required parameters are marked with *
Response on success
200 OK
"region": {
"id": "1",
"title": "Turkey",
"languageId": "",
"formatDate": "YYYY-MM-DD",
"formatDatetime": "YYYY-MM-DD HH:MI:SS",
"formatName": "#LAST_NAME# #NAME# #SECOND_NAME#",
"phrases": {
"TAX_INCLUDED": "VAT included in the price",
"TAX_NOT_INCLUDED": "VAT not included in the price",
"TAX_INCLUDED_NOT_VAT": "Tax (not VAT) included in the price",
"TAX_NOT_INCLUDED_NOT_VAT": "Tax (not VAT) not included in the price",
"UF_TYPE_BOOLEAN_YES": "Yes",
"UF_TYPE_BOOLEAN_NO": "No"
}
}
Copied