Delete a location

Removes the location and de-indexes it from the merchant's locations array. Returns 204 with an empty body on success. A location currently designated as the merchant's primary cannot be deleted — that returns 409, and the caller must reassign or clear primaryLocationId via PATCH /v1/merchants/{merchantId} first. Deleting a location triggers no processor deprovisioning.

Path Params
string
required
string
required
Responses
204

Location deleted. Empty body.

401

Unauthorized (test-mode mismatch).

403

Forbidden (platform mismatch).

404

Merchant not found, or location not found on this merchant.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json