diff --git a/official/guides/create-carrier-curls/amazonshipping.sh b/official/guides/create-carrier-curls/amazonshipping.sh new file mode 100644 index 00000000..49b68aef --- /dev/null +++ b/official/guides/create-carrier-curls/amazonshipping.sh @@ -0,0 +1,14 @@ +curl -X POST https://api.easypost.com/v2/carrier_accounts \ + -u "$EASYPOST_API_KEY": \ + -H 'Content-Type: application/json' \ + -d '{ + "type": "AmazonShippingAccount", + "description": "AmazonShippingAccount", + "carrier_account": { + "credentials": { + "account_number": "VALUE", + "partner_oauth_url": "VALUE", + "refresh_token": "VALUE" + } + } +}' diff --git a/official/guides/create-carrier-curls/royalmailv3.sh b/official/guides/create-carrier-curls/royalmailv3.sh new file mode 100644 index 00000000..b319dd84 --- /dev/null +++ b/official/guides/create-carrier-curls/royalmailv3.sh @@ -0,0 +1,24 @@ +curl -X POST https://api.easypost.com/v2/carrier_accounts \ + -u "$EASYPOST_API_KEY": \ + -H 'Content-Type: application/json' \ + -d '{ + "type": "RoyalMailV3Account", + "description": "RoyalMailV3Account", + "carrier_account": { + "credentials": { + "account_number": "VALUE", + "contact_name": "VALUE", + "contact_phone": "VALUE", + "dispatch_city": "VALUE", + "dispatch_country": "VALUE", + "dispatch_state": "VALUE", + "dispatch_street1": "VALUE", + "dispatch_street2": "VALUE", + "dispatch_zip": "VALUE", + "internal_location_id": "VALUE", + "oba_access_code": "VALUE", + "oba_email_address": "VALUE", + "posting_location_number": "VALUE" + } + } +}'