Skip to main content

Create a new flat zone

POST 

/v1/flat-zones

Add a new flat rate zone to the system

Request

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

Flat zone created successfully

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

Loading...