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

Delete a recipient

Permanently delete a recipient to prevent future transfers. Existing transfers to the recipient are not affected.


๐Ÿ”‘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"

Responsesโ€‹

200

Successful transaction

Recipient deleted successfully. Returns confirmation with deleted: true.

Response structure:
  • object - "recipient"
  • id - ID of the deleted recipient
  • deleted - true (confirms deletion)

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 already deleted
  • Mixing test and live mode IDs

Code samplesโ€‹

curl https://api.omise.co/recipients/recp_test_5xuy4w91xqz7d1w9u0t \
-X DELETE \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Important notesโ€‹

  • Deleted recipients cannot be recovered
  • Existing transfers to deleted recipients are not affected
  • Once deleted, the recipient ID cannot be reused
  • To update bank account details, delete and create a new recipient

Try it outโ€‹

Required - 1 fields
โ–ผ