Documentation

documentgenerator.region.add

documentgenerator.region.add(fields)

Adds new region. Returns the same data as the method documentgenerator.region.get() for the new region.

Parameters

Parameter Description
fieldsArray of fields for country, including:
  • title - country name (required)
  • languageId - two-letter language code
  • formatDate - date format (required)
  • formatDatetime - date time format (required)
  • formatName - name format (required)


Response

"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",
        "TAX_NOT_INCLUDED": "ex-VAT",
        "TAX_INCLUDED_NOT_VAT": "Tax (not VAT) included",
        "TAX_NOT_INCLUDED_NOT_VAT": "Tax (not VAT) excluded",
        "UF_TYPE_BOOLEAN_YES": "Yes",
        "UF_TYPE_BOOLEAN_NO": "No",
    }
}


© «Bitrix24», 2001-2024