Create Import

Starts an import of payments into a batch from a CSV or Excel file, and returns a link to upload the file to.

Use imports to create many payments at once. The steps are:

  1. Call this operation with the file's name and type.
  2. Upload the file with an HTTP PUT of its raw bytes to fileUploadUrl, with the same Content-Type you sent as
    fileMimeType. The link is valid for 1 hour. An import whose file never arrives is discarded after 4 hours.
  3. Poll Get Import until status is ready (every row is valid), processed_with_errors (some rows are invalid) or
    processing_failed (the file could not be read, or has no rows).
  4. Review the rows with Get Import Rows. Each row says whether it is valid, why not in error, and what will happen to the
    payee in userAction.
  5. Call Finish Import to create the payments, or Delete Import to discard it.

The created payments are DRAFT. Send them with Submit Batch, Submit Payments or Submit Payment.

File format. The first row holds the column names; each other row is one payment. Column names are matched exactly as
written here (the alternatives in brackets are accepted too):

ColumnRequiredContent
Email Address (payeeEmail)YesPayee email.
Amount (Prize Payout, amount)YesAmount, as a decimal number in the ledger account's currency.
Payee Reference ID (payeeReferenceId)NoYour identifier for the payee. See /docs/payee-reference-ids.
Reference (Reference ID, Payment Reference ID, referenceId)NoYour identifier for the payment.
Account (account)NoLedger account ID or alias. Needed when you have several ledger accounts.
Tax Jurisdiction (taxJurisdiction)NoDefaults to the batch's.
Payment Category (paymentCategory)NoDefaults to the batch's.
Payee Memo (Payee Message)NoMessage shown to the payee. Defaults to the batch name.
Payor Memo (payorMemo)NoNote for your own records.
tag_<key>NoOne column per tag key. Separate several values with ;. Requires tags on your account.
QuickBooks Category (Category)NoQuickBooks classification, when QuickBooks is connected.
QuickBooks Class (Class)NoQuickBooks classification, when QuickBooks is connected.
QuickBooks Location (QuickBooks Department, Location, Department)NoQuickBooks classification, when QuickBooks is connected.
Xero AccountNoXero classification, when Xero is connected.
tracking_<category>NoOne column per Xero tracking category, when Xero is connected.

Payees are matched or created as in Create Payment.

Requires the Write permission.

Errors

  • 400 VALIDATION_ERROR: fileMimeType is not one of the two accepted types, or a field is missing.
  • 404 NOT_FOUND: the batch does not exist.
  • 423 NOT_EDITABLE: the batch does not accept payments.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

ID of the batch, as returned by Create Batch.

Body Params

Body of Create Import.

string
enum
required

Type of the file: text/csv for CSV or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for Excel (XLSX).
Upload the file with this same Content-Type.

Allowed:
string
required

Name of the file, shown on the import.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json