Update
Only orders with a pending status can be modified.
Update
PATCH https://api.payvalida.com/api/v3/porders
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.
Path Parameters
merchant
string
ID of the commerce in Payvalida. Max. 50 characters
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.
The commerce (merchant) id and the FIXED_HASH are provided when you create an account in our platform.
Sent data is verified and updated if the parameter is different to the original order's.
In order to update an order, it is required to be in PENDING (PENDIENTE) status, otherwise you won't be able to modify it.
Examples
Request
Go
PHP
Java
JavaScript
Última actualización
¿Te fue útil?