Create Province

The Create Province API allows developers to create a new province within a specified country. This endpoint requires the province data in the request body.

The Create Province API allows developers to create a new province within a specified country. This endpoint requires the province data in the request body.

Request Parameters

Public Request Parameters

📘

Path Parameters

FieldTypeRequiredDescriptionExample
countrystringYesUnique identifier for the province

Body Parameters

FieldTypeRequiredExampleDescription
countrystringNo"Canada"The country name
provincesarray[Province]NoList of provinces in the country
provinces.namestringNo"Ontario"Name of the province
provinces.citiesarray[City]NoList of cities in the province
cities.namestringNo"Toronto"Name of the city
cities.addressesarray[Address]NoList of addresses in the city
addresses.namestringNo"Head Office"Name/label for the address
addresses.addressarray[string]No["123 Main St", "Suite 500"]Address lines (multiple lines possible)

Response Description

Public Response Fields

📘

Success Response

FieldTypeExampleDescription
codestring"success"Status code of the response
messagestringDescriptive message of the response

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!