Adds a new structured address
post
/service/structuredaddress
This endpoint is used to add a new structured address.
Request
Supported Media Types
- application/json
- application/xml
Header Parameters
-
sourceCode: string
Source from which request is initiated
Request Body that contains data required for creating a new structuredaddress
Nested Schema : GenericDto
Match All
Show Source
-
object
GenericDto-allOf[0]
Discriminator:
resource_type
Nested Schema : GenericDto-allOf[0]
Type:
objectDiscriminator:
resource_typeNested Schema : StructuredAddressDTO-allOf[1]
Type:
Show Source
object-
buildingName(optional):
string
Maximum Length:
35building Name -
buildingNumber(optional):
string
Maximum Length:
16Building Number -
countrySubDivision(optional):
string
Maximum Length:
35Country Sub Division -
custAccountNo:
string
Minimum Length:
1Maximum Length:35Pattern:[a-zA-Z0-9]+Account number of the External customer -
department(optional):
string
Maximum Length:
70Department -
districtName(optional):
string
Maximum Length:
35District name -
floor(optional):
string
Maximum Length:
70Floor -
postbox(optional):
string
Maximum Length:
16postbox -
postcode:
string
Maximum Length:
16postcode -
room(optional):
string
Maximum Length:
70Room -
streetName(optional):
string
Maximum Length:
70Street Name -
strrCountry:
string
Maximum Length:
2country -
subDepartment(optional):
string
Maximum Length:
70Sub Department -
townLocationName(optional):
string
Maximum Length:
35Town Location Name -
townName:
string
Maximum Length:
35Town Name
Response
Supported Media Types
- application/json
- application/xml
201 Response
Returns message of succes or failure
Headers
-
Location: string
URL of newly created structuredaddress
Nested Schema : GenericDto
Match All
Show Source
-
object
GenericDto-allOf[0]
Discriminator:
resource_type
Nested Schema : GenericDto-allOf[0]
Type:
objectDiscriminator:
resource_typeNested Schema : StructuredAddressDTO-allOf[1]
Type:
Show Source
object-
buildingName(optional):
string
Maximum Length:
35building Name -
buildingNumber(optional):
string
Maximum Length:
16Building Number -
countrySubDivision(optional):
string
Maximum Length:
35Country Sub Division -
custAccountNo:
string
Minimum Length:
1Maximum Length:35Pattern:[a-zA-Z0-9]+Account number of the External customer -
department(optional):
string
Maximum Length:
70Department -
districtName(optional):
string
Maximum Length:
35District name -
floor(optional):
string
Maximum Length:
70Floor -
postbox(optional):
string
Maximum Length:
16postbox -
postcode:
string
Maximum Length:
16postcode -
room(optional):
string
Maximum Length:
70Room -
streetName(optional):
string
Maximum Length:
70Street Name -
strrCountry:
string
Maximum Length:
2country -
subDepartment(optional):
string
Maximum Length:
70Sub Department -
townLocationName(optional):
string
Maximum Length:
35Town Location Name -
townName:
string
Maximum Length:
35Town Name
Nested Schema : items
Type:
object400 Response
Malformed syntax.
401 Response
Request does not have sufficient credentials.
403 Response
Request is not authorized.
405 Response
Invalid input
500 Response
Internal error