Originators

Originators

The sender of a payout. Create one per customer, check it is payable, then pay from it.

An originator is the person who sends the money. Every beneficiary belongs to an originator, and every payout names one.

Create an originator once for each of your customers. It is ready once Superpay holds everything it needs to pay on the sender's behalf, which can be as soon as you create it. When the originator's verification is payable, you can pay out on their behalf.

EndpointScopeDoes
POST /v1/originatorsoriginators:writeCreate an originator
GET /v1/originators/{id}originators:readRetrieve an originator
PATCH /v1/originators/{id}originators:writeCorrect an originator
GET /v1/originators/{id}/verificationoriginators:readIts verification
POST /v1/originators/{id}/documentsoriginators:writeUpload a document its verification asks for
GET /v1/originators/{id}/documentsoriginators:readList its documents

There is no list or delete endpoint. Store the id you get back: it is the only way to retrieve the originator.

Create an originator#

POST/v1/originatorsoriginators:write

Creates an originator. It is ACTIVE in the response when it already holds what a payout needs of a sender, and PENDING otherwise. Returns 201 Created with the originator object and a Location header set to /v1/originators/{id}.

Headers#

HeaderRequiredValue
AuthorizationYesBearer <access token>. See Authentication.
Idempotency-KeyYes16–64 printable ASCII characters, no spaces. A UUID works. See Idempotency.
Content-TypeRecommendedapplication/json

Body parameters#

Use the exact lower-case names below. A field that is not listed is rejected with REQUEST_BODY_INVALID. Leave out optional fields you do not have.

namestringRequired

Full legal name. Leading and trailing whitespace is removed. 2–140 characters after that, counted in UTF-8 bytes, so non-Latin scripts reach the limit sooner.

emailstring

Email address, up to 254 characters. Required if phone is not sent. Stored as sent; case is not changed. A payout needs the sender's email: an originator without one is created PENDING, with email in verification.requirements_due.

phonestring

Phone number in E.164 format: +, country code and number, no spaces or dashes, e.g. +14155550123. Required if email is not sent.

date_of_birthstringRequired

YYYY-MM-DD. The sender must be at least 18 years old today (UTC).

nationalitystringRequired

ISO 3166-1 alpha-2 country code, upper case, e.g. IN.

country_of_residencestringRequired

ISO 3166-1 alpha-2 country code, upper case, e.g. US.

addressobjectRequired

Residential address. line1, city and country are required. A problem with any of them is reported once, on the field address. Keep the whole address within 128 characters: see What a payout needs.

address.line1stringRequired

First address line. Must not be blank.

address.line2string

Second address line.

address.citystringRequired

City. Must not be blank.

address.statestring

State, province or region.

address.postal_codestring

Postal code. Send it as a string, not a number.

address.countrystringRequired

ISO 3166-1 alpha-2 country code, upper case.

id_documentobjectRequired

The sender's identity document.

id_document.typestringRequired

One of PASSPORT, NATIONAL_ID, DRIVERS_LICENSE, RESIDENCE_PERMIT. Case-sensitive.

id_document.numberstringRequired

Document number, 3–40 characters, not counting surrounding spaces. Send it without surrounding spaces: the value is stored as sent. Responses show only its last four characters, in number_last4, so a number of four characters or fewer is returned whole.

id_document.issuing_countrystringRequired

ISO 3166-1 alpha-2 code of the country that issued the document.

id_document.expires_onstring

Expiry date, YYYY-MM-DD. Must be after today (UTC): a document that expires today is rejected.

occupationstring

The sender's occupation, free text.

source_of_fundsstring

Where the sender's money comes from, free text, e.g. SALARY.

party_typestring

INDIVIDUAL (default) or BUSINESS. Case-sensitive. The same fields and checks apply to both.

referencestring

Your own identifier for this sender, up to 128 characters. Must be unique among your originators in the same mode; a duplicate fails with REFERENCE_EXISTS. Set it to your customer id to stop the same customer being created twice.

Shell
curl https://api.withsuperpay.com/v1/originators \
  -H "Authorization: Bearer $SUPERPAY_TOKEN" \
  -H "Idempotency-Key: 7f9c2ba4-e88f-4c1a-9a3b-2d5e6f708192" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Rajesh Raghunathan",
    "email": "rajesh@example.com",
    "phone": "+14155550123",
    "date_of_birth": "1985-04-12",
    "nationality": "IN",
    "country_of_residence": "US",
    "address": {
      "line1": "185 Berry St",
      "line2": "Suite 400",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94107",
      "country": "US"
    },
    "id_document": {
      "type": "PASSPORT",
      "number": "Z1234567",
      "issuing_country": "IN",
      "expires_on": "2031-01-01"
    },
    "occupation": "Engineer",
    "source_of_funds": "SALARY",
    "reference": "CUS-8812"
  }'

