Payment Links
SEND Payment Link
send the 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 complete their payment from your backend code, send the patient an email with their invoice 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 by default, when the link is generated, the patient will have 3 chances to hit the url or 72 hours if they do not pay after 3 hits to the url (or 72 hours later), they will have a button to send a new link to the email address provided in the create order api call above every time the below api call is made, it increases the number of retries for a patient ( e g from 3 to 4 ) and the expiration of the link will be updated { "tab" "examples", "url" "https //test api featherpay io/api/v1/notifications/{orderid}/send pay link", "name" "send payment link", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "kind" "optional", "name" "types", "type" "array", "description" "can be “email” and/or “sms” default is “email”" } ], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "7lgwldeetkw1p1bc0limq", "code" "{\\"message\\" \\"email was sent successfully\\"}", "language" "200", "customlabel" "" }, { "id" " jeqqe1oo9aotl1sm efp", "code" "{\n \\"suberrors\\" \[],\n \\"status\\" \\"bad request\\",\n \\"message\\" \\"id 017fb8be ce71 437a 8a3d 7f19f74f6d41 does not match a saved store\\"\n}\n", "language" "400", "customlabel" "" } ], "selectedlanguageid" "7lgwldeetkw1p1bc0limq" }, "examples" { "languages" \[ { "id" "dips18nvcqgwgc fksc2y", "code" "curl x post \\\\\n url 'https //test api featherpay io/api/v1/notifications/order/\ orderid/send pay link' \\\\\n header 'content type application/json;charset=utf 8' \\\\\n header 'accept application/json' \\\\\n header 'x api key {secret api key}' \\\\\n header 'x store id {store ulid}' \\\\\n data '{\n \\"types\\" \[\\"email\\"] //can be “email” and/or “sms” default is “email”\n }'", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "dips18nvcqgwgc fksc2y" }, "description" "send payment link via email or sms", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }