Shippo
Connect to Shippo to create addresses, parcels, shipments, rates, labels, tracking records, refunds, batches, manifests, carrier accounts, and webhooks.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "SHIPPO_ADD_SHIPMENTS_TO_BATCH", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("SHIPPO_ADD_SHIPMENTS_TO_BATCH", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute SHIPPO_ADD_SHIPMENTS_TO_BATCH --data '{ }'Tool 目录
可用 Tools
70 个可调用操作
Add shipments to a batchSHIPPO_ADD_SHIPMENTS_TO_BATCHAdds batch shipments to an existing batch.需要连接
Adds batch shipments to an existing batch.
认证
需要 Connected AccountTags
Create a new addressSHIPPO_CREATE_ADDRESSCreates a new address object. You can use address objects to create new shipments, calculate rates, and to create orders.需要连接
Creates a new address object. You can use address objects to create new shipments, calculate rates, and to create orders.
认证
需要 Connected AccountTags
Create a batchSHIPPO_CREATE_BATCHCreates a new batch object for purchasing shipping labels for many shipments at once. Batches are created asynchronously. This means that the API response won't include your batch shipments yet. You need to retrieve the batch later to verify that all batch shipments are valid.需要连接
Creates a new batch object for purchasing shipping labels for many shipments at once. Batches are created asynchronously. This means that the API response won't include your batch shipments yet. You need to retrieve the batch later to verify that all batch shipments are valid.
认证
需要 Connected AccountTags
Create a new carrier accountSHIPPO_CREATE_CARRIER_ACCOUNTCreates a new carrier account or connects an existing carrier account to the Shippo account.需要连接
Creates a new carrier account or connects an existing carrier account to the Shippo account.
认证
需要 Connected AccountTags
Create a new customs declarationSHIPPO_CREATE_CUSTOMS_DECLARATIONCreates a new customs declaration object需要连接
Creates a new customs declaration object
认证
需要 Connected AccountTags
Create a new customs itemSHIPPO_CREATE_CUSTOMS_ITEMCreates a new customs item object.需要连接
Creates a new customs item object.
认证
需要 Connected AccountTags
Generate a live rates requestSHIPPO_CREATE_LIVE_RATEInitiates a live rates request. Include either the object ID for an existing address record or a fully formed address object when entering an address value. You can also enter the object ID of an existing user parcel template or a fully formed user parcel template object as the parcel value.需要连接
Initiates a live rates request. Include either the object ID for an existing address record or a fully formed address object when entering an address value. You can also enter the object ID of an existing user parcel template or a fully formed user parcel template object as the parcel value.
认证
需要 Connected AccountTags
Create a new manifestSHIPPO_CREATE_MANIFESTCreates a new manifest object.需要连接
Creates a new manifest object.
认证
需要 Connected AccountTags
Create a new orderSHIPPO_CREATE_ORDERCreates a new order object.需要连接
Creates a new order object.
认证
需要 Connected AccountTags
Create a new parcelSHIPPO_CREATE_PARCELCreates a new parcel object.需要连接
Creates a new parcel object.
认证
需要 Connected AccountTags
Create a pickupSHIPPO_CREATE_PICKUPCreates a pickup object. This request is for a carrier to come to a specified location to take a package for shipping.需要连接
Creates a pickup object. This request is for a carrier to come to a specified location to take a package for shipping.
认证
需要 Connected AccountTags
Create a refundSHIPPO_CREATE_REFUNDCreates a new refund object.需要连接
Creates a new refund object.
认证
需要 Connected AccountTags
Create a new service groupSHIPPO_CREATE_SERVICE_GROUPCreates a new service group.需要连接
Creates a new service group.
认证
需要 Connected AccountTags
Create a new shipmentSHIPPO_CREATE_SHIPMENTCreates a new shipment object.需要连接
Creates a new shipment object.
认证
需要 Connected AccountTags
Create a Shippo AccountSHIPPO_CREATE_SHIPPO_ACCOUNTCreates a new <a href="https://docs.goshippo.com/docs/platformaccounts/platform_using_accounts/">Shippo Managed Account</a>.需要连接
Creates a new <a href="https://docs.goshippo.com/docs/platformaccounts/platform_using_accounts/">Shippo Managed Account</a>.
认证
需要 Connected AccountTags
Register a tracking webhookSHIPPO_CREATE_TRACKRegisters a webhook that will send HTTP notifications to you when the status of your tracked package changes. For more details on creating a webhook, see our guides on <a href="https://docs.goshippo.com/docs/tracking/webhooks/">Webhooks</a> and <a href="https://docs.goshippo.com/docs/tracking/tracking/">Tracking</a>.需要连接
Registers a webhook that will send HTTP notifications to you when the status of your tracked package changes. For more details on creating a webhook, see our guides on <a href="https://docs.goshippo.com/docs/tracking/webhooks/">Webhooks</a> and <a href="https://docs.goshippo.com/docs/tracking/tracking/">Tracking</a>.
认证
需要 Connected AccountTags
Create a shipping labelSHIPPO_CREATE_TRANSACTIONCreates a new transaction object and purchases the shipping label using a rate object that has previously been created. <br> OR <br> Creates a new transaction object and purchases the shipping label instantly using shipment details, an existing carrier account, and an existing service level token.需要连接
Creates a new transaction object and purchases the shipping label using a rate object that has previously been created. <br> OR <br> Creates a new transaction object and purchases the shipping label instantly using shipment details, an existing carrier account, and an existing service level token.
认证
需要 Connected AccountTags
Create a new user parcel templateSHIPPO_CREATE_USER_PARCEL_TEMPLATECreates a new user parcel template. <br>You can choose to create a parcel template using a preset carrier template as a starting point, or you can create an entirely custom one. To use a preset carrier template, pass in a unique template token from <a href="/shippoapi/public-api/parcel-templates">this list</a> plus the weight fields (**weight** and **weight_unit**). Otherwise, omit the template field and pass the other fields, for the weight, length, height, and depth, as well as their units."需要连接
Creates a new user parcel template. <br>You can choose to create a parcel template using a preset carrier template as a starting point, or you can create an entirely custom one. To use a preset carrier template, pass in a unique template token from <a href="/shippoapi/public-api/parcel-templates">this list</a> plus the weight fields (**weight** and **weight_unit**). Otherwise, omit the template field and pass the other fields, for the weight, length, height, and depth, as well as their units."
认证
需要 Connected AccountTags
Create a new webhookSHIPPO_CREATE_WEBHOOKCreates a new webhook to send notifications to a URL when a specific event occurs.需要连接
Creates a new webhook to send notifications to a URL when a specific event occurs.
认证
需要 Connected AccountTags
Clear current default parcel templateSHIPPO_DELETE_DEFAULT_PARCEL_TEMPLATEClears the currently configured default parcel template for live rates.需要连接
Clears the currently configured default parcel template for live rates.
认证
需要 Connected AccountTags
Delete a service groupSHIPPO_DELETE_SERVICE_GROUPDeletes an existing service group using an object ID.需要连接
Deletes an existing service group using an object ID.
认证
需要 Connected AccountTags
Delete a user parcel templateSHIPPO_DELETE_USER_PARCEL_TEMPLATEDeletes a user parcel template using an object ID.需要连接
Deletes a user parcel template using an object ID.
认证
需要 Connected AccountTags
Delete a specific webhookSHIPPO_DELETE_WEBHOOKDeletes a specific webhook using the webhook object ID.需要连接
Deletes a specific webhook using the webhook object ID.
认证
需要 Connected AccountTags
Retrieve an addressSHIPPO_GET_ADDRESSReturns an existing address using an object ID.需要连接
Returns an existing address using an object ID.
认证
需要 Connected AccountTags
Retrieve a batchSHIPPO_GET_BATCHReturns a batch using an object ID. <br> Batch shipments are displayed 100 at a time. You can iterate through each `page` using the `?page= query` parameter. You can also filter based on batch shipment status, for example, by passing a query param like `?object_results=creation_failed`. <br> For more details on filtering results, see our guide on <a href="https://docs.goshippo.com/docs/api_concepts/filtering/" target="blank"> filtering</a>.需要连接
Returns a batch using an object ID. <br> Batch shipments are displayed 100 at a time. You can iterate through each `page` using the `?page= query` parameter. You can also filter based on batch shipment status, for example, by passing a query param like `?object_results=creation_failed`. <br> For more details on filtering results, see our guide on <a href="https://docs.goshippo.com/docs/api_concepts/filtering/" target="blank"> filtering</a>.
认证
需要 Connected AccountTags
Retrieve a carrier accountSHIPPO_GET_CARRIER_ACCOUNTReturns an existing carrier account using an object ID.需要连接
Returns an existing carrier account using an object ID.
认证
需要 Connected AccountTags
Retrieve a carrier parcel templatesSHIPPO_GET_CARRIER_PARCEL_TEMPLATEFetches the parcel template information for a specific carrier parcel template, identified by the token.需要连接
Fetches the parcel template information for a specific carrier parcel template, identified by the token.
认证
需要 Connected AccountTags
Get Carrier Registration statusSHIPPO_GET_CARRIER_REGISTRATION_STATUSReturns the registration status for the given account for the given carrier需要连接
Returns the registration status for the given account for the given carrier
认证
需要 Connected AccountTags
Retrieve a customs declarationSHIPPO_GET_CUSTOMS_DECLARATIONReturns an existing customs declaration using an object ID需要连接
Returns an existing customs declaration using an object ID
认证
需要 Connected AccountTags
Retrieve a customs itemSHIPPO_GET_CUSTOMS_ITEMReturns an existing customs item using an object ID需要连接
Returns an existing customs item using an object ID
认证
需要 Connected AccountTags
Show current default parcel templateSHIPPO_GET_DEFAULT_PARCEL_TEMPLATERetrieve and display the currently configured default parcel template for live rates.需要连接
Retrieve and display the currently configured default parcel template for live rates.
认证
需要 Connected AccountTags
Retrieve a manifestSHIPPO_GET_MANIFESTReturns an existing manifest using an object ID.需要连接
Returns an existing manifest using an object ID.
认证
需要 Connected AccountTags
Retrieve an orderSHIPPO_GET_ORDERRetrieves an existing order using an object ID.需要连接
Retrieves an existing order using an object ID.
认证
需要 Connected AccountTags
Retrieve an existing parcelSHIPPO_GET_PARCELReturns parcel details using an existing parcel object ID (this will not return parcel details associated with un-purchased shipment/rate parcel object IDs).需要连接
Returns parcel details using an existing parcel object ID (this will not return parcel details associated with un-purchased shipment/rate parcel object IDs).
认证
需要 Connected AccountTags
Retrieve a rateSHIPPO_GET_RATEReturns an existing rate using a rate object ID. Rates older than 390 days are not returned.需要连接
Returns an existing rate using a rate object ID. Rates older than 390 days are not returned.
认证
需要 Connected AccountTags
Retrieve a refundSHIPPO_GET_REFUNDReturns an existing rate using a rate object ID.需要连接
Returns an existing rate using a rate object ID.
认证
需要 Connected AccountTags
Retrieve a shipmentSHIPPO_GET_SHIPMENTReturns an existing shipment using an object ID. Shipment objects older than 390 days are not returned.需要连接
Returns an existing shipment using an object ID. Shipment objects older than 390 days are not returned.
认证
需要 Connected AccountTags
Retrieve a Shippo AccountSHIPPO_GET_SHIPPO_ACCOUNTReturns a Shippo Managed Account using an object ID.需要连接
Returns a Shippo Managed Account using an object ID.
认证
需要 Connected AccountTags
Get a tracking statusSHIPPO_GET_TRACKReturns the tracking status of a shipment using a carrier name and a tracking number.需要连接
Returns the tracking status of a shipment using a carrier name and a tracking number.
认证
需要 Connected AccountTags
Retrieve a shipping labelSHIPPO_GET_TRANSACTIONReturns an existing transaction using an object ID.需要连接
Returns an existing transaction using an object ID.
认证
需要 Connected AccountTags
Retrieves a user parcel templateSHIPPO_GET_USER_PARCEL_TEMPLATEReturns the parcel template information for a specific user parcel template, identified by the object ID.需要连接
Returns the parcel template information for a specific user parcel template, identified by the object ID.
认证
需要 Connected AccountTags
Retrieve a specific webhookSHIPPO_GET_WEBHOOKReturns the details of a specific webhook using the webhook object ID.需要连接
Returns the details of a specific webhook using the webhook object ID.
认证
需要 Connected AccountTags
Connect an existing carrier account using OAuth 2.0SHIPPO_INITIATE_OAUTH2_SIGNINUsed by client applications to setup or reconnect an existing carrier account with carriers that support OAuth 2.0需要连接
Used by client applications to setup or reconnect an existing carrier account with carriers that support OAuth 2.0
认证
需要 Connected AccountTags
List all addressesSHIPPO_LIST_ADDRESSESReturns a list of all address objects that have been created in this account.需要连接
Returns a list of all address objects that have been created in this account.
认证
需要 Connected AccountTags
List all carrier accountsSHIPPO_LIST_CARRIER_ACCOUNTSReturns a list of all carrier accounts connected to your Shippo account. These carrier accounts include both Shippo carrier accounts and your own carrier accounts that you have connected to your Shippo account. Additionally, you can get information about the service levels associated with each carrier account by passing in the `?service_levels=true` query parameter. <br> Using it appends the property `service_levels` to each carrier account. <br> By default, if the query parameter is omitted, the `service_levels` property will not be included in the response.需要连接
Returns a list of all carrier accounts connected to your Shippo account. These carrier accounts include both Shippo carrier accounts and your own carrier accounts that you have connected to your Shippo account. Additionally, you can get information about the service levels associated with each carrier account by passing in the `?service_levels=true` query parameter. <br> Using it appends the property `service_levels` to each carrier account. <br> By default, if the query parameter is omitted, the `service_levels` property will not be included in the response.
认证
需要 Connected AccountTags
List all carrier parcel templatesSHIPPO_LIST_CARRIER_PARCEL_TEMPLATESList all carrier parcel template objects. <br> Use the following query string params to filter the results as needed. <br> <ul> <li>`include=all` (the default). Includes templates from all carriers </li> <li>`include=user`. Includes templates only from carriers which the user has added (whether or not they're currently enabled) </li> <li>`include=enabled`. includes templates only for carriers which the user has added and enabled </li> <li>`carrier=*token*`. filter by specific carrier, e.g. fedex, usps </li> </ul>需要连接
List all carrier parcel template objects. <br> Use the following query string params to filter the results as needed. <br> <ul> <li>`include=all` (the default). Includes templates from all carriers </li> <li>`include=user`. Includes templates only from carriers which the user has added (whether or not they're currently enabled) </li> <li>`include=enabled`. includes templates only for carriers which the user has added and enabled </li> <li>`carrier=*token*`. filter by specific carrier, e.g. fedex, usps </li> </ul>
认证
需要 Connected AccountTags
List all customs declarationsSHIPPO_LIST_CUSTOMS_DECLARATIONSReturns a list of all customs declaration objects需要连接
Returns a list of all customs declaration objects
认证
需要 Connected AccountTags
List all customs itemsSHIPPO_LIST_CUSTOMS_ITEMSReturns a list all customs items objects.需要连接
Returns a list all customs items objects.
认证
需要 Connected AccountTags
List all manifestsSHIPPO_LIST_MANIFESTSReturns a list of all manifest objects.需要连接
Returns a list of all manifest objects.
认证
需要 Connected AccountTags
List all ordersSHIPPO_LIST_ORDERSReturns a list of all order objects.需要连接
Returns a list of all order objects.
认证
需要 Connected AccountTags
List all parcelsSHIPPO_LIST_PARCELSReturns a list of all parcel objects.需要连接
Returns a list of all parcel objects.
认证
需要 Connected AccountTags
List all refundsSHIPPO_LIST_REFUNDSReturns a list all refund objects.需要连接
Returns a list all refund objects.
认证
需要 Connected AccountTags
List all service groupsSHIPPO_LIST_SERVICE_GROUPSReturns a list of service group objects.需要连接
Returns a list of service group objects.
认证
需要 Connected AccountTags
Retrieve shipment ratesSHIPPO_LIST_SHIPMENT_RATESReturns a paginated list of rates associated with a shipment. Rates for shipments older than 390 days are not returned.需要连接
Returns a paginated list of rates associated with a shipment. Rates for shipments older than 390 days are not returned.
认证
需要 Connected AccountTags
Retrieve shipment rates in currencySHIPPO_LIST_SHIPMENT_RATES_BY_CURRENCY_CODEReturns all available shipping rates for a shipment object. When you create a new valid shipment object, Shippo automatically calculates all available rates. Depending on your shipment data, there may be none, one or multiple rates. By default, the calculated rates will return the price in two currencies under the `amount` and `amount_local` keys, respectively. The `amount` key will contain the price of a rate expressed in the currency that is used in the country from where the parcel originates, and the `amount_local` key will contain the price expressed in the currency that is used in the country the parcel is shipped to. You can request rates with prices expressed in a different currency by adding the currency code to the end of the resource URL. The full list of supported currencies along with their codes can be viewed on <a href="http://openexchangerates.org/api/currencies.json">open exchange rates</a>. Note: re-requesting the rates with a different currency code will re-queue the shipment (i.e. set the Shipment's `status` to `QUEUED`) and the converted currency rates will only be available when the Shipment's `status` is set to `SUCCESS`. Rates for shipments older than 390 days are not returned.需要连接
Returns all available shipping rates for a shipment object. When you create a new valid shipment object, Shippo automatically calculates all available rates. Depending on your shipment data, there may be none, one or multiple rates. By default, the calculated rates will return the price in two currencies under the `amount` and `amount_local` keys, respectively. The `amount` key will contain the price of a rate expressed in the currency that is used in the country from where the parcel originates, and the `amount_local` key will contain the price expressed in the currency that is used in the country the parcel is shipped to. You can request rates with prices expressed in a different currency by adding the currency code to the end of the resource URL. The full list of supported currencies along with their codes can be viewed on <a href="http://openexchangerates.org/api/currencies.json">open exchange rates</a>. Note: re-requesting the rates with a different currency code will re-queue the shipment (i.e. set the Shipment's `status` to `QUEUED`) and the converted currency rates will only be available when the Shipment's `status` is set to `SUCCESS`. Rates for shipments older than 390 days are not returned.
认证
需要 Connected AccountTags
List all shipmentsSHIPPO_LIST_SHIPMENTSReturns a list of all shipment objects.<br><br> In order to filter results, you must use the below path parameters. Provided dates should be ISO 8601 UTC dates (timezone offsets are currently not supported).<br><br> Optional path parameters:<br> `object_created_gt`- object(s) created greater than a provided date time<br> `object_created_gte` - object(s) created greater than or equal to a provided date time<br> `object_created_lt` - object(s) created less than a provided date time<br> `object_created_lte` - object(s) created less than or equal to a provided date time<br> Date format examples:<br> `2017-01-01`<br> `2017-01-01T03:30:30` or `2017-01-01T03:30:30.5`<br> `2017-01-01T03:30:30Z`<br><br> Example URL:<br> `https://api.goshippo.com/shipments/?object_created_gte=2017-01-01T00:00:30&object_created_lt=2017-04-01T00:00:30`<br><br> Note: Shipment objects older than 390 days are not returned.需要连接
Returns a list of all shipment objects.<br><br> In order to filter results, you must use the below path parameters. Provided dates should be ISO 8601 UTC dates (timezone offsets are currently not supported).<br><br> Optional path parameters:<br> `object_created_gt`- object(s) created greater than a provided date time<br> `object_created_gte` - object(s) created greater than or equal to a provided date time<br> `object_created_lt` - object(s) created less than a provided date time<br> `object_created_lte` - object(s) created less than or equal to a provided date time<br> Date format examples:<br> `2017-01-01`<br> `2017-01-01T03:30:30` or `2017-01-01T03:30:30.5`<br> `2017-01-01T03:30:30Z`<br><br> Example URL:<br> `https://api.goshippo.com/shipments/?object_created_gte=2017-01-01T00:00:30&object_created_lt=2017-04-01T00:00:30`<br><br> Note: Shipment objects older than 390 days are not returned.
认证
需要 Connected AccountTags
List all Shippo AccountsSHIPPO_LIST_SHIPPO_ACCOUNTSReturns a list of Shippo Managed Accounts objects.需要连接
Returns a list of Shippo Managed Accounts objects.
认证
需要 Connected AccountTags
List all shipping labelsSHIPPO_LIST_TRANSACTIONSReturns a list of all transaction objects.需要连接
Returns a list of all transaction objects.
认证
需要 Connected AccountTags
List all user parcel templatesSHIPPO_LIST_USER_PARCEL_TEMPLATESReturns a list all of all user parcel template objects.需要连接
Returns a list all of all user parcel template objects.
认证
需要 Connected AccountTags
List all webhooksSHIPPO_LIST_WEBHOOKSReturns a list of all webhooks you have created.需要连接
Returns a list of all webhooks you have created.
认证
需要 Connected AccountTags
Purchase a batchSHIPPO_PURCHASE_BATCHPurchases an existing batch with a status of `VALID`. Once you send a POST request to the purchase endpoint the batch status will change to `PURCHASING`. When all the shipments are purchased, the status will change to `PURCHASED` and you will receive a `batch_purchased` webhook indicating that the batch has been purchased需要连接
Purchases an existing batch with a status of `VALID`. Once you send a POST request to the purchase endpoint the batch status will change to `PURCHASING`. When all the shipments are purchased, the status will change to `PURCHASED` and you will receive a `batch_purchased` webhook indicating that the batch has been purchased
认证
需要 Connected AccountTags
Add a Shippo carrier accountSHIPPO_REGISTER_CARRIER_ACCOUNTAdds a Shippo carrier account需要连接
Adds a Shippo carrier account
认证
需要 Connected AccountTags
Remove shipments from a batchSHIPPO_REMOVE_SHIPMENTS_FROM_BATCHRemoves shipments from an existing batch shipment.需要连接
Removes shipments from an existing batch shipment.
认证
需要 Connected AccountTags
Update a carrier accountSHIPPO_UPDATE_CARRIER_ACCOUNTUpdates an existing carrier account object. The account_id and carrier can't be updated. This is because they form the unique identifier together.需要连接
Updates an existing carrier account object. The account_id and carrier can't be updated. This is because they form the unique identifier together.
认证
需要 Connected AccountTags
Update default parcel templateSHIPPO_UPDATE_DEFAULT_PARCEL_TEMPLATEUpdate the currently configured default parcel template for live rates. The object_id in the request payload should identify the user parcel template to be the new default.需要连接
Update the currently configured default parcel template for live rates. The object_id in the request payload should identify the user parcel template to be the new default.
认证
需要 Connected AccountTags
Update an existing service groupSHIPPO_UPDATE_SERVICE_GROUPUpdates an existing service group object. <br>The object_id cannot be updated as it is the unique identifier for the object.需要连接
Updates an existing service group object. <br>The object_id cannot be updated as it is the unique identifier for the object.
认证
需要 Connected AccountTags
Update a Shippo AccountSHIPPO_UPDATE_SHIPPO_ACCOUNTUpdates a Shippo Managed Account using an object ID.需要连接
Updates a Shippo Managed Account using an object ID.
认证
需要 Connected AccountTags
Update an existing user parcel templateSHIPPO_UPDATE_USER_PARCEL_TEMPLATEUpdates an existing user parcel template.需要连接
Updates an existing user parcel template.
认证
需要 Connected AccountTags
Update an existing webhookSHIPPO_UPDATE_WEBHOOKUpdates an existing webhook using the webhook object ID.需要连接
Updates an existing webhook using the webhook object ID.
认证
需要 Connected AccountTags
Validate an addressSHIPPO_VALIDATE_ADDRESSValidates an existing address using an object ID需要连接
Validates an existing address using an object ID
认证
需要 Connected AccountTags