Send a receipt
Learn how to email receipts with the Dojo Payments API.
Dojo will automatically send an email receipt to a customer once they have successfully paid. The customer email is provided earlier, when creating the payment intent, inside the Customer
schema object:
"customer": {
"emailAddress": "client@gmail.com",
"phoneNumber": "078654321"
}
Each payment has a receipt history which you can view in the Dojo for Business App.
Send additional emails
You can manually send additional receipts to customers. To do this use the endpoint below:
POST /payment-intents/{paymentIntentId}/receipt
In your request, include:
emails
: the list of email addresses to which the receipt should be sent.
For the full specification, see the API reference.
Request example
The next example below shows how you would capture 10.00 GBP.
- cURL
- PowerShell
- Python
- C#
- PHP
manage-payments/curl/send-receipt.sh
loading...
manage-payments/powershell/send-receipt.ps1
loading...
manage-payments/python/send-receipt.py
loading...
manage-payments/cs/send-receipt.cs
loading...
manage-payments/php/send-receipts.php
loading...
Response example
If your request is successful, the response will return an empty object.