Skip to content

Sends an SMS notification for a published invoice

Request

POST {{baseURL}}/pay-int-api/invoices/{{invoiceId}}/send-email-notification

Security
Bearer
Path
invoiceIdstring, (uuid)required

The identifier of the invoice for which to send the notification.

Example:9be2f3a4-5b6c-4d7e-8f9a-0b1c2d3e4f70
Headers
x-api-versionstring
Bodyapplication/json

The request containing the details for the SMS notification.

phoneNumberstring or null, (E.164), <= 20 characters^(null|\+\d{1,20})$

Indicates the SMS phone number.

Example: +14155552309

Example:"+14155552309"
customerConsentboolean

Identifies the customer has consented to receiving the SMS.

If true, the customer has consented to receiving the SMS.
If false, the customer has not consented to receiving the SMS.

Example: true

Example:true
curl -i -X POST \
  https://developer.flute.com/_mock/api-reference/pay-int-api/invoices/9be2f3a4-5b6c-4d7e-8f9a-0b1c2d3e4f70/send-published-sms-notification \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-api-version: string' \
  -d '{
    "phoneNumber": "+14155552309",
    "customerConsent": true
  }'

Responses

SMS notification sent successfully.

Response
No content