JiwaAPI

<back to all web services

DeliveryTownPUTRequest

Requires Authentication
The following routes are available for this service:
PUT/Delivery/Towns/{TownID}Adds or replaces a delivery town with its localities.
DeliveryTownPUTRequest Parameters:
NameParameterData TypeRequiredDescription
TownIDpathstringNo
Createbodybool?No
IN_PhysicalIDbodystringNo
NamebodystringNo
StatebodystringNo
NotesbodystringNo
LocalitiesbodyList<DeliveryLocalityBody>No
DeliveryLocalityBody Parameters:
NameParameterData TypeRequiredDescription
LocalityformstringNo
PostcodeformstringNo
DeliveryWriteResponse Parameters:
NameParameterData TypeRequiredDescription
IDformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /Delivery/Towns/{TownID} HTTP/1.1 
Host: api.redpoint.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DeliveryTownPUTRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel">
  <_x003C_Create_x003E_k__BackingField>false</_x003C_Create_x003E_k__BackingField>
  <_x003C_IN_PhysicalID_x003E_k__BackingField>String</_x003C_IN_PhysicalID_x003E_k__BackingField>
  <_x003C_Localities_x003E_k__BackingField>
    <DeliveryLocalityBody>
      <_x003C_Locality_x003E_k__BackingField>String</_x003C_Locality_x003E_k__BackingField>
      <_x003C_Postcode_x003E_k__BackingField>String</_x003C_Postcode_x003E_k__BackingField>
    </DeliveryLocalityBody>
  </_x003C_Localities_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>String</_x003C_Name_x003E_k__BackingField>
  <_x003C_Notes_x003E_k__BackingField>String</_x003C_Notes_x003E_k__BackingField>
  <_x003C_State_x003E_k__BackingField>String</_x003C_State_x003E_k__BackingField>
  <_x003C_TownID_x003E_k__BackingField>String</_x003C_TownID_x003E_k__BackingField>
</DeliveryTownPUTRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DeliveryWriteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel">
  <_x003C_ID_x003E_k__BackingField>String</_x003C_ID_x003E_k__BackingField>
</DeliveryWriteResponse>