Skip to main content

Prepare your request

To retrieve a remittance, use the following endpoint:
  • Sandbox: GET https://pay.sandbox.yabetoopay.com/v1/remittance/{id}
  • Production: GET https://pay.api.yabetoopay.com/v1/remittance/{id}
Secret key security: Your secret key (secret_key) must be kept confidential and should never be exposed in frontend or client-side code. It must only be used on the server side.
  1. Authenticate your request using your secret key in the Authorization header.
  2. Include the remittance ID in the URL path.

Parameters

ParameterTypeLocationDescription
idstringPathThe unique ID of the remittance

Make the request

const remittanceId = "rem_RMqehxy8NNi1ocJFG2SSAZMj81m6spo72vnZ";

const response = await fetch(
  `https://pay.sandbox.yabetoopay.com/v1/remittance/${remittanceId}`,
  {
    method: "GET",
    headers: {
      "Content-Type": "application/json",
      Authorization: `Bearer ${secret_key}`,
    },
  }
);

const data = await response.json();
console.log(data);

Response

200 OK

When the remittance is successfully retrieved, the API returns:
{
  "id": "rem_RMqehxy8NNi1ocJFG2SSAZMj81m6spo72vnZ",
  "object": "remittance",
  "amount": 1000,
  "currency": "xaf",
  "status": "succeeded",
  "firstName": "John",
  "lastName": "Doe",
  "operatorName": "mtn",
  "country": "cg",
  "phone": "242066594470",
  "type": 1,
  "shouldExecutedAt": "2025-03-18T09:24:57.555Z",
  "createdAt": "2025-03-17T10:24:57.559+01:00",
  "updatedAt": "2025-03-17T10:24:57.559+01:00"
}

Remittance Status

StatusDescription
pendingRemittance is waiting to be processed
processingRemittance is being processed
succeededRemittance completed successfully
failedRemittance failed

404 Not Found

When the remittance ID doesn’t exist:
{
  "message": "Remittance not found"
}

401 Unauthorized

When the secret key is invalid:
{
  "message": "Unauthorized"
}