Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions official/guides/create-carrier-curls/amazonmws.sh

This file was deleted.

8 changes: 6 additions & 2 deletions official/guides/create-carrier-curls/canadapost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"contract_id": "VALUE",
"customer_number": "VALUE",
"has_credit_card": "VALUE",
"not_platform": "VALUE"
"not_platform": "VALUE",
"zonos_api_key": "VALUE",
"zonos_enabled": "VALUE"
},
"test_credentials": {
"api_key": "VALUE",
"contract_id": "VALUE",
"customer_number": "VALUE",
"has_credit_card": "VALUE",
"not_platform": "VALUE"
"not_platform": "VALUE",
"zonos_api_key": "VALUE",
"zonos_enabled": "VALUE"
}
}
}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
-d '{
"carrier_account": {
"type": "CanadaPostAccount",
"payment_mode": "aggregation"
"description": "CanadaPostAccount"
}
}'
1 change: 1 addition & 0 deletions official/guides/create-carrier-curls/daipost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"description": "DaiPostAccount",
"credentials": {
"account_code": "VALUE",
"api_key": "VALUE",
"origin_terminal": "VALUE",
"password": "VALUE",
"username": "VALUE"
Expand Down
19 changes: 0 additions & 19 deletions official/guides/create-carrier-curls/deliverit.sh

This file was deleted.

10 changes: 8 additions & 2 deletions official/guides/create-carrier-curls/deutschepostuk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"description": "DeutschePostUKAccount",
"credentials": {
"account_number": "VALUE",
"api_key": "VALUE",
"client_id": "VALUE",
"client_secret": "VALUE"
"client_secret": "VALUE",
"customer_identification": "VALUE",
"customer_pricing_reference": "VALUE"
},
"test_credentials": {
"account_number": "VALUE",
"api_key": "VALUE",
"client_id": "VALUE",
"client_secret": "VALUE"
"client_secret": "VALUE",
"customer_identification": "VALUE",
"customer_pricing_reference": "VALUE"
}
}
}'
6 changes: 4 additions & 2 deletions official/guides/create-carrier-curls/dhlecs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"credentials": {
"client_id": "VALUE",
"client_secret": "VALUE",
"distribution_center": "VALUE"
"distribution_center": "VALUE",
"pickup_id": "VALUE"
},
"test_credentials": {
"client_id": "VALUE",
"client_secret": "VALUE",
"distribution_center": "VALUE"
"distribution_center": "VALUE",
"pickup_id": "VALUE"
}
}
}'
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
-d '{
"carrier_account": {
"type": "DhlEcsAccount",
"description": "DhlEcsAccount",
"payment_mode": "aggregation"
"description": "DhlEcsAccount"
}
}'
4 changes: 3 additions & 1 deletion official/guides/create-carrier-curls/dhlexpress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"country": "VALUE",
"is_reseller": "VALUE",
"password": "VALUE",
"site_id": "VALUE"
"site_id": "VALUE",
"zonos_api_key": "VALUE",
"zonos_enabled": "VALUE"
}
}
}'
9 changes: 9 additions & 0 deletions official/guides/create-carrier-curls/dhlexpresswallet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"carrier_account": {
"type": "DhlExpressAccount",
"description": "DhlExpressAccount"
}
}'
16 changes: 16 additions & 0 deletions official/guides/create-carrier-curls/fedexdefault.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts/open \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"carrier_account": {
"type": "FedexDefaultAccount",
"name": "VALUE",
"street1": "VALUE",
"city": "VALUE",
"state": "VALUE",
"postal_code": "VALUE",
"country": "VALUE",
"phone": "VALUE",
"email": "VALUE"
}
}'
19 changes: 0 additions & 19 deletions official/guides/create-carrier-curls/firstmileconcise.sh

This file was deleted.

19 changes: 19 additions & 0 deletions official/guides/create-carrier-curls/glsgroup.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 '{
"carrier_account": {
"type": "GlsGroupAccount",
"description": "GlsGroupAccount",
"credentials": {
"client_id": "VALUE",
"client_secret": "VALUE",
"contact_id": "VALUE"
},
"test_credentials": {
"client_id": "VALUE",
"client_secret": "VALUE",
"contact_id": "VALUE"
}
}
}'
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts/open \
-d '{
"carrier_account": {
"type": "GofoWalletAccount",
"reference": "GOFO Wallet Account",
"description": "GOFO Wallet Account",
"origin_hub": "VALUE"
"description": "GofoWalletAccount",
"credentials": {
"origin_hub": "VALUE"
}
}
}'
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
-H 'Content-Type: application/json' \
-d '{
"carrier_account": {
"type": "SendleAccount",
"description": "SendleAccount",
"type": "GoriAccount",
"description": "GoriAccount",
"credentials": {
"api_key": "VALUE",
"user_id": "VALUE"
"client_id": "VALUE",
"client_secret": "VALUE"
},
"test_credentials": {
"api_key": "VALUE",
"user_id": "VALUE"
"client_id": "VALUE",
"client_secret": "VALUE"
}
}
}'
8 changes: 6 additions & 2 deletions official/guides/create-carrier-curls/logissimo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
"api_username": "VALUE",
"client_id": "VALUE",
"password": "VALUE",
"shipper_account_number": "VALUE"
"shipper_account_number": "VALUE",
"track_client_id": "VALUE",
"track_client_secret": "VALUE"
},
"test_credentials": {
"api_key": "VALUE",
"api_username": "VALUE",
"client_id": "VALUE",
"password": "VALUE",
"shipper_account_number": "VALUE"
"shipper_account_number": "VALUE",
"track_client_id": "VALUE",
"track_client_secret": "VALUE"
}
}
}'
21 changes: 0 additions & 21 deletions official/guides/create-carrier-curls/parcelforce.sh

This file was deleted.

4 changes: 2 additions & 2 deletions official/guides/create-carrier-curls/royalmail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ curl -X POST https://api.easypost.com/v2/carrier_accounts \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"type": "RoyalMailAccount",
"description": "RoyalMailAccount",
"carrier_account": {
"type": "RoyalMailAccount",
"description": "RoyalMailAccount",
"credentials": {
"account_number": "VALUE",
"posting_location_number": "VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ 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": {
"type": "TipsaAccount",
"description": "TipsaAccount",
"credentials": {
"api_key": "VALUE"
},
"test_credentials": {
"api_key": "VALUE"
"agency_code": "VALUE",
"customer_code": "VALUE",
"password": "VALUE"
}
}
}'
19 changes: 0 additions & 19 deletions official/guides/create-carrier-curls/toll.sh

This file was deleted.

21 changes: 21 additions & 0 deletions official/guides/create-carrier-curls/upsdap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts/open \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"carrier_account": {
"type": "UpsDapAccount",
"description": "VALUE",
"name": "VALUE",
"title": "VALUE",
"company": "VALUE",
"street1": "VALUE",
"street2": "VALUE",
"city": "VALUE",
"state": "VALUE",
"postal_code": "VALUE",
"country": "VALUE",
"website": "VALUE",
"email": "VALUE",
"phone": "VALUE"
}
}'
14 changes: 0 additions & 14 deletions official/guides/create-carrier-curls/upsiparcel.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
curl -X POST https://api.easypost.com/v2/carrier_accounts/register_oauth \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
Expand Down
2 changes: 1 addition & 1 deletion official/guides/create-carrier-curls/upssurepost.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl -X POST https://api.easypost.com/v2/carrier_accounts \
curl -X POST https://api.easypost.com/v2/carrier_accounts/register_oauth \
-u "$EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
Expand Down
Loading
Loading