Skip to main content
POST
Available in🇮🇳 India🇸🇬 Singapore🇺🇸 United States
Use this endpoint to send notifications with the short URL to the customer via email or SMS.

Path Parameters

string
required
The unique identifier of the invoice whose link is to be sent by SMS or email.
string
required
Possible values:
  • sms
  • email

Response Parameters

boolean
Indicates whether the notifications were sent successfully. Possible values:
  • true: The notifications were successfully via SMS, email or both.
  • false: The notifications were not sent.

Errors

Code: 4xxThere is a mismatch between the API credentials passed in the API call and those generated on the Dashboard.Solution:
  • Ensure that the API Keys are active and entered correctly.
  • There should be no whitespaces before or after the keys.
Code: 400The invoice id entered is either invalid or does not belong to the requester account.Solution: Enter a valid invoice id.
Code: 400The medium path parameter is not sms or email. The error echoes the actual invalid medium value.Solution: Use either sms or email as the medium path parameter.
Code: 400The notification request used medium=email but the invoice does not have a customer email address on file.Solution: Update the invoice to include customer.email, or send the notification via medium=sms if a contact number is available.
Code: 400The notification request used medium=sms but the invoice does not have a customer contact number on file.Solution: Update the invoice to include customer.contact, or send the notification via medium=email if an email address is available.
Code: 400Notifications can only be sent for invoices in the issued or partially_paid state. The error message echoes the invoice’s actual current status. For example, Operation not allowed for Invoice in cancelled status.Solution: Issue the invoice first (or wait for it to move to partially_paid) before sending notifications.