Recipient API

Create, retrieve, update, and delete recipients of one-time transfers or transfer schedules. Recipients may be individuals or corporations, and must have a valid bank account associated.

Attributes

Name Type Description
object string

The string recipient.

id string

The recipient identifier matching /recp(_test)?_[0-9a-z]+/.

livemode boolean

Whether this is a live (true) or test (false) recipient.

location string

API path to retrieve the current recipient object.

activated_at string

UTC datetime of the activation of the recipient in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

active boolean

Whether recipient is active.

bank_account bank_account

Destination bank account for transfer.

created_at string

UTC datetime of recipient creation in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

default boolean

Whether recipient is account default.

deleted boolean

Whether recipient is deleted.

description string

Recipient description.

email string

Recipient email address.

failure_code string

Recipient verification failure code. One of name_mismatch, account_not_found, bank_not_found, mule_account_match_at_creation, mule_account_match_at_edit, mule_account_match_at_transfer, or unable_to_verify_merchant_recipient_relationship.

metadata object

Custom metadata (e.g. {"answer": 42}) for recipient.

name string

Recipient name.

recipient_relationships array

Documents linked to the recipient. Each item has a document_id, a filename, and a created_at entity.

relationship_type string

Merchant-recipient relationship. One of Partner, Vendor, Contractor, Employee, or Others. Required when creating a non-default recipient for a Payout Service user on PSP Thailand. Cannot be updated after creation.

schedule object_id_expandable

Transfer schedule associated with recipient.

tax_id string

Recipient tax ID.

type string

Recipient type. One of individual or corporation.

verified boolean

Whether recipient is verified.

verified_at string

UTC datetime of the verification of the recipient in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

Example

  • JSON Response

Create a recipient

- POST https://api.omise.co/recipients

Creates and returns a new recipient.

Request Parameters

Name Type Description
bank_account object

(required) Destination bank account for transfer.

description string

(optional) Recipient description.

document_ids array

(optional) (Required for Payout Service users, PSP Thailand) Document IDs from POST /recipients/upload_relationship_document.

email string

(optional) Recipient email address.

metadata object

(optional) Custom metadata (e.g. {"answer": 42}) for recipient.

name string

(required) Recipient name.

relationship_type string

(optional, but conditionally required) (Required for Payout Service users, PSP Thailand) One of: Partner, Vendor, Contractor, Employee, or Others.

tax_id string

(optional) Recipient tax ID.

type string

(required, one of: individual, corporation) Recipient type.

Example

  • Create a recipient (Singapore and Thailand)

  • Create a recipient (Japan)

  • Create a recipient (Payout Service, Thailand)

Destroy a recipient

- DELETE https://api.omise.co/recipients/{id}

Destroys the recipient matching :id.

Example

  • Destroy a recipient

List recipients

- GET https://api.omise.co/recipients

Returns a list of recipients belonging to your account.

Request Parameters

Name Type Description
from string

(optional, default: 1970-01-01T00:00:00Z) Earliest UTC datetime for returned records in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

limit integer

(optional, default: 20) Number of records returned.

offset integer

(optional, default: 0) Offset of the first record returned (i.e. how many records to skip from the beginning).

order string

(optional, default: chronological, one of: chronological, reverse_chronological) Order of records returned.

to string

(optional) Latest UTC datetime for returned records in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

Example

  • List all recipients

Retrieve a recipient

- GET https://api.omise.co/recipients/{id}

Returns the recipient matching :id.

Example

  • Retrieve a recipient

Update a recipient

- PATCH https://api.omise.co/recipients/{id}

Returns an updated recipient.

Request Parameters

Name Type Description
bank_account object

(required) Destination bank account for transfer.

description string

(optional) Recipient description.

document_ids array

(optional) (Required for Payout Service users, PSP Thailand) Document IDs from POST /recipients/upload_relationship_document.

email string

(optional) Recipient email address.

metadata object

(optional) Custom metadata (e.g. {"answer": 42}) for recipient.

name string

(required) Recipient name.

relationship_type string

(optional, but conditionally required) (Required for Payout Service users, PSP Thailand) One of: Partner, Vendor, Contractor, Employee, or Others.

tax_id string

(optional) Recipient tax ID.

type string

(required, one of: individual, corporation) Recipient type.

Example

  • Update a recipient

Mark a recipient as verified

- PATCH https://api.omise.co/recipients/{id}/verify

This endpoint allows you to manually mark a recipient as verified. This can be useful for testing purposes. This endpoint works in test mode only. A live recipient returns recipient is not in test mode.

Example

  • Verify a recipient

Upload relationship document

- POST https://api.omise.co/recipients/upload_relationship_document

Creates a temporary document and returns a presigned upload.

Request Parameters

Name Type Description
document object

(required) Object containing filename (required) and content_type (required). Max 10 MB. Supported types: application/pdf, image/jpeg, image/png, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.

Example

  • Upload relationship document

Retrieve a relationship document

- GET https://api.omise.co/recipients/relationship_documents/{id}

Returns a document already linked to a recipient. The download_url expires in 5 minutes.

Example

  • Retrieve a relationship document

Delete a relationship document

- DELETE https://api.omise.co/recipients/relationship_documents/{id}

Deletes a temporary unlinked document only. After the document is linked to a recipient, this endpoint returns 404.

Example

  • Delete a relationship document

Omise uses cookies to improve your overall site experience and collect information on your visits and browsing behavior. By continuing to browse our website, you agree to our Privacy Policy. Learn more