Request Request (Ejemplo) Response Response (ejemplo)
Identificador de la orden único en el comercio.
Identificador del comercio en Payvalida.
Cadena consultada con SHA512(order + merchant + FIXED_HASH).
Copiar curl --location --request DELETE 'https://api-test.payvalida.com/api/v3/porders/test11031?merchant=kuanto&checksum=9D96D9213893F3070C77215FC460E6432AA2052FC1B72375983B5A38D1FBC4BB98C21F8D81EAB1A35534D977A2C19171E44C949C4B508645402C3EB8BD7F7BF6'
Código de respuesta 0000 para OK.
Descripción de la respuesta.
Resultado de la eliminación de la orden.
ID único de la orden asociado al comercio.
ID único asociado a la orden para Payvalida.
Numero de la referencia con la cual el cliente realizara el pago.
Copiar {
"CODE" : "0000" ,
"DESC" : "OK" ,
"DATA" : {
"OrderID" : "test11031" ,
"Amount" : "2589.0" ,
"PVOrderID" : "1934631" ,
"Reference" : "10522318" ,
"Operation" : "DELETED"
}
}
Copiar package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main () {
url := "https://api-test.payvalida.com/api/v3/porders/test11031?merchant=kuanto&checksum=9D96D9213893F3070C77215FC460E6432AA2052FC1B72375983B5A38D1FBC4BB98C21F8D81EAB1A35534D977A2C19171E44C949C4B508645402C3EB8BD7F7BF6"
method := "DELETE"
client := & http.Client {
}
req, err := http. NewRequest (method, url, nil )
if err != nil {
fmt. Println (err)
return
}
res, err := client. Do (req)
if err != nil {
fmt. Println (err)
return
}
defer res.Body. Close ()
body, err := ioutil. ReadAll (res.Body)
if err != nil {
fmt. Println (err)
return
}
fmt. Println ( string (body))
}
Copiar <? php
$curl = curl_init () ;
curl_setopt_array ( $curl , array(
CURLOPT_URL => "https://api-test.payvalida.com/api/v3/porders/test11031?merchant=kuanto&checksum=9D96D9213893F3070C77215FC460E6432AA2052FC1B72375983B5A38D1FBC4BB98C21F8D81EAB1A35534D977A2C19171E44C949C4B508645402C3EB8BD7F7BF6" ,
CURLOPT_RETURNTRANSFER => true ,
CURLOPT_ENCODING => "" ,
CURLOPT_MAXREDIRS => 10 ,
CURLOPT_TIMEOUT => 0 ,
CURLOPT_FOLLOWLOCATION => true ,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 ,
CURLOPT_CUSTOMREQUEST => " DELETE " ,
CURLOPT_HTTPHEADER => array(
"Cookie: __cfduid=db2ca6d84048cb8569438db5fe37b82a01606749049"
) ,
) ) ;
$response = curl_exec ( $curl ) ;
curl_close ( $curl ) ;
echo $response;
Copiar OkHttpClient client = new OkHttpClient () . newBuilder ()
. build () ;
MediaType mediaType = MediaType . parse ( "text/plain" ) ;
RequestBody body = RequestBody . create ( mediaType , "" ) ;
Request request = new Request . Builder ()
. url ( "https://api-test.payvalida.com/api/v3/porders/test11031?merchant=kuanto&checksum=9D96D9213893F3070C77215FC460E6432AA2052FC1B72375983B5A38D1FBC4BB98C21F8D81EAB1A35534D977A2C19171E44C949C4B508645402C3EB8BD7F7BF6" )
. method ( " DELETE " , body )
. build () ;
Response response = client . newCall ( request ) . execute () ;
Copiar import http . client
import mimetypes
conn = http . client . HTTPSConnection ( "api-test.payvalida.com" )
payload = ''
headers = {}
conn . request ( "DELETE" , "/api/v3/porders/test11031?merchant=kuanto&checksum=9D96D9213893F3070C77215FC460E6432AA2052FC1B72375983B5A38D1FBC4BB98C21F8D81EAB1A35534D977A2C19171E44C949C4B508645402C3EB8BD7F7BF6" , payload, headers)
res = conn . getresponse ()
data = res . read ()
print (data. decode ( "utf-8" ))
Copiar var myHeaders = new Headers () ;
var requestOptions = {
method : 'DELETE' ,
headers : myHeaders ,
redirect : 'follow'
} ;
fetch ( "https://api-test.payvalida.com/api/v3/porders/test11031?merchant=kuanto&checksum=9D96D9213893F3070C77215FC460E6432AA2052FC1B72375983B5A38D1FBC4BB98C21F8D81EAB1A35534D977A2C19171E44C949C4B508645402C3EB8BD7F7BF6" , requestOptions)
. then (response => response. text ())
. then (result => console. log (result))
. catch (error => console. log ( 'error' , error)) ;