This originator holds everything a payout needs, so it is ACTIVE in the response, and originator.created, originator.verified and originator.verification_updated are sent together. One that lacks something is PENDING: see What a payout needs.

Retries and idempotency

Retrying with the same Idempotency-Key and the same body returns the first response, with Idempotent-Replayed: true. That response shows the originator as it was at creation, so it can still say PENDING. Use GET for the current status.

Errors about the request itself are stored against the key too: INVALID_ARGUMENT, REQUEST_BODY_INVALID and REFERENCE_EXISTS are replayed like a success. After fixing a rejected request, send it with a new key. The old key with a changed body fails with IDEMPOTENCY_KEY_REUSED. Authentication, scope, Idempotency-Key header and REQUEST_BODY_TOO_LARGE errors, and 5xx errors, are not stored. See Errors are replayed too.

What a payout needs#

Superpay's cross-border payout capability, shown as cross_border in verification, keeps no record of a sender: each payout carries the sender's details to Superpay's banking partner. So an originator is ACTIVE as soon as Superpay holds all of these and no identity check of its own is outstanding:

FieldNote
name, date_of_birth, nationality, country_of_residenceAlways held: create requires them
id_document.type, id_document.numberAlways held: create requires them. Unlike for an account holder, no type is refused for a sender
addressAlways held. At most 128 characters once line1, line2, city, state, postal_code and country are joined by single spaces. A longer address is never shortened: a payout that would carry it fails with PROVIDER_REJECTED
emailCreate accepts a phone in its place. A payout does not

An originator created with a phone and no email is PENDING, and its verification says what is due:

201 Created (excerpt)
{
  "object": "originator",
  "id": "org_01M2FPKH20W4N5X6M3P9R2T1VA",
  "status": "PENDING",
  "phone": "+14155550123",
  "status_reason_code": "KYC_REQUIREMENTS_DUE",
  "status_reason_message": "More information is needed before this party can be verified; see requirements_due.",
  "verification": {
    "status": "REQUIREMENTS_DUE",
    "payable": false,
    "reason_code": "KYC_REQUIREMENTS_DUE",
    "message": "More information is needed before this party can be verified; see requirements_due.",
    "requirements_due": ["email"],
    "capabilities": [
      {
        "capability": "cross_border",
        "status": "REQUIREMENTS_DUE",
        "reason_code": "KYC_REQUIREMENTS_DUE",
        "message": "More information is needed before this party can be verified; see requirements_due.",
        "requirements_due": ["email"],
        "correctable": true
      }
    ]
  }
}

Correct the originator with its email and it is ACTIVE in the response to the correction. A correction that takes a needed field away again, such as {"email": ""}, makes an ACTIVE originator PENDING again.

When requirements_due lists attestation.identity, Superpay's own identity check is outstanding. You supply nothing: the originator becomes ACTIVE when the check passes.

These fields are read again each time a payout is sent. See What each status allows.

Retrieve an originator#

GET/v1/originators/{id}originators:read

Returns the originator as it is now.

idstringRequired

Path parameter. The originator's id, e.g. org_01M2FPKH20W4N5X6M3P9R2T1VA.

An id that is malformed, belongs to another account, or was created with credentials for the other mode returns 404 ORIGINATOR_NOT_FOUND.

Shell
curl https://api.withsuperpay.com/v1/originators/org_01M2FPKH20W4N5X6M3P9R2T1VA \
  -H "Authorization: Bearer $SUPERPAY_TOKEN"

The originator object#

Optional fields are left out when they have no value. They are never null.

