POST
/
partner-fees
Create a partner fee
curl --request POST \
  --url https://api.lumx.io/partner-fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Fee 7",
  "walletAddress": "0x76b74209f3542d172ca1575b5b18064594360299",
  "fees": {
    "onRamp": {
      "rate": "1",
      "flatAmount": "1"
    },
    "offRamp": {
      "rate": "10",
      "flatAmount": "1"
    }
  },
  "isDefault": false
}'
{
  "id": "123e4567-e89b-12d3-a456-426614174004",
  "name": "Fee name",
  "walletAddress": "0x76b74209f3542d172ca1575b5b18064594360299",
  "fees": {
    "onRamp": {
      "rate": "10",
      "flatAmount": "1"
    },
    "offRamp": {
      "rate": "10",
      "flatAmount": "1"
    }
  },
  "isDefault": false,
  "createdAt": "2021-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header on the format Bearer <API_KEY>.

Body

application/json
name
string
required

Partner fee's name.

Example:

"Fee 7"

walletAddress
string
required

Partner's wallet address where fees will be collected.

Example:

"0x76b74209f3542d172ca1575b5b18064594360299"

fees
object
required

Fee values for each transaction type.

isDefault
boolean

Whether this partner fee is the default one.

Example:

false

Response

201 - application/json

Partner fee successfully created.

id
string<uuid>

Partner fee's unique identifier.

Example:

"123e4567-e89b-12d3-a456-426614174004"

name
string

Partner fee's name.

Example:

"Fee name"

walletAddress
string

Partner's wallet address where fees will be collected.

Example:

"0x76b74209f3542d172ca1575b5b18064594360299"

fees
object

Fee structure.

isDefault
boolean

Whether this partner fee is the default one.

Example:

false

createdAt
string<date-time>

Creation date and time (UTC).

Example:

"2021-01-01T00:00:00Z"