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