User Tools

Site Tools


api:customer:billing-customer-add

API : Billing Customer Add

Introduction

This request will add a new billing customer to a customer.

Request

URL https://api.telecomx.dk/customer/CUSTOMER_ID/billingcustomer/BILLING_CUSTOMER_ID
Method POST
Access level RESELLER, RESELLER_ADMIN or ADMIN.
Param CUSTOMER_ID Id of customer (24 hex-char string).
BILLING_CUSTOMER_ID Id of billing customer (24 hex-char string).

Response

The response is a success object, if no errors occurred.

Json object
success Boolean Indicates whether the billing customer was successfully added or not

Note that properties holding no value may be omitted from the object.

Example

{
  "success": true
}

Errors

Error code Message Description
422 customer Customer id is invalid
422 id Billing customer id is invalid
422 customer Billing customer is equal to the given customer
404 customer Customer nor billing customer found (only active customers can be linked)
404 customer Customer not found
404 billing_customer Billing customer not found
409 parentReseller Parent resellers of billing customer and customer are not the same
422 billing_customer The billing customer is already added to the given customer
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/customer/billing-customer-add.txt · Last modified: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki