このエンドポイントを使用すると、NMKR Payを介したランダムトークンの購入プロセスの前に、独自のカスタムキューまたはホワイトリストシステムを柔軟に追加できます。
/v2/CreatePaymentTransaction
curl --location --request POST 'https://studio-api.nmkr.io/v2/CreatePaymentTransaction' \
--header 'authorization: <<api_key>>' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectUid": "<<project_uid>>",
"paymentTransactionType": "nmkr_pay_random",
"customProperties": {},
"paymentgatewayParameters": {
"mintnfts":{
"countNfts": 1
}
},
"customerIpAddress": "0.0.0.0"
}'
{
"paymentTransactionUid": "Tb38ed487c9274cd1b34266b40d97ea08",
"projectUid": "05f6694c-a399-45fd-8dc4-d9fc9a7343b0",
"paymentTransactionType": "nmkr_pay_random",
"customProperties": {},
"state": "prepared",
"transactionParameters": null,
"paymentTransactionCreated": "2022-12-01T00:49:18.158886+00:00",
"paymentgatewayResults": {
"priceInLovelace": null,
"fee": null,
"minUtxo": null,
"mintNfts": {
"countNfts": 1,
"reserveNfts": []
},
"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=Tb38ed487c9274cd1b34266b40d97ea08",
"referencedTransaction": null,
"customeripaddress": "0.0.0.0",
"referer": null
}