Skip to content

Commit

Permalink
fix: curl batch buy
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Jun 25, 2024
1 parent 87c74e9 commit a694c85
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions official/docs/curl/current/batches/buy.sh
Original file line number Diff line number Diff line change
@@ -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":

0 comments on commit a694c85

Please sign in to comment.