Add payment request field

This endpoint allows API users to add a payment request field to a document.

For more information, see the Request payments guide.

[!NOTE] The payment request field is a text field with a specific validator ID. You can only add one payment request field to your invite.

For payment requests with field values, you must use the following validator IDs:

  • 7ef095fd94ce63b670b52b2e83457d59ac796a39 (currency amount format 1) - comma for thousands, dot for decimals. Example: 8,100.00
  • 824085fd04ce63b670b11b2e83457d59ac796a39 (currency amount format 2) - dot for thousands, comma for decimals. Example: 8.100,00

[!NOTE] To request payment from the recipient, you have to connect to the payment service and send a signature invite with a payment request. The recipient will be asked to pay the amount you specified once they’ve completed the document.

<details> <summary>Use additional attributes to customize the payment request field</summary>
ParameterDescriptionExample
typeField type. For the payment request field, the type is text.<img src="/reference-assets/images/Request_payments/payment_field_type_name.png" alt="Payment field type">
nameName of the payment field.See the screenshot above.
validator_idA string that adds format validation. To use the field for the payment request, you must use the following validators: 7ef095fd94ce63b670b52b2e83457d59ac796a39 (currency amount format 1) - comma for thousands, dot for decimals. Example: 8,100.00; 824085fd04ce63b670b11b2e83457d59ac796a39 (currency amount format 2) - dot for thousands, comma for decimals. Example: 8.100,00.<img src="/reference-assets/images/Request_payments/validator_payment_field.png" alt="Validator ID">
</details>
put/document/{document_id}

Request

Path parameters

Document ID.

Request body

Example request

{
  "fields": [
    {
      "x": 358,
      "y": 171,
      "name": "payment_field",
      "role": "Signer 1",
      "type": "text",
      "width": 177,
      "height": 50,
      "validator_id": "7ef095fd94ce63b670b52b2e83457d59ac796a39",
      "prefilled_text": "8100"
    }
  ]
}

Response

Returns ID of the updated document with a payment request field in case of successful response.

idstring

ID of the document.

linesobject[]

Line elements on the document.

textsobject[]

Text elements on the document.

checksobject[]

Checkmark elements on the document.

hyperlinksobject[]

Hyperlink elements on the document.

signaturesobject[]

Signature elements on the document.

attachmentsobject[]

Attachment elements on the document.

radiobuttonsobject[]

Radio button elements on the document.

Changes

No recorded changes to this operation across all 1 revision of this API.