Crear datos de facturación de Customer
Changed onRegistra los datos de facturación de un Customer.
Se usa para dar de alta la información fiscal con la que se emitirán sus billing documents. Devuelve los datos creados. Falla con 400 si la checkout session referenciada no existe.
Request
- Base URLhttps://api.trytoku.com
- URLhttps://api.trytoku.com/customer-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
{
"billing_address": "Av. Insurgentes Sur 1234, Col. Del Valle",
"billing_email": "facturacion@empresademo.mx",
"checkout_session_id": "cs_7Hn2kLm0QpXr7Zt3Wv1Nb8Yc4Ad6Ge5J",
"id_customer": "cus_fLPjkiFoTCpGKFUIA52AqiOg8B4OdIWO",
"legal_name": "EMPRESA DEMO SA DE CV",
"tax_id": "GODE561231GR8",
"tax_regime": "601",
"tax_zip_code": "03100"
}Response
Successful Response
Example response
{
"billing_address": "Av. Insurgentes Sur 1234, Col. Del Valle",
"billing_email": "facturacion@empresademo.mx",
"legal_name": "EMPRESA DEMO SA DE CV",
"tax_id": "GODE561231GR8",
"tax_regime": "601",
"tax_zip_code": "03100"
}Changes
- breaking
request body became required
- breaking
removed the success response with the status
- info
api operation id
crear-información-de-facturación-del-customerremoved and replaced withcreate_customer_billing_data - info
api tag
Facturaciónadded - info
added the new optional
headerrequest parameterx-account-key - info
added the new optional request property
- info
the request property
became optional - 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