Contract Import CSV Format
Import contracts for your backlist from a spreadsheet
Each row sets up one contract: a book, a contributor, and either a contract template or the financial terms written out as JSON. A file can mix both kinds of row. To start, go to Add contract → Import spreadsheet and download the starting-point file. It already lists every book and contributor without a contract, and the names of your templates.
Nothing is saved until you review the preview and commit. Re-uploading a corrected file updates the contracts it names; contracts for rows you leave out are kept.
Columns
Each row needs exactly one of template_name and contract_terms_json.
contract_terms_json
The cell holds one JSON object. In the CSV, wrap the whole cell in double quotes and double every quote inside it. Spreadsheet programs do this for you when they save as CSV. Unknown fields are rejected, so a typo shows up as a row error in the preview instead of being ignored.
{
"version": 1,
"structures": [{
"kind": "royaltyUnitsSoldStructure",
"label": "Paperback",
"ranges": [
{"start": 0, "end": 5000, "percentage": 7.5, "basis": "listPrice"},
{"start": 5000, "end": null, "percentage": 10, "basis": "listPrice"}
],
"splits": [{
"format": "paperback",
"location": {"tag": "worldwide"},
"language": "allLanguages",
"discountRateMin": 0,
"discountRateMax": 100
}],
"termStartMonth": "2023-08"
}],
"advance": {"amount": 1000, "currency": "USD"},
"reservePolicy": {
"policyType": "SimplePercentage",
"formats": ["paperback"],
"percentage": 20,
"holdDurationMonths": 12,
"editionResetEnabled": false
}
}- The top level has
version(always 1),structures(at least one), and optionallyadvanceandreservePolicy. - Percentages are percentage points:
7.125means 7.125%. - Months are YYYY-MM and inclusive.
- Tier and discount ranges include their start and exclude their end. Each tier's end is the next one's start, and
nullmeans no upper limit.
Structures
- basis: netRoyalties, netReceipts, salePrice, listPrice or flatFee. See Understanding royalty bases. A flatFee tier has
percentage: 0, aflatFeePerUnitandflatFeePerUnitCurrency: "USD". List-price tiers need a specific format, such as paperback, rather than a group like allPrint. - format: allFormats, allPrint, allDigital, allAudio, ebook, paperback, hardcover, kindleUnlimited, amazonAllStars, audioSubscription, digitalAudio, physicalAudio, board, paperOverBoard or subsidiaryRights.
- location:
{"tag":"worldwide"}or a country, as{"tag":"distributionCountry","contents":"US"}with a two-letter country code. - language: allLanguages, english, spanish, german or japanese. Two splits can't differ by language alone.
- Splits in different structures can't overlap: the same format, country and discount range can only be covered once.
Advance
{"amount": 1000, "currency": "USD"}. An amount of 0 removes the advance. The advance_amount and advance_currency columns override it. Advances that have already been paid can't be reduced by an import.
Reserve policy
Turn on Reserves under Royalty settings → Features before importing reserve policies, so you can see and edit them afterward.
Updating existing contracts
- Rows are matched by book and contributor. A row whose terms haven't changed is skipped.
- The structures in the JSON replace the contract's current terms: existing structures are updated in place and any extra ones are deleted. The previous terms are recorded in the contract's audit log, not kept as archived structures, so check the preview before you commit.
- Leaving out
advanceorreservePolicykeeps what the contract already has. A new contract gets none. "reservePolicy": nullturns the reserve off. Holds already taken, and their history, are kept.- The same book and contributor can only appear once per file.
Related
Setting up contract terms explains what each setting does in the app.