Create a new flat zone
POST/v1/flat-zones
Add a new flat rate zone to the system
Request
- application/json
Body
required
zoneName stringrequired
geo objectrequired
type stringrequired
coordinates number[]required
Array of rings for the polygon. Each ring is an array of [longitude, latitude] pairs. The first and last point must be the same.
Responses
- 201
- 409
Flat zone created successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the flat zone
zoneName stringrequired
The name of the flat zone
createdDate date-timerequired
The creation date of the flat zone
latestUpdate date-timerequired
The latest update date of the flat zone
{
"_id": "672d07188234567890123456",
"zoneName": "Flat Zone 1",
"createdDate": "2021-01-01",
"latestUpdate": "2021-01-01"
}
Flat zone already exists
Loading...