Create NMKR Pay Link for specific Token sales

Create a Payment Link for specific Token sales via NMKR Pay

With this endpoint you have the flexibility to add your own custom Queue or Whitelisting system in front of the purchasing process of specific tokens via NMKR Pay.

To create a specific payment transaction that allows your customer to buy a specific token via NMKR Pay, we call the API endpoint:

/v2/CreatePaymentTransaction

Curl request

As always with the NMKR API, the API Key / Authentication Token is given in the header: Further you specify the "projectUid" (not the Project ID) and also the "nftUid" (not the token ID) as well as the token count.

curl --request POST \
  --url https://studio-api.nmkr.io/v2/CreatePaymentTransaction \
  --header 'Content-Type: application/json' \
  --header 'authorization: <your API Key>' \
  --data '{
  "projectUid": "9e2d000a-ed53-4db4-819b-25cdab41fd47",
  "paymentTransactionType": "nmkr_pay_specific",
  "customProperties": {},
  "paymentgatewayParameters": {
        "mintnfts":{
             "reserveNfts": [
          { 
             "nftUid": "5c810e70-dc0e-40ff-98d0-67742f95918b",
             "tokencount": 1
          }
      ]
        }
  },
  "customerIpAddress": "1.1.1.1"
}'

Response

The response given by NMKR Studio will now identify the project and token by the UID, the price of the token, that was either specified in the token itself or the pricelist. The field "nmkrPayUrl" now contains a specific payment link to buy the Token via NMKR Pay with all its features.

{
    "paymentTransactionUid": "T56b1bab0daf844438321c7f1ff3e8f6f",
    "projectUid": "9e2d000a-ed53-4db4-819b-25cdab41fd47",
    "paymentTransactionType": "nmkr_pay_specific",
    "customProperties": {},
    "state": "prepared",
    "transactionParameters": null,
    "paymentTransactionCreated": "2022-12-01T14:57:47.9705004+00:00",
    "paymentgatewayResults": {
        "priceInLovelace": 30000000,
        "fee": null,
        "minUtxo": null,
        "mintNfts": {
            "countNfts": 1,
            "reserveNfts": [
                {
                    "nftUid": "5c810e70-dc0e-40ff-98d0-67742f95918b",
                    "tokencount": 1,
                    "tokennameHex": null,
                    "policyId": null,
                    "nftId": 286484,
                    "lovelace": null
                }
            ]
        },
        "additionalPriceInTokens": []
    },
    "paymentTransactionSubStateResult": null,
    "auctionResults": null,
    "directSaleResults": null,
    "decentralParameters": null,
    "mintAndSendResults": null,
    "cbor": null,
    "signedCbor": null,
    "expires": null,
    "signGuid": null,
    "fee": null,
    "txHash": null,
    "nmkrPayUrl": "https://pay.nmkr.io/?mtid=T56b1bab0daf844438321c7f1ff3e8f6f",
    "referencedTransaction": null,
    "customeripaddress": "1.1.1.1",
    "referer": null
}