Get started with Elements
ShipEngine Elements can be integrated into your application in two ways: as an SDK or as a suite of React components.
Regardless of the integration method you choose, you'll need to generate a ShipEngine Platform token and establish a new ShipEngine Partner account.
To learn more about ShipEngine Platform tokens, refer to the Platform token documentation. For more information about ShipEngine Partner accounts, visit the Partners API documentation.
Step 1: Creating a ShipEngine Account
To create a ShipEngine Elements JWT, a ShipEngine Account ID (also known as a ShipEngine Seller ID or tenant in some cases) is required. To make a new ShipEngine Seller, run the following curl
request. To learn more about creating ShipEngine accounts, check out the ShipEngine account documentation.
You will use the account_id
field on the ShipEngine account creation response that the above curl request to sign a ShipEngine Elements JWT.
Step 2: Signing your JWT
The following pieces of information are required to sign ShipEngine Platform JWT.
- ShipEngine Partner ID: You should have received this after you had completed partner onboarding with your ShipEngine technical contact. This is a unique identifier for your ShipEngine Partner account.
- Tenant ID: The ID of the ShipEngine account that was created. This is also known as the ShipEngine Seller ID you may have been given during partner onboarding.
- Public/Private RSA keys: You should have registered the public key with ShipEngine during partner onboarding. We recommend you store the private RSA key you created in a secure container format, like .pem.
- Platform Token Key ID: You should have received this after you had completed partner onboarding with your ShipEngine technical contact. This will be the name of the platform token key you registered with ShipEngine during partner onboarding.
- Scope: You should have received this after you had completed partner onboarding with your ShipEngine technical contact. The scope enforces the usage of a specific subset of ShipEngine API endpoints.
- Platform Token Issuer: You should have received this after you had completed partner onboarding with your ShipEngine technical contact.
The following is an example of one possible way of generating a ShipEngine Platform JWT. Keep in mind, the same sample JWT application we mentioned earlier can be used to sign your JWT's.
Step 3: Using Elements
Determine your preferred integration method:
- Elements SDK
This is the simplest of the two integration methods, but it provides the least flexibility. - React Components
For React developers that want more flexibility and customizablity.
If you're just getting started with ShipEngine Elements, it's helpful to know that by default, a ShipEngine Seller does not have warehouses (ship from locations) or carriers (USPS, UPS, DHL Express) attached to the seller account. These are required to purchase a label.
We recommend starting your users (ShipEngine Sellers) with the onboarding workflow via the Onboarding Element to set up their warehouse and carrier accounts.
Updates to warehouse and carrier accounts created during onboarding can be made through the Account Settings Element.