Skip to content

Commit b21b2f5

Browse files
authored
Adding ehub and p2p carrier curls (#224)
1 parent 18cab0e commit b21b2f5

3 files changed

Lines changed: 57 additions & 1 deletion

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
"carrier_account": {
6+
"type": "EhubAccount",
7+
"description": "EhubAccount",
8+
"credentials": {
9+
"api_key": "VALUE"
10+
},
11+
"test_credentials": {
12+
"api_key": "VALUE"
13+
}
14+
}
15+
}'

official/guides/create-carrier-curls/estafeta.sh

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,30 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
66
"type": "EstafetaAccount",
77
"description": "EstafetaAccount",
88
"credentials": {
9+
"buy_api_key": "VALUE",
10+
"buy_client_id": "VALUE",
11+
"buy_client_secret": "VALUE",
912
"customer_number": "VALUE",
10-
"hub_id": "VALUE"
13+
"hub_id": "VALUE",
14+
"rate_api_key": "VALUE",
15+
"rate_client_id": "VALUE",
16+
"rate_client_secret": "VALUE",
17+
"track_api_key": "VALUE",
18+
"track_client_id": "VALUE",
19+
"track_client_secret": "VALUE"
20+
},
21+
"test_credentials": {
22+
"buy_api_key": "VALUE",
23+
"buy_client_id": "VALUE",
24+
"buy_client_secret": "VALUE",
25+
"customer_number": "VALUE",
26+
"hub_id": "VALUE",
27+
"rate_api_key": "VALUE",
28+
"rate_client_id": "VALUE",
29+
"rate_client_secret": "VALUE",
30+
"track_api_key": "VALUE",
31+
"track_client_id": "VALUE",
32+
"track_client_secret": "VALUE"
1133
}
1234
}
1335
}'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
"carrier_account": {
6+
"type": "P2PAccount",
7+
"description": "P2PAccount",
8+
"credentials": {
9+
"api_key": "VALUE",
10+
"customer_id": "VALUE",
11+
"username": "VALUE"
12+
},
13+
"test_credentials": {
14+
"api_key": "VALUE",
15+
"customer_id": "VALUE",
16+
"username": "VALUE"
17+
}
18+
}
19+
}'

0 commit comments

Comments
 (0)