Transfers
Topics covered on this page
Overview
Omise transfers move funds from your account balance to a recipient's bank account. Each recipient is either your default recipient or a third-party recipient you create.
For PSP Thailand accounts using Payout Service, a third-party recipient also needs a merchant-recipient relationship type and supporting documents before you can transfer funds to that recipient. The default recipient is not subject to this requirement.
Transfer fee
Omise deducts a transfer fee from the transfer amount. The default transfer fee is 20 THB.
The fee is returned on the transfer object:
fee— Omise transfer fee, in the smallest currency unitfee_vat— VAT applied tofeetotal_fee—fee + fee_vatnet—amount - total_fee(the amount sent to the bank account)
Your transferable balance must cover the transfer amount. For Thailand accounts, the minimum transfer amount is 30 THB. Omise can set a higher minimum for your account, but never lower than 30 THB. You can't change the minimum yourself. To request a higher minimum, contact support@omise.co.
Transfer to your default recipient
By default, Omise creates a recipient for you when you sign up for an account in test mode. When you get your live account, Omise creates a live recipient using your registration and bank account details.
The following command creates a transfer of 3,500 THB to the default recipient.
curl https://api.omise.co/transfers \
-X POST \
-u "$OMISE_SECRET_KEY": \
-d "amount=350000"
Transfer to a third-party recipient
You can create additional recipients and transfer funds to their bank accounts.
A recipient must be created, verified, and activated before you can transfer funds to it.
How you create a recipient (Step 1) depends on your account:
- PSP Thailand accounts using Payout Service: Specify the merchant-recipient relationship type and upload supporting documents when you create the recipient. You can't add or change the relationship type or documents later. To change them, destroy the recipient and create a replacement.
- Other accounts that support third-party transfers: Create the recipient without a relationship type or supporting documents.
Step 1: Create a third-party recipient
Create a recipient for PSP Thailand accounts using Payout Service
Upload the supporting documents first (steps 1a and 1b), then create the recipient (step 1c).
The POST /recipients request in step 1c accepts the following parameters.
| Parameter | Type | Description |
|---|---|---|
name |
string | Required. The recipient's name. |
email |
string | Optional. The recipient's email address. |
description |
string | Optional. A description for the recipient. |
type |
string | Required. One of individual or corporation. |
tax_id |
string | Optional. The recipient's tax ID. |
relationship_type |
string | Required. One of Partner, Vendor, Contractor, Employee, or Others: <your text>. |
document_ids[] |
array | Required. One document_id per uploaded file. Repeat this field for each file. Each step 1a request returns a single document_id, not an array. |
bank_account[brand] |
string | Required. The recipient's bank, for example bbl or kbank. Use test in test mode. |
bank_account[number] |
string | Required. The recipient's bank account number. |
bank_account[name] |
string | Required. The name on the recipient's bank account. |
Documents: up to 10 files, max 10 MB each. Accepted content types: application/pdf, image/jpeg, image/png, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
1a. Get a presigned upload URL
document[filename] is the file name only (for example, contract.pdf), not a local path. The extension must match document[content_type].
curl https://api.omise.co/recipients/upload_relationship_document \
-X POST \
-u "$OMISE_SECRET_KEY": \
-d "document[filename]=contract.pdf" \
-d "document[content_type]=application/pdf"
The response includes url, fields, and document_id.
Example response:
{
"url": "https://s3.ap-southeast-1.amazonaws.com/example-bucket",
"fields": {
"key": "recipient-relationship/temp/11111111-1111-1111-1111-111111111111/contract.pdf",
"acl": "private",
"Content-Type": "application/pdf",
"Content-Disposition": "inline",
"policy": "<from response>",
"x-amz-credential": "<from response>",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-date": "<from response>",
"x-amz-signature": "<from response>"
},
"document_id": "docu_test_xxxxxxxxxxxxxxxxxxx"
}
Save the document_id for step 1c. Copy the url and every key in fields into step 1b. The url and fields values expire; do not reuse an old response.
1b. Upload the file to url
POST multipart form data to the url from step 1a, not to api.omise.co. Replay every key in fields as a form field. Add the file last. The file field name must be file.
curl -i --location 'https://s3.ap-southeast-1.amazonaws.com/example-bucket' \
--form 'key="<from fields.key>"' \
--form 'acl="private"' \
--form 'Content-Type="application/pdf"' \
--form 'Content-Disposition="inline"' \
--form 'policy="<from fields.policy>"' \
--form 'x-amz-credential="<from fields.x-amz-credential>"' \
--form 'x-amz-algorithm="AWS4-HMAC-SHA256"' \
--form 'x-amz-date="<from fields.x-amz-date>"' \
--form 'x-amz-signature="<from fields.x-amz-signature>"' \
--form 'file=@"/path/to/contract.pdf"'
Success is HTTP 204 No Content with an empty body. curl prints nothing unless you pass -i. Do not call GET /recipients/relationship_documents/:id yet; that endpoint only works after the document is linked in step 1c.
1c. Create the recipient
curl https://api.omise.co/recipients \
-X POST \
-u "$OMISE_SECRET_KEY": \
-d "name=Jane Doe" \
-d "email=jane.doe@example.com" \
-d "type=individual" \
-d "relationship_type=Contractor" \
-d "document_ids[]=docu_test_xxxxxxxxxxxxxxxxxxx" \
-d "bank_account[brand]=kbank" \
-d "bank_account[number]=1234567890" \
-d "bank_account[name]=Jane Doe"
In test mode, you may use bank_account[brand]=test. In live mode, test returns invalid_bank_account.
A successful create for a PSP Thailand account using Payout Service includes the values you sent (other recipient fields omitted):
{
"object": "recipient",
"id": "recp_test_xxxxxxxxxxxxxxxxxxx",
"relationship_type": "Contractor",
"recipient_relationships": [
{
"document_id": "docu_test_xxxxxxxxxxxxxxxxxxx",
"filename": "contract.pdf",
"created_at": "2019-12-31T12:59:59Z"
}
]
}
If relationship_type is null and recipient_relationships is missing, your account does not require relationship documents, and the API ignores relationship_type and document_ids. Use the following section instead.
After the document is linked, you can retrieve it:
curl https://api.omise.co/recipients/relationship_documents/docu_test_xxxxxxxxxxxxxxxxxxx \
-u "$OMISE_SECRET_KEY":
A new recipient starts inactive and unverified.
Create a recipient for other accounts that support third-party transfers
Send a POST request to /recipients with the recipient's details.
| Parameter | Type | Description |
|---|---|---|
name |
string | Required. The recipient's name. |
email |
string | Optional. The recipient's email address. |
description |
string | Optional. A description for the recipient. |
type |
string | Required. One of individual or corporation. |
tax_id |
string | Optional. The recipient's tax ID. |
bank_account[brand] |
string | Required. The recipient's bank, for example bbl or kbank. Use test in test mode. |
bank_account[number] |
string | Required. The recipient's bank account number. |
bank_account[name] |
string | Required. The name on the recipient's bank account. |
The following command creates a recipient using curl.
curl https://api.omise.co/recipients \
-X POST \
-u "$OMISE_SECRET_KEY": \
-d "name=Jane Doe" \
-d "email=jane.doe@example.com" \
-d "description=My first other recipient" \
-d "type=individual" \
-d "bank_account[brand]=test" \
-d "bank_account[number]=7v2k9dq4x1" \
-d "bank_account[name]=Jane Doe"
A new recipient starts inactive and unverified.
Step 2: Wait for recipient verification
Omise verifies each recipient. Verification generally takes no more than two business days.
You can transfer to a recipient only after it is verified and active.
| Verification result | Meaning |
|---|---|
| Verified | The recipient can proceed to activation, or can be used if it is already active. |
| Failed | Verification failed. Common causes include a name mismatch, an account that can't be found, or a bank that can't be found. Correct the recipient's details and Omise re-verifies the recipient. |
Common failure_code values:
name_mismatchaccount_not_foundbank_not_found

