POST
/
v1
/
order_batches
/
price
{
  "cart_price": {
    "price_product": 1000,
    "price_shipping": 1000,
    "price_processing_fee": 100,
    "price_pre_tax": 2100,
    "price_est_tax_low": 0,
    "price_est_tax_high": 210,
    "price_est_total_low": 2100,
    "price_est_total_high": 2310
  },
  "total_price": {
    "recipients": 2,
    "est_group_total_low": 4200,
    "est_group_total_high": 4620
  }
}

You can calculate the total price for an order batch before you create it, given a cart, recipients, and send method. To use a specific address, pass the direct_send send method.

Authorizations

Authorization
string
headerrequired

Your Goody API key.

Body

application/json

Input parameters for an order batch price calculation.

recipients
object[]
required
cart
object
required
send_method
enum<string>
required

The method for sending a order batch. email_and_link sends a gift email to the recipient (specify email for each recipient). link_multiple_custom_list generates a gift link without an automatic email. direct_send ships the product directly to the recipient (specify mailing_address for each recipient). For more information, see Send Methods.

Available options:
email_and_link,
link_multiple_custom_list,
direct_send

Response

200 - application/json

The price for an order batch (all in cents).

cart_price_estimate
object

Prices for a single recipient's cart in cents. This represents the price for each recipient in the order batch.

total_price_estimate
object

Total price estimates for the entire order batch in cents. This includes all recipients.