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

ColumnRequiredMeaning
contributor_nameYesMatches an existing contributor. A new one is created when contributor_email is also given.
isbn or titleOne of themMatches an existing book. Books are never created by this import.
template_nameOne of themApplies a contract template, including its advance and reserve.
contract_terms_jsonOne of themThe terms themselves, in the JSON format below.
contributor_emailNoUsed to create a contributor that does not exist yet.
roleNoThe contributor role, such as Author or Illustrator.
term_start, term_endNoYYYY-MM. Overrides the term on every structure in the row.
advance_amount, advance_currencyNoOverrides the advance in the template or JSON.

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 optionally advance and reservePolicy.
  • Percentages are percentage points: 7.125 means 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 null means no upper limit.

Structures

FieldMeaning
kindroyaltyUnitsSoldStructure (tiers count units) or royaltyDollarStructure (tiers count revenue).
rangesThe tiers. Each has start, end (null for the last), percentage and basis.
splitsThe sales the structure covers: format, location, language and a discount range.
tierCurrency"USD" on revenue tiers. Leave it out for unit tiers.
termStartMonth, termEndMonthOptional YYYY-MM fixed term. Only sales inside it count.
defaultTermLengthMonthsOptional. Sets an expiration reminder this many months after the terms are applied.
labelOptional name shown on the contract page.
  • basis: netRoyalties, netReceipts, salePrice, listPrice or flatFee. See Understanding royalty bases. A flatFee tier has percentage: 0, a flatFeePerUnit and flatFeePerUnitCurrency: "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.

FieldMeaning
policyTypeSimplePercentage or ReturnRateBased.
formatsAt least one format, for example ["paperback", "hardcover"]. Use the print formats for a print-only reserve.
percentagePercentage points from 0 to 100. 20 means 20%.
holdDurationMonthsHow long each hold lasts. At least 1.
capAfterMonths, capPercentageOptional. Give both or neither. Months must be 0 or more; the cap is 0 to 100.
editionResetEnabledOptional, default false. Restarts the reserve period when a new edition comes out.

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 advance or reservePolicy keeps what the contract already has. A new contract gets none.
  • "reservePolicy": null turns 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.