Create Exchange

Request:

POST https://api.moneypipe.com/sandbox/v1/exchange

Request headers:

Name Value
Authorization Bearer {company_token}
Content-Type application/json

Request body:

Body
{
	"sell_currency": "BTC",
	"buy_currency": "ETH",
	"sell_amount": "0.00024865",
	"buy_amount": "0.01"
}

Body details:

Parameter Type Description

sell_currency *

string

Сurrency for sale

buy_currency *

string

Сurrency to buy

sell_amount **

string

Amount for sale

buy_amount **

string

Amount to buy

* - required

** - one of the two fields is required

Response:

201

Body
{
	"data": {
        "id": "0abbdb1117499a4e6cbd",
        "application_id": null,
        "application_name": null,
        "category": "exchange",
        "order_id": null,
        "amount": "0.00024865",
        "fee": "0.00010000",
        "amount_paid": "0.01",
        "rate": "47.14147063",
        "currency": "BTC",
        "currency_paid": "ETH",
        "status": "processed",
        "address": null,
        "created_at": "2020-05-04T14:01:25.000000Z",
        "updated_at": "2020-05-04T14:01:25.000000Z",
        "payment_url": null,
        "redirect_url": null,
        "transactions": []
    }
}

Operation details:

Parameter Type Description
id string

Operation id

application_id string

Application id

application_name string Application name
category string Operation category (application, manual)
order_id string

Sales order number

amount string

Operation amount

fee string

Fee of the operation amount

amount_paid string

Paid operation amount

rate string

Exchange rate at the moment of payment

currency string

Currency in which the operation was issued

currency_paid string

Currency in which the operation will be paid

status string

Operation status

address string

Operation address

created_at string

Operation creation date

updated_at string

Operation change date

payment_url string

Link to the payment page

redirect_url string

Page link, to which there will be a redirect from the payment page

transactions array

Operation transaction List