Transfer funds between two merchants
/api/v1/transfer/internalMoves amount from the source merchant's balance to the destination merchant's balance. Both merchants must be enabled for internal transfers and be in the same country.
The transfer is processed asynchronously: the response only confirms it was accepted. Datman then sends a transfer succeeded or transfer failed webhook to webhook_url.
Endpoint destination URL
https://sandbox-payments.datmanpay.com/rest/api/v1/transfer/internalApiTokenAuthapi_token<token>API token issued by Datman.
Request Parameters
application/json- body
source_merchant_id*stringThe merchant the funds come from, as a string of digits.
^[0-9]+$destination_merchant_id*stringThe merchant the funds go to, as a string of digits.
^[0-9]+$amount*integerThe amount in minor units (e.g. 350 is £3.50).
1 <= valuetransfer_category_code*integerThe category of the transfer, as agreed with Datman.
1 <= valuedescription*stringreference*stringYour reference for the transfer. It is returned in the webhook.
webhook_url*stringWhere Datman sends the transfer result. Use HTTPS.
urilength <= 2048order_id?|The order the transfer relates to, if any.
Response parameters & Errors
The transfer was accepted and is being processed.
application/json- response
request_id*stringDatman's id for the transfer. It is returned in the webhook.
reference*stringstatus*string
