Create Intent

Returns a hash that will be appended to the URL to redirect to the payment link.

Note:

  • This API will be applicable when onramp merchant widget is directly integrated.

  • coinId & chainId can be fetched using the getNetworkList API.

  • The list of supported lang parameters includes:

    • en: English

    • tr: Türkçe

    • vi: Tiếng Việt

    • es: Español

    • pt: Portuguese

    • fil: Filipino

    • th: Thai

    • sw: Swahili

    • id: Indonesian

Create Intent

POST https://integration.coinmena.com/onramp-merchants/widget/createIntent

Request Body

NameTypeDescription

coinId*

String

coinId from networkList API

chainId*

String

chainId from networkList API

coinAmount*

String

The cryptocurrency amount to be used for the transaction. Ex: "2.00".

redirectURL

String

URL to which the user will be redirected after the transaction is completed.

assetDescription

String

A description of the asset involved in the transaction.

assetImage

String

URL pointing to an image of the asset involved in the transaction

lang

String

The language code for the transaction interface. Ex: "en"

{
  "status": 1,
  "data": {
    "hash": ""
  },
  "code": 200
}

Last updated