Skip to content

Suggested

API Dashboard

PaymentsCollect

Collect

You can use payment-attempts or create the payment directly.

Note

You can use payment-attempts or create the payment directly.

A COLLECT transaction allows you to gather funds from multiple accounts into a single destination account. It is commonly used for pooling money, collecting shared payments, or consolidating balances from multiple users.


01
Select origins

Choose the accounts that contribute funds.

02
Set amounts

Assign an amount to each origin and match the total.

03
Choose destination

Route the collected funds into one account.

04
Capture

Commit the internal movement.

Create payment

Creates a collect transaction specifying multiple origins, each with its own amount, and a single destination.

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": "payment-id-12345",
  "identityId": "67f21a61d6d09fcbb4e84631",
  "accountNumber": "1743919714051743919010211",
  "totalAmount": "30000.00",
  "currency": "COP",
  "product": "COP:COP",
  "type": "COLLECT",
  "purchaseAmount": "30000.00",
  "purchaseCurrency": "COP",
  "origins": [
    {
      "type": "ACCOUNT",
      "amount": "15000.00",
      "currency": "COP",
      "identity": {
        "identityId": "67f21d17d6d09fcbb4e84632"
      },
      "account": {
        "accountNumber": "17439204080520250406060905072"
      }
    },
    {
      "type": "ACCOUNT",
      "amount": "15000.00",
      "currency": "COP",
      "identity": {
        "identityId": "67f21a61d6d09fcbb4e84631"
      },
      "account": {
        "accountNumber": "1743919714051743919010211"
      }
    }
  ],
  "destinations": [
    {
      "type": "ACCOUNT",
      "amount": "30000.00",
      "currency": "COP",
      "identity": {
        "identityId": "67f21a61d6d09fcbb4e84631"
      },
      "account": {
        "accountNumber": "1743919714051743919010211"
      }
    }
  ]
}
Response
{
  "id": "<PAYMENT_ID>",
  "type": "COLLECT",
  "status": "CREATED"
}
Capture payment

Captures the collected funds, finalizing the transaction once all origins have been committed.

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
Accept: application/json
Response
{
  "id": "<PAYMENT_ID>",
  "status": "CAPTURED"
}
Webhook simulation

Simulate the receipt confirmation of a collect payment.

Request
POST /sandboxwebhook/payments/received/payment-provider 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

{
  "id": "<PAYMENT_ID>"
}
Response
{
  "ok": true
}
Check Account information

Confirm the destination account where funds are being consolidated.

Request
GET /sandbox/accounts?accountNumber=1743919714051743919010211 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
Accept: application/json
Response
{
  "id": "<ACCOUNT_ID>",
  "accountNumber": "1743919714051743919010211",
  "availableFunds": "30000.00",
  "currency": "COP",
  "status": "ACTIVE"
}