Skip to main content
POST
Preview the adoption contract

Authorizations

Authorization
string
header
required

An API key from Settings, API keys. It starts with rc_live_.

Path Parameters

id
string
required

The application's ID.

Body

application/json
template_id
string
required

An active adoption contract, offered for these animals.

animal_ids
string[]
required

The animals going home, in the order the contract names them. They need not be the animals applied for, and none may already have an adoption that is not reversed.

Required array length: 1 - 10 elements
fees
object

By animal ID, a fee other than the usual: { "fee_cents": 0 } for another amount, or { "apply_discounts": false } for the adoption fee with no discounts. An animal left out goes home at its adoption fee less any of your discounts that apply.

answers
object

The answers to what the template asks at signing. Answer what it asks; anything else is left out of the contract.

adopted_on
string<date>

The adoption day, which {{date}} prints. Today unless you say.

signer_name
string

The name the adopter types. It fills {{signer_name}}.

Response

The contract as it would read.

body
string
required

The contract as it would read.

unresolved_fields
string[]
required

Merge fields nothing fills. A contract with any is refused at signing.

values
object
required

Each merge field and what it filled in.

missing_answers
enum<string>[]
required

What the template asks that is not answered yet.

Available options:
media_release,
payment,
approver,
completed_where
asks
enum<string>[]
required

What the template asks.

Available options:
media_release,
payment,
approver,
completed_where
fee_cents
integer
required

Every animal's fee together.

body_blocks
object[] | null
decided_by_person_id
string | null

Who approved the application.