Contracts#

Before submitting collection cases, you must sign a collection agreement with CasaPay. The Contracts endpoint lets you check your agreement status.

The Contract object#

AttributeTypeDescription
signedbooleanWhether the contract is signed
requires_resigningbooleanWhether the contract needs to be re-signed
invalidation_reasonenumnone, new_version, admin_invalidated, name_changed
terms_urlstringURL to the signed contract PDF
solution_urlstringURL to sign or re-sign the contract
signed_attimestampWhen the contract was signed
versionstringContract version
{
  "signed": true,
  "requires_resigning": false,
  "invalidation_reason": "none",
  "terms_url": "https://files.casapay.com/contracts/signed_v2.pdf",
  "solution_url": null,
  "signed_at": 1704067200,
  "version": "v2.0"
}

Get Contract Status#

GET /v1/collection_contract

curl https://api.casapay.com/v1/collection_contract \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"

Unsigned Contract Response#

{
  "signed": false,
  "requires_resigning": false,
  "invalidation_reason": "none",
  "terms_url": null,
  "solution_url": "https://dashboard.casapay.com/contracts/sign",
  "signed_at": null,
  "version": "v2.0"
}

Re-signing Required Response#

{
  "signed": true,
  "requires_resigning": true,
  "invalidation_reason": "new_version",
  "terms_url": "https://files.casapay.com/contracts/signed_v1.pdf",
  "solution_url": "https://dashboard.casapay.com/contracts/resign",
  "signed_at": 1696118400,
  "version": "v2.0"
}