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

Mark transfer as paid

Mark a transfer as paid. This endpoint is used for manual or offline transfers where the payment was completed outside of the normal automated flow. Once marked as paid, the transfer status will be updated and the paid 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 paid successfully. Returns the updated transfer object with paid: true.

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

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Transfer already marked as paid
  • Transfer has not been sent yet
  • 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_paid \
-X POST \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
transfer_already_paidTransfer has already been marked as paidNo action needed, transfer is already paid
transfer_not_sentTransfer has not been sent yetMark transfer as sent first or wait for it to be sent
transfer_deletedTransfer was deletedCannot mark deleted transfers as paid
invalid_transfer_stateTransfer is in an invalid stateCheck current transfer status

๐Ÿ”‘API Credentials

Try it outโ€‹

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