Skip to main content
Version: 2019-05-29 (Current)

Update a recipient

Update recipient details including name, email, description, and metadata. Note that bank account details cannot be updated.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
Recipient ID (e.g., recp_test_...). Provided in the URL path.
Example:"recp_test_5xuy4w91xqz7d1w9u0t"
Additional - 4 fieldsAdditional Parameters
โ–ผ
`name`STRING(optional)
Updated recipient name.
Example:"John Smith"
`email`STRING(optional)
Updated email address.
Example:"john.smith@example.com"
`description`STRING(optional)
Updated description.
Example:"Marketplace seller - Premium"
`metadata`OBJECT(optional)
Updated metadata (completely replaces existing metadata).
Example:{"seller_id":"SELL-12345","tier":"premium"}

Responsesโ€‹

200

Successful transaction

Recipient updated successfully. Returns the updated recipient object.

Updated recipient attributes:
  • name - Updated recipient name
  • email - Updated email address
  • description - Updated description
  • metadata - Updated metadata
  • Bank account details remain unchanged

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid email format
  • Malformed metadata
  • Metadata exceeds 15,000 characters

401

Unauthorized

Authentication 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 found

Recipient not found.

Common causes:
  • Invalid recipient ID
  • Recipient does not belong to your account
  • Recipient has been deleted
  • Mixing test and live mode IDs

Code samplesโ€‹

curl https://api.omise.co/recipients/recp_test_5xuy4w91xqz7d1w9u0t \
-X PATCH \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "name=John Smith" \
-d "email=john.smith@example.com"

Important notesโ€‹

  • Bank account details cannot be updated
  • To change bank account, delete the recipient and create a new one
  • Metadata parameter completely replaces existing metadata
  • To preserve existing metadata, retrieve recipient first and merge

Try it outโ€‹

Required - 1 fields
โ–ผ
Additional - 4 fields