Skip to content

Delete Customer

DELETE https://api.leapa.co/v2/customers/{customer_id}

This endpoint needs your API key

Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.

Request

curl -X DELETE "https://api.leapa.co/v2/customers/cus_3d8e51fa20" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "id": "obj_5f21c8a40b",
  "object": "string",
  "deleted": false
}

Path parameters

Values that go into the URL itself.

  • customer_idstringrequired
    Example:cus_3d8e51fa20

Response

application/json
  • idstring

    Customer ID

  • objectstring

    The object name

  • deletedboolean

    Flag indicating that the customer has been deleted.

Status codes

  • 200OK
  • 400Bad request
  • 401Unauthorized
  • 402Payment required
  • 403Forbidden
  • 404Not found
  • 428Precondition required
  • 500Server error

Request

curl -X DELETE "https://api.leapa.co/v2/customers/cus_3d8e51fa20" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "id": "obj_5f21c8a40b",
  "object": "string",
  "deleted": false
}