Operation Definitions
The endpoints, data models, and sample code for Partner Relay API.
Endpoints
POST /api/product/get-on-hand
Summary
Get stock on hand information.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes |
|
header |
| string | Yes | Site token or access token and integrator token with |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request. For more information, look at the body error. | |
401 | Unauthorized error | |
403 | Forbidden error | |
404 | Not Found | |
422 | Unprocessable error | |
500 | Internal Server Error |
POST /api/shipment
Summary
Create a shipment.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes |
|
header |
| string | Yes | The integrator token created previously. Supports site and integrator tokens only. |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
header |
| string | Yes | The unique site ID. Only one site ID per request. |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request. For more information, look at the body error. | |
401 | Unauthorized error | |
403 | Forbidden error | |
404 | Not Found | |
422 | Unprocessable error | |
500 | Internal Server Error |
POST /api/shipment/address
Summary
Create and validate a shipping address.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes |
|
header |
| string | Yes | The integrator token created previously. Supports site and integrator tokens only. |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
header |
| string | Yes | The unique site ID. Only one site ID per request. |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
201 | Success | |
400 | Bad request. For more information, look at the body error. | |
401 | Unauthorized error | |
403 | Forbidden error | |
404 | Not Found | |
422 | Unprocessable error | |
500 | Internal Server Error |
PATCH /api/shipment/[id]/buy
Summary
Request to buy a shipment by the shipment identifier (ID).
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes |
|
header |
| string | Yes | The integrator token created previously. Supports site and integrator tokens only. |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
path |
| string | Yes | The shipment's ID |
body |
| Yes | The JSON formatted request |
Responses
Code | Description | Schema |
|---|---|---|
201 | Success | |
400 | Bad request. For more information, look at the body error. | |
401 | Unauthorized error | |
403 | Forbidden error | |
404 | Not Found | |
422 | Unprocessable error | |
500 | Internal Server Error |
GET /api/shipment/[id]
Summary
Get shipment details by shipment identifier (ID).
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes |
|
header |
| string | Yes | The integrator token created previously. Supports site and integrator tokens only. |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
path |
| string | Yes | The shipment's ID |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request. For more information, look at the body error. | |
401 | Unauthorized error | |
403 | Forbidden error | |
404 | Not Found | |
422 | Unprocessable error | |
500 | Internal Server Error |
PATCH /api/shipment/[id]/refund
Summary
Request to refund a shipment by the shipment identifier (ID).
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes |
|
header |
| string | Yes | The integrator token created previously. Supports site and integrator tokens only. |
header |
| string | Yes | The unique identifier (UID) for the company provided by us |
|
| string | Yes | The shipment's ID |
Responses
Code | Description | Schema |
|---|---|---|
200 | Success | |
400 | Bad request. For more information, look at the body error. | |
401 | Unauthorized error | |
403 | Forbidden error | |
404 | Not Found | |
422 | Unprocessable error | |
500 | Internal Server Error |
Data Models
product_post_body_1
Field Name | Type | Description |
|---|---|---|
| array | |
|
product_post_body_1_products
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The product identifier (ID) |
| string | No | |
| string | No |
product_post_response_1
Field Name | Type | Description |
|---|---|---|
|
product_post_response_1_items
Field Name | Type | Description |
|---|---|---|
| string | The product name |
| string | The stock keeping unit (SKU). Also, the product identifier (ID) for our system |
| The information about the product items on hand |
product_post_response_1_items_on_hand
Field Name | Type | Description |
|---|---|---|
| string | The site identifier (ID) for our system |
| number | The stock amount of the product |
| string | The measure of the product |
shipment_post_body_1
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The shipment recipient's address ID |
| string | No | The shipment sender's address ID |
| No | The shipment recipient's address information | |
| No | The shipment sender's address information | |
| Yes | The parcel's dimensions and weight | |
| string | Yes | The order ID in the point of sale (POS) |
| string | No | Indicates if a delivery confirmation is required. For example, |
| boolean | No | A flag that indicates if the parcel is fragile |
| string | No | A field to add delivery instructions |
| boolean | No | A flag that indicates if the parcel is a return from the original recipient |
shipment_post_body_1_from_address
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The shipment sender's name |
| string | No | The shipment sender's company name |
| string | Yes | The street number and name of the shipment sender |
| string | No | The additional street address information for the shipment sender |
| string | Yes | The city name for the shipment sender |
| string | Yes | The state abbreviation for the shipment sender |
| string | Yes | The zip code for the shipment sender |
| string | Yes | The ISO 3166 country code for the shipment sender |
| string | No | The telephone number for the shipment sender |
| string | No | The email address for the shipment sender |
shipment_post_body_1_to_address
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The shipment recipient's name |
| string | No | The shipment recipient's company name |
| string | Yes | The street number and name for the shipment recipient |
| string | No | The additional street address information for the shipment recipient |
| string | Yes | The city name for the shipment recipient |
| string | Yes | The state abbreviation for the shipment recipient |
| string | Yes | The zip code for the shipment recipient |
| string | Yes | The ISO 3166 country code for the shipment recipient |
| string | No | The telephone number for the shipment recipient |
| string | No | The email address for the shipment recipient |
shipment_post_body_1_parcel
Field Name | Type | Required | Description |
|---|---|---|---|
| number | Yes | The length of the parcel |
| number | Yes | The width of the parcel |
| number | Yes | The height of the parcel |
| number | Yes | The weight of the parcel |
shipment_post_response_1
Field Name | Type | Description |
|---|---|---|
| string | The shipment's identifier (ID) |
| string | The date and time the shipment was created |
| string | The date and time the shipment record was updated |
| object | All of the options applied to the shipment |
| string | The current status of the shipment |
| string | The current status of the shipment refund process |
| The origin address | |
| The destination address | |
| The shipper's address. Defaults to | |
| The buyer's address. Defaults to | |
| number | The USPS zone of the shipment, if purchased with USPS |
| boolean | A flag that indicates if it is a return shipment |
| object | The dimensions and weight of the package |
| object | The associated |
| string | The specific rate purchased for the shipment, or null if not purchased or purchased through another mechanism |
| array | All associated |
| string | The tracking code provided by the carrier |
| object | Contains all of the tracking information for the package |
| string | The associated insurance amount |
| array | A list of the charges billed to the user's account |
| string | The current environment, test or production |
shipment_post_response_1_from_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment sender's name |
| string | The shipment sender's company name |
| string | The street number and name of the shipment sender |
| string | The additional street address information for the shipment sender |
| string | The city name for the shipment sender |
| string | The state abbreviation for the shipment sender |
| string | The zip code for the shipment sender |
| string | The ISO 3166 country code for the shipment sender |
| string | The telephone number for the shipment sender |
| string | The email address for the shipment sender |
| string | The current environment, test or production |
shipment_post_response_1_to_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment recipient's name |
| string | The shipment recipient's company name |
| string | The street number and name for the shipment recipient |
| string | The additional street address information for the shipment recipient |
| string | The city name for the shipment recipient |
| string | The state abbreviation for the shipment recipient |
| string | The zip code for the shipment recipient |
| string | The ISO 3166 country code for the shipment recipient |
| string | The telephone number for the shipment recipient |
| string | The email address for the shipment recipient |
| string | The current environment, test or production |
shipment_post_response_1_return_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment returner's name |
| string | The shipment returner's company name |
| string | The street number and name for the shipment returner |
| string | The additional street address information for the shipment returner |
| string | The city name for the shipment returner |
| string | The state abbreviation for the shipment returner |
| string | The zip code for the shipment returner |
| string | The ISO 3166 country code for the shipment returner |
| string | The telephone number for the shipment returner |
| string | The email address for the shipment returner |
| string | The current environment, test or production |
shipment_post_response_1_buyer_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment buyer's name |
| string | The shipment buyer's company name |
| string | The street number and name for the shipment buyer |
| string | The additional street address information for the shipment buyer |
| string | The city name for the shipment buyer |
| string | The state abbreviation for the shipment buyer |
| string | The zip code for the shipment buyer |
| string | The ISO 3166 country code for the shipment buyer |
| string | The telephone number for the shipment buyer |
| string | The email address for the shipment buyer |
| string | The current environment, test or production |
shipment_post_body_2
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The shipment recipient's name |
| string | No | The shipment recipient's company name |
| string | Yes | The street number and name for the shipment recipient |
| string | No | The additional street address information for the shipment recipient |
| string | Yes | The city name for the shipment recipient |
| string | Yes | The state abbreviation for the shipment recipient |
| string | Yes | The zip code for the shipment recipient |
| string | Yes | The ISO 3166 country code for the shipment recipient |
| string | No | The telephone number for the shipment recipient |
| string | No | The email address for the shipment recipient |
shipment_post_response_2
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment recipient's name |
| string | The shipment recipient's company name |
| string | The street number and name for the shipment recipient |
| string | The additional street address information for the shipment recipient |
| string | The city name for the shipment recipient |
| string | The state abbreviation for the shipment recipient |
| string | The zip code for the shipment recipient |
| string | The ISO 3166 country code for the shipment recipient |
| string | The telephone number for the shipment recipient |
| string | The email address for the shipment recipient |
| string | The current environment, test or production |
shipment_patch_body_3
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The rate's identifier (ID) |
| string | No | The shipment's insurance |
shipment_patch_response_3
Field Name | Type | Description |
|---|---|---|
| string | The shipment's identifier (ID) |
| string | The date and time the shipment was created |
| string | The date and time the shipment record was updated |
| object | All of the options applied to the shipment |
| string | The current status of the shipment |
| string | The current status of the shipment refund process |
| The origin address | |
| The destination address | |
| The shipper's address. Defaults to | |
| The buyer's address. Defaults to | |
| number | The USPS zone of the shipment, if purchased with USPS |
| boolean | A flag that indicates if it is a return shipment |
| object | The dimensions and weight of the package |
| object | The associated |
| string | The specific rate purchased for the shipment, or null if not purchased or purchased through another mechanism |
| array | All associated |
| string | The tracking code provided by the carrier |
| object | Contains all of the tracking information for the package |
| string | The associated insurance amount |
| array | A list of the charges billed to the user's account |
| string | The current environment, test or production |
shipment_patch_response_3_from_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment sender's name |
| string | The shipment sender's company name |
| string | The street number and name of the shipment sender |
| string | The additional street address information for the shipment sender |
| string | The city name for the shipment sender |
| string | The state abbreviation for the shipment sender |
| string | The zip code for the shipment sender |
| string | The ISO 3166 country code for the shipment sender |
| string | The telephone number for the shipment sender |
| string | The email address for the shipment sender |
| string | The current environment, test or production |
shipment_patch_response_3_to_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment recipient's name |
| string | The shipment recipient's company name |
| string | The street number and name for the shipment recipient |
| string | The additional street address information for the shipment recipient |
| string | The city name for the shipment recipient |
| string | The state abbreviation for the shipment recipient |
| string | The zip code for the shipment recipient |
| string | The ISO 3166 country code for the shipment recipient |
| string | The telephone number for the shipment recipient |
| string | The email address for the shipment recipient |
| string | The current environment, test or production |
shipment_patch_response_3_return_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment returner's name |
| string | The shipment returner's company name |
| string | The street number and name for the shipment returner |
| string | The additional street address information for the shipment returner |
| string | The city name for the shipment returner |
| string | The state abbreviation for the shipment returner |
| string | The zip code for the shipment returner |
| string | The ISO 3166 country code for the shipment returner |
| string | The telephone number for the shipment returner |
| string | The email address for the shipment returner |
| string | The current environment, test or production |
shipment_patch_response_3_buyer_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment buyer's name |
| string | The shipment buyer's company name |
| string | The street number and name for the shipment buyer |
| string | The additional street address information for the shipment buyer |
| string | The city name for the shipment buyer |
| string | The state abbreviation for the shipment buyer |
| string | The zip code for the shipment buyer |
| string | The ISO 3166 country code for the shipment buyer |
| string | The telephone number for the shipment buyer |
| string | The email address for the shipment buyer |
| string | The current environment, test or production |
shipment_get_response_4
Field Name | Type | Description |
|---|---|---|
| string | The shipment's identifier (ID) |
| string | The date and time the shipment was created |
| string | The date and time the shipment record was updated |
| object | All of the options applied to the shipment |
| string | The current status of the shipment |
| string | The current status of the shipment refund process |
| The origin address | |
| The destination address | |
| The shipper's address. Defaults to | |
| The buyer's address. Defaults to | |
| number | The USPS zone of the shipment, if purchased with USPS |
| boolean | A flag that indicates if it is a return shipment |
| object | The dimensions and weight of the package |
| object | The associated |
| string | The specific rate purchased for the shipment, or null if not purchased or purchased through another mechanism |
| array | All associated |
| string | The tracking code provided by the carrier |
| object | Contains all of the tracking information for the package |
| string | The associated insurance amount |
| array | A list of the charges billed to the user's account |
| string | The current environment, test or production |
shipment_get_response_4_from_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment sender's name |
| string | The street number and name of the shipment sender |
| string | The additional street address information for the shipment sender |
| string | The city name for the shipment sender |
| string | The state abbreviation for the shipment sender |
| string | The zip code for the shipment sender |
| string | The ISO 3166 country code for the shipment sender |
| string | The telephone number for the shipment sender |
| string | The email address for the shipment sender |
| string | The current environment, test or production |
shipment_get_response_4_to_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment recipient's name |
| string | The shipment recipient's company name |
| string | The street number and name for the shipment recipient |
| string | The additional street address information for the shipment recipient |
| string | The city name for the shipment recipient |
| string | The state abbreviation for the shipment recipient |
| string | The zip code for the shipment recipient |
| string | The ISO 3166 country code for the shipment recipient |
| string | The telephone number for the shipment recipient |
| string | The email address for the shipment recipient |
| string | The current environment, test or production |
shipment_get_response_4_return_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment returner's name |
| string | The shipment returner's company name |
| string | The street number and name for the shipment returner |
| string | The additional street address information for the shipment returner |
| string | The city name for the shipment returner |
| string | The state abbreviation for the shipment returner |
| string | The zip code for the shipment returner |
| string | The ISO 3166 country code for the shipment returner |
| string | The telephone number for the shipment returner |
| string | The email address for the shipment returner |
| string | The current environment, test or production |
shipment_get_response_4_buyer_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment buyer's name |
| string | The shipment buyer's company name |
| string | The street number and name for the shipment buyer |
| string | The additional street address information for the shipment buyer |
| string | The city name for the shipment buyer |
| string | The state abbreviation for the shipment buyer |
| string | The zip code for the shipment buyer |
| string | The ISO 3166 country code for the shipment buyer |
| string | The telephone number for the shipment buyer |
| string | The email address for the shipment buyer |
| string | The current environment, test or production |
shipment_patch_response_5
Field Name | Type | Description |
|---|---|---|
| string | The shipment's identifier (ID) |
| string | The date and time the shipment was created |
| string | The date and time the shipment record was updated |
| object | All of the options applied to the shipment |
| string | The current status of the shipment |
| string | The current status of the shipment refund process |
| The origin address | |
| The destination address | |
| The shipper's address. Defaults to | |
| The buyer's address. Defaults to | |
| number | The USPS zone of the shipment, if purchased with USPS |
| boolean | A flag that indicates if it is a return shipment |
| object | The dimensions and weight of the package |
| object | The associated |
| string | The specific rate purchased for the shipment, or null if not purchased or purchased through another mechanism |
| array | All associated |
| string | The tracking code provided by the carrier |
| object | Contains all of the tracking information for the package |
| string | The associated insurance amount |
| array | A list of the charges billed to the user's account |
| string | The current environment, test or production |
shipment_patch_response_5_from_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment sender's name |
| string | The shipment sender's company name |
| string | The street number and name of the shipment sender |
| string | The additional street address information for the shipment sender |
| string | The city name for the shipment sender |
| string | The state abbreviation for the shipment sender |
| string | The zip code for the shipment sender |
| string | The ISO 3166 country code for the shipment sender |
| string | The telephone number for the shipment sender |
| string | The email address for the shipment sender |
| string | The current environment, test or production |
shipment_patch_response_5_to_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment recipient's name |
| string | The shipment recipient's company name |
| string | The street number and name for the shipment recipient |
| string | The additional street address information for the shipment recipient |
| string | The city name for the shipment recipient |
| string | The state abbreviation for the shipment recipient |
| string | The zip code for the shipment recipient |
| string | The ISO 3166 country code for the shipment recipient |
| string | The telephone number for the shipment recipient |
| string | The email address for the shipment recipient |
| string | The current environment, test or production |
shipment_patch_response_5_return_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment returner's name |
| string | The shipment returner's company name |
| string | The street number and name for the shipment returner |
| string | The additional street address information for the shipment returner |
| string | The city name for the shipment returner |
| string | The state abbreviation for the shipment returner |
| string | The zip code for the shipment returner |
| string | The ISO 3166 country code for the shipment returner |
| string | The telephone number for the shipment returner |
| string | The email address for the shipment returner |
| string | The current environment, test or production |
shipment_patch_response_5_buyer_address
Field Name | Type | Description |
|---|---|---|
| string | The shipment address identifier (ID) |
| string | The time and date the shipment address was created |
| string | The time and date the shipment address was updated |
| string | The shipment buyer's name |
| string | The shipment buyer's company name |
| string | The street number and name for the shipment buyer |
| string | The additional street address information for the shipment buyer |
| string | The city name for the shipment buyer |
| string | The state abbreviation for the shipment buyer |
| string | The zip code for the shipment buyer |
| string | The ISO 3166 country code for the shipment buyer |
| string | The telephone number for the shipment buyer |
| string | The email address for the shipment buyer |
| string | The current environment, test or production |
Sample Code
Create a Shipment
Sample Request Body with Address Identifiers (IDs)
{
"to_address_id": "adr_4b9b22e19c1311efa2a3ac1f6bc53342", // required
"from_address_id": "adr_2a5d32ab9c1311efa57d3cecef1b359e", // required
"parcel": {
"length": 20.2, // required
"width": 10.9, // required
"height": 5, // required
"weight": 65.9 // required
}, // the parcel field is required
"invoice_number": "672acf7cde645549c56fb596", // required, Order Id in POS
"delivery_confirmation": "ADULT_SIGNATURE", // optional
"is_fragile": true, // optional
"comment": "Take care with the goods" // optional
}Sample Request Body with Completed Addresses
{
"to_address": {
"name": "John Smith",
"street1": "123 Main St",
"city": "Redondo Beach",
"state": "CA",
"zip": "90277",
"country": "US",
"phone": "8575555756",
"email": "john.smith@email.com"
}, // the "to_address" is required
"from_address": {
"name": "ABC Company",
"street1": "123 1st Street",
"street2": "5th Floor",
"city": "San Francisco",
"state": "CA",
"zip": "94104",
"country": "US",
"phone": "4155554445",
"email": "support@email.com"
}, // the "from_address" is required
"parcel": {
"length": 20.2,
"width": 10.9,
"height": 5,
"weight": 65.9
}, // required
"invoice_number": "672acf7cde645549c56fb596", // required, Order Id in POS
"delivery_confirmation": "ADULT_SIGNATURE", // optional
"is_fragile": true, // optional
"comment": "Take care with the goods", // optional
"is_return": true // optional, if try to create return for a shipment,
please add "is_return": "true"
}Sample Response Body
{
"id": "shp_f63ace3d7e1f48beb3bfc78a55132f97",
"created_at": "2024-11-06T08:53:37Z",
"is_return": false,
"messages": [],
"mode": "test",
"options": {
"invoice_number": "672acf7cde645549c56fb596",
"delivery_confirmation": "ADULT_SIGNATURE",
"print_custom_1": "Fragile",
"currency": "USD",
"print_custom": [
{
"value": "Fragile"
}
],
"payment": {
"type": "SENDER"
},
"date_advance": 0
},
"reference": null,
"status": "unknown",
"tracking_code": null,
"updated_at": "2024-11-06T08:53:37Z",
"batch_id": null,
"batch_status": null,
"batch_message": null,
"customs_info": null,
"from_address": {
"id": "adr_2a5d32ab9c1311efa57d3cecef1b359e",
"object": "Address",
"created_at": "2024-11-06T07:46:00+00:00",
"updated_at": "2024-11-06T07:46:00+00:00",
"name": "ABC COMPANY",
"company": null,
"street1": "123 1ST ST # 5",
"street2": null,
"city": "SAN FRANCISCO",
"state": "CA",
"zip": "94104-1129",
"country": "US",
"phone": "4155554445",
"email": "SUPPORT@EMAIL.COM",
"mode": "test",
"carrier_facility": null,
"residential": false,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": true,
"errors": [],
"details": null
},
"delivery": {
"success": true,
"errors": [],
"details": {
"latitude": 37.79342,
"longitude": -122.40288,
"time_zone": "America/Los_Angeles"
}
}
}
},
"insurance": null,
"order_id": null,
"parcel": {
"id": "prcl_2c54b14009eb4890b66c6a8a7206778d",
"object": "Parcel",
"created_at": "2024-11-06T08:53:37Z",
"updated_at": "2024-11-06T08:53:37Z",
"length": 20.2,
"width": 10.9,
"height": 5.0,
"predefined_package": null,
"weight": 65.9,
"mode": "test"
},
"postage_label": null,
"rates": [
{
"id": "rate_bea35bae39924682bf451b04e2a96c1c",
"object": "Rate",
"created_at": "2024-11-06T08:53:37Z",
"updated_at": "2024-11-06T08:53:37Z",
"mode": "test",
"service": "Express",
"carrier": "USPS",
"rate": "60.45",
"currency": "USD",
"retail_rate": "68.75",
"retail_currency": "USD",
"list_rate": "60.45",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 1,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 1,
"shipment_id": "shp_f63ace3d7e1f48beb3bfc78a55132f97",
"carrier_account_id": "ca_6d792591ca07448ba461521db68cff62"
},
{
"id": "rate_87bba9efbd014b5ab8e7f7847f98c66e",
"object": "Rate",
"created_at": "2024-11-06T08:53:37Z",
"updated_at": "2024-11-06T08:53:37Z",
"mode": "test",
"service": "Priority",
"carrier": "USPS",
"rate": "19.96",
"currency": "USD",
"retail_rate": "25.10",
"retail_currency": "USD",
"list_rate": "20.69",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 2,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 2,
"shipment_id": "shp_f63ace3d7e1f48beb3bfc78a55132f97",
"carrier_account_id": "ca_6d792591ca07448ba461521db68cff62"
},
{
"id": "rate_7b85005ab1f74ba5bcafba1674085899",
"object": "Rate",
"created_at": "2024-11-06T08:53:37Z",
"updated_at": "2024-11-06T08:53:37Z",
"mode": "test",
"service": "GroundAdvantage",
"carrier": "USPS",
"rate": "17.49",
"currency": "USD",
"retail_rate": "23.05",
"retail_currency": "USD",
"list_rate": "19.21",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 3,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 3,
"shipment_id": "shp_f63ace3d7e1f48beb3bfc78a55132f97",
"carrier_account_id": "ca_6d792591ca07448ba461521db68cff62"
}
],
"refund_status": null,
"scan_form": null,
"selected_rate": null,
"tracker": null,
"to_address": {
"id": "adr_4b9b22e19c1311efa2a3ac1f6bc53342",
"object": "Address",
"created_at": "2024-11-06T07:46:55+00:00",
"updated_at": "2024-11-06T07:46:55+00:00",
"name": "JOHN SMITH",
"company": null,
"street1": "123 MAIN ST",
"street2": null,
"city": "REDONDO BEACH",
"state": "CA",
"zip": "90277-2506",
"country": "US",
"phone": "8575555756",
"email": "JOHN.SMITH@EMAIL.COM",
"mode": "test",
"carrier_facility": null,
"residential": false,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": true,
"errors": [],
"details": null
},
"delivery": {
"success": true,
"errors": [],
"details": {
"latitude": 33.8436,
"longitude": -118.39177,
"time_zone": "America/Los_Angeles"
}
}
}
},
"usps_zone": 4,
"return_address": {
"id": "adr_2a5d32ab9c1311efa57d3cecef1b359e",
"object": "Address",
"created_at": "2024-11-06T07:46:00+00:00",
"updated_at": "2024-11-06T07:46:00+00:00",
"name": "ABC COMPANY",
"company": null,
"street1": "123 1ST ST # 5",
"street2": null,
"city": "SAN FRANCISCO",
"state": "CA",
"zip": "94104-1129",
"country": "US",
"phone": "4155554445",
"email": "SUPPORT@EMAIL.COM",
"mode": "test",
"carrier_facility": null,
"residential": false,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": true,
"errors": [],
"details": null
},
"delivery": {
"success": true,
"errors": [],
"details": {
"latitude": 37.79342,
"longitude": -122.40288,
"time_zone": "America/Los_Angeles"
}
}
}
},
"buyer_address": {
"id": "adr_4b9b22e19c1311efa2a3ac1f6bc53342",
"object": "Address",
"created_at": "2024-11-06T07:46:55+00:00",
"updated_at": "2024-11-06T07:46:55+00:00",
"name": "JOHN SMITH",
"company": null,
"street1": "123 MAIN ST",
"street2": null,
"city": "REDONDO BEACH",
"state": "CA",
"zip": "90277-2506",
"country": "US",
"phone": "8575555756",
"email": "JOHN.SMITH@EMAIL.COM",
"mode": "test",
"carrier_facility": null,
"residential": false,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": true,
"errors": [],
"details": null
},
"delivery": {
"success": true,
"errors": [],
"details": {
"latitude": 33.8436,
"longitude": -118.39177,
"time_zone": "America/Los_Angeles"
}
}
}
},
"forms": [],
"fees": [],
"object": "Shipment"
}Create a Shipment Address
Sample Request Body
{
"name": "John Smith", // optional
"company": "ABC Company", // optional
"street1": "123 Main Street", // required
"street2": "5th Floor", // optional
"city": "San Francisco", // required
"state": "CA", // required
"zip": "94104", // required
"country": "US", // required
"phone": "4155554445", // optional
"email": "support@email.com" // optional
}Sample Response Body
{
"id": "adr_220bdc9e9c1911efbcc13cecef1b359e",
"name": "John Smith",
"company": "ABC Company",
"street1": "123 Main Street",
"street2": "5th Floor",
"city": "San Francisco",
"state": "CA",
"zip": "94104",
"country": "US",
"phone": "4155554445",
"mode": "test",
"email": "support@email.com",
"created_at": "2024-11-06T08:28:43+00:00",
"updated_at": "2024-11-06T08:28:43+00:00"
}