Verify a recipient
Manually verify a recipient's bank account. This endpoint is primarily used for testing purposes as most recipients are automatically verified upon creation.
Request Parametersโ
Required - 1 fieldRequired Parameters
`id`STRING(required)
Recipient ID (e.g., recp_test_...). Provided in the URL path.
Responsesโ
200
Successful transactionRecipient verified successfully. Returns the updated recipient object with verified: true.
Returned recipient attributes:
object- The value "recipient"id- Recipient identifier (recp_*)livemode- Live or test modelocation- API path to the recipient objectactivated_at- Activation timestamp (ISO 8601)active- Whether recipient is activebank_account- Destination bank account objectcreated_at- Creation timestamp (ISO 8601)default- Whether recipient is account defaultdeleted- Whether recipient is deleteddescription- Recipient descriptionemail- Recipient email addressfailure_code- Failure reason code (name_mismatch, account_not_found, bank_not_found)metadata- Custom metadataname- Recipient nameschedule- Transfer schedule (expandable)tax_id- Recipient tax IDtype- Recipient type (individual, corporation)verified- Whether recipient is verifiedverified_at- Verification timestamp (ISO 8601)
401
UnauthorizedAuthentication failed. Invalid or missing API key.
Common causes:
- Missing Authorization header
- Invalid secret key
- Using public key instead of secret key
- Incorrect HTTP Basic Auth format
404
Not foundRecipient not found.
Common causes:
- Invalid recipient ID
- Recipient does not belong to your account
- Recipient has been deleted
- Mixing test and live mode IDs
422
Unprocessable entityVerification failed or recipient already verified.
Common causes:
- Recipient already verified
- Bank account verification failed
- Invalid bank account details
5xx
Server errorServer-side error occurred. These are rare but should be handled gracefully.
How to handle:
- Retry the request with exponential backoff
- Check status.omise.co for service incidents
- See Error Handling for detailed guidance
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/recipients/recp_test_5xuy4w91xqz7d1w9u0t/verify \
-X PATCH \
-u skey_test_5xuy4w91xqz7d1w9u0t:
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
recipient = Omise::Recipient.verify('recp_test_5xuy4w91xqz7d1w9u0t')
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
recipient = omise.Recipient.verify('recp_test_5xuy4w91xqz7d1w9u0t')
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const recipient = await omise.recipients.verify('recp_test_5xuy4w91xqz7d1w9u0t');
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$recipient = OmiseRecipient::retrieve('recp_test_5xuy4w91xqz7d1w9u0t');
$recipient->verify();
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
Recipient recipient = client.recipients()
.verify("recp_test_5xuy4w91xqz7d1w9u0t");
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var recipient = await client.Recipients.Verify("recp_test_5xuy4w91xqz7d1w9u0t");
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
recipient, _ := client.Recipients().Verify("recp_test_5xuy4w91xqz7d1w9u0t")
Important notesโ
- Most recipients are automatically verified upon creation
- This endpoint is primarily for testing purposes
- Verified recipients can immediately receive transfers
- Verification typically takes 1-2 business days for live mode
- In test mode, verification is instant with this endpoint
API Credentials
Try it outโ
Required - 1 fields
Your IP:
...Loading...