Delete one of the form's merchant's locations

Form-scoped equivalent of DELETE /v1/merchants/:merchantId/locations/:locationId. Removes the location and de-indexes it from the merchant's locations array; 204 with an empty body on success. The merchant's current primary location cannot be deleted — that returns 409; reassign or clear it via PUT /v1/forms/:formId/primary-location first.

Path Params
string
required

The boarding form id.

string
required

The location id.

Responses
204

Location deleted. Empty body.

400

The form has expired ({ expirationUrl }).

404

Form, merchant, or location not found.

409

Location is the merchant's primary location and cannot be deleted.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!