➕ 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)
In order to create a new colombian 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 with reported payment code (Factura con código de pago)
Specifies the payment code reported for the invoice, according to the DIAN payment codes of Colombia. This field identifies how the invoice payment was made or recorded.
If this field is not sent, its default value will be “cash”.
If you have doubts about which reported payment code to use, check the reported_payment_code table of codes.
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Invoice with a foreign receiver (Factura con receptor extranjero)
In colombia the same invoice used for domestic sales, is also used for foreign customers, 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 with taxes and withholdings (Factura con impuesto y retención)
Invoice that includes applicable taxes (such as VAT) and amounts withheld by the buyer (such as VAT withholding), which are not paid to the seller but instead reported to the tax authority.
- 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)
In order to create a new colombian credit note, you need to use the /documents endpoint with the proper parameters.
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)
In order to create a new colombian credit note, you need to use the /documents endpoint with the proper parameters.
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)
In order to create a new colombian debit note, you need to use the /documents endpoint with the proper parameters.
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)
In order to create a new colombian debit note, you need to use the /documents endpoint with the proper parameters.
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: */*
POS equivalent document (Documento equivalente POS)
POS will only generate XML, no PDF will be generated on test or production environment. You can use the data to generate your own document format
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
POS equivalent credit note (Nota de crédito para documento equivalente POS)
POS will only generate XML, no PDF will be generated on test or production environment. You can use the data to generate your own document format
- Endpoint: https://api-billing.koywe.com/V1/documents
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
support document (Documento soporte)
DIAN doesn’t allow issuing support documents on its testing environment, so when issuing this using sandbox credentials no XML or PDF will be returned.
support document credit note (Nota de crédito a documento soporte)
DIAN doesn’t allow issuing support documents on its testing environment, so when issuing this using sandbox credentials no XML or PDF will be returned.