Skip to content

Get Recipient

GET /api-access/api/recipients/{id}

Retrieve a specific recipient by ID.

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

Path Parameters:

ParameterTypeRequiredDescription
idstringYesRecipient ID

Response

Success Response (200):

json
{
  "data": {
    "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:05:34.104Z",
    "updated_at": "2025-10-12T18:05:34.104Z",
    "avatar": "string",
    "provider": "string",
    "payee_name": "string",
    "payee_code": "string",
    "user_id": "string",
    "business_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "success": true,
  "message": "string",
  "detail": {}
}

Response Fields:

FieldTypeDescription
dataobjectRecipient object
data.idstringRecipient ID
data.first_namestringRecipient's first name
data.last_namestringRecipient's last name
data.emailstringEmail address
data.phonestringPhone number
data.countrystringCountry code
data.withdrawal_channelstringWithdrawal channel (e.g., ATM)
data.account_numberstringBank account number
data.account_branchstringAccount branch
data.account_typestringAccount type
data.bank_codestringBank code
data.institution_numberstringInstitution number
data.transit_numberstringTransit number
data.transaction_typestringTransaction type
data.recipient_typestringRecipient type
data.languagestringLanguage preference
data.providerstringMobile money provider
data.payee_namestringPayee name (for bill pay)
data.payee_codestringPayee code (for bill pay)
data.user_idstringUser ID
data.business_idstringBusiness ID
data.created_atstringCreation timestamp (ISO 8601)
data.updated_atstringLast update timestamp (ISO 8601)

Examples

bash
curl -X GET "https://sandbox.mara.boo/api-access/api/recipients/{id}" \
  -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 recipientId = 'recipient-id-here';
const response = await fetch(`https://sandbox.mara.boo/api-access/api/recipients/${recipientId}`, {
  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

recipient_id = 'recipient-id-here'
response = requests.get(
    f'https://sandbox.mara.boo/api-access/api/recipients/{recipient_id}',
    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 recipient ID format
401Unauthorized - Invalid authentication
403Forbidden - Missing required headers
404Not Found - Recipient doesn't exist
500Internal Server Error