API documentation

Billing

Manage your billing.

Available methods

Details
Edit

Details

GET
https://api.cdn77.com/v2.0/billing/details
Get all of your billing information.

Object in standard response: billing

Parameters

Parameter Example Description
login string* info@domain.com Your login (email) to CDN77 control panel
passwd string* 8vL4BpXbRqgPTKA0h Your API password.
* Parameter required.

Return Values

Return Value Description
full_name > Full name.
email > E-mail used for sending invoices.
company > Company.
street > Street (maximum length 50 characters).
city > City
zip > Zip (minimum length is 2 characters).
vat_number > VAT number has to be valid in a given country (specified by billing country Id).
vat_prefix > Prefix of a country.
billing_country_id > Retrieve list of billing countries
state > State.

Examples

                                
                                                                            
# GET request
curl "https://api.cdn77.com/v2.0/billing/details?login=name@domain.com&passwd=your_api_password" # response {"status": "ok", "description": "Request was successful." ,"billing": {"full_name": "Your Name", "email": "name@domain.com", "company": "", "street": "", "city": "", "state": "", "zip": "", "vat_number": "", "vat_prefix": "US", "billing_country_id": 226}}

Edit

POST
https://api.cdn77.com/v2.0/billing/edit
Edit your billing information.

Object in standard response: billing

Parameters

Parameter Example Description
login string* info@domain.com Your login (email) to CDN77 control panel
passwd string* 8vL4BpXbRqgPTKA0h Your API password.
full_name string John Doe Full name.
email string* name@domain.ltd Valid e-mail address.
company string Company Brother & Son Ltd. Company.
street string Street (maximum length 50 characters).
city string City
zip string Zip (minimum length is 2 characters).
vat_number string VAT number has to be valid in a given country (specified by billing country Id).
billing_country_id string Retrieve list of billing countries
state string State.
* Parameter required.

Return Values

Return Value Description
full_name > Full name.
email > E-mail used for sending invoices.
company > Company.
street > Street (maximum length 50 characters).
city > City
zip > Zip (minimum length is 2 characters).
vat_number > VAT number has to be valid in a given country (specified by billing country Id).
vat_prefix > Prefix of a country.
billing_country_id > Retrieve list of billing countries
state > State.

Examples

                                
                                                                            
# POST request
curl --data "login=name@domain.com&passwd=your_api_password&email=another@domain.com" https://api.cdn77.com/v2.0/billing/edit # response {"status": "ok", "description": "Request was successful.", "billing": {"full_name": "Your Name", "email": "another@domain.com", "company": "", "street": "", "city": "", "state": "", "zip": "", "vat_number": "", "vat_prefix": "US", "billing_country_id": 226}}