In order to enable payment for the customer, you must register an order first.
Register
POSThttps://api.payvalida.com/api/v3/porders
Sandbox URL: https://api-test.payvalida.com/api/v3/porders
This method creates the payment order in our system. The checkout parameter indicates the URL where the customer can complete the payment.
Path Parameters
Name
Type
Description
merchant*
string
ID of the commerce in Payvalida. Max. 50 characters.
email*
string
Customer's email. Max. 100 characters.
country*
number
Country code. 3 characters.
order*
string
Generated order's ID. Max. 200 characters.
reference*
string
Order's reference number. this field cant be alphanumeric. It helps the customer identify it on the payment process. Max 25 characters.
money*
string
Currency's code of the order. Max 3 characters.
amount*
number
Order's amount. Only accepts integers.
description*
string
Short description of the order. Max. 250 characters.
method
string
Selected payment method by the customer. Max. 25 characters
language
string
Language of the messages and responses. 2 characters.
recurrent*
boolean
Indicates whether the order is recurrent.(only apply to cash payments)
expiration*
string
Order's expiration date, must follow the format DD/MM/YYYY. It can't neither surpass 30 days nor be from a date before the registration of the order.
iva
number
Percentage amount corresponding to the VAT/IVA of the order.
checksum*
string
Checksum encoded in SHA512
(email+country+order+
money+amount+FIXED_HASH). 512 characters.
user_di
number
Identification of the customer. Max. 15 characters.
user_type_di
string
ID type of the customer. Max. 3 caracteres.
user_name
string
Customer's name. Max. 25 characters.
redirect_timeout
number
Timeout amount for the redirection in milliseconds. Max. 5 characters.
merchant: UID of the commerce in Payvalida, every commerce has an assigned FIXED_HASH, only known by Payvalida and the commerce itself.
email: email of the customer. This is used in order to send notifications associated with the orders.
country: code of the country associated with the order.
order: UID of the order, in alphanumeric and generated by the commerce. Using this code, Payvalida con notify and monitor the payment of it.
reference: this identifier can be generated either automatically by Payvalida or by the merchant. The customer uses this identifier to complete the payment.
Maximum length:
amount: amount of the order. If the amount is in USD, our system converts it to each country's legal currency.
description: short description of the order.
method: payment method. If it's indicated, our checkout shows the instructions to complete the payment using the designated method, if its omitted, it shows all the payment methods available for the commerce.
recurrent: indicates if an order is recurrent. A recurrent order never expires and it's always available for payment.
expiration: expiration date for the order, after it the order will change status to expired.
iva: if the designated payment method is credit card, you must indicate this value for the reteIVA calculation (Only required for operations in Colombia).
checksum: verifies the identity of the commerce.
user_di: identification number of the customer.
user_type_di: type of identification of the customer.
user_name: name of the customer as shown in the ID (doesn't accept special characters nor accents).
redirect_timeout: waiting time for auto redirection to the commerce's website when the payment is complete. Applies for CC and PSE (Recommended: 15000 ms).
The commerce (merchant) id and the FIXED_HASH are provided when you create an account in our platform.