Skip to content

Get a Transaction

GET /api-access/transactions/client/sessions/{id}

Retrieve a specific client transaction session 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
idstringYesTransaction session ID

Response

Success Response (200):

json
{
  "data": {
    "id": "string",
    "reference": "string",
    "amount": 0,
    "status": "pending",
    "transaction_kind": "interac_send",
    "transaction_fee": "string",
    "external_payout_url": "string",
    "description": "string",
    "created_at": "2025-10-12T18:19:36.340Z",
    "updated_at": "2025-10-12T18:19:36.340Z",
    "user_id": "string",
    "payin_method": "string",
    "user": {
      "first_name": "string",
      "last_name": "string",
      "email": "string",
      "phone": "string",
      "country_code": "string",
      "id": "string",
      "notification_token": "string",
      "timezone": "string"
    },
    "exchange_rate": 0,
    "recipient": {
      "name": "string",
      "id": "string",
      "country": "string",
      "email": "string",
      "phone": "string",
      "provider": "string",
      "wallet_id": "string",
      "transaction_type": "interac_send",
      "is_wallet_recipient": false
    },
    "converted_amount": 0,
    "processing_fee": 0,
    "reversal_recipient_id": "string",
    "failure_reason": "string",
    "transaction_type": "swap_transaction",
    "source_wallet_id": "string",
    "from_currency": "xof",
    "to_currency": "xof",
    "send_session": "string"
  },
  "success": true,
  "message": "string",
  "detail": {}
}

Examples

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

session_id = 'session-id-here'
response = requests.get(
    f'https://sandbox.mara.boo/api-access/transactions/client/sessions/{session_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()
go
package main

import (
    "net/http"
    "io/ioutil"
    "fmt"
)

func main() {
    sessionID := "session-id-here"
    url := fmt.Sprintf("https://sandbox.mara.boo/api-access/transactions/client/sessions/%s", sessionID)

    client := &http.Client{}
    req, _ := http.NewRequest("GET", url, nil)

    req.Header.Set("Authorization", "HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY")
    req.Header.Set("X-Origin", "third-party-api")
    req.Header.Set("X-Timestamp", "2025-10-12T14:30:00.000Z")
    req.Header.Set("Content-Type", "application/json")

    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := ioutil.ReadAll(resp.Body)
}
java
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;

String sessionId = "session-id-here";
String url = "https://sandbox.mara.boo/api-access/transactions/client/sessions/" + sessionId;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create(url))
    .header("Authorization", "HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY")
    .header("X-Origin", "third-party-api")
    .header("X-Timestamp", "2025-10-12T14:30:00.000Z")
    .header("Content-Type", "application/json")
    .GET()
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
csharp
using System.Net.Http;

var sessionId = "session-id-here";
var url = $"https://sandbox.mara.boo/api-access/transactions/client/sessions/{sessionId}";

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, url);

request.Headers.Add("Authorization", "HMAC-SHA256 YOUR_PUBLIC_KEY:YOUR_PRIVATE_KEY");
request.Headers.Add("X-Origin", "third-party-api");
request.Headers.Add("X-Timestamp", "2025-10-12T14:30:00.000Z");
request.Headers.Add("Content-Type", "application/json");

var response = await client.SendAsync(request);
var content = await response.Content.ReadAsStringAsync();

Error Responses

Status CodeDescription
400Bad Request - Invalid session ID format
401Unauthorized - Invalid authentication
403Forbidden - Missing required headers
404Not Found - Session doesn't exist
500Internal Server Error