📄 MIPYME Documents
Create a new digital certificate
POST
Endpoint URL
https://api-billing.koywe.com/V1/digital_certificates
Requires authentication
Authentication
Send header Authorization: Bearer <token> (obtained from POST /auth) for protected endpoints.
Parameters
No parameters.
Request body — fields
| Field | Type | Required | Description |
|---|---|---|---|
account_id | integer | Always required | ID of the associated account. |
certificate_file | string | Optional | Base64 encoded PFX file of certificate (Chile) |
certificate_key | string | Optional | Base64 encoded KEY file of certificate (Mexico and Argentina) |
certificate_cer | string | Optional | Base64 encoded CER file of certificate (Mexico and Argentina) |
certificate_password | string | Always required | Digital certificate password |
Request body — JSON example
{
"account_id": 0,
"certificate_file": "string",
"certificate_key": "string",
"certificate_cer": "string",
"certificate_password": "string"
}
Responses
Digital certificate link successfully generated
Bad request - invalid input or validation error
Unauthorized - invalid token or missing authentication
Server error - unexpected error occurred