Transfers

Topics covered on this page

Requirement

You must meet the following requirement to create a transfer:

  • There must be over 30 THB in your available balance.

Recipient

Default recipient

By default, a recipient is created for you once you sign up for an account with Omise in test mode. However, once you get your live account, a new live recipient is created using your registration and bank account details.

Third-party recipient

You can create as many recipients as you want. Each recipient has their bank account information. We allow funds to be transferred from your Omise account to these recipients.

Create a recipient

The following command demonstrates how to create a recipient using curl

curl https://api.omise.co/recipients \
-X POST \
-u "$OMISE_KEY_SECRET": \
-d "name=James Smith"
-d "email=james.smith@example.com"
-d "description=My first other recipient" \
-d "type=individual"
-d "bank_account[brand]=test" \
-d "bank_account[number]=acc12345" \
-d "bank_account[name]=James Smith"

By default, recipients are inactive and non-verified.

To be operational, recipients must go through two steps: Verification and Activation.

Visit recipient api for more details.

Recipient verification

Omise does the recipient verification. This process generally takes no more than two business days. The verification result can be either Verified or Failed.

Recipient detail

Recipient activation

You can activate recipients independently from the verification process. By default, the recipient is inactive unless you activate it. Activation is done by going to the recipient details and clicking Activate the recipient.

Remember that both activation and verification must be successful before transfers become possible.

Recipient activation

Transfer to default recipient

Here is sample code showing how to create a transfer to the default recipient:

curl https://api.omise.co/transfers \
  -X POST \
  -u "$OMISE_KEY_SECRET": \
  -d "amount=350000"

# Transfer 3500 THB to default recipient

Transfer to third party recipient

Transferring funds to a third-party recipient is similar, except that you must specify the recipient ID to which to transfer them. Here is an example:

curl https://api.omise.co/transfers \
  -X POST \
  -u "$OMISE_KEY_SECRET": \
  -d "amount=350000"
  -d "recipient=recp_test_4z6p7e0m4k40txecj5o"

# Transfer 3500 THB to recipient #recp_test_4z6p7e0m4k40txecj5o
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