# Callback URL

The callback URL is called in two different cases :

# When a recipient sign a contract

The payload is sent as raw POST data.

EXAMPLE
{
  "action": "sign",
  "subject": "Subject define in your initial request",
  "signer": "Fabien SERNY",
  "date": "2021-03-30 14:50:45"
}

# When all recipients have signed the contract

The payload is sent as raw POST data.

EXAMPLE
{
  "action": "complete",
  "subject": "Subject define in your initial request",
  "date": "2021-03-30 14:50:56",
  "files": [
    "http://{endpoint}/api/fileContracts/****/file?token=4ca****84dcb****d3e6ebd8e****420960c****"
  ]
}

# When all recipients have signed the contract without the locked recipient

The payload is sent as raw POST data.

EXAMPLE
{
  "action": "verification",
  "subject": "Subject define in your initial request",
  "date": "2021-03-30 14:50:56",
  "verifyUrl": "https://{endpoint}/api/verify/1005951***804***46769341",     
  "Signer": [
        {
            "name": "Jonh",
            "lastname": "DOE",
            "accepted": true,
            "date": "2021-03-30 14:50:56"
        }
    ]      
}

Do not hesitate to run some tests with the website https://webhook.site/