Crear solicitud de firma para una transacción
curl --request POST \
--url https://api.cresium.app/v3/signature-request/{type} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-company-id: <api-key>' \
--header 'x-signature: <api-key>' \
--header 'x-timestamp: <api-key>' \
--data '
{
"id": 98123,
"noteForSigner": "Pago a proveedor de noviembre",
"isUrgent": false
}
'import requests
url = "https://api.cresium.app/v3/signature-request/{type}"
payload = {
"id": 98123,
"noteForSigner": "Pago a proveedor de noviembre",
"isUrgent": False
}
headers = {
"x-api-key": "<api-key>",
"x-signature": "<api-key>",
"x-timestamp": "<api-key>",
"x-company-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-signature': '<api-key>',
'x-timestamp': '<api-key>',
'x-company-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({id: 98123, noteForSigner: 'Pago a proveedor de noviembre', isUrgent: false})
};
fetch('https://api.cresium.app/v3/signature-request/{type}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cresium.app/v3/signature-request/{type}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 98123,
'noteForSigner' => 'Pago a proveedor de noviembre',
'isUrgent' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-company-id: <api-key>",
"x-signature: <api-key>",
"x-timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cresium.app/v3/signature-request/{type}"
payload := strings.NewReader("{\n \"id\": 98123,\n \"noteForSigner\": \"Pago a proveedor de noviembre\",\n \"isUrgent\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-signature", "<api-key>")
req.Header.Add("x-timestamp", "<api-key>")
req.Header.Add("x-company-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cresium.app/v3/signature-request/{type}")
.header("x-api-key", "<api-key>")
.header("x-signature", "<api-key>")
.header("x-timestamp", "<api-key>")
.header("x-company-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 98123,\n \"noteForSigner\": \"Pago a proveedor de noviembre\",\n \"isUrgent\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cresium.app/v3/signature-request/{type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-signature"] = '<api-key>'
request["x-timestamp"] = '<api-key>'
request["x-company-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 98123,\n \"noteForSigner\": \"Pago a proveedor de noviembre\",\n \"isUrgent\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123
}
}{
"code": 400,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 401,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 500,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}Solicitudes de Firma
Crear solicitud de firma para una transacción
Crea una solicitud de firma para una transacción en estado PREVIEW, para que un signer la apruebe desde el Dashboard en vez de confirmarla vos; al aprobarla, la transacción se confirma sola. type es TRANSACTION_REQUEST para una transacción WITHDRAWAL o BILL_PAYMENT, o BULK_REQUEST para un lote. Devuelve el id de la solicitud. Errores: INVALID_TRANSACTION si no está en PREVIEW o no es WITHDRAWAL ni BILL_PAYMENT, NOT_OWNER si es de otra empresa y NOT_FOUND si no existe.
POST
/
v3
/
signature-request
/
{type}
Crear solicitud de firma para una transacción
curl --request POST \
--url https://api.cresium.app/v3/signature-request/{type} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-company-id: <api-key>' \
--header 'x-signature: <api-key>' \
--header 'x-timestamp: <api-key>' \
--data '
{
"id": 98123,
"noteForSigner": "Pago a proveedor de noviembre",
"isUrgent": false
}
'import requests
url = "https://api.cresium.app/v3/signature-request/{type}"
payload = {
"id": 98123,
"noteForSigner": "Pago a proveedor de noviembre",
"isUrgent": False
}
headers = {
"x-api-key": "<api-key>",
"x-signature": "<api-key>",
"x-timestamp": "<api-key>",
"x-company-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-signature': '<api-key>',
'x-timestamp': '<api-key>',
'x-company-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({id: 98123, noteForSigner: 'Pago a proveedor de noviembre', isUrgent: false})
};
fetch('https://api.cresium.app/v3/signature-request/{type}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cresium.app/v3/signature-request/{type}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 98123,
'noteForSigner' => 'Pago a proveedor de noviembre',
'isUrgent' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-company-id: <api-key>",
"x-signature: <api-key>",
"x-timestamp: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cresium.app/v3/signature-request/{type}"
payload := strings.NewReader("{\n \"id\": 98123,\n \"noteForSigner\": \"Pago a proveedor de noviembre\",\n \"isUrgent\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-signature", "<api-key>")
req.Header.Add("x-timestamp", "<api-key>")
req.Header.Add("x-company-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cresium.app/v3/signature-request/{type}")
.header("x-api-key", "<api-key>")
.header("x-signature", "<api-key>")
.header("x-timestamp", "<api-key>")
.header("x-company-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 98123,\n \"noteForSigner\": \"Pago a proveedor de noviembre\",\n \"isUrgent\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cresium.app/v3/signature-request/{type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-signature"] = '<api-key>'
request["x-timestamp"] = '<api-key>'
request["x-company-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 98123,\n \"noteForSigner\": \"Pago a proveedor de noviembre\",\n \"isUrgent\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123
}
}{
"code": 400,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 401,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 500,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}Autorizaciones
Parámetros de ruta
Cuerpo
application/json