cURL
curl --request POST \ --url https://api.ongoody.com/v1/order_batches/price \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "send_method": "direct_send", "recipients": [ { "first_name": "Alena", "last_name": "Kenter", "email": "alena@example.com", "mailing_address": { "first_name": "Alena", "last_name": "Kenter", "address_1": "140 E 55th St", "address_2": "", "city": "New York", "state": "NY", "postal_code": "10022", "country": "US" } } ], "cart": { "items": [ { "product_id": "312b1b60-e789-4133-8881-ba606becc358", "quantity": 1 } ] } }'
200
Order batch price calculated
{ "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 }}
direct_send
Your Goody API key.
Input parameters for an order batch price calculation.
The price for an order batch (all in cents).