Listar cuentas para repartir
curl --request GET \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/payout-beneficiaries \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>'const options = {
method: 'GET',
headers: {
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/payout-beneficiaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/integrations/v1/{companyId}/payout-beneficiaries"
headers = {
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "principal",
"status": "active",
"bankCode": "0102",
"bankName": "Banco de Venezuela",
"maskedAccount": "•••• 2345",
"holderDocumentType": "J",
"alias": "Proveedor Caracas",
"addedBy": "owner",
"createdAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"limit": 123,
"nextCursor": "<string>",
"hasMore": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"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": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Cuentas para repartir
Listar cuentas para repartir
Las cuentas activas a las que puede ir el dinero de los cobros por débito inmediato: la principal, las que agregó el dueño y las que agregó la API. Enmascaradas. Las cuentas quitadas no aparecen.
GET
/
integrations
/
v1
/
{companyId}
/
payout-beneficiaries
Listar cuentas para repartir
curl --request GET \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/payout-beneficiaries \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>'const options = {
method: 'GET',
headers: {
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/payout-beneficiaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/integrations/v1/{companyId}/payout-beneficiaries"
headers = {
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "principal",
"status": "active",
"bankCode": "0102",
"bankName": "Banco de Venezuela",
"maskedAccount": "•••• 2345",
"holderDocumentType": "J",
"alias": "Proveedor Caracas",
"addedBy": "owner",
"createdAt": "2023-11-07T05:31:56Z",
"removedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"limit": 123,
"nextCursor": "<string>",
"hasMore": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"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": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}