Step 3: Activate the third-party recipient
You can activate a recipient independently of the verification process. By default, a recipient stays inactive until you activate it. To activate a recipient, go to the recipient's details and click Activate the recipient.
Note: Both activation and verification must succeed before you can transfer funds to the recipient.

Step 4: Create a transfer to the third-party recipient
Send a POST request to /transfers with the amount and the recipient's ID in the recipient parameter.
The following command creates a transfer of 3,500 THB to recipient recp_test_5mangostickyrice7x9.
curl https://api.omise.co/transfers \
-X POST \
-u "$OMISE_SECRET_KEY": \
-d "amount=350000" \
-d "recipient=recp_test_5mangostickyrice7x9"
For PSP Thailand accounts using Payout Service, the recipient must already have a relationship_type. Otherwise, creating a transfer returns: Invalid transfer: recipient relationship_type is required.
If your account does not yet allow third-party payouts, creating a transfer to a non-default recipient returns: The account does not support non-default recipient transfers.
FAQ
What do I need before I can create a transfer?
A transfer amount that meets your account's minimum (30 THB or higher in Thailand), a transferable balance that covers that amount, and a verified, active recipient.
Where does the default recipient come from?
Omise creates it automatically. Test mode uses a test recipient. Live mode uses your registration and bank account details.
How do I create a third-party recipient?
Send a POST request to /recipients with the name, type, and bank account. For PSP Thailand accounts using Payout Service, also upload supporting documents and send relationship_type and document_ids. You can't change those fields later; to change them, destroy the recipient and create a replacement.
What steps does a recipient need before I can transfer funds to them?
The recipient must be verified and active. For PSP Thailand accounts using Payout Service, the recipient must also have a relationship type and linked documents.
Why did a recipient fail verification?
Bank-account mismatches use name_mismatch, account_not_found, or bank_not_found. Contact support for other failure codes.
How do I transfer funds to a specific recipient?
Send a POST request to /transfers with the amount and the recipient's ID in the recipient parameter. Omit the recipient to transfer to the default recipient.