api_operations_create_create
POST /api/operations/create/
Esta clase extiende la funcionalidad de la vista genérica "CreateAPIView" para permitir especificar un serializador que enviar en la respuesta. Esto es util en casos en los qu e no quieras que todos los datos que almacena el serializador sea devuelto al usuario.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Request Body required
- user_wallet string required
Possible values:
<= 255 characters
- swap_from string required
- swap_to string required
- status object
operation_log object required
Request Body required
- user_wallet string required
Possible values:
<= 255 characters
- swap_from string required
- swap_to string required
- status object
operation_log object required
Request Body required
- user_wallet string required
Possible values:
<= 255 characters
- swap_from string required
- swap_to string required
- status object
operation_log object required
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
- opcode Operation Code required
Possible values: Value must match regular expression
^[-a-zA-Z0-9_]+$
- user_wallet string required
Possible values:
<= 255 characters
- swap_from string required
- swap_to string required
- status object
operation_log object required
- kubepay_wallet string required
Where user must send funds
{
"opcode": "string",
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string",
"status": "created",
"operation_log": {},
"kubepay_wallet": "string"
}
Authorization
name: jwtAuthtype: httpscheme: bearerbearerFormat: JWT
Request
Request
curl / cURL
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
python / requests
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
go / native
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
nodejs / axios
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
php / cURL
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
java / OkHttp
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://docs.kubepay.io/api/operations/create/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user_wallet": "string",
"swap_from": "string",
"swap_to": "string"
}'