Download Receipt

Guide to integrating with our payment API


Download Receipt Endpoint

This endpoint allows you to retrieve a payment receipt by providing the order number of the transaction. It returns a secure receipt URL that can be used by your users to view or download the receipt.

GET /api/payment/receipt

Headers

KeyValueRequired
Acceptapplication/jsonYes
Content-Typeapplication/jsonYes
x-app-keyYOUR_APP_KEYYes
x-app-secretYOUR_SECRET_KEYYes

Request Body

ParameterTypeRequiredDescription
order_numberstringYesThe order number of transaction to retrieve

Example Usage in Different Languages

example.js
const axios = require('axios');
 
async function getReceipt(orderNumber) {
  const response = await axios.get('https://epay.guiddini.dz/payment/receipt', {
    data: { order_number: orderNumber },
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json',
      'x-app-key': 'YOUR_APP_KEY',
      'x-app-secret': 'YOUR_SECRET_KEY'
    }
  });
  console.log(response.data);
}
 
getReceipt('K60RQ9BHHF4S8COGS840');