NoRamp Docs
Search
K

Prices

ENDPOINTS
GET /prices/:app_id
POST /prices/:app_id
GET /prices/:app_id/:price_id
DELETE /prices/:app_id/:price_id
CREATE PRICE
Create a price ticket to be used along the Credit Card Widget. The price is one-time if type is type=dynamic, and can only be used once per payment. You must create a new price for every new payment if type=dynamic. Use type=static otherwise.
Simulate payments on testnet using the card 4242 4242 4242 4242 with any security code and any future date.
Body Params
amount number min 5
Amount in the specified currency.
currency string maxLength 5
Three-letter ISO currency code, in lowercase. Must be a supported currency. Default is usd.
currency_conversion CreateCurrencyConversion
trigger_id string
Trigger to execute if the payment is successfully (optional).
trigger_data TriggerData
You must specify the trigger_data.params_data if the Trigger requires parameters.
type static dynamic
static One-time use
dynamic Multiple uses
kyc_id string
KYC ID from Seller, required only for Marketplaces.
metadata PriceMetadata
Attach any key-value data to the price object like buyer email, etc.
name string maxLength 256
POST /prices/:app_id
cURL
Node
Python
1 curl -X POST https://api.noramp.io/prices/{app_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json' \
4 -d '{"currency":"usd","trigger_id":"{trigger_id}","amount":50}'
------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "price_5CCdi8LfYX5KUT5gKFcBIx",
"amount": 50,
"currency": "usd",
"currency_conversion": null,
"type": "dynamic",
"kyc_id": null,
"metadata": null,
"deleted": false,
"expired": false,
"name": null,
"trigger_id": "tri_0qFj6trzhHQ2i7MuDQiXhB",
"trigger_intent_id": "ti_2MW6jMYASaT1A2vn3yNhfE",
"trigger_params_data_input": null,
"price_item": {
"currency": "usd",
"provider_processing_fee_percent": 2.9,
"provider_min_amount_fee": 0.25,
"app_fee": 0,
"app_type": "individual",
"platform_fee": 3.9,
"amount": 50,
"amount_total": 51.75,
"amount_platform": 1.95,
"amount_seller": 0,
"amount_app": 48.05,
"amount_transaction_fee": 0
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-08-29T14:55:11.367Z",
"updated_at": "2022-08-29T14:55:11.367Z",
"views": 0
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Response Object:
id string
app App
type static dynamic
kyc_id string
trigger_id string
trigger_intent_id string
trigger_params_data_input TriggerParam
currency string
currency_conversion CreateCurrencyConversion
amount number
metadata PriceMetadata
price_item PriceItem
name string
deleted boolean
expired boolean
views number
created_at string
updated_at string
trigger Trigger
1 const data = {
2 "currency": "usd",
3 "trigger_id": "{trigger_id}",
4 "amount": 50
5 };
6
7 const response = await fetch('https://api.noramp.io/prices/{app_id}', {
8 method: "POST",
9 headers: {
10 'content-type': 'application/json',
11 'authorization': 'Bearer {API_KEY}',
12 },
13 body: JSON.stringify(data)
14 })
15
16 console.log('response', await response.json());
---------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "price_5CCdi8LfYX5KUT5gKFcBIx",
"amount": 50,
"currency": "usd",
"currency_conversion": null,
"type": "dynamic",
"kyc_id": null,
"metadata": null,
"deleted": false,
"expired": false,
"name": null,
"trigger_id": "tri_0qFj6trzhHQ2i7MuDQiXhB",
"trigger_intent_id": "ti_2MW6jMYASaT1A2vn3yNhfE",
"trigger_params_data_input": null,
"price_item": {
"currency": "usd",
"provider_processing_fee_percent": 2.9,
"provider_min_amount_fee": 0.25,
"app_fee": 0,
"app_type": "individual",
"platform_fee": 3.9,
"amount": 50,
"amount_total": 51.75,
"amount_platform": 1.95,
"amount_seller": 0,
"amount_app": 48.05,
"amount_transaction_fee": 0
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-08-29T14:55:11.367Z",
"updated_at": "2022-08-29T14:55:11.367Z",
"views": 0
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Response Object:
id string
app App
type static dynamic
kyc_id string
trigger_id string
trigger_intent_id string
trigger_params_data_input TriggerParam
currency string
currency_conversion CreateCurrencyConversion
amount number
metadata PriceMetadata
price_item PriceItem
name string
deleted boolean
expired boolean
views number
created_at string
updated_at string
trigger Trigger
1 import requests
2 import json
3
4 url = "https://api.noramp.io/prices/{app_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9}
10
11 payload = json.dumps({
12 "currency": "usd",
13 "trigger_id": "{trigger_id}",
14 "amount": 50
15 })
16
17 response = requests.request("POST", url, headers=headers, data=payload)
18
19 print(response.text)
----------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "price_5CCdi8LfYX5KUT5gKFcBIx",
"amount": 50,
"currency": "usd",
"currency_conversion": null,
"type": "dynamic",
"kyc_id": null,
"metadata": null,
"deleted": false,
"expired": false,
"name": null,
"trigger_id": "tri_0qFj6trzhHQ2i7MuDQiXhB",
"trigger_intent_id": "ti_2MW6jMYASaT1A2vn3yNhfE",
"trigger_params_data_input": null,
"price_item": {
"currency": "usd",
"provider_processing_fee_percent": 2.9,
"provider_min_amount_fee": 0.25,
"app_fee": 0,
"app_type": "individual",
"platform_fee": 3.9,
"amount": 50,
"amount_total": 51.75,
"amount_platform": 1.95,
"amount_seller": 0,
"amount_app": 48.05,
"amount_transaction_fee": 0
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-08-29T14:55:11.367Z",
"updated_at": "2022-08-29T14:55:11.367Z",
"views": 0
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Response Object:
id string
app App
type static dynamic
kyc_id string
trigger_id string
trigger_intent_id string
trigger_params_data_input TriggerParam
currency string
currency_conversion CreateCurrencyConversion
amount number
metadata PriceMetadata
price_item PriceItem
name string
deleted boolean
expired boolean
views number
created_at string
updated_at string
trigger Trigger
GET /prices/:app_id/:price_id
cURL
Node
Python
1 curl -X GET https://api.noramp.io/prices/{app_id}/{price_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json'
--------------------------------------------------------
JSON Response:
{
"data": {
"id": "price_5CCdi8LfYX5KUT5gKFcBIx",
"amount": 50,
"currency": "usd",
"currency_conversion": null,
"type": "dynamic",
"kyc_id": null,
"metadata": null,
"deleted": false,
"expired": false,
"name": null,
"trigger_id": "tri_0qFj6trzhHQ2i7MuDQiXhB",
"trigger_intent_id": "ti_2MW6jMYASaT1A2vn3yNhfE",
"trigger_params_data_input": null,
"price_item": {
"currency": "usd",
"provider_processing_fee_percent": 2.9,
"provider_min_amount_fee": 0.25,
"app_fee": 0,
"app_type": "individual",
"platform_fee": 3.9,
"amount": 50,
"amount_total": 51.75,
"amount_platform": 1.95,
"amount_seller": 0,
"amount_app": 48.05,
"amount_transaction_fee": 0
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-08-29T14:55:11.367Z",
"updated_at": "2022-08-29T14:55:11.367Z",
"views": 0
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Response Object:
id string
app App
type static dynamic
kyc_id string
trigger_id string
trigger_intent_id string
trigger_params_data_input TriggerParam
currency string
currency_conversion CreateCurrencyConversion
amount number
metadata PriceMetadata
price_item PriceItem
name string
deleted boolean
expired boolean
views number
created_at string
updated_at string
trigger Trigger
1 const response = await fetch('https://api.noramp.io/prices/{app_id}/{price_id}', {
2 method: "GET",
3 headers: {
4 'content-type': 'application/json',
5 'authorization': 'Bearer {API_KEY}',
6 },
7 })
8
9 console.log('response', await response.json());
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "price_5CCdi8LfYX5KUT5gKFcBIx",
"amount": 50,
"currency": "usd",
"currency_conversion": null,
"type": "dynamic",
"kyc_id": null,
"metadata": null,
"deleted": false,
"expired": false,
"name": null,
"trigger_id": "tri_0qFj6trzhHQ2i7MuDQiXhB",
"trigger_intent_id": "ti_2MW6jMYASaT1A2vn3yNhfE",
"trigger_params_data_input": null,
"price_item": {
"currency": "usd",
"provider_processing_fee_percent": 2.9,
"provider_min_amount_fee": 0.25,
"app_fee": 0,
"app_type": "individual",
"platform_fee": 3.9,
"amount": 50,
"amount_total": 51.75,
"amount_platform": 1.95,
"amount_seller": 0,
"amount_app": 48.05,
"amount_transaction_fee": 0
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-08-29T14:55:11.367Z",
"updated_at": "2022-08-29T14:55:11.367Z",
"views": 0
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Response Object:
id string
app App
type static dynamic
kyc_id string
trigger_id string
trigger_intent_id string
trigger_params_data_input TriggerParam
currency string
currency_conversion CreateCurrencyConversion
amount number
metadata PriceMetadata
price_item PriceItem
name string
deleted boolean
expired boolean
views number
created_at string
updated_at string
trigger Trigger
1 import requests
2 import json
3
4 url = "https://api.noramp.io/prices/{app_id}/{price_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11
12 response = requests.request("GET", url, headers=headers, data=payload)
13
14 print(response.text)
--------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "price_5CCdi8LfYX5KUT5gKFcBIx",
"amount": 50,
"currency": "usd",
"currency_conversion": null,
"type": "dynamic",
"kyc_id": null,
"metadata": null,
"deleted": false,
"expired": false,
"name": null,
"trigger_id": "tri_0qFj6trzhHQ2i7MuDQiXhB",
"trigger_intent_id": "ti_2MW6jMYASaT1A2vn3yNhfE",
"trigger_params_data_input": null,
"price_item": {
"currency": "usd",
"provider_processing_fee_percent": 2.9,
"provider_min_amount_fee": 0.25,
"app_fee": 0,
"app_type": "individual",
"platform_fee": 3.9,
"amount": 50,
"amount_total": 51.75,
"amount_platform": 1.95,
"amount_seller": 0,
"amount_app": 48.05,
"amount_transaction_fee": 0
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-08-29T14:55:11.367Z",
"updated_at": "2022-08-29T14:55:11.367Z",
"views": 0
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Response Object:
id string
app App
type static dynamic
kyc_id string
trigger_id string
trigger_intent_id string
trigger_params_data_input TriggerParam
currency string
currency_conversion CreateCurrencyConversion
amount number
metadata PriceMetadata
price_item PriceItem
name string
deleted boolean
expired boolean
views number
created_at string
updated_at string
trigger Trigger
DELETE /prices/:app_id/:price_id
cURL
Node
Python
1 const response = await fetch('https://api.noramp.io/prices/{app_id}/{price_id}', {
method: "DELETE",
headers: {
'content-type': 'application/json',
'authorization': 'Bearer {API_KEY}',
},
})
console.log('response', await response.json());const response = await fetch('https://api.noramp.io/prices/{app_id}/{price_id}', {
method: "DELETE",
headers: {
'content-type': 'application/json',
'authorization': 'Bearer {API_KEY}',
},
})
console.log('response', await response.json());curl -X DELETE https://api.noramp.io/prices/{app_id}/{price_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json'
1 const response = await fetch('https://api.noramp.io/prices/{app_id}/{price_id}', {
2 method: "DELETE",
3 headers: {
4 'content-type': 'application/json',
5 'authorization': 'Bearer {API_KEY}',
6 },
7 })
8
9 console.log('response', await response.json());
1 import requests
2 import json
3
4 url = "https://api.noramp.io/prices/{app_id}/{price_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11
12 response = requests.request("DELETE", url, headers=headers, data=payload)
13
14 print(response.text)