Crear nota de crédito
Changed onEmite una nota de crédito (CFDI de egreso) a partir de un billing document existente.
Se usa para anular un billing document cuando el ejercicio fiscal ya está cerrado y no se puede cancelar directamente. Devuelve el billing document de la nota de crédito emitida. Falla con 404 si el documento de origen no existe.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/billing-documents/credit-note
- AuthAPI key in header x-api-key
Headers
Llave de API de una Account, para operar sobre esa Account en lugar de la principal.
Request body
Example request
{
"amount": 500,
"date": "2026-08-12T10:30:00",
"items": [
{
"identification_number": "SKU-4471",
"product_code": "84111506",
"product_description": "Servicio de suscripción mensual",
"quantity": 1,
"tax_object": "02",
"taxes": [
{
"base": 1500,
"name": "IVA",
"rate": 0.16,
"total": 240
}
],
"unit_code": "E48",
"unit_price": 1500
}
],
"payment_form": "03",
"provider_external_id": "a1b2c3d4-5e6f-7890-abcd-ef1234567890",
"reason": "Devolución parcial del pedido"
}Response
Successful Response
Changes
- breaking
request body became required
- breaking
the
request property's minItems was increased to1 - breaking
the
request property type changed fromobjecttoarray - breaking
the
response's property type changed fromintegertonumberfor status - breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromintegertonumberfor status - breaking
the
response's property type changed fromintegertonumberfor status - breaking
the
response's property type changed fromstringto no type for status - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
added the new
CANCELLEDenum value to theresponse property for the response status - warning
added the new
COMPLEMENTenum value to theresponse property for the response status - warning
added the new
CREDIT_NOTEenum value to theresponse property for the response status - warning
added the new
FAILEDenum value to theresponse property for the response status - warning
added the new
INVOICEenum value to theresponse property for the response status - warning
added the new
ISSUEDenum value to theresponse property for the response status - warning
added the new
PENDING_CANCELLATIONenum value to theresponse property for the response status - info
api operation id
nota-de-créditoremoved and replaced withcreate_credit_note - info
api tag
Facturaciónadded - info
added the new optional
headerrequest parameterx-account-key - info
the
request property format was generalized fromfloatto no format - info
the
request property format was generalized fromdatetodate-time - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status
- breaking