CreateToken
POST/v1/mor/token/create
Create a payment token
Request
- application/json
Body
required
Array [
]
user
object
User represents the user information
non-empty
User ID information, required
User email information
User region_code
whether the user is authenticated
settings
object
Settings represents payment settings
non-empty
Project ID, required
non-empty
External transaction ID in game system
Interface language eg. fr-FR
Payment currency, three-letter currency code (ISO 4217)
Payment region_code, two-letter region_code (ISO 3166-1 alpha-2)
Value must match regular expression ^https://[^\s/$.?#].[^\s]*$
purchase
object
Purchase represents the purchase information
checkout
object
>= 3 characters
Currency code, three-letter currency code (ISO 4217), required field
Value must match regular expression ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$
Payment amount, required field
description
object
items
object[]
List of items in the purchase
non-empty
item unique ID, required field
Item name
Quantity of items
price
object
Current item price
VAT included
logo url
custom_parameters
object
Additional custom parameters
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
Payment token
Url to redirect user to payment
{
"token": "string",
"redirect_url": "string"
}
Error response structure
- application/json
- Response
- Example
Response
Array [
]
Array [
]
details
object[]
The type of the serialized message.
causes
object[]
{
"name": "string",
"message": "string",
"details": [
{
"@type": "string"
}
],
"debug_id": "string",
"causes": [
{
"cause": "string",
"solution": "string"
}
]
}