Sandbox URL: https://api-test.payvalida.com/api/v3/porders
Allows the modification of an existing order, for example, extending its life (expiration date), amount, description, reference, etc.
var myHeaders =newHeaders();myHeaders.append("Content-Type","application/json");var raw = JSON.stringify({"merchant":"kuanto","email":"someone@example.com","country":343,"order":"999999991","reference":"46534512","money":"COP","amount":"9500","description":"Orden de prueba","method":"","language":"es","recurrent":true,"expiration":"27/12/2020","iva":"0","checksum":"1AC89E7089355B5069222C01779431A192FC4D459C25584D69B64ABBF605FE7CB54A015296A39D234CA9B94FF9F068423AC1E00F5A319EB18F2167B97C8A0BB1","user_di":"94320444","user_type_di":"CC","user_name":"NombreUsuario","redirect_timeout":"300000"});
var requestOptions = { method:'PATCH', headers: myHeaders, body: raw, redirect:'follow'};fetch("https://api-test.payvalida.com/api/v3/porders", requestOptions).then(response =>response.text()).then(result =>console.log(result)).catch(error =>console.log('error', error));
merchant
string
ID of the commerce in Payvalida. Max. 50 characters
email
string
Customer's email. It's used to send notification of the billing. Max. 100 characters.
country
number
Country code. 3 characters.
order
string
Order ID, generated by the commerce. Max. 20 characters.
reference
number
Reference number used by the customer to pay the order.
money
string
Currency's code of the order. 3 characters.
amount
number
Order's amount.
description
string
Short description of the order. Max. 500 characters.
method
string
Payment method selected by the customer. Max. 25 characters.
language
string
Language of the messages and responses. 2 characters.
recurrent
boolean
Indicated whether the order is recurrent.
expiration
string
Expiration date in format DD/MM/YYYY. Fecha de expiración de la orden en formato DD/MM/AAAA. It can't neither surpass 30 days nor be from a date before the registration of the order.
iva
number
Percentage amount of VAT/IVA of the order.
checksum
string
Checksum encoded in SHA512
(email+country+order+money+amount+FIXED_HASH). Max. 512 caracteres.