Request curl "https://morzepay.com/v1/receipts/rcpt_WDL1pxuSr3cCcrFL1im2Th" \
-H "Authorization: Bearer $MORZEPAY_KEY"
$ch = curl_init('https://morzepay.com/v1/receipts/rcpt_WDL1pxuSr3cCcrFL1im2Th');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('MORZEPAY_KEY'),
],
]);
$response = json_decode(curl_exec($ch), true);
const res = await fetch('https://morzepay.com/v1/receipts/rcpt_WDL1pxuSr3cCcrFL1im2Th', {
headers: {
Authorization: `Bearer ${process.env.MORZEPAY_KEY}`,
},
});
const response = await res.json();
import os, requests
res = requests.get(
'https://morzepay.com/v1/receipts/rcpt_WDL1pxuSr3cCcrFL1im2Th',
headers={'Authorization': f"Bearer {os.environ['MORZEPAY_KEY']}"},
)
response = res.json()
{
"success": true,
"data": {
"id": "rcpt_WDL1pxuSr3cCcrFL1im2Th",
"object": "receipt",
"livemode": true,
"number": "NILE-R0001",
"amount_paid": "733679.00",
"fee": "25679.00",
"currency": "UGX",
"payment_method": "MTN Mobile Money",
"payer": {
"name": "Sarah Namuli",
"email": "[email protected]",
"phone": "+256772418905"
},
"provider_transaction_id": "29876549876",
"transaction_id": "txn_Qm2Hc7Vx4Lp9Wb3Nk8Rt6Z",
"invoice_id": "inv_UfwyBh1W4Jfa6iG2u2AVT3",
"invoice_number": "NILE-0001",
"description": "Invoice NILE-0001",
"url": "https://morzepay.com/r/5c0e0f50a1b2c3d4e5f60718293a4b5c",
"pdf": "https://morzepay.com/r/5c0e0f50a1b2c3d4e5f60718293a4b5c/pdf",
"paid_at": "2026-10-06T11:24:05+03:00",
"emailed_at": "2026-10-06T11:24:07+03:00"
}
}
{
"success": false,
"error": {
"code": "RECEIPT_NOT_FOUND",
"message": "Receipt not found."
},
"request_id": "req_6f1d0c2b9a8e7d6c5b4a"
}