Crear datos de facturación de un Invoice
Changed onRegistra los datos de facturación de un Invoice.
Se usa para asociar a un Invoice la información fiscal con la que se emitirá su billing document. Devuelve los datos creados. Falla con 400 por datos inválidos (montos, ítems o referencias) y con 409 si ya existen datos de facturación para ese Invoice.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/invoice-billing-data
- 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
{
"checkout_session_id": "cs_7Hn2kLm0QpXr7Zt3Wv1Nb8Yc4Ad6Ge5J",
"item": {
"identification_number": "SKU-4471",
"product_code": "84111506",
"product_description": "Servicio de suscripción mensual",
"quantity": 1,
"tax_object": "02",
"taxes": [
{
"name": "IVA",
"rate": 0.16
}
],
"unit_code": "E48",
"unit_price": 1500
},
"items": [
{
"identification_number": "SKU-4471",
"product_code": "84111506",
"product_description": "Servicio de suscripción mensual",
"quantity": 1,
"tax_object": "02",
"taxes": [
{
"name": "IVA",
"rate": 0.16
}
],
"unit_code": "E48",
"unit_price": 1500
}
],
"observations": "Facturar a nombre de la matriz"
}Response
Successful Response
Example response
{
"item": {
"identification_number": "SKU-4471",
"product_code": "84111506",
"product_description": "Servicio de suscripción mensual",
"quantity": 1,
"tax_object": "02",
"taxes": [
{
"name": "IVA",
"rate": 0.16
}
],
"unit_code": "E48",
"unit_price": 1500
},
"items": [
{
"identification_number": "SKU-4471",
"product_code": "84111506",
"product_description": "Servicio de suscripción mensual",
"quantity": 1,
"tax_object": "02",
"taxes": [
{
"name": "IVA",
"rate": 0.16
}
],
"unit_code": "E48",
"unit_price": 1500
}
],
"observations": "Facturar a nombre de la matriz"
}Changes
- breaking
request body became required
- breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
added to the
request propertyallOflist - breaking
removed the enum value
PPDof the request property - breaking
removed the enum value
PUEof the request property - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromobjectto no type - breaking
removed the success response with the 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
/ - info
api operation id
crear-información-de-facturación-de-la-deudaremoved and replaced withcreate_invoice_billing_data - info
api tag
Facturaciónadded - info
added the new optional
headerrequest parameterx-account-key - info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional - info
the request property
became optional - info
request property
deprecated - info
request property
list-of-types was widened by adding typesintegerto media typeapplication/json - 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 success response with the status
- breaking