Skip to content

Commit 5b7a6dc

Browse files
authored
Merge pull request #184 from hollyabrams/update-amazon-shipping-curl-request
Update Amazon Shipping and Royal Mail v3 carrier curls
2 parents 25c05fa + 43eace6 commit 5b7a6dc

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
curl -X POST https://api.easypost.com/v2/carrier_accounts \
2+
-u "$EASYPOST_API_KEY": \
3+
-H 'Content-Type: application/json' \
4+
-d '{
5+
"type": "AmazonShippingAccount",
6+
"description": "AmazonShippingAccount",
7+
"carrier_account": {
8+
"credentials": {
9+
"account_number": "VALUE",
10+
"partner_oauth_url": "VALUE",
11+
"refresh_token": "VALUE"
12+
}
13+
}
14+
}'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
curl -X POST https://api.easypost.com/v2/carrier_accounts \
2+
-u "$EASYPOST_API_KEY": \
3+
-H 'Content-Type: application/json' \
4+
-d '{
5+
"type": "RoyalMailV3Account",
6+
"description": "RoyalMailV3Account",
7+
"carrier_account": {
8+
"credentials": {
9+
"account_number": "VALUE",
10+
"contact_name": "VALUE",
11+
"contact_phone": "VALUE",
12+
"dispatch_city": "VALUE",
13+
"dispatch_country": "VALUE",
14+
"dispatch_state": "VALUE",
15+
"dispatch_street1": "VALUE",
16+
"dispatch_street2": "VALUE",
17+
"dispatch_zip": "VALUE",
18+
"internal_location_id": "VALUE",
19+
"oba_access_code": "VALUE",
20+
"oba_email_address": "VALUE",
21+
"posting_location_number": "VALUE"
22+
}
23+
}
24+
}'

0 commit comments

Comments
 (0)