FieldTypeDescription
objectstringAlways originator.
idstringUnique identifier: org_ followed by 26 characters. Sorts by creation time.
statusstringPENDING, VERIFYING, ACTIVE, REJECTED, SUSPENDED or DELETED. See Statuses.
party_typestringINDIVIDUAL or BUSINESS.
namestringFull legal name, trimmed.
emailstringOmitted if not set.
phonestringOmitted if not set.
date_of_birthstringYYYY-MM-DD.
nationalitystringISO 3166-1 alpha-2.
country_of_residencestringISO 3166-1 alpha-2.
addressobjectline1, city and country always; line2, state and postal_code when set.
id_document.typestringDocument type.
id_document.number_last4stringLast four characters of the document number. A number of four characters or fewer is returned whole.
id_document.issuing_countrystringISO 3166-1 alpha-2.
id_document.expires_onstringYYYY-MM-DD. Omitted if not set.
occupationstringOmitted if not set.
source_of_fundsstringOmitted if not set.
referencestringYour identifier. Omitted if not set.
status_reason_codestringWhy the originator is not ready, as a reason code: the reason it is REJECTED or SUSPENDED, or KYC_REQUIREMENTS_DUE while it is PENDING with something due. Omitted when there is none.
status_reason_messagestringWhat the code means, safe to show a person. Present with status_reason_code.
verificationobjectWhere the originator stands in verification, and what you can fix. See Verification.
livemodebooleantrue for live credentials, false for test.
created_atstringRFC 3339 UTC timestamp in whole seconds, e.g. 2026-09-30T10:15:04Z.
updated_atstringWhen Superpay last recorded an update to the originator. It can change without status changing, so do not use it as the time of a status change.

Statuses#

PENDINGACTIVE
StatusMeaningWhat you do
PENDINGNot ready yet: something a payout needs is missing, or a check is outstanding. verification.requirements_due says which.Supply what is due. Otherwise wait.
VERIFYINGThe sender is under review. Originators do not enter it today.Keep waiting.
ACTIVEReady: Superpay holds everything a payout needs of the sender, and no check is outstanding.Create payouts once verification.payable is true.
REJECTEDThe sender could not be verified. status_reason_code says why.See Rejected originators.
SUSPENDEDThe sender is not allowed to send.Stop creating payouts for this originator. Contact Superpay.
DELETEDSuperpay erased the sender's personal data, at your request or at the end of its retention. Final.Nothing. Its personal fields are returned empty.
  • An originator can be ACTIVE from the moment it is created, without passing through PENDING.
  • VERIFYING is a valid status, and only ever follows PENDING. Handle it as you handle PENDING.
  • An ACTIVE originator can later become PENDING again, when a correction takes away something a payout needs, or SUSPENDED or REJECTED. Check its standing before you pay, not only once.
  • A REJECTED originator stays REJECTED unless its verification is correctable and you correct it: see Rejected originators.

Waiting for verification#

An originator that is ACTIVE in the create response needs no waiting. One that is PENDING becomes ACTIVE when you supply what is due, or when an outstanding check passes. Either way originator.verified announces it: the event means that Superpay holds everything it needs to pay on the sender's behalf and that no check is outstanding. Superpay sends originator.verified, originator.rejected or originator.suspended when status changes to ACTIVE, REJECTED or SUSPENDED, and originator.verification_updated when its verification changes. Subscribe to them with a webhook, or poll GET /v1/originators/{id}.

When you poll, back off: a few seconds apart at first, then minutes apart. There is no guaranteed decision time. If an originator stays PENDING or VERIFYING, with nothing left for you to supply, for longer than you expect, contact Superpay support with its id.

A wait can outlast an access token. The example gets its token from getToken(), which caches and renews it: see Token lifetime.

Node.js
async function waitForDecision(id) {
  let delay = 2000;
  for (;;) {
    const res = await fetch(`https://api.withsuperpay.com/v1/originators/${id}`, {
      headers: { Authorization: `Bearer ${await getToken()}` },
    });
    const originator = await res.json();
    if (!res.ok) throw new Error(`${originator.code}: ${originator.detail ?? originator.title}`);
    const { verification } = originator;
    if (verification.payable) return originator; // ready to pay from
    if (verification.status !== 'PENDING') return originator; // needs you, or is final: read its verification
    await new Promise(resolve => setTimeout(resolve, delay));
    delay = Math.min(delay * 2, 5 * 60 * 1000);
  }
}

Rejected originators#

Read verification. It says why, in a stable reason code, and whether you can fix it:

You seeWhat you do
A capability with correctable: trueCorrect the originator with what the reason names
KYC_REJECTED_SANCTIONSContact Superpay. Do not create the sender again
Anything else not correctableCreate a new originator with the right details, a new Idempotency-Key and a different reference, or contact Superpay

What each status allows#

ActionPENDING / VERIFYINGACTIVEREJECTEDSUSPENDEDDELETED
Add a beneficiaryAcceptedYesNo: 422 ORIGINATOR_NOT_ACTIVEAcceptedNo: 422 ORIGINATOR_NOT_ACTIVE
Create a payoutNot blocked at create; the payout then failsYes, when verification.payableNot blocked at create; the payout then failsNot blocked at create; the payout then failsNot blocked at create; the payout then fails
Correct itYesYesYesNo: 422 ORIGINATOR_NOT_CORRECTABLENo: 422 ORIGINATOR_NOT_CORRECTABLE

