➕ Create new documents
Postman collection
To help you with your integration, download our Postman Collection here: https://github.com/koyweforest/api-billing-postman
Invoice (Factura electrónica)
In order to create a new chilean invoice, you need to use the /documents endpoint with the proper parameters.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Invoice VAT exempt (Factura electrónica exenta)
In order to create a new chilean VAT exempt invoice, you need to use the /documents endpoint with the proper parameters.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Receipt (Boleta electrónica)
The receiver parameters are optional for electronic receipt. You can include them to create a nominative receipt or not include them to generate a regular (non-nominative) receipt.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Receipt VAT exempt (Boleta electrónica exenta)
The receiver parameters are optional for VAT exempt electronic receipt. You can include them to create a nominative receipt or not include them to generate a regular (non-nominative) receipt.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Credit note with reference to reference_number (Nota de crédito con referencia de reference_number)
The receiver parameters are mandatory for credit note. If you are cancelling an electronic receipt and you have no nominative information, you can use the generic tax id 66666666-6.
Use reference_number (document_number) to reference the document you are cancelling.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Credit note with reference to reference_document_id (Nota de crédito con referencia de reference_document_id)
The receiver parameters are mandatory for credit note. If you are cancelling an electronic receipt and you have no nominative information, you can use the generic tax id 66666666-6.
Use reference_document_id (document_id) to reference the document you are cancelling.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Debit note with reference to reference_number (Nota de débito con referencia de reference_number)
The receiver parameters are mandatory for debit note. If you are cancelling an credit note and you have no nominative information, you can use the generic tax id 66666666-6.
Use reference_number (document_number) to reference the document you are cancelling.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Debit note with reference to reference_document_id (Nota de débito con referencia de reference_document_id)
The receiver parameters are mandatory for debit note. If you are cancelling an credit note and you have no nominative information, you can use the generic tax id 66666666-6.
Use reference_document_id (document_id) to reference the document you are cancelling.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Bill of Lading (Guía de despacho)
Bills of lading are used in addition to invoices when moving inventory within the same company warehouses, or to/from a customer address.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Exports Invoice (Factura de exportación)
When you sell to other countries, you are required in Chile to issue a export invoice. The format is similar but it also allows
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Exports Credit note (Nota de crédito de exportación)
If you want to cancel an export invoice, you need to use this special kind of document.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Exports Debit note (Nota de débito de exportación)
If you want to cancel an export invoice, you need to use this special kind of document.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*