Create prices
Create Single Use

Create a Single Use Price Through the API

Create a Price in NoRamp's dashboard to price your NFT sale and charge buyers credit cards for the selected amount.

If your NFT sale has different prices for each individual NFT sale or you are a marketplace we recommend using the API to create your prices.

Here is an example of how to Create a Price using the NoRamp API.

Backend Code

const data = {
  currency: "usd",
  trigger_id: proccess.env.NORAMP_TRIGGER_ID,
  trigger_data: {
    params_data: [req.query.address],
  },
  amount: 5,
};
 
const response = await fetch(
  `https://api.noramp.io/prices/${process.env.NORAMP_APP_ID}`,
  {
    method: "POST",
    headers: {
      "content-type": "application/json",
      authorization: `Bearer ${process.env.NORAMP_API_KEY}`,
    },
    body: JSON.stringify(data),
  }
);
import os
import json
import requests
 
data = {
    "currency": "usd",
    "trigger_id": os.environ["NORAMP_TRIGGER_ID"],
    "trigger_data": {
        "params_data": [req_query_address],
    },
    "amount": 5,
}
 
headers = {
    "content-type": "application/json",
    "authorization": f"Bearer {os.environ['NORAMP_API_KEY']}",
}
 
url = f"https://api.noramp.io/prices/{os.environ['NORAMP_APP_ID']}"
 
response = requests.post(url, headers=headers, data=json.dumps(data))
;