Skip to content

Commit

Permalink
feat: add new carrier curl commands to create
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Jun 18, 2024
1 parent b9fde9b commit 47da312
Show file tree
Hide file tree
Showing 23 changed files with 269 additions and 22 deletions.
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/accurate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "AccurateAccount",
"description": "AccurateAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
6 changes: 6 additions & 0 deletions official/guides/create-carrier-curls/australiapost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"api_key": "VALUE",
"api_secret": "VALUE",
"print_as_you_go": "VALUE"
},
"test_credentials": {
"account_number": "VALUE",
"api_key": "VALUE",
"api_secret": "VALUE",
"print_as_you_go": "VALUE"
}
}
}'
15 changes: 15 additions & 0 deletions official/guides/create-carrier-curls/bond.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "BondAccount",
"description": "BondAccount",
"carrier_account": {
"credentials": {
"api_key": "VALUE"
},
"test_credentials": {
"api_key": "VALUE"
}
}
}'
2 changes: 0 additions & 2 deletions official/guides/create-carrier-curls/columbuslastmile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"carrier_account": {
"credentials": {
"password": "VALUE",
"tracking_code_prefix": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"tracking_code_prefix": "VALUE",
"username": "VALUE"
}
}
Expand Down
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/cslogistics.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "CSLogisticsAccount",
"description": "CSLogisticsAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/douglas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "DouglasAccount",
"description": "DouglasAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/dpdnl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "DpdNlAccount",
"description": "DpdNlAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
16 changes: 2 additions & 14 deletions official/guides/create-carrier-curls/estafeta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,12 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"description": "EstafetaAccount",
"carrier_account": {
"credentials": {
"client_id": "VALUE",
"customer_id": "VALUE",
"customer_number": "VALUE",
"hub_id": "VALUE",
"password": "VALUE",
"secret_key": "VALUE",
"user_id": "VALUE",
"username": "VALUE"
"hub_id": "VALUE"
},
"test_credentials": {
"client_id": "VALUE",
"customer_id": "VALUE",
"customer_number": "VALUE",
"hub_id": "VALUE",
"password": "VALUE",
"secret_key": "VALUE",
"user_id": "VALUE",
"username": "VALUE"
"hub_id": "VALUE"
}
}
}'
25 changes: 25 additions & 0 deletions official/guides/create-carrier-curls/firstchoice.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "FirstChoiceAccount",
"description": "FirstChoiceAccount",
"carrier_account": {
"credentials": {
"account_number": "VALUE",
"api_key": "VALUE",
"customer_code": "VALUE",
"customer_key": "VALUE",
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"account_number": "VALUE",
"api_key": "VALUE",
"customer_code": "VALUE",
"customer_key": "VALUE",
"password": "VALUE",
"username": "VALUE"
}
}
}'
12 changes: 12 additions & 0 deletions official/guides/create-carrier-curls/flexport.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "FlexportAccount",
"description": "FlexportAccount",
"carrier_account": {
"credentials": {
"api_key": "VALUE"
}
}
}'
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/gio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "GioAccount",
"description": "GioAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
15 changes: 15 additions & 0 deletions official/guides/create-carrier-curls/hailify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "HailifyAccount",
"description": "HailifyAccount",
"carrier_account": {
"credentials": {
"partner_id": "VALUE"
},
"test_credentials": {
"partner_id": "VALUE"
}
}
}'
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/henry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "HenryAccount",
"description": "HenryAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
5 changes: 3 additions & 2 deletions official/guides/create-carrier-curls/hermes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"description": "HermesAccount",
"carrier_account": {
"credentials": {
"api_key": "VALUE",
"auth_id": "VALUE",
"auth_secret": "VALUE",
"client_id": "VALUE",
"client_licence": "VALUE",
"client_name": "VALUE",
"group_id": "VALUE",
"password": "VALUE",
"username": "VALUE"
}
Expand Down
17 changes: 17 additions & 0 deletions official/guides/create-carrier-curls/jet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "JetAccount",
"description": "JetAccount",
"carrier_account": {
"credentials": {
"password": "VALUE",
"username": "VALUE"
},
"test_credentials": {
"password": "VALUE",
"username": "VALUE"
}
}
}'
15 changes: 15 additions & 0 deletions official/guides/create-carrier-curls/jitsu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "JitsuAccount",
"description": "JitsuAccount",
"carrier_account": {
"credentials": {
"api_key": "VALUE"
},
"test_credentials": {
"api_key": "VALUE"
}
}
}'
15 changes: 15 additions & 0 deletions official/guides/create-carrier-curls/pandion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "PandionAccount",
"description": "PandionAccount",
"carrier_account": {
"credentials": {
"api_key": "VALUE"
},
"test_credentials": {
"api_key": "VALUE"
}
}
}'
4 changes: 1 addition & 3 deletions official/guides/create-carrier-curls/speedee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"description": "SpeedeeAccount",
"carrier_account": {
"credentials": {
"account_number": "VALUE",
"ftp_password": "VALUE",
"ftp_username": "VALUE"
"account_number": "VALUE"
}
}
}'
15 changes: 15 additions & 0 deletions official/guides/create-carrier-curls/startrack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "StarTrackAccount",
"description": "StarTrackAccount",
"carrier_account": {
"credentials": {
"account_number": "VALUE",
"api_key": "VALUE",
"api_secret": "VALUE",
"print_as_you_go": "VALUE"
}
}
}'
19 changes: 19 additions & 0 deletions official/guides/create-carrier-curls/toll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "TollAccount",
"description": "TollAccount",
"carrier_account": {
"credentials": {
"account_number": "VALUE",
"business_unit": "VALUE",
"source_system_code": "VALUE"
},
"test_credentials": {
"account_number": "VALUE",
"business_unit": "VALUE",
"source_system_code": "VALUE"
}
}
}'
4 changes: 3 additions & 1 deletion official/guides/create-carrier-curls/upsiparcel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"description": "UpsIparcelAccount",
"carrier_account": {
"credentials": {
"api_key": "VALUE"
"api_key": "VALUE",
"oauth_status": "VALUE",
"partner_oauth_url": "VALUE"
}
}
}'
2 changes: 2 additions & 0 deletions official/guides/create-carrier-curls/upsmailinnovations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"account_number": "VALUE",
"customer_guid": "VALUE",
"customer_id": "VALUE",
"oauth_status": "VALUE",
"partner_oauth_url": "VALUE",
"password": "VALUE",
"user_id": "VALUE"
}
Expand Down
2 changes: 2 additions & 0 deletions official/guides/create-carrier-curls/upssurepost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"carrier_account": {
"credentials": {
"account_number": "VALUE",
"oauth_status": "VALUE",
"partner_oauth_url": "VALUE",
"password": "VALUE",
"user_id": "VALUE"
}
Expand Down

0 comments on commit 47da312

Please sign in to comment.