1. Introduction
    1. Service description
    2. Environments
  2. Getting started
    1. Authentication
    2. Upload document
    3. Create dossier
    4. Send invites
    5. Dossier download
  3. Events
    1. Event webhooks
    2. Subscribe to events
    3. Retrieve status callback
  4. Error handling
  5. Use cases
    1. Change language / locale
    2. Send invite using SMS
    3. Send invite using WhatsApp Business Platform
    4. Include invite in your own system
    5. Require identification
    6. Require payment
    7. Cancel a dossier
    8. Configure branding
    9. Configure invitee emails
    10. Create dossier based on a template
  6. Swagger API documentation

Require payment

Sometimes a payment is required in order to Sign a document. For example a rental agreement. To use this feature you first need to have a payment contract. Please contact your customer success manager if you want to use this feature.

To request a payment, provide the amount and currency. This is part of the POST request to /dossiers.

Request

POST /dossiers

Request body

{
    "invitees":[
        {
            "name": "John Doe",
            "payments":[
                {
                    "amount":100,
                    "currency":"EUR"
                }
            ]
        }
    ]
}
  • amount: The amount of the payment in cents.
  • currency: The currency of the payment in ISO 4217 format.

Retrieve payment status

To retrieve the status of the payment a GET request can be sent to /dossiers/{dossierId}/invitees/{inviteeId}/payments.

Request

GET /dossiers/{dossierId}/invitees/{inviteeId}/payments

Request body

[
    {
        "amount": 100,
        "currency": "EUR",
        "status": "success",
        "paymentMethod": "IDEAL",
        "paymentReference": "ch-9a0a32bc-bb25-4f5f-8aeb-681276a738fe"
    }
]
  • amount: The amount of the payment in cents.
  • currency: The currency of the payment in ISO 4217 format.
  • status: The payment status.
  • paymentMethod: The selected payment method.
  • paymentReference: The payment reference in the payment system.

You usually don't have to retrieve the payment status, because a dossier can only be signed after the payment has been completed. When you received the dossier completed webhook or email, you know that the invitee has successfully paid.