Skip to content

Commit 1afc82b

Browse files
authored
fix: wrap the end shipper curl params (#214)
1 parent 8948c1c commit 1afc82b

File tree

2 files changed

+26
-22
lines changed

2 files changed

+26
-22
lines changed

official/docs/curl/current/endshipper/create.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ curl -X POST https://api.easypost.com/v2/end_shippers \
22
-u "EASYPOST_API_KEY": \
33
-H 'Content-Type: application/json' \
44
-d '{
5-
"address": {
6-
"name": "FOO BAR",
7-
"company": "BAZ",
8-
"street1": "164 TOWNSEND STREET UNIT 1",
9-
"street2": "UNIT 1",
10-
"city": "SAN FRANCISCO",
11-
"state": "CA",
12-
"zip": "94107",
13-
"country": "US",
14-
"phone": "555-555-5555",
15-
"email": "FOO@EXAMPLE.COM"
5+
"end_shipper": {
6+
"address": {
7+
"name": "FOO BAR",
8+
"company": "BAZ",
9+
"street1": "164 TOWNSEND STREET UNIT 1",
10+
"street2": "UNIT 1",
11+
"city": "SAN FRANCISCO",
12+
"state": "CA",
13+
"zip": "94107",
14+
"country": "US",
15+
"phone": "555-555-5555",
16+
"email": "FOO@EXAMPLE.COM"
17+
}
1618
}
1719
}'

official/docs/curl/current/endshipper/update.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ curl -X PUT https://api.easypost.com/v2/end_shippers/es_... \
22
-u "EASYPOST_API_KEY": \
33
-H 'Content-Type: application/json' \
44
-d '{
5-
"address": {
6-
"name": "NEW NAME",
7-
"company": "BAZ",
8-
"street1": "164 TOWNSEND STREET UNIT 1",
9-
"street2": "UNIT 1",
10-
"city": "SAN FRANCISCO",
11-
"state": "CA",
12-
"zip": "94107",
13-
"country": "US",
14-
"phone": "555-555-5555",
15-
"email": "FOO@EXAMPLE.COM"
5+
"end_shipper": {
6+
"address": {
7+
"name": "NEW NAME",
8+
"company": "BAZ",
9+
"street1": "164 TOWNSEND STREET UNIT 1",
10+
"street2": "UNIT 1",
11+
"city": "SAN FRANCISCO",
12+
"state": "CA",
13+
"zip": "94107",
14+
"country": "US",
15+
"phone": "555-555-5555",
16+
"email": "FOO@EXAMPLE.COM"
17+
}
1618
}
1719
}'

0 commit comments

Comments
 (0)