Skip to main content
POST
/
processors
/
{id}
/
transfer
Transfer funds from processor to account
curl --request POST \
  --url https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/transfer \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "acc_xyz123",
  "amount": "500.00"
}
'
{}

Processor Transfer

Transfer funds from processor account to a subscriber account.

Endpoint

POST /api/v1/processors/:id/transfer

Authentication

Authorization
string
required
Bearer token (Processor or Admin JWT)

Path Parameters

id
string
required
Processor UUID

Request Body

account_id
string
required
Recipient account ID
amount
string
required
Amount to transfer (e.g., “500.00”)
description
string
Transfer description

Response

{
  "success": true,
  "transaction_id": "txn_abc123",
  "message": "Transfer completed successfully"
}

Errors

CodeDescription
400Invalid amount or insufficient balance
404Processor or account not found
401Unauthorized

Authorizations

Authorization
string
header
required

JWT token from admin login for administrative operations. Format: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Path Parameters

id
string
required

Processor ID

Body

application/json

Transfer details

account_id
string
required

Account ID from accounts table

Example:

"acc_xyz123"

amount
string
required
Example:

"500.00"

description
string
Example:

"Payment for goods"

Response

Transfer completed successfully

The response is of type object.