Send document invite with payment request
This endpoint allows API users to send a document invite with a payment request. Recipients will be redirected to the payment page after completing the documents.
For more information, see the Request payments guide.
[!NOTE] To request a payment, users must either connect to the payment service individually or accept an invitation to an organization already connected to the payment service.
-
To invite a user to an organization, see Add members.
-
To accept an invitation to an organization, the user can click the link they receive, or see Accept invite to organization.
-
To connect your organization to the payment service, see Connect to merchant account.
A payment request can be linked to a specific field (calculated type) or set as a fixed amount (fixedtype).
This article lists only the parameters required for a payment request. For other field invite parameters, see Send field invite.
<details> <summary>Use additional attributes to customize the request</summary>| Parameter | Description | Example |
|---|---|---|
| field_type | Type of the field that sets the payment amount. Required if the request type is calculated. For a payment request invite, filed_type is text_fields. | <img src="/reference-assets/images/Request_payments/payment_request_field_name_type.png" alt="Field type"> |
| field_name | Name of the field that sets the payment amount. Used if the type is calculated. Can be found in the Get document response (fields.name). | See the screenshot above. |
| type | Defines how the payment amount is set. Allowed values: fixed (the amount is set in the amount field) and calculated (set using a document field).<br><br> Learn how to add a payment request field. | <img src="/reference-assets/images/Request_payments/payment_request_type.png" alt="Payment type"> |
| currency | Payment currency in ISO format. | <img src="/reference-assets/images/Request_payments/payment_request_amount_currency.png" alt="Currency"> |
| amount | Amount of payment. Required if type is 'fixed'. | See the screenshot above. |
Request
- Base URLhttps://api.signnow.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Document ID.
Request body
Example request
{
"to": [
{
"role": "Recipient 1",
"email": "signer@email.com",
"payment_request": {
"type": "calculated",
"amount": "1000",
"currency": "USD",
"field_id": "6d1511309f7f4d80b4df8e19a804d58846504000",
"merchants": [
"44bdae1e20624166b8073b58560066fc68440000"
],
"field_name": "payment_field",
"field_type": "text_fields"
}
}
],
"from": "sender@email.com"
}Response
Successful response.
Changes
No recorded changes to this operation across all 1 revision of this API.