curl --request POST \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/collection-documents/checkout-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"customerExternalId": "customer-1001",
"currency": "VES",
"documents": [
{
"externalDocumentId": "invoice-1001"
}
]
}
'{
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"checkoutUrl": "<string>",
"currency": "<string>",
"amountMinor": "<string>",
"documents": [
{
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amountMinor": "<string>",
"number": "<string>",
"externalDocumentId": "<string>"
}
],
"splits": [
{
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "principal",
"bankCode": "0102",
"bankName": "Banco de Venezuela",
"maskedAccount": "•••• 2345",
"alias": "<string>",
"percent": "37.5",
"created": true
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Links de cobro
Crear link de cobro
Crea una sesión para documentos abiertos del mismo cliente y moneda. El source se obtiene de la llave. Con splits, indica a qué cuentas va el dinero de la venta si el cliente paga por débito inmediato Banco Plaza; requiere también payout_splits:write.
POST
/
integrations
/
v1
/
{companyId}
/
collection-documents
/
checkout-sessions
curl --request POST \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/collection-documents/checkout-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"customerExternalId": "customer-1001",
"currency": "VES",
"documents": [
{
"externalDocumentId": "invoice-1001"
}
]
}
'{
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"checkoutUrl": "<string>",
"currency": "<string>",
"amountMinor": "<string>",
"documents": [
{
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amountMinor": "<string>",
"number": "<string>",
"externalDocumentId": "<string>"
}
],
"splits": [
{
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "principal",
"bankCode": "0102",
"bankName": "Banco de Venezuela",
"maskedAccount": "•••• 2345",
"alias": "<string>",
"percent": "37.5",
"created": true
}
]
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Headers
Body
application/json
Response
Sesión creada

