Facturación

Registrar Customers como público en general

Changed on

Registra en lote los datos de facturación de varios Customers (público general).

Requiere al menos un Customer y respeta un límite de tamaño por petición. Devuelve un resumen con los creados y los omitidos; si todos se omitieron (ya existían), responde 200 en vez de 201.

post/customer-billing-data/general-public/bulk

Request

  • Base URL
    https://api.trytoku.com
  • URL
    https://api.trytoku.com/customer-billing-data/general-public/bulk
  • Auth
    API key in header x-api-key

Headers

x-account-keystring

Llave de API de una Account, para operar sobre esa Account en lugar de la principal.

Request body

id_customersstring[] required

Identificadores públicos de los Customers a registrar como público en general. Los que ya tengan datos de facturación se omiten en vez de fallar.

Example request

{
  "id_customers": [
    "cus_fLPjkiFoTCpGKFUIA52AqiOg8B4OdIWO",
    "cus_9Fh2kLm0QpXr7Zt3Wv1Nb8Yc4Ad6Ge5J"
  ]
}

Response

Successful Response

createdstring[] required

List of customer IDs that were created

Changes

    • breaking

      request body became required

    • breaking

      the request property's minItems was increased to 1

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      api operation id crear-información-de-facturación-público-general removed and replaced with create_customer_billing_data_bulk

    • info

      api tag Facturación added

    • info

      added the new optional header request parameter x-account-key

    • 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 to the response property allOf list for the response 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

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status