Examples by country
➕ Create a new account
Create a new account
In order to create a new mexican account, you will need to send the mexican digital certificate as an additional field, as this is a requirement to issue electronic invoices. Remember to get the token from the /auth endpoint first.
The certificate_key, certificate_cer must be in DER binary format, encoded as base64. Example page to convert DER to base64: https://base64.guru/converter/encode/file You must complete the certificate_password that corresponds to the uploaded certificate. The field company_logo only supports PNG format and must be uploaded as base64.
Create account
- Endpoint: https://api-billing.koywe.com/V1/accounts
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer \<token>
- Accept: */*
{
"country_id": 80,
"contact_name": "fernando rojas",
"contact_phone": "+529841055220",
"admin_email": "[email protected]",
"admin_password": "enternewpassword",
"registration_legal_name_company": "my company",
"registration_tax_id_code": "EKU9003199C1",
"registration_tax_id_type": "MX-RFC",
"registration_company_size": 1,
"registration_company_industry_sector": "1",
"registration_type_use": 1,
"registration_terms_of_use": 1,
"registration_additional_data": {
"certificate_key": "MIIFDjBABgkqhkiG9w0BBQ0wMzAb...",
"certificate_cer": "MIIFsDCCA5igAwIBAgIUMzAwMDEw...",
"certificate_password": "12345678a",
"company_logo": "SOIFsDCCA5igAwIBAgIUMzAwMDEw..."
}
}
API Reference POST /accounts
Detailed endpoint documentation