The API responds with the price of the order and the number of points you can receive if you subscribe to the Rocket Fuel program.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"boost_production": false,
"shipping_method": "1",
"line_items": [
{
"quantity": 1,
"print_areas": {
"front": "url",
"back": "url"
},
"sku": "UAGHTBRRYEXL"
}
],
"address": {
"country": "US"
},
"coupon_code": "code1"
}
Request Code Samples
curl --location --request POST 'https://api-v2.fastpod.net/v1/orders/estimate-price' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"boost_production": false,
"shipping_method": "1",
"line_items": [
{
"quantity": 1,
"print_areas": {
"front": "url",
"back": "url"
},
"sku": "UAGHTBRRYEXL"
}
],
"address": {
"country": "US"
},
"coupon_code": "code1"
}'
Responses
application/json {
"address": {
"country": "US"
},
"shipping_method": "1",
"boost_production": false,
"line_items": [
{
"sku": "UAGHTBRRYEXL",
"quantity": 1,
"print_areas": {
"front": "url",
"back": "url"
},
"unit_price": 14.8,
"price": 14.8,
"point_earned": 380,
"shipping_price": 4.99
}
],
"item_total": 14.8,
"shipping_total": 4.99,
"surcharge_total": 0,
"order_total": 19.79,
"point_used": 1979,
"point_earned": 0,
"discount": 0.4
}
Modified at 2024-01-03 07:36:12