Swap Fiat to Crypto
https://cms.inr-exchange.rare-able.com/api/user/swap_c2f
GET
This endpoint allows an authenticated user to perform a swap transaction from a fiat currency to a cryptocurrency. The user must provide the source currency, target currency, amount to be swapped, and the initial exchange rate. Upon success, the API returns detailed information about the executed swap transaction, including amounts, currencies, exchange rates, fees, and status.
BODY PARAMS
from
string
required
to
string
required
value
string
required
initial_exchange_rate
string
required
HEADERS
Accept "string"
application/json
x-api-key (Secret Key) "string"
To generate please use
Get Access Token
X-Merchant-ID "string"
To generate please use
Get Merchant ID
X-Api-Signature "string"
X-Api-Timestamp "Timestamp"
RESPONSES
success "boolean"
message "string"
code "integer"
data "object"
swap_transaction "object"
id "integer"
unique_id "string"
user_id "integer"
order_id "string"
from_amount "string"
from_currency "string"
from_wallet_id "integer"
to_amount "string"
to_currency "string"
to_wallet_id "integer"
initial_exchange_rate "string"
exchange_rate "string"
adjusted_exchange_rate "string"
service_charges_apply "integer"
commission_apply "integer"
range_calculations_apply "integer"
commission "string"
commission_rate "string"
custom_commission "string"
custom_commission_rate "string"
exchange_rates "string|null"
ip_address "string"
status "string"
cancel_reason "string|null"
created_at "string"
updated_at "string"
from_amount_formatted "string"
to_amount_formatted "string"
status_formatted "string"
adjusted_exchange_rate_formatted "string"
created_at_formatted "string"
updated_at_formatted "string"
service_fee "string"
success "boolean"
message "string"
code "integer"
data "object"