Deleting Location Providers

Required Permission

can-delete-location-providers

See Auth* (scopes).

Request

Delete location provider:

DELETE /locationProviders/<id>

Response

HTTP/1.1 200 OK

Failure

If location provider has locations or linked with a retailer then this operation will fail with http status unprocessable entity.

HTTP/1.1 422 UNPROCESSABLE ENTITY
{
   "errorMessage":"<Reason for the failure>"
}

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Location provider does not exist:

HTTP/1.1 404 NOT FOUND

Other errors:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""