POST https://app-api.sandbox.coinify.com/trades/<id>/test/bank-transfer
This endpoint creates a fake bank transfer for the trade with ID <id>
and processes the trade as if a real bank transfer had occurred.
Example request:
{
"sendAmount": 200.00, // Amount of the fake transaction
"currency": "EUR" // Currency of the amount
}
Request object
The parameters in the request object are as follows:
Parameter | Type | Default | Description |
---|---|---|---|
sendAmount | Integer | Required | Amount sent from the trader's bank account. This corresponds to the transferIn.sendAmount of the trade. |
currency | String | Required | Currency of the amount. |
If the referenced trade is not in the awaiting_transfer_in
state or the transferIn.medium
is not bank (i.e. it's not a bank buy trade), the endpoint will return a 400 Bad Request
error.
Response object
This endpoint returns 204 No Content
if the fake bank transfer creation succeeded.
HTTP Response code | JSON data |
---|---|
204 No Content | Success, empty response. |
400 Bad request | Error interpreting the request. |
500 Server error | Error error has occurred parsing the data. |