SEND Payment Receipt
This API is very similar to "Send Payment Link" and will allow you to send the payment receipt link to your patient. The link can be sent via SMS and/or Email. This link will take them to a white-listed version of FeatherPay to view their receipt for a given Invoice.
NOTE: The Invoice must have a payment already made in order for them to see the receipt. Otherwise, this will simply take them to the Payment page (ala SEND Payment Link).
For HIPAA purposes, the content of either the SMS or the Email will NOT include the receipt details. Instead it will include a link for the patient to view their receipt details.
From your backend code, send the patient an email with their invoice receipt link using your API key and Order ID. This will send to the email identified by customerEmail and/or via SMS identified by billingAddress.telephone on the order.
You can choose to send the link for a basic receipt or for an itemized receipt. The itemized receipt will show each individual line item and the associated costs, whereas the non-itemized receipt will only show the high-level details of the invoice. The only distinction between the 2 API calls is the endpoint you will hit.
- typesArrayDescription
curl -X POST \
--url 'https://test-api.featherpay.io/api/v1/notifications/order/:orderId/send-pay-receipt-itemized' \
--header 'content-type: application/json;charset=UTF-8' \
--header 'accept: application/json' \
--header 'X-Api-Key: {Secret API Key}' \
--header 'X-Store-Id: {Store ULID}' \
--data '{
"types": ["email"] //Can be “email” and/or “sms”. Default is “email”
}'{"message":"Email was sent successfully"}{
"subErrors":[],
"status":"BAD_REQUEST",
"message":"Id: 017fb8be-ce71-437a-8a3d-7f19f74f6d41 does not match a saved store"
}
- typesArrayDescription
curl -X POST \
--url 'https://test-api.featherpay.io/api/v1/notifications/order/:orderId/send-pay-receipt' \
--header 'content-type: application/json;charset=UTF-8' \
--header 'accept: application/json' \
--header 'X-Api-Key: {Secret API Key}' \
--header 'X-Store-Id: {Store ULID}' \
--data '{
"types": ["email"] //Can be “email” and/or “sms”. Default is “email”
}'{"message":"Email was sent successfully"}{
"subErrors":[],
"status":"BAD_REQUEST",
"message":"Id: 017fb8be-ce71-437a-8a3d-7f19f74f6d41 does not match a saved store"
}