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

Mark transfer as sent

Mark a transfer as sent. This endpoint is used to indicate that a transfer has been dispatched to the bank for processing. Once marked as sent, the transfer status will be updated and the sent flag will be set to true.


Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
Transfer ID (e.g., trsf_test_...). Provided in the URL path.
Example:"trsf_test_5xuy4w91xqz7d1w9u0t"

Responsesโ€‹

200

Successful transaction

Transfer marked as sent successfully. Returns the updated transfer object with sent: true.

Updated transfer attributes:
  • sent - Now set to true
  • sent_at - Timestamp when marked as sent
  • Other transfer attributes remain unchanged

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Transfer already marked as sent
  • Transfer is not sendable (insufficient balance, invalid recipient)
  • Transfer has been deleted
  • Transfer is in an invalid state

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

Transfer not found.

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

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/transfers/trsf_test_5xuy4w91xqz7d1w9u0t/mark_as_sent \
-X POST \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
transfer_already_sentTransfer has already been marked as sentNo action needed, transfer is already sent
transfer_not_sendableTransfer cannot be sentCheck transfer sendable status and resolve issues
transfer_deletedTransfer was deletedCannot mark deleted transfers as sent
invalid_transfer_stateTransfer is in an invalid stateCheck current transfer status
insufficient_balanceNot enough funds to send transferWait for charges to clear or reduce amount

๐Ÿ”‘API Credentials

Try it outโ€‹

Required - 1 fields
โ–ผ
Your IP: ...Loading...