ParasendDocs
Sign in Start free

Add deliveries to a batch

POST/v1/batches/{id}/deliveries

Partial-failure pattern (normative): returns 200 with per-item results {index, status: created | failed, delivery_id?, error?} — the inline error object is byte-identical in shape to top-level errors. A call where every item fails still returns 200; only request-level faults (auth, malformed JSON,

1,000 items) use top-level errors. Unresolved paper addresses are per-item

needs_address results, not errors.

Path parameters

  • idstringrequired

    The batch's ID, starting bat_.

Body

Required

  • deliveriesarray of objectrequired
    7 fields of deliveries
    • Who receives a delivery. At least one of email and phone; phone is required at verification_level: medium, where the SMS code goes. With conditional_authentication true, only the named person can open it: personal_code is required at high (only an eID with that kennitala passes) and id_document_number at substantial (only that identity document passes). Without it, the recipient still verifies at the level you set, and their verified identity is recorded and returned to you. A mismatch is the event delivery.auth_failed, with the reason personal_code_mismatch or id_document_mismatch.

      8 fields of recipient
    • deliveries[].filesarray of stringrequired

      The files to send: the fil_ IDs that Upload a file returned.

    • 8 fields of options
      • How the recipient is told — the invitation and every reminder go to each channel listed; each needs its contact (recipient.email, recipient.phone). Default — e-mail when there is an address, else SMS. Told on both, a failure on one channel bounces the delivery only once the other cannot arrive either.

        One of email sms
      • Which ways of identifying the recipient to offer within recipient.verification_level, in your order of preference. The recipient may always use a way at least as strong as the weakest one you list. Left out: every way the level allows (an SMS code only when the recipient has a phone).

        One of audkenni smart_id sms_otp passkey videoid password link_only
      • The follow-up policy's ID (rpol_…): the reminders this delivery sends while it waits.

      • The brand profile's ID (bp_…). One set on the delivery wins over the batch's, and the batch's over the account's default.

      • How many days the recipient has to confirm receipt before the delivery expires: a whole number from 1 to 365. Default 30. For a delivery in a batch, the days count from when the batch is sent out.

      • What the recipient and the evidence show as the sender. legal_person (your organisation's default) shows the organisation, with an opaque reference to the person who sent it; that person's name, personal code and e-mail are not shown. individual names the person who sent it as well. Your choice per delivery or template; a personal account is always individual.

        One of legal_person individual
      • Which saved wording the first notice uses, per channel: a wording ID, null for Parasend's own, or left out for your organisation's default.

        2 fields of notice_wording
    • Your own key–value pairs, kept with the object and returned as you sent them. Never put personal data here.

    • The subject the recipient sees in the notice and on their page.

      at most 200 characters
    • A plain-text note shown before sign-in. Line breaks are kept. It is not sealed into the evidence.

      at most 1000 characters
    • The language of the notice and of the recipient page.

      One of is en
      Default "is"

Returns

200 application/json. Per-item results.

Errors have one shape; see Errors for every code.