POST /v1/payouts does not check the originator. When the payout is validated, after it is created, an originator that is not ACTIVE fails it with ORIGINATOR_NOT_ACTIVE, and one rejected on sanctions screening fails it with COMPLIANCE_REJECTED, even while status is ACTIVE. Wait for verification.payable before you create payouts. The API also accepts beneficiaries while the originator is PENDING, VERIFYING or SUSPENDED, but add them once it is ACTIVE, as the Quickstart does.

The sender's details are read once more when a payout is sent, because the payout carries them. If the originator then lacks a field a payout needs, or its personal data has been erased, the payout is not sent: it moves to FAILED with ORIGINATOR_NOT_ACTIVE, the funds it held are released, and failure.reason names the missing fields, e.g. the originator's details are incomplete: email, or says that the details are not available when the data was erased. Correct the originator with them, then create a new payout.

Correct an originator#

PATCH/v1/originators/{id}originators:write

Corrects an originator's details, for example to supply what its verification lists in requirements_due or to fix what a rejection names. Send only the fields you change, with an Idempotency-Key. Returns 200 OK with the originator.

RuleDetail
Fields you can sendname, email, phone, date_of_birth, nationality, country_of_residence, address, id_document, occupation, source_of_funds
MergingA field you leave out is unchanged. address and id_document replace the whole object: send every part you want to keep. "" clears an optional field. {} changes nothing
ChecksThe corrected originator must pass every rule of create, checked against today's date
Fixedparty_type and reference cannot change: 400 with parameter_not_patchable
nullRefused anywhere in the body with 400 REQUEST_BODY_INVALID. Leave a field out instead
LockedA field that a verification in progress or done was sent cannot change: 400 with parameter_locked. Superpay's main route is sent nothing about a sender ahead of a payout, so it locks none of an originator's fields: each payout carries the details as they are then. Where Superpay's own identity check applies, a correction of what it checked starts the check again, and the originator is PENDING until it passes
WhenAllowed in PENDING, VERIFYING, ACTIVE and REJECTED. A SUSPENDED or DELETED originator returns 422 ORIGINATOR_NOT_CORRECTABLE

A correction is stored, and the originator is checked again straight away. See Correct a party for what that does. A correction is stored even when no verification can use it yet, so read verification in the response.

Shell
curl -X PATCH https://api.withsuperpay.com/v1/originators/org_01M2FPKH20W4N5X6M3P9R2T1VA \
  -H "Authorization: Bearer $SUPERPAY_TOKEN" \
  -H "Idempotency-Key: 2c9e5b7a-41d3-4f0e-8a6c-b7d2e9f1a034" \
  -H "Content-Type: application/json" \
  -d '{
    "id_document": {
      "type": "PASSPORT",
      "number": "Z1234567",
      "issuing_country": "IN",
      "expires_on": "2031-01-01"
    },
    "occupation": "Software engineer"
  }'

This originator still holds everything a payout needs, so it stays ACTIVE, and its next payout carries the corrected details. A correction that supplies the last thing due makes a PENDING originator ACTIVE in the response, with originator.verified.

Like a create, a correction's 4xx is stored against its key and replayed. Send a fixed correction with a new key. The response carries the same personal data as GET.

Personal data#

  • Only the document number is masked. name, email, phone, date_of_birth and address are returned in full to any token with originators:read, and in the response to a correction. Treat responses as personal data, and grant the scopes only to systems that need them.
  • Personal details are encrypted at rest. Events about originators carry none of them.
  • Each payout carries the sender's name, email, address, nationality, country of residence, date of birth and identity document type and number to Superpay's banking partner, with the originator's id. That partner is sent nothing about a sender before a payout.
  • Superpay does not detect the same person being created twice. Set reference to your customer id so a second create fails with REFERENCE_EXISTS.
  • Test and live credentials see separate originators. See Testing.

Errors#

Errors are problem documents. Branch on code, not on title or detail.

CodeHTTPWhenWhat you do
INVALID_ARGUMENT400One or more fields failed validation. Each is listed in errors[].Fix the fields. Retry with a new Idempotency-Key.
REQUEST_BODY_INVALID400The body is empty, is not one JSON object, has a value of the wrong type, has a field not listed on this page, or, on a correction, holds a null.Fix the body. Retry with a new key.
REQUEST_BODY_TOO_LARGE400Create or correct: the body is larger than 1 MiB.Send a smaller body.
IDEMPOTENCY_KEY_REQUIRED400Create or correct without an Idempotency-Key header.Add the header.
IDEMPOTENCY_KEY_INVALID400The key is not 16–64 printable ASCII characters, or contains a space.Use a UUID.
INSUFFICIENT_SCOPE403The token lacks originators:write (create, correct) or originators:read (retrieve, verification).Request a token with the scope.
ORIGINATOR_NOT_FOUND404Retrieve, correct or verification: no originator with this id for your credentials and mode.Check the id, and that your test or live credentials match the mode it was created in.
REFERENCE_EXISTS409Create: another of your originators in this mode has this reference.If you are retrying a create that may have succeeded, resend it with its original key to get the originator. Otherwise retrieve the existing originator by its stored id, or use a different reference with a new key.
IDEMPOTENCY_KEY_REUSED409The key was already used for a different request.Use a new key for each new request.
RESOURCE_LOCKED409A request with this key is still in progress. retryable is true.Wait a moment, then retry the same request with the same key.
IDEMPOTENCY_LEASE_LOST409The attempt ran for over a minute and a retry with the same key took it over.Retry the same request with the same key to get that result.
ORIGINATOR_NOT_CORRECTABLE422Correct: the originator is SUSPENDED or DELETED. sub_code carries its reason code, when it has one.Contact Superpay, or create a new originator.
INTERNAL500Unexpected error.Retry. On create, send the same request with the same key; it does not create a second originator. If it persists, contact support with the request_id.
IDEMPOTENCY_RECOVERY_FAILED503A retry found an interrupted earlier attempt with this key and could not read back its result. retryable is true.Wait for Retry-After, then retry the same request with the same key.

Authentication errors are on Authentication. The full catalogue is on Errors.

Field errors#

INVALID_ARGUMENT lists every failing field at once. Each item has a code, a short message and the field. Messages are hints and can change. A correction is checked in stages: a field that cannot change is reported first, on its own; then the rules of create; and only then locked fields.

fieldcodeCause
nameparameter_value_invalidMissing, or not 2–140 characters after trimming.
emailparameter_emptyNeither email nor phone was sent.
emailparameter_value_invalidNot a valid email address, or longer than 254 characters.
phoneparameter_value_invalidNot E.164.
date_of_birthparameter_value_invalidMissing, not YYYY-MM-DD, or the sender is under 18.
nationalityparameter_value_invalidMissing, or not an upper-case two-letter code.
country_of_residenceparameter_value_invalidMissing, or not an upper-case two-letter code.
addressparameter_value_invalidline1 or city blank, or country not an upper-case two-letter code.
id_document.typeparameter_value_invalidMissing, or not one of the four types.
id_document.numberparameter_value_invalidMissing, or not 3–40 characters.
id_document.issuing_countryparameter_value_invalidMissing, or not an upper-case two-letter code.
id_document.expires_onparameter_value_invalidNot YYYY-MM-DD, or not after today.
party_typeparameter_value_invalidNot INDIVIDUAL or BUSINESS.
referenceparameter_max_length_invalidLonger than 128 characters.
party_type, referenceparameter_not_patchableCorrect: these cannot be changed after creation.
Any locked fieldparameter_lockedCorrect: a verification in progress or done holds the field. One entry per field.
400 Bad Request
{
  "type": "about:blank",
  "title": "Invalid request",
  "status": 400,
  "instance": "/v1/originators",
  "code": "INVALID_ARGUMENT",
  "request_id": "req_01M2FPJFVG5N7P9R1T3V5X7Z9B",
  "errors": [
    { "code": "parameter_empty", "message": "email or phone is required", "field": "email" },
    { "code": "parameter_value_invalid", "message": "YYYY-MM-DD, at least 18 years ago", "field": "date_of_birth" },
    { "code": "parameter_value_invalid", "message": "ISO 3166-1 alpha-2", "field": "nationality" }
  ]
}

Originator errors on other endpoints#

WhereCodeHTTPWhen
Create a beneficiaryORIGINATOR_NOT_FOUND422No originator with that id for your credentials and mode.
Create a beneficiaryORIGINATOR_NOT_ACTIVE422The originator is REJECTED or DELETED.
Create a payoutBENEFICIARY_ORIGINATOR_MISMATCH422The beneficiary belongs to a different originator.
Payout failure.codeORIGINATOR_NOT_ACTIVEn/aThe originator was not ACTIVE when the payout was checked, or lacked a field a payout needs, or had been erased, when the payout was sent. The payout is FAILED.
Payout failure.codeCOMPLIANCE_REJECTEDn/aThe originator or the beneficiary was rejected on sanctions screening. The payout is FAILED.