Skip to content

Get Recipients

GET /api-access/api/recipients

Retrieve a paginated list of recipients.

Authentication

Required Headers:

Authorization: HMAC-SHA256 PUBLIC_KEY:PRIVATE_KEY
X-Origin: third-party-api
X-Timestamp: 2025-10-12T14:30:00.000Z
Content-Type: application/json

Request

Query Parameters:

ParameterTypeRequiredDefaultDescription
pageintegerNo1Page number (1-indexed)
limitintegerNo10Number of items per page
recipient_typestringNotransactionFilter by recipient type

Available recipient_type values:

  • transaction - Recipients for transactions
  • reversal - Recipients for reversals
  • all - All recipients
  • withdrawal - Recipients for withdrawals

Response

Success Response (200):

json
{
  "items": [
    {
      "id": "string",
      "first_name": "string",
      "last_name": "string",
      "email": "string",
      "phone": "string",
      "country": "string",
      "withdrawal_channel": "ATM",
      "account_number": "string",
      "account_branch": "string",
      "account_type": "corporate",
      "bank_code": "string",
      "institution_number": "string",
      "transit_number": "string",
      "security_question": "string",
      "security_question_answer": "string",
      "transaction_type": "interac_send",
      "recipient_type": "reversal",
      "language": "en",
      "created_at": "2025-10-12T18:04:57.150Z",
      "updated_at": "2025-10-12T18:04:57.150Z",
      "avatar": "string",
      "provider": "string",
      "payee_name": "string",
      "payee_code": "string",
      "user_id": "string",
      "business_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ],
  "total": 0,
  "offset": 0,
  "limit": 0
}

Response Fields:

FieldTypeDescription
itemsarrayArray of recipient objects
items[].idstringRecipient ID
items[].first_namestringRecipient's first name
items[].last_namestringRecipient's last name
items[].emailstringEmail address
items[].phonestringPhone number
items[].countrystringCountry code
items[].withdrawal_channelstringWithdrawal channel (e.g., ATM)
items[].account_numberstringBank account number
items[].account_branchstringAccount branch
items[].account_typestringAccount type
items[].bank_codestringBank code
items[].institution_numberstringInstitution number
items[].transit_numberstringTransit number
items[].transaction_typestringTransaction type
items[].recipient_typestringRecipient type
items[].languagestringLanguage preference
items[].providerstringMobile money provider
items[].payee_namestringPayee name (for bill pay)
items[].payee_codestringPayee code (for bill pay)
items[].user_idstringUser ID
items[].business_idstringBusiness ID
items[].created_atstringCreation timestamp (ISO 8601)
items[].updated_atstringLast update timestamp (ISO 8601)
totalintegerTotal number of recipients
offsetintegerCurrent offset
limitintegerItems per page

Examples

bash
curl -X GET "https://sandbox.mara.boo/api-access/api/recipients?page=1&limit=10&recipient_type=transaction" \
  -H "Authorization: HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY" \
  -H "X-Origin: third-party-api" \
  -H "X-Timestamp: 2025-10-12T14:30:00.000Z" \
  -H "Content-Type: application/json"
javascript
const response = await fetch('https://sandbox.mara.boo/api-access/api/recipients?page=1&limit=10&recipient_type=transaction', {
  method: 'GET',
  headers: {
    'Authorization': 'HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY',
    'X-Origin': 'third-party-api',
    'X-Timestamp': '2025-10-12T14:30:00.000Z',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
python
import requests

response = requests.get(
    'https://sandbox.mara.boo/api-access/api/recipients',
    params={
        'page': 1,
        'limit': 10,
        'recipient_type': 'transaction'
    },
    headers={
        'Authorization': 'HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY',
        'X-Origin': 'third-party-api',
        'X-Timestamp': '2025-10-12T14:30:00.000Z',
        'Content-Type': 'application/json'
    }
)

data = response.json()

Error Responses

Status CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid authentication
403Forbidden - Missing required headers
500Internal Server Error