Funding

Managing your funds is essential in the world of digital finance. In Supesa, you can easily deposit and withdraw funds through minting and burning stablecoins. This page delves deep into the Supesa API endpoints that allow you to handle these transactions programmatically.


POST/network/stablecoins/mint

Mint Stablecoins (Deposit)

Deposit funds into your account by minting stablecoins with this endpoint.

Required Attributes

  • Name
    access_token
    Type
    string
    Description

    Your unique Access Token

  • Name
    user_id
    Type
    string
    Description

    Your unique User Id

  • Name
    fiat_linked_acc_uuid
    Type
    string
    Description

    Linked Fiat account UUID

  • Name
    network_linked_acc_uuid
    Type
    string
    Description

    Network Linked Account UUID (Default: "primary")

  • Name
    amount
    Type
    float
    Description

    Amount to deposit

Request

POST
/network/stablecoins/mint
curl -X POST https://api.supesa.io/network/stablecoins/mint \
  -H "content-type: application/json" \
  -d '{
      "access_token": "YOUR_ACCESS_TOKEN",
      "user_id": "YOUR_USER_ID",
      "fiat_linked_acc_uuid": "YOUR_FIAT_LINKED_ACC_UUID",
      "network_linked_acc_uuid": "NETWORK_LINKED_ACC_UUID",
      "amount": AMOUNT_TO_DEPOSIT
    }'

Response

{
  "code": 201,
  "message": {
    "data": [
      {
        "id": 25,
        "created_at": "2023-11-01T10:36:53.245341+00:00",
        "user_id": "bfcfd1fa-8a74-4727-87ce-fbeee2b536ab",
        "float_op": "deposit",
        "network_op": "mint",
        "fiat_iso": "NGN",
        "fiat_amt": 100,
        "token_symbol": "NGN",
        "token_amt": 100,
        "network_tx_hash": "0x7f9f0a04081b4c252c595a4749136c8ecdd4da0cf98c0b3d40d4e3302a88056f",
        "network_fees_eth": 0.000070138494326988,
        "network_fees_ccy": 54.3228944236286,
        "user_pays_fees": false
      }
    ],
    "count": null
  },
  "ref": "53bf3d8a-eccd-488c-8d6c-c902b0331976"
}

POST/network/stablecoins/burn

Burn Stablecoins (Withdraw)

Withdraw funds from your account by burning stablecoins with this endpoint.

Required Attributes

  • Name
    access_token
    Type
    string
    Description

    Your unique Access Token

  • Name
    user_id
    Type
    string
    Description

    Your unique User Id

  • Name
    fiat_linked_acc_uuid
    Type
    string
    Description

    Linked Fiat account UUID

  • Name
    network_linked_acc_uuid
    Type
    string
    Description

    Network Linked Account UUID (Default: "primary")

  • Name
    amount
    Type
    float
    Description

    Amount to withdraw

Request

POST
/network/stablecoins/burn
curl -X POST https://api.supesa.io/network/stablecoins/burn \
  -H "content-type: application/json" \
  -d '{
      "access_token": "YOUR_ACCESS_TOKEN",
      "user_id": "YOUR_USER_ID",
      "fiat_linked_acc_uuid": "YOUR_FIAT_LINKED_ACC_UUID",
      "network_linked_acc_uuid": "NETWORK_LINKED_ACC_UUID",
      "amount": AMOUNT_TO_WITHDRAW
    }'

Response

{
  "code": 201,
  "message": {
    "data": [
      {
        "id": 26,
        "created_at": "2023-11-01T10:37:38.497197+00:00",
        "user_id": "bfcfd1fa-8a74-4727-87ce-fbeee2b536ab",
        "float_op": "withdrawal",
        "network_op": "burn",
        "fiat_iso": "NGN",
        "fiat_amt": 100,
        "token_symbol": "NGN",
        "token_amt": 100,
        "network_tx_hash": "0x3acfedf2caf52d3273325b5062e7f56f8f396c3a62094e5b7119a73d3ad032eb",
        "network_fees_eth": 0.000076985779931673,
        "network_fees_ccy": 59.62617868373297,
        "user_pays_fees": false
      }
    ],
    "count": null
  },
  "ref": "39238359-b376-460d-9ee3-673a9de3251d"
}

Was this page helpful?