Email Receipt

Guide to integrating with our payment API


Email Receipt Endpoint

This endpoint allows you to send a payment receipt directly to a user's email by providing the transaction's order number and the recipient's email address.

POST /api/payment/email

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
emailstringYesThe email address to send the receipt to

Example Usage in Different Languages

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