From a694c8516ba578db8842d5aab01ec197636d5bf2 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:52:39 -0600 Subject: [PATCH] fix: curl batch buy --- official/docs/curl/current/batches/buy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/official/docs/curl/current/batches/buy.sh b/official/docs/curl/current/batches/buy.sh index 5d73009c..1c3afe0d 100644 --- a/official/docs/curl/current/batches/buy.sh +++ b/official/docs/curl/current/batches/buy.sh @@ -1,2 +1,18 @@ +curl -X POST https://api.easypost.com/v2/batches \ + -u "EASYPOST_API_KEY": \ + -H 'Content-Type: application/json' \ + -d '{ + "batch": { + "shipments": [ + "from_address": {"id": "adr_..."}, + "to_address": {"id": "adr_..."}, + "parcel": {"id": "prcl_..."}, + "service": "First", + "carrier": "USPS", + "carrier_accounts": ["ca_..."] + ] + } + }' + curl -X POST https://api.easypost.com/v2/batches/batch_.../buy \ -u "EASYPOST_API_KEY":