Delete
Only orders with a PENDING (PENDIENTE) status can be eliminated
Delete
DELETE https://api.payvalida.com/api/v3/porders/{order}
Sandbox URL: https://api-test.payvalida.com/api/v3/porders/{order}
This action changes the order status from PENDING (PENDIENTE) to CANCELLED (CANCELADA), in this case, notifications about the status change aren't sent. After elimination (cancellation), the order can't be paid.
Path Parameters
order
string
Order ID. Max. 200 characters
Query Parameters
merchant
string
ID of the commerce in Payvalida. Max. 50 characters.
checksum
string
Checksum encoded in SHA512(order+merchant+FIXED_HASH). 512 caracteres.
{
"CODE":"0000",
"DATA":{
"Reference":"3102292330",
"Amount":"0.0",
"Operation":"DELETED",
"OrderID":"1496953766724_6",
"PVOrderID":"95585"
},
"DESC":"OK"
}Eliminating an order doesn't mean that is not available anymore.
You can't register a new order with the same order number of an eliminated one. The order number is unique regardless of its state.
The commerce (merchant) id and the FIXED_HASH are provided when you create an account in our platform.
Examples
Request
Go
PHP
Python
Java
JavaScript
Última actualización
¿Te fue útil?