paymentIntents

Actualizar un payment intent

Changed on

Adjunta una URL de factura fiscal a un payment intent exitoso. Solo los intents con status succeeded pueden ser actualizados.

put/payment_intents/{id}

Request

Path parameters

idstring required

ID del payment intent

Request body

Response

Payment intent actualizado

idstring

ID del payment intent

receipt_numberinteger

Número de recibo

api_versionstring

Versión de la API

live_modeboolean

true en pagos reales; false en eventos simulados de checkouts de prueba.

created_atstring date-time

Fecha de creación

customer_idstring

ID del cliente

user_idstring

ID del usuario

failure_reasonstring nullable

Razón de fallo (si aplica)

amount_in_centsinteger

Monto en centavos

currencystring

Moneda

feeinteger

Comisión cobrada

vat_withheldinteger

IVA retenido

vat_withheld_currencystring nullable

Moneda del IVA retenido

used_presaved_payment_methodboolean

Si se usó un método de pago guardado

tax_invoice_urlstring nullable

URL de la factura fiscal

channel'POS' | 'Celular como POS' | 'Link de pago'

Origen exacto del cobro con tarjeta. Usa POS para una terminal física, Celular como POS para cobros desde un teléfono y Link de pago para cobros con tarjeta en línea.

Changes

    • breaking

      added to the response property oneOf list for the response status

    • breaking

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

    • info

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

    • warning

      deleted the header request parameter X-SECRET-KEY

    • info

      the endpoint scheme security secretKey was added to the API