api_operations_buy_operation_create
POST /api/operations/buy-operation/
api_operations_buy_operation_create
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Request Body required
- user_wallet string required
Possible values:
<= 255 characters
- swap_to string required
- amount decimal required
Possible values: Value must match regular expression
^\d{0,6}(?:\.\d{0,2})?$
- currency object
- api_version string
customer object required
email email requiredPossible values:
<= 254 characters
first_name string requiredPossible values:
<= 64 characters
last_name string requiredPossible values:
<= 64 characters
postal_code string requiredPossible values:
<= 64 characters
Request Body required
- user_wallet string required
Possible values:
<= 255 characters
- swap_to string required
- amount decimal required
Possible values: Value must match regular expression
^\d{0,6}(?:\.\d{0,2})?$
- currency object
- api_version string
customer object required
email email requiredPossible values:
<= 254 characters
first_name string requiredPossible values:
<= 64 characters
last_name string requiredPossible values:
<= 64 characters
postal_code string requiredPossible values:
<= 64 characters
Request Body required
- user_wallet string required
Possible values:
<= 255 characters
- swap_to string required
- amount decimal required
Possible values: Value must match regular expression
^\d{0,6}(?:\.\d{0,2})?$
- currency object
- api_version string
customer object required
email email requiredPossible values:
<= 254 characters
first_name string requiredPossible values:
<= 64 characters
last_name string requiredPossible values:
<= 64 characters
postal_code string requiredPossible values:
<= 64 characters
- 201
- application/json
- Schema
- Example (from schema)
Schema
- uuid string required
- user_wallet string required
Possible values:
<= 255 characters
- swap_to string required
- final_price decimal required
Possible values: Value must match regular expression
^\d{0,18}(?:\.\d{0,2})?$
Price with discounts applied (the final price paid by the user)
- final_price_currency string required
- currency object
customer object required
email email requiredPossible values:
<= 254 characters
first_name string requiredPossible values:
<= 64 characters
last_name string requiredPossible values:
<= 64 characters
postal_code string requiredPossible values:
<= 64 characters
- created_at date-time required
{
"uuid": "string",
"user_wallet": "string",
"swap_to": "string",
"final_price": "string",
"final_price_currency": "string",
"customer": {
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"postal_code": "string"
},
"created_at": "2023-04-20T10:03:58.157Z"
}