PayWidePayWide
  • Introduction
  • General
    • PayWide Website
    • Authentication
    • Supported Network
  • Merchant API
    • Top-up
    • Top-up with Wallet
    • Card
    • API Model

Top-up

Get a card upon completing a top-up. Before proceeding with a top-up, please ensure you are aware of the minimum top-up amount and the types of currencies we support. The following API will help you obtain the necessary information.

Top-up Information

Retrieve currently available product information and top-up settings. If you wish to top up cards using pre-deposited funds, please refer to the topup with wallet to enable the feature.

Request

  • Path: /merchant/info
  • Method: GET

Response

  • 200

    NameTypeRequiredDescription
    cardProducts[Card Product]vAn array of card product
    supportedCurrencies[Supported Currency]vSupported chain info including network type and currency symbol
    maxCardValidYearIntegervSetting of the maximum validity period of the card. Please note that the actual card validity period will vary depending on the card type.
    maxCardBalanceStringvCard maximum balance.
    minCreateTopupStringvMinimum top-up amount when creating a new card.
    minTopupStringvMinimum amount to top-up an existing card.
    cardCreationFeeStringvThe card creation fee will be deducted when creating the card.
    topupFeeRateStringvTop-up rate.
    minCreateTopupFromWalletStringMinimum top-up amount when creating a new card from wallet.
    minTopupFromWalletStringMinimum amount to top-up an existing card from wallet.
    cardCreationFeeFromWalletStringThe fee for creating a card through the wallet.
    topupFeeRateFromWalletStringTop-up rate via wallet.
  • 400

    NameTypeRequiredDescription
    messageStringvError message

Create Top-up Address

Create a new top-up address by a specified currency. ​Please note that the top-up address can be reused, and creating blank addresses repeatedly will incur additional charges. Only the supported currency in Top-up Information can be used for calling this API.

Request

  • Path: /merchant/topup/address/{currency}

  • Method: POST

  • Path Parameters

    NameTypeRequiredDescription
    currencyStringvSpecify a supported currency in Top-up Information.

Response

  • 200

    NameTypeRequiredDescription
    addressStringvCryptocurrency address
    currencyStringvCorresponding currency
    createdAtStringvCreation timestamp
  • 400

    NameTypeRequiredDescription
    messageStringvError message

Query Top-up Address

Retrieve top-up addresses by currency.

Request

  • Path: /merchant/topup/address/{currency}

  • Method: GET

  • Path Parameters

    NameTypeRequiredDescription
    currencyStringvSpecify a supported currency in Top-up Information.

Response

  • 200

    NameTypeRequiredDescription
    items[Top-up Address]vAn array of top-up address
    startIntegervStart position of the query
    countIntegervQuantity of items
    totalIntegervQuantity of queries
  • 400

    NameTypeRequiredDescription
    messageStringvError message

Top-up Request

Before submitting a top-up transaction, please ensure that the network, currency, and top-up address are correct, and the top-up amount is greater than or equal to the minimum top-up limit.
Once cryptocurrency transaction is on-chain, you can use this API to submit a top-up request. If the cardId parameter is not provided in request body, a new card will be created.

  • Card creation and top-up will only be processed after the transaction is confirmed on-chain and reaches the required number of confirmations.
  • Please note that there will be a slight delay in card creation and will not be generated immediately. Please use the query function to find the associated card information.

Request

  • Path: /merchant/card/topup

  • Method: POST

  • Request Body

    NameTypeRequiredDescription
    amountStringvTransaction amount in base unit
    currencyStringvSpecified currency
    addressStringvPayee address
    hashStringvOn-chain transaction hash
    cardIdStringSpecify an existing card. If cardId is not specified, a new card will be created.
    productIdStringSpecify the product to be created. If no productId is included in the request, the default product will be used.

Response

  • 200

    NameTypeRequiredDescription
    idStringvTop-up ID
    createdAtStringvCreation timestamp
    amountStringvTransaction amount in base unit
    currencyStringvTop-up currency
    addressStringvPayee address
    hashStringvOn-chain transaction hash
    cardIdstringThe card ID associated with the request, which can be queried after the card is created.
  • 400

    NameTypeRequiredDescription
    messageStringvError message

Get Top-up Request

Obtain a single request history by a specified top-up ID.

Request

  • Path: /merchant/card/topup/{topupId}

  • Method: GET

  • Path Parameters

    NameTypeRequiredDescription
    topupIdStringv

Response

  • 200

    NameTypeRequiredDescription
    idStringvTop-up ID
    createdAtStringvCreation timestamp
    amountStringvTransaction amount in base unit
    currencyStringvTop-up currency
    addressStringPayee address. If using wallet top-up, there will be no address or hash information.
    hashStringOn-chain transaction hash
    cardIdstringThe card associated with the request.
    productIdStringThe product associated with the request.
  • 400

    NameTypeRequiredDescription
    messageStringvError message

Query Top-up Requests

Get historical top-up requests

Request

  • Path: /merchant/card/topup{?skip,limit}

  • Method: GET

  • Query Strings

    NameTypeRequiredDescription
    skipStringQuantity to skip default: 0
    limitStringQuantity to query default: 25

Response

  • 200

    NameTypeRequiredDescription
    items[Topup]vArray of topup
    startIntegervStart position of the query
    countIntegervQuantity of items
    totalIntegervQuantity of queries
  • 400

    NameTypeRequiredDescription
    messageStringvError message
Prev
General