POST
https://api.subscriptiongenius.com/2/orders/calculate
Paramater |
Description |
Required |
Default |
Data Type |
line_items.bundle_id |
|
No |
|
Int |
line_items.price |
|
No |
|
Double |
line_items.product_id |
|
No |
|
Int |
mailing_address.address_line_1 |
|
No |
|
String |
mailing_address.city |
|
No |
|
String |
mailing_address.country |
|
No |
|
String |
mailing_address.postal_code |
|
No |
|
String |
mailing_address.state |
|
No |
|
String |
mailing_address_id |
|
No |
|
Int |
Paramater |
Description |
Data Type |
grand_total |
|
Double |
line_items.grand_total |
|
Double |
line_items.sub_total |
|
Double |
line_items.tax_total |
|
Double |
sub_total |
|
Double |
tax_total |
|
Double |
{
"mailing_address":{
"address_line_1":"103 Maple",
"city":"Brownsville",
"state":"TX",
"postal_code":"12345",
"country":"USA"
},
"line_items":[
{
"product_id":200
},
{
"bundle_id":3
}
]
}
{
"sub_total":30.44,
"tax_total":0,
"grand_total":30.44,
"line_items":[
{
"product_id":"200",
"sub_total":"0.45",
"tax_total":0,
"grand_total":0.45
},
{
"bundle_id":"3",
"sub_total":"29.99",
"tax_total":0,
"grand_total":29.99
}
]
}
{
"mailing_address_id":802420,
"line_items":[
{
"product_id":200,
"price":9.95
},
{
"bundle_id":3,
"price":19.95
}
]
}
{
"sub_total":29.9,
"tax_total":0.1,
"grand_total":30,
"line_items":[
{
"product_id":"200",
"sub_total":9.95,
"tax_total":0.1,
"grand_total":10.05
},
{
"bundle_id":"3",
"sub_total":19.95,
"tax_total":0,
"grand_total":19.95
}
]
}