RecipesCollect from accounts
Collect from accounts
Gather funds from multiple internal accounts into one destination account.
Use COLLECT when several internal accounts contribute funds into one destination account. Common examples are pooling user balances, consolidating seller balances, or collecting split obligations into a platform account.
Note
Every origin should include its own amount. The destination amount should match the collected total.
01
Select origins
Choose the accounts that contribute funds.
02
Assign amounts
Set each origin amount and match the total.
03
Choose destination
Route the total into one account.
04
Capture
Commit the internal movement.
Create the collect payment
Section titled “Create the collect payment” Request
POST /sandbox/payments HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json
{
"externalId": "collect-1001",
"identityId": "<DESTINATION_IDENTITY_ID>",
"accountNumber": "<DESTINATION_ACCOUNT_NUMBER>",
"product": "COP:COP",
"type": "COLLECT",
"purchaseAmount": "30000.00",
"purchaseCurrency": "COP",
"currency": "COP",
"origins": [
{
"type": "ACCOUNT",
"amount": "15000.00",
"currency": "COP",
"identity": {
"identityId": "<ORIGIN_IDENTITY_ID_1>"
},
"account": {
"accountNumber": "<ORIGIN_ACCOUNT_NUMBER_1>"
}
},
{
"type": "ACCOUNT",
"amount": "15000.00",
"currency": "COP",
"identity": {
"identityId": "<ORIGIN_IDENTITY_ID_2>"
},
"account": {
"accountNumber": "<ORIGIN_ACCOUNT_NUMBER_2>"
}
}
],
"destinations": [
{
"type": "ACCOUNT",
"amount": "30000.00",
"currency": "COP",
"identity": {
"identityId": "<DESTINATION_IDENTITY_ID>"
},
"account": {
"accountNumber": "<DESTINATION_ACCOUNT_NUMBER>"
}
}
]
} Response
{
"id": "<PAYMENT_ID>",
"type": "COLLECT",
"status": "CREATED"
}Capture
Section titled “Capture” Request
POST /sandbox/payments/{PAYMENT_ID}/captured HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json
{} Response
{
"id": "<PAYMENT_ID>",
"type": "COLLECT",
"status": "CAPTURED"
}