Crear un pago único
curl --request POST \
--url https://api.cresium.app/v3/payment-order/ \
--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 '
{
"alias": "mi-empresa.orden-01",
"paymentOrder": {
"externalId": "orden-2026-0001",
"amount": 15000.5,
"title": "Cuota noviembre",
"description": "Cuota mensual del plan Pro",
"metadata": {
"customerId": "cli-981"
},
"expiresIn": "24h"
}
}
'import requests
url = "https://api.cresium.app/v3/payment-order/"
payload = {
"alias": "mi-empresa.orden-01",
"paymentOrder": {
"externalId": "orden-2026-0001",
"amount": 15000.5,
"title": "Cuota noviembre",
"description": "Cuota mensual del plan Pro",
"metadata": { "customerId": "cli-981" },
"expiresIn": "24h"
}
}
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({
alias: 'mi-empresa.orden-01',
paymentOrder: {
externalId: 'orden-2026-0001',
amount: 15000.5,
title: 'Cuota noviembre',
description: 'Cuota mensual del plan Pro',
metadata: {customerId: 'cli-981'},
expiresIn: '24h'
}
})
};
fetch('https://api.cresium.app/v3/payment-order/', 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/payment-order/",
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([
'alias' => 'mi-empresa.orden-01',
'paymentOrder' => [
'externalId' => 'orden-2026-0001',
'amount' => 15000.5,
'title' => 'Cuota noviembre',
'description' => 'Cuota mensual del plan Pro',
'metadata' => [
'customerId' => 'cli-981'
],
'expiresIn' => '24h'
]
]),
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/payment-order/"
payload := strings.NewReader("{\n \"alias\": \"mi-empresa.orden-01\",\n \"paymentOrder\": {\n \"externalId\": \"orden-2026-0001\",\n \"amount\": 15000.5,\n \"title\": \"Cuota noviembre\",\n \"description\": \"Cuota mensual del plan Pro\",\n \"metadata\": {\n \"customerId\": \"cli-981\"\n },\n \"expiresIn\": \"24h\"\n }\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/payment-order/")
.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 \"alias\": \"mi-empresa.orden-01\",\n \"paymentOrder\": {\n \"externalId\": \"orden-2026-0001\",\n \"amount\": 15000.5,\n \"title\": \"Cuota noviembre\",\n \"description\": \"Cuota mensual del plan Pro\",\n \"metadata\": {\n \"customerId\": \"cli-981\"\n },\n \"expiresIn\": \"24h\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cresium.app/v3/payment-order/")
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 \"alias\": \"mi-empresa.orden-01\",\n \"paymentOrder\": {\n \"externalId\": \"orden-2026-0001\",\n \"amount\": 15000.5,\n \"title\": \"Cuota noviembre\",\n \"description\": \"Cuota mensual del plan Pro\",\n \"metadata\": {\n \"customerId\": \"cli-981\"\n },\n \"expiresIn\": \"24h\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"paymentOrder": {
"id": 1042,
"externalId": "orden-2026-0001",
"amount": 15000.5,
"amountPaid": 0,
"status": "NOT_PAID",
"metadata": "<unknown>",
"companyId": 456,
"currency": {
"symbol": "$",
"code": "ARS",
"image": "<string>",
"decimals": 2
},
"depositAddressId": 3021,
"createdAt": "2026-11-11T15:00:00.000Z",
"title": "<string>",
"description": "<string>",
"partnerId": 123,
"expiresAt": "2023-11-07T05:31:56Z"
},
"depositAddress": {
"id": 3021,
"type": "CVU",
"value": "0000253100000000001234",
"currency": {
"symbol": "$",
"code": "ARS",
"image": "<string>",
"decimals": 2
},
"bankProvider": {
"name": "BIND",
"img": "<string>"
},
"externalId": "<string>",
"wallet": {
"id": 123,
"balance": 1000000,
"lockedBalance": 50000,
"investedBalance": 200000,
"availableBalance": 750000,
"currency": {
"symbol": "$",
"code": "ARS",
"image": "<string>",
"decimals": 2
},
"companyId": 456
},
"hasEcheqs": true
}
}
}{
"code": 400,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 401,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 403,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 500,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 503,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}Emisión y gestión de Pagos Únicos
Crear un pago único
Crea un pago único: un cobro puntual con un CVU de un solo uso, que se devuelve en depositAddress. Cada depósito que entra suma a amountPaid, actualiza el status y llega por el webhook DEPOSIT con la orden en paymentOrder. Con expiresIn (por defecto 24 h) se define cuánto queda abierto: cuando la orden pasa a PAID o EXPIRED, el CVU se da de baja y deja de recibir depósitos, pero los ya acreditados se mantienen.
POST
/
v3
/
payment-order
/
Crear un pago único
curl --request POST \
--url https://api.cresium.app/v3/payment-order/ \
--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 '
{
"alias": "mi-empresa.orden-01",
"paymentOrder": {
"externalId": "orden-2026-0001",
"amount": 15000.5,
"title": "Cuota noviembre",
"description": "Cuota mensual del plan Pro",
"metadata": {
"customerId": "cli-981"
},
"expiresIn": "24h"
}
}
'import requests
url = "https://api.cresium.app/v3/payment-order/"
payload = {
"alias": "mi-empresa.orden-01",
"paymentOrder": {
"externalId": "orden-2026-0001",
"amount": 15000.5,
"title": "Cuota noviembre",
"description": "Cuota mensual del plan Pro",
"metadata": { "customerId": "cli-981" },
"expiresIn": "24h"
}
}
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({
alias: 'mi-empresa.orden-01',
paymentOrder: {
externalId: 'orden-2026-0001',
amount: 15000.5,
title: 'Cuota noviembre',
description: 'Cuota mensual del plan Pro',
metadata: {customerId: 'cli-981'},
expiresIn: '24h'
}
})
};
fetch('https://api.cresium.app/v3/payment-order/', 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/payment-order/",
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([
'alias' => 'mi-empresa.orden-01',
'paymentOrder' => [
'externalId' => 'orden-2026-0001',
'amount' => 15000.5,
'title' => 'Cuota noviembre',
'description' => 'Cuota mensual del plan Pro',
'metadata' => [
'customerId' => 'cli-981'
],
'expiresIn' => '24h'
]
]),
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/payment-order/"
payload := strings.NewReader("{\n \"alias\": \"mi-empresa.orden-01\",\n \"paymentOrder\": {\n \"externalId\": \"orden-2026-0001\",\n \"amount\": 15000.5,\n \"title\": \"Cuota noviembre\",\n \"description\": \"Cuota mensual del plan Pro\",\n \"metadata\": {\n \"customerId\": \"cli-981\"\n },\n \"expiresIn\": \"24h\"\n }\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/payment-order/")
.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 \"alias\": \"mi-empresa.orden-01\",\n \"paymentOrder\": {\n \"externalId\": \"orden-2026-0001\",\n \"amount\": 15000.5,\n \"title\": \"Cuota noviembre\",\n \"description\": \"Cuota mensual del plan Pro\",\n \"metadata\": {\n \"customerId\": \"cli-981\"\n },\n \"expiresIn\": \"24h\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cresium.app/v3/payment-order/")
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 \"alias\": \"mi-empresa.orden-01\",\n \"paymentOrder\": {\n \"externalId\": \"orden-2026-0001\",\n \"amount\": 15000.5,\n \"title\": \"Cuota noviembre\",\n \"description\": \"Cuota mensual del plan Pro\",\n \"metadata\": {\n \"customerId\": \"cli-981\"\n },\n \"expiresIn\": \"24h\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"paymentOrder": {
"id": 1042,
"externalId": "orden-2026-0001",
"amount": 15000.5,
"amountPaid": 0,
"status": "NOT_PAID",
"metadata": "<unknown>",
"companyId": 456,
"currency": {
"symbol": "$",
"code": "ARS",
"image": "<string>",
"decimals": 2
},
"depositAddressId": 3021,
"createdAt": "2026-11-11T15:00:00.000Z",
"title": "<string>",
"description": "<string>",
"partnerId": 123,
"expiresAt": "2023-11-07T05:31:56Z"
},
"depositAddress": {
"id": 3021,
"type": "CVU",
"value": "0000253100000000001234",
"currency": {
"symbol": "$",
"code": "ARS",
"image": "<string>",
"decimals": 2
},
"bankProvider": {
"name": "BIND",
"img": "<string>"
},
"externalId": "<string>",
"wallet": {
"id": 123,
"balance": 1000000,
"lockedBalance": 50000,
"investedBalance": 200000,
"availableBalance": 750000,
"currency": {
"symbol": "$",
"code": "ARS",
"image": "<string>",
"decimals": 2
},
"companyId": 456
},
"hasEcheqs": true
}
}
}{
"code": 400,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 401,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 403,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 500,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 503,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}Autorizaciones
Cuerpo
application/json