Ssentezo Developers
Sandbox and production use the same API host. The organization status, SANDBOX or LIVE, is the environment. This portal does not simulate a successful payment when a call fails.

Transaction status

POST /api/get_status/{externalReference}

Read the status of a collection, payout, or card payment by your reference.

The playground only looks up a reference that belongs to the signed-in sandbox organization.

Authentication

HTTP Basic, as described in Authentication. No extra scope is checked.

Headers

HeaderRequiredDescription
AuthorizationYesBasic base64(api_user_id:api_key).
Content-TypeYesapplication/json
AcceptNoapplication/json

Path parameters

NameRulesDescription
externalReferenceapi_requests.external_idThe reference you sent when creating the transaction.

Body

No JSON fields are required. Send {}.

Behavior

  • SUCCEEDED is internal status 3 (completed). FAILED is internal status 4. Every other internal status, including pending, reconcile, and reversed, is returned as PENDING.
  • The lookup is limited to the authenticated organization. Another merchant reference returns the same not-found response.
  • Confirm payment with this endpoint. A callback or browser redirect is not proof of payment. Compare externalId, amount, and currency with the order before fulfilling it.

Idempotency. Not supported by a dedicated header.

Rate limit. No rate limit is configured on the API.

Example request

{}

Success ยท HTTP 200

{
    "response": "OK",
    "data": {
        "transactionStatus": "PENDING",
        "ssentezoWalletReference": "generated-uuid",
        "externalId": "order-1001",
        "financialTransactionId": null,
        "amount": 5000,
        "reason": "Order 1001",
        "currency": "UGX",
        "msisdn": "256772123456",
        "transactionTime": "2026-10-20T12:00:00.000000Z"
    }
}

Errors

StatusWhen
401 NO_AUTHORIZATION_HEADERThe Authorization header is missing.
403 INVALID_AUTHORIZATION_HEADERThe header must start with "Basic ".
403 MISSING_USER_OR_KEYThe decoded value must be api_user_id:api_key.
403 INVALID_USER_OR_KEYThe API user or key was not recognized.
403 ORGANIZATION_SUSPENDEDThe organization user is suspended.
404The external reference or wallet transaction was not found.

Code

curl

curl --request POST \
  --url "$SSENTEZO_BASE_URL/api/get_status/{externalReference}" \
  --header "Authorization: Basic $SSENTEZO_BASIC_TOKEN" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{}'

php

$client = new Ssentezo\Wallet\SsentezoClient(
    getenv('SSENTEZO_API_USER'),
    getenv('SSENTEZO_API_KEY'),
    getenv('SSENTEZO_BASE_URL')
);

$result = $client->request('POST', '/api/get_status/{externalReference}', json_decode(<<<'JSON'
{}
JSON, true));

javascript

const token = Buffer.from(process.env.SSENTEZO_API_USER + ':' + process.env.SSENTEZO_API_KEY).toString('base64');
const response = await fetch(process.env.SSENTEZO_BASE_URL + '/api/get_status/{externalReference}', {
  method: 'POST',
  headers: {
    Authorization: 'Basic ' + token,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({}),
});
const payload = await response.json();

python

import base64, json, os, urllib.request

token = base64.b64encode(f"{os.environ['SSENTEZO_API_USER']}:{os.environ['SSENTEZO_API_KEY']}".encode()).decode()
request = urllib.request.Request(
    os.environ['SSENTEZO_BASE_URL'] + '/api/get_status/{externalReference}',
    data=json.dumps({}).encode(),
    headers={'Authorization': f'Basic {token}', 'Accept': 'application/json', 'Content-Type': 'application/json'},
    method='POST',
)
with urllib.request.urlopen(request, timeout=20) as response:
    payload = json.load(response)

java

HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create(System.getenv("SSENTEZO_BASE_URL") + "/api/get_status/{externalReference}"))
    .timeout(Duration.ofSeconds(20))
    .header("Authorization", "Basic " + Base64.getEncoder().encodeToString((System.getenv("SSENTEZO_API_USER") + ":" + System.getenv("SSENTEZO_API_KEY")).getBytes(StandardCharsets.UTF_8)))
    .header("Accept", "application/json")
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{}"))
    .build();

Set SSENTEZO_API_USER, SSENTEZO_API_KEY, and SSENTEZO_BASE_URL. SSENTEZO_BASIC_TOKEN is the base64 of user:key.