Anular Orden de Pago

Changed on

Método para anular una orden de pago en Kashio

delete/invoices/{invoice_id}

Request

  • Base URL
    https://cert-api.kashio.net/v1/payments
  • URL
    https://cert-api.kashio.net/v1/payments/invoices/{invoice_id}
  • Auth
    HTTP basic

Path parameters

invoice_idstring required

ID de la orden de pago existente

Response

200

amountnumber
createdstring
currencystring
customerobject
idstring
invoice_idstring
ktinstring
late_feeinteger
livemodeboolean
objectstring
request_datetimestring
statusstring
sub_totalnumber
tokenstring

Example response

{
  "amount": 2.01,
  "created": "2022-12-30 20:01:13",
  "currency": "PEN",
  "id": "inv_cert_XXXXXXXXXXXXXX",
  "invoice_id": "1672430473",
  "ktin": "223645288917",
  "metadata": {
    "order_description": "Orden 1672430473",
    "order_id": "1672430473",
    "order_name": "Orden 1672430473"
  },
  "object": "invoice",
  "request_datetime": "2022-12-30 20:01:13",
  "status": "VOIDED",
  "sub_total": 2.01,
  "token": "YJHPyApWxUgLu5ozS3tRLA"
}

Changes

    • breaking

      the response's property format changed from date-time to no format for status

    • breaking

      the response's property type changed from string to integer for status

    • breaking

      the response's property type changed from string to boolean for status

    • breaking

      the response's property type changed from string to number for status

    • info

      api operation id delete_invoices{invoice_id} removed and replaced with anular-deuda

    • info

      the response's property default value 0 was added for the status

    • info

      the response's property default value 0 was added for the status

    • info

      the response's property default value true was added for the status

    • info

      the response's property default value 0 was added for the status