Skip to main content
DELETE
/
charges
/
{merchant_code}
/
{merchant_operation_number}
Cancelar o extornar operacion ecommerce
curl --request DELETE \
  --url https://api.preprod.alignet.io/charges/{merchant_code}/{merchant_operation_number} \
  --header 'ALG-API-VERSION: <alg-api-version>' \
  --header 'Authorization: <authorization>'
{ "success": true, "merchant_code": "abc", "merchant_operation_number": "2836824", "operation": { "merchant_operation_number": "2836824", "amount": "1000", "currency": "604", "created_at": { "utc_time": "2024-07-05T16:46:12", "unix_time": 1720197972 }, "state": "CANCELADO", "transactions": [ { "transaction_id": "9namjcnjvqzas2t33xyfrqr2h", "channel": "ecommerce", "state": "CANCELADO", "state_reason": "Usuario cancelo el metodo de pago", "amount": "1000", "currency": "604", "additional_fields": null, "payment_method": { "method_name": "PAGOEFECTIVO", "method_details": { "callback_url": "https://jjap9ekgee.execute-api.us-east-1.amazonaws.com/development/redirect/prueba/merchant_notification_response" } }, "expiration_date": null, "processor_response": null, "lifecycle": [ { "state": "REGISTRADO", "date": { "utc_time": "2024-07-05T16:46:12", "unix_time": 1720197972 } }, { "state": "PENDIENTE", "date": { "utc_time": "2024-07-05T16:46:13", "unix_time": 1720197973 } }, { "state": "CANCELADO", "date": { "utc_time": "2024-07-05T16:47:22", "unix_time": 1720198042 } } ] } ] }, "meta": { "status": { "code": "00", "message_ilgn": [ { "locale": "es_PE", "value": "Se proceso correctamente la peticion" } ] } } }

Documentation Index

Fetch the complete documentation index at: https://docs.pay-me.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
default:Bearer {{access_token}}
required

Token Bearer obtenido desde autenticacion.

ALG-API-VERSION
string
default:1709847567
required

Version del API a usar.

payment-facilitator-code
string

Identificador del Facilitador de Pago.

Path Parameters

merchant_code
string
required

Identificador del comercio.

merchant_operation_number
string
required

Numero de operacion registrado por el comercio.

Response

Operacion cancelada o extornada correctamente.

success
boolean
required
Example:

true

merchant_code
string
required
Example:

"your_merchant_code"

operation
object
required
meta
object
required
merchant_operation_number
string
Example:

"2391645"