Sometimes you may need to resend an invoice created via the N-Genius Online APIs. This is useful if the recipient didn't get it, or can't access the original email for any reason. To resend the invoice, use the API request below. The invoice reference number can be found in your N-Genius dashboard.
HTTP Request Method: PUT
Resource URI: https://api-gateway.sandbox.ngenius-payments.com/invoices/outlets/[your-outlet-reference]/invoice/[your-invoice-reference]/resend
Headers
Key | Value |
---|---|
Authorization | Bearer access_token |
Content-Type | application/vnd.ni-invoice.v1+json |
Body (JSON) Example:
{
"email": "[email protected]",
"invoiceExpiryDate": "2023-01-22"
}
Attributes:
Attribute | Description |
---|---|
The email address of the recipient | |
invoiceExpiryDate | An updated (if necessary) expiry date for the invoice, in YYYY-MM-DD format. |
Example Response (body):
{
"_links": {
"self": {
"href": "https://api-gateway.sandbox.ngenius-payments.com/invoices/outlets/670bfc06-63d6-472b-af75-ad0207ac44f5/invoice/03c37227-241c-4c73-8093-5af96f135ff2"
},
"email-data": {
"href": "https://api-gateway.sandbox.ngenius-payments.com/invoices/outlets/670bfc06-63d6-472b-af75-ad0207ac44f5/invoice/03c37227-241c-4c73-8093-5af96f135ff2/email-data"
},
"payment": {
"href": "https://paypage.sandbox.ngenius-payments.com/invoices/invoice/03c37227-241c-4c73-8093-5af96f135ff2/payment"
},
"resend": {
"href": "https://api-gateway.sandbox.ngenius-payments.com/invoices/outlets/670bfc06-63d6-472b-af75-ad0207ac44f5/invoice/03c37227-241c-4c73-8093-5af96f135ff2/resend"
}
},
"emailSubject": "Invoice from Squeaky Chair Productions",
"invoiceExpiryDate": "2025-05-02",
"locale": "en_US",
"skipInvoiceCreatedEmailNotification": false,
"emailSmsLimitExceeded": false,
"reference": "03c37227-241c-4c73-8093-5af96f135ff2",
"outletRef": "670bfc06-63d6-472b-af75-ad0207ac44f5",
"orderReference": "4be94164-2538-47b0-876b-602600867a46",
"firstName": "Mister",
"lastName": "Jones",
"email": "[email protected]",
"ccEmail": [],
"bccEmail": [],
"transactionType": "PURCHASE",
"items": [
{
"description": "1 x Sense of Humor",
"totalPrice": {
"currencyCode": "AED",
"value": 123456
},
"quantity": 1
}
],
"total": {
"currencyCode": "AED",
"value": 21212
},
"message": "Thank you for shopping with ACME Services LLC. Please visit the link provided below to pay your bill. We will ship your order once we have confirmation of your payment.",
"phoneNumber": {},
"merchantName": "Squeaky Chair Productions",
"createdDateTime": "2025-04-30T08:28:52.893908134Z",
"tenure": 0
}