CorebanqCorebanq Developer Docs
Addressesv1

Delete address

Handler: DeleteAddress. Hard-deletes the address row. Responds 200 with the standard { status, message } body (apireply.Ok200), not 204.

DELETE
/v1/addresses/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

JWT bearer token (auth.WrapWithMiddlewares)

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/addresses/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "status": 200,
  "message": "Address deleted"
}
{
  "status": 400,
  "message": "Invalid address id"
}
{
  "status": 404,
  "message": "Address not found"
}