User Tools

Site Tools


api:customer:delete

API : Customer Delete

Introduction

This request will delete the specified customer.

A customer can only be deleted if the customer has no products or services in active use. Deleting the customer also deleted the employees that belongs to the customer.

Request

URL https://api.telecomx.dk/customer/CUSTOMER_ID
Method DELETE
Access level RESELLER if customer belongs to the reseller and ADMIN
Param CUSTOMER_ID Id of the customer (24 hex-char string)

Query example

DELETE https://api.telecomx.dk/customer/1234567890ABCDEF12345678

Response

Json object
success Boolean True on success

Example

{
  success: true
}

Errors

Error code Message Description
400 bad_request Customer id not found in request URI
403 access_denied Insufficient access level
404 customer Customer not found
409 customer Customer cannot be deleted
409 voice_accounts Cannot delete customer because of active SIP or MVNO accounts
409 dsl Cannot delete customer because of active DSL accounts
409 fiber Cannot delete customer because of active Fiber accounts
409 currentinvoice Cannot delete customer because of current invoice items
409 customer Only Mister Møller may delete a reseller
500 internal_error <Unspecified>
api/customer/delete.txt · Last modified: 2024/03/18 13:49 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki