root_create
POST /payments/
Creates payment intent
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Request Body
- amount_fiat decimal
Possible values: Value must match regular expression
^\d{0,17}(?:\.\d{0,2})?$
- amount_crypto decimal
Possible values: Value must match regular expression
^\d{0,35}(?:\.\d{0,15})?$
- token string
- currency CurrencyEnum
Possible values: [
EUR
,USD
] metadata object
Request Body
- amount_fiat decimal
Possible values: Value must match regular expression
^\d{0,17}(?:\.\d{0,2})?$
- amount_crypto decimal
Possible values: Value must match regular expression
^\d{0,35}(?:\.\d{0,15})?$
- token string
- currency CurrencyEnum
Possible values: [
EUR
,USD
] metadata object
Request Body
- amount_fiat decimal
Possible values: Value must match regular expression
^\d{0,17}(?:\.\d{0,2})?$
- amount_crypto decimal
Possible values: Value must match regular expression
^\d{0,35}(?:\.\d{0,15})?$
- token string
- currency CurrencyEnum
Possible values: [
EUR
,USD
] metadata object
- 201
- application/json
- Schema
- Example (from schema)
Schema
- amount_fiat decimal
Possible values: Value must match regular expression
^\d{0,17}(?:\.\d{0,2})?$
- amount_crypto decimal
Possible values: Value must match regular expression
^\d{0,35}(?:\.\d{0,15})?$
- token string
- currency CurrencyEnum
Possible values: [
EUR
,USD
] metadata object
{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}
Authorization
name: jwtAuthtype: httpscheme: bearerbearerFormat: JWT
Request
Request
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'
curl -L -X POST 'https://docs.kubepay.io/payments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"amount_fiat": "string",
"amount_crypto": "string",
"token": "string",
"currency": "EUR",
"metadata": {}
}'