Complete bank buy trade

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:

ParameterTypeDefaultDescription
sendAmountIntegerRequiredAmount sent from the trader's bank account. This corresponds to the transferIn.sendAmount of the trade.
currencyStringRequiredCurrency 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 codeJSON data
204 No ContentSuccess, empty response.
400 Bad requestError interpreting the request.
500 Server errorError error has occurred parsing the data.