An invoice is a document you send to your client after purchasing goods or services from you, recording the sale, and requesting payment from them. You can catch everything you need about PayTabs invoices in our what PayTabs Invoices is? solutions article.
In this article, we will walk you through the way to send PayTabs invoices to your customers via Email while initiating the invoice request. Here you will be using the "notification" object clarified in our Request Parameters | invoice (invoice) solution article to provide the customers' emails to whom you want to send this invoice once it is created.
In this article, you will be going to know about:
The Minimum Required Parameters
Here, you will be using the normal invoice request as clarified in our initiating/Creating the Invoice Payment Request solution article, and along with it you will be adding the "notification" object and providing the emails to the customers that you want the invoice to be sent to them once it is created.
To initiate a payment request using this integration type, there are minimum required parameters that need to be passed with valid information. The specification of these required parameters is clarified below:
Accept only emails and phone numbers arrays.
This parameter indicates the notification options through our APIs. Using this, you will be able to send the created invoice to an array of emails or phone numbers via SMS
This parameter indicates an array of phone numbers that the created invoice will be sent to it via SMS.
Sample Request Payload
The below sample request payload will show you how you can pass the above-mentioned parameters, which need to be passed with valid values to perform a request.
Sample Response Payload
⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The PT2 API Endpoints Integration Manual" solution article.
⇦ And to get familiar with the rest of the steps regarding the previous step "Step 2 - Configure the integration method" kindly click here.
⇦ And to get familiar with the rest of the steps regarding the current step "Step 3 - Initiating the payment" click here.
⇨ And to navigate to the next step in the integration process "Step 4 - Accepting the payment" kindly click here.