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 .csv suffix or ?format=csv

HTTP + CSV

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: testapi.redpoint.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TownID":"String","Create":false,"IN_PhysicalID":"String","Name":"String","State":"String","Notes":"String","Localities":[{"Locality":"String","Postcode":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ID":"String"}