diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d2d46a..a9352a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## Next Release + +- Update HTTP logic to use query for GET/DELETE requests and body for POST/PUT/PATCH requests + ## v4.5.0 (2024-07-24) - Add new claim-related functions: `CreateClaim`, `GetClaim`, `ListClaims`, `GetNextClaimPage` and `CancelClaim` diff --git a/address.go b/address.go index 7256fe7..6b8ce4d 100644 --- a/address.go +++ b/address.go @@ -8,86 +8,86 @@ import ( // AddressVerificationFieldError provides additional information on address // validation errors. type AddressVerificationFieldError struct { - Code string `json:"code,omitempty"` - Field string `json:"field,omitempty"` - Message string `json:"message,omitempty"` - Suggestion string `json:"suggestion,omitempty"` + Code string `json:"code,omitempty" url:"code,omitempty"` + Field string `json:"field,omitempty" url:"field,omitempty"` + Message string `json:"message,omitempty" url:"message,omitempty"` + Suggestion string `json:"suggestion,omitempty" url:"suggestion,omitempty"` } // AddressVerificationDetails contains extra information related to address // verification. type AddressVerificationDetails struct { - Latitude float64 `json:"latitude"` - Longitude float64 `json:"longitude"` - TimeZone string `json:"time_zone"` + Latitude float64 `json:"latitude,omitempty" url:"latitude,omitempty"` + Longitude float64 `json:"longitude,omitempty" url:"longitude,omitempty"` + TimeZone string `json:"time_zone,omitempty" url:"time_zone,omitempty"` } // AddressVerification holds data relating to address verification status. type AddressVerification struct { - Success bool `json:"success"` - Errors []*AddressVerificationFieldError `json:"errors"` - Details *AddressVerificationDetails `json:"details"` + Success bool `json:"success,omitempty" url:"success,omitempty"` + Errors []*AddressVerificationFieldError `json:"errors,omitempty" url:"errors,omitempty"` + Details *AddressVerificationDetails `json:"details,omitempty" url:"details,omitempty"` } // AddressVerifications contains the result of the requested address // verifications. type AddressVerifications struct { - ZIP4 *AddressVerification `json:"zip4"` - Delivery *AddressVerification `json:"delivery"` + ZIP4 *AddressVerification `json:"zip4,omitempty" url:"zip4,omitempty"` + Delivery *AddressVerification `json:"delivery,omitempty" url:"delivery,omitempty"` } // Address objects are used to represent people, places, and organizations in a // number of contexts. type Address struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Street1 string `json:"street1,omitempty"` - Street2 string `json:"street2,omitempty"` - City string `json:"city,omitempty"` - State string `json:"state,omitempty"` - Zip string `json:"zip,omitempty"` - Country string `json:"country,omitempty"` - Name string `json:"name,omitempty"` - Company string `json:"company,omitempty"` - Phone string `json:"phone,omitempty"` - Email string `json:"email,omitempty"` - Residential bool `json:"residential,omitempty"` - CarrierFacility string `json:"carrier_facility,omitempty"` - FederalTaxID string `json:"federal_tax_id,omitempty"` - StateTaxID string `json:"state_tax_id,omitempty"` - Verifications *AddressVerifications `json:"verifications,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Street1 string `json:"street1,omitempty" url:"street1,omitempty"` + Street2 string `json:"street2,omitempty" url:"street2,omitempty"` + City string `json:"city,omitempty" url:"city,omitempty"` + State string `json:"state,omitempty" url:"state,omitempty"` + Zip string `json:"zip,omitempty" url:"zip,omitempty"` + Country string `json:"country,omitempty" url:"country,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + Company string `json:"company,omitempty" url:"company,omitempty"` + Phone string `json:"phone,omitempty" url:"phone,omitempty"` + Email string `json:"email,omitempty" url:"email,omitempty"` + Residential bool `json:"residential,omitempty" url:"residential,omitempty"` + CarrierFacility string `json:"carrier_facility,omitempty" url:"carrier_facility,omitempty"` + FederalTaxID string `json:"federal_tax_id,omitempty" url:"federal_tax_id,omitempty"` + StateTaxID string `json:"state_tax_id,omitempty" url:"state_tax_id,omitempty"` + Verifications *AddressVerifications `json:"verifications,omitempty" url:"verifications,omitempty"` } // CreateAddressOptions is used to specify verification options for address // creation. type CreateAddressOptions struct { // TODO: These should be booleans, not strings, like the other libs - Verify []string `json:"verify,omitempty"` - VerifyStrict []string `json:"verify_strict,omitempty"` + Verify []string `json:"verify,omitempty" url:"verify,omitempty"` + VerifyStrict []string `json:"verify_strict,omitempty" url:"verify_strict,omitempty"` } type createAddressRequest struct { *CreateAddressOptions - Address *Address `json:"address,omitempty"` + Address *Address `json:"address,omitempty" url:"address,omitempty"` } type AddressVerifyResponse struct { - Address *Address `json:"address,omitempty"` + Address *Address `json:"address,omitempty" url:"address,omitempty"` } // ListAddressResult holds the results from the list addresses API. type ListAddressResult struct { - Addresses []*Address `json:"addresses,omitempty"` + Addresses []*Address `json:"addresses,omitempty" url:"addresses,omitempty"` PaginatedCollection } // For some reason, the verify API returns the address in a nested dictionary. type verifyAddressResponse struct { - Address **Address `json:"address,omitempty"` + Address **Address `json:"address,omitempty" url:"address,omitempty"` } // CreateAddress submits a request to create a new address, and returns the @@ -115,7 +115,7 @@ func (c *Client) CreateAddress(in *Address, opts *CreateAddressOptions) (out *Ad // allows specifying a context that can interrupt the request. func (c *Client) CreateAddressWithContext(ctx context.Context, in *Address, opts *CreateAddressOptions) (out *Address, err error) { req := &createAddressRequest{CreateAddressOptions: opts, Address: in} - err = c.post(ctx, "addresses", req, &out) + err = c.do(ctx, http.MethodPost, "addresses", req, &out) return } @@ -127,7 +127,7 @@ func (c *Client) ListAddresses(opts *ListOptions) (out *ListAddressResult, err e // ListAddressesWithContext performs the same operation as ListAddresses, but // allows specifying a context that can interrupt the request. func (c *Client) ListAddressesWithContext(ctx context.Context, opts *ListOptions) (out *ListAddressResult, err error) { - err = c.do(ctx, http.MethodGet, "addresses", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "addresses", opts, &out) return } @@ -172,7 +172,7 @@ func (c *Client) VerifyAddress(addressID string) (out *Address, err error) { func (c *Client) VerifyAddressWithContext(ctx context.Context, addressID string) (out *Address, err error) { path := "addresses/" + addressID + "/verify" res := &verifyAddressResponse{Address: &out} - err = c.get(ctx, path, res) + err = c.do(ctx, http.MethodGet, path, nil, res) return } @@ -184,7 +184,7 @@ func (c *Client) GetAddress(addressID string) (out *Address, err error) { // GetAddressWithContext performs the same operation as GetAddress, but allows // specifying a context that can interrupt the request. func (c *Client) GetAddressWithContext(ctx context.Context, addressID string) (out *Address, err error) { - err = c.get(ctx, "addresses/"+addressID, &out) + err = c.do(ctx, http.MethodGet, "addresses/"+addressID, nil, &out) return } @@ -198,7 +198,7 @@ func (c *Client) CreateAndVerifyAddress(in *Address, opts *CreateAddressOptions) func (c *Client) CreateAndVerifyAddressWithContext(ctx context.Context, in *Address, opts *CreateAddressOptions) (out *Address, err error) { req := &createAddressRequest{CreateAddressOptions: opts, Address: in} response := AddressVerifyResponse{} - err = c.post(ctx, "addresses/create_and_verify", req, &response) + err = c.do(ctx, http.MethodPost, "addresses/create_and_verify", req, &response) out = response.Address return } diff --git a/api_key.go b/api_key.go index 6e1954f..6298f0f 100644 --- a/api_key.go +++ b/api_key.go @@ -2,22 +2,23 @@ package easypost import ( "context" + "net/http" ) // APIKey represents a single API key. type APIKey struct { - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - Key string `json:"key,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + Key string `json:"key,omitempty" url:"key,omitempty"` } // APIKeys contains information about a list of API keys for the given user and // any child users. type APIKeys struct { - ID string `json:"id,omitempty"` - Children []*APIKeys `json:"children,omitempty"` - Keys []*APIKey `json:"keys,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Children []*APIKeys `json:"children,omitempty" url:"children,omitempty"` + Keys []*APIKey `json:"keys,omitempty" url:"keys,omitempty"` } // GetAPIKeys returns the list of API keys associated with the current user. @@ -28,7 +29,7 @@ func (c *Client) GetAPIKeys() (out *APIKeys, err error) { // GetAPIKeysWithContext performs the same operation as GetAPIKeys, but allows // specifying a context that can interrupt the request. func (c *Client) GetAPIKeysWithContext(ctx context.Context) (out *APIKeys, err error) { - err = c.get(ctx, "api_keys", &out) + err = c.do(ctx, http.MethodGet, "api_keys", nil, &out) return } diff --git a/batch.go b/batch.go index 143d729..28c05c5 100644 --- a/batch.go +++ b/batch.go @@ -3,46 +3,45 @@ package easypost import ( "context" "net/http" - "net/url" ) // BatchStatus contains counts of statuses for the shipments in a batch. type BatchStatus struct { - PostagePurchased int `json:"postage_purchased,omitempty"` - PostagePurchaseFailed int `json:"postage_purchase_failed,omitempty"` - QueuedForPurchase int `json:"queued_for_purchase,omitempty"` - CreationFailed int `json:"creation_failed,omitempty"` + PostagePurchased int `json:"postage_purchased,omitempty" url:"postage_purchased,omitempty"` + PostagePurchaseFailed int `json:"postage_purchase_failed,omitempty" url:"postage_purchase_failed,omitempty"` + QueuedForPurchase int `json:"queued_for_purchase,omitempty" url:"queued_for_purchase,omitempty"` + CreationFailed int `json:"creation_failed,omitempty" url:"creation_failed,omitempty"` } // Batch represents a batch of shipments. type Batch struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - State string `json:"state,omitempty"` - NumShipments int `json:"num_shipments,omitempty"` - Shipments []*Shipment `json:"shipments,omitempty"` - Status *BatchStatus `json:"status,omitempty"` - LabelURL string `json:"label_url,omitempty"` - ScanForm *ScanForm `json:"scan_form,omitempty"` - Pickup *Pickup `json:"pickup,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + State string `json:"state,omitempty" url:"state,omitempty"` + NumShipments int `json:"num_shipments,omitempty" url:"num_shipments,omitempty"` + Shipments []*Shipment `json:"shipments,omitempty" url:"shipments,omitempty"` + Status *BatchStatus `json:"status,omitempty" url:"status,omitempty"` + LabelURL string `json:"label_url,omitempty" url:"label_url,omitempty"` + ScanForm *ScanForm `json:"scan_form,omitempty" url:"scan_form,omitempty"` + Pickup *Pickup `json:"pickup,omitempty" url:"pickup,omitempty"` } type batchRequest struct { - Batch *Batch `json:"batch,omitempty"` + Batch *Batch `json:"batch,omitempty" url:"batch,omitempty"` } // ListBatchesResult holds the results from the list insurances API. type ListBatchesResult struct { - Batch []*Batch `json:"batches,omitempty"` + Batch []*Batch `json:"batches,omitempty" url:"batches,omitempty"` PaginatedCollection } type addRemoveShipmentsRequest struct { - Shipments []*Shipment `json:"shipments,omitempty"` + Shipments []*Shipment `json:"shipments,omitempty" url:"shipments,omitempty"` } // CreateBatch creates a new batch of shipments. It optionally accepts one or @@ -63,7 +62,7 @@ func (c *Client) CreateBatch(in ...*Shipment) (out *Batch, err error) { // specifying a context that can interrupt the request. func (c *Client) CreateBatchWithContext(ctx context.Context, in ...*Shipment) (out *Batch, err error) { req := batchRequest{Batch: &Batch{Shipments: in}} - err = c.post(ctx, "batches", req, &out) + err = c.do(ctx, http.MethodPost, "batches", req, &out) return } @@ -75,7 +74,7 @@ func (c *Client) ListBatches(opts *ListOptions) (out *ListBatchesResult, err err // ListBatchesWithContext performs the same operation as ListBatches, but // allows specifying a context that can interrupt the request. func (c *Client) ListBatchesWithContext(ctx context.Context, opts *ListOptions) (out *ListBatchesResult, err error) { - err = c.do(ctx, http.MethodGet, "batches", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "batches", opts, &out) return } @@ -92,7 +91,7 @@ func (c *Client) AddShipmentsToBatch(batchID string, shipments ...*Shipment) (ou // request. func (c *Client) AddShipmentsToBatchWithContext(ctx context.Context, batchID string, shipments ...*Shipment) (out *Batch, err error) { req := addRemoveShipmentsRequest{Shipments: shipments} - err = c.post(ctx, "batches/"+batchID+"/add_shipments", req, &out) + err = c.do(ctx, http.MethodPost, "batches/"+batchID+"/add_shipments", req, &out) return } @@ -107,7 +106,7 @@ func (c *Client) RemoveShipmentsFromBatch(batchID string, shipments ...*Shipment // the request. func (c *Client) RemoveShipmentsFromBatchWithContext(ctx context.Context, batchID string, shipments ...*Shipment) (out *Batch, err error) { req := addRemoveShipmentsRequest{Shipments: shipments} - err = c.post(ctx, "batches/"+batchID+"/remove_shipments", req, &out) + err = c.do(ctx, http.MethodPost, "batches/"+batchID+"/remove_shipments", req, &out) return } @@ -120,7 +119,7 @@ func (c *Client) BuyBatch(batchID string) (out *Batch, err error) { // BuyBatchWithContext performs the same operation as BuyBatch, but allows // specifying a context that can interrupt the request. func (c *Client) BuyBatchWithContext(ctx context.Context, batchID string) (out *Batch, err error) { - err = c.post(ctx, "batches/"+batchID+"/buy", nil, &out) + err = c.do(ctx, http.MethodPost, "batches/"+batchID+"/buy", nil, &out) return } @@ -132,7 +131,7 @@ func (c *Client) GetBatch(batchID string) (out *Batch, err error) { // GetBatchWithContext performs the same operation as GetBatch, but allows // specifying a context that can interrupt the request. func (c *Client) GetBatchWithContext(ctx context.Context, batchID string) (out *Batch, err error) { - err = c.get(ctx, "batches/"+batchID, &out) + err = c.do(ctx, http.MethodGet, "batches/"+batchID, nil, &out) return } @@ -145,8 +144,10 @@ func (c *Client) GetBatchLabels(batchID, format string) (out *Batch, err error) // GetBatchLabelsWithContext performs the same operation as GetBatchLabels, but // allows specifying a context that can interrupt the request. func (c *Client) GetBatchLabelsWithContext(ctx context.Context, batchID, format string) (out *Batch, err error) { - params := url.Values{"file_format": []string{format}} - err = c.post(ctx, "batches/"+batchID+"/label", params, &out) + params := struct { + FileFormat string `json:"file_format,omitempty" url:"file_format,omitempty"` + }{FileFormat: format} + err = c.do(ctx, http.MethodPost, "batches/"+batchID+"/label", params, &out) return } @@ -159,7 +160,9 @@ func (c *Client) CreateBatchScanForms(batchID, format string) (out *Batch, err e // CreateBatchScanForms, but allows specifying a context that can interrupt the // request. func (c *Client) CreateBatchScanFormsWithContext(ctx context.Context, batchID, format string) (out *Batch, err error) { - vals := url.Values{"file_format": []string{format}} - err = c.do(ctx, http.MethodPost, "batches/"+batchID+"/scan_form", vals, &out) + params := struct { + FileFormat string `json:"file_format,omitempty" url:"file_format,omitempty"` + }{FileFormat: format} + err = c.do(ctx, http.MethodPost, "batches/"+batchID+"/scan_form", params, &out) return } diff --git a/billing.go b/billing.go index 87fb9e0..969e165 100644 --- a/billing.go +++ b/billing.go @@ -2,6 +2,7 @@ package easypost import ( "context" + "net/http" ) // DeletePaymentMethod allows you to delete a payment method in your wallet. @@ -14,7 +15,7 @@ func (c *Client) DeletePaymentMethod(priority PaymentMethodPriority) (err error) func (c *Client) DeletePaymentMethodWithContext(ctx context.Context, priority PaymentMethodPriority) (err error) { paymentMethodObject, _ := c.getPaymentMethodByPriority(priority) endpoint, _ := c.getPaymentMethodEndpoint(paymentMethodObject) - return c.del(ctx, endpoint+"/"+paymentMethodObject.ID) + return c.do(ctx, http.MethodDelete, endpoint+"/"+paymentMethodObject.ID, nil, nil) } // FundWallet allows you to fund your EasyPost wallet by charging your primary or secondary payment method on file. @@ -33,7 +34,7 @@ func (c *Client) FundWalletWithContext(ctx context.Context, amount string, prior } out := PaymentMethodObject{} - err = c.post(ctx, endpoint+"/"+paymentMethod.ID+"/charges", wrappedParams, &out) + err = c.do(ctx, http.MethodPost, endpoint+"/"+paymentMethod.ID+"/charges", wrappedParams, &out) return err } @@ -45,7 +46,7 @@ func (c *Client) RetrievePaymentMethods() (out *PaymentMethod, err error) { // RetrievePaymentMethodsWithContext performs the same as RetrievePaymentMethods, but // allows specifying a context that can interrupt the request. func (c *Client) RetrievePaymentMethodsWithContext(ctx context.Context) (out *PaymentMethod, err error) { - err = c.get(ctx, "payment_methods", &out) + err = c.do(ctx, http.MethodGet, "payment_methods", nil, &out) if out.ID == "" { return out, newInvalidObjectError(NoPaymentMethods) diff --git a/brand.go b/brand.go index e75fad7..faf6842 100644 --- a/brand.go +++ b/brand.go @@ -2,14 +2,14 @@ package easypost // Brand contains data for a user brand type Brand struct { - ID string `json:"id,omitempty"` - BackgroundColor string `json:"background_color,omitempty"` - Color string `json:"color,omitempty"` - Logo string `json:"logo,omitempty"` - LogoHref string `json:"logo_href,omitempty"` - Ad string `json:"ad,omitempty"` - AdHref string `json:"ad_href,omitempty"` - Name string `json:"name,omitempty"` - UserID string `json:"user_id,omitempty"` - Theme string `json:"theme,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + BackgroundColor string `json:"background_color,omitempty" url:"background_color,omitempty"` + Color string `json:"color,omitempty" url:"color,omitempty"` + Logo string `json:"logo,omitempty" url:"logo,omitempty"` + LogoHref string `json:"logo_href,omitempty" url:"logo_href,omitempty"` + Ad string `json:"ad,omitempty" url:"ad,omitempty"` + AdHref string `json:"ad_href,omitempty" url:"ad_href,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + UserID string `json:"user_id,omitempty" url:"user_id,omitempty"` + Theme string `json:"theme,omitempty" url:"theme,omitempty"` } diff --git a/carrier.go b/carrier.go index 6726b3f..e72377e 100644 --- a/carrier.go +++ b/carrier.go @@ -2,74 +2,75 @@ package easypost import ( "context" + "net/http" ) // CarrierField provides data for a single field in a carrier account. type CarrierField struct { - Visibility string `json:"visibility,omitempty"` - Label string `json:"label,omitempty"` - Value string `json:"value,omitempty"` + Visibility string `json:"visibility,omitempty" url:"visibility,omitempty"` + Label string `json:"label,omitempty" url:"label,omitempty"` + Value string `json:"value,omitempty" url:"value,omitempty"` } // CarrierFields contains the data for carrier account fields for production and/or test credentials. type CarrierFields struct { - Credentials map[string]*CarrierField `json:"credentials,omitempty"` - TestCredentials map[string]*CarrierField `json:"test_credentials,omitempty"` - AutoLink bool `json:"auto_link,omitempty"` - CustomWorkflow bool `json:"custom_workflow,omitempty"` + Credentials map[string]*CarrierField `json:"credentials,omitempty" url:"credentials,omitempty"` + TestCredentials map[string]*CarrierField `json:"test_credentials,omitempty" url:"test_credentials,omitempty"` + AutoLink bool `json:"auto_link,omitempty" url:"auto_link,omitempty"` + CustomWorkflow bool `json:"custom_workflow,omitempty" url:"custom_workflow,omitempty"` } // CarrierAccount encapsulates credentials and other information related to a carrier account. // This struct is also used as a parameter set for creating and updating non-UPS carrier accounts. type CarrierAccount struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Type string `json:"type,omitempty"` - Fields *CarrierFields `json:"fields,omitempty"` - Clone bool `json:"clone,omitempty"` - Description string `json:"description,omitempty"` - Readable string `json:"readable,omitempty"` - Credentials map[string]string `json:"credentials,omitempty"` - TestCredentials map[string]string `json:"test_credentials,omitempty"` - RegistrationData map[string]interface{} `json:"registration_data,omitempty"` - BillingType string `json:"billing_type,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Fields *CarrierFields `json:"fields,omitempty" url:"fields,omitempty"` + Clone bool `json:"clone,omitempty" url:"clone,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Readable string `json:"readable,omitempty" url:"readable,omitempty"` + Credentials map[string]string `json:"credentials,omitempty" url:"credentials,omitempty"` + TestCredentials map[string]string `json:"test_credentials,omitempty" url:"test_credentials,omitempty"` + RegistrationData map[string]interface{} `json:"registration_data,omitempty" url:"registration_data,omitempty"` + BillingType string `json:"billing_type,omitempty" url:"billing_type,omitempty"` } // CarrierType contains information on a supported carrier. It can be used to determine the valid fields for a carrier account. type CarrierType struct { - Object string `json:"object,omitempty"` - Type string `json:"type,omitempty"` - Readable string `json:"readable,omitempty"` - Logo string `json:"logo,omitempty"` - Fields *CarrierFields `json:"fields,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Readable string `json:"readable,omitempty" url:"readable,omitempty"` + Logo string `json:"logo,omitempty" url:"logo,omitempty"` + Fields *CarrierFields `json:"fields,omitempty" url:"fields,omitempty"` } type carrierAccountRequest struct { - Data *CarrierAccount `json:"carrier_account,omitempty"` + Data *CarrierAccount `json:"carrier_account,omitempty" url:"carrier_account,omitempty"` } // UpsCarrierAccountCreationParameters contains the parameters needed to create a new UPS carrier account. type UpsCarrierAccountCreationParameters struct { - Type string `json:"type,omitempty"` - Description string `json:"description,omitempty"` - Reference string `json:"reference,omitempty"` - AccountNumber string `json:"account_number,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + AccountNumber string `json:"account_number,omitempty" url:"account_number,omitempty"` } type upsCarrierAccountCreationRequest struct { - Data *UpsCarrierAccountCreationParameters `json:"ups_oauth_registrations,omitempty"` + Data *UpsCarrierAccountCreationParameters `json:"ups_oauth_registrations,omitempty" url:"ups_oauth_registrations,omitempty"` } // UpsCarrierAccountUpdateParameters contains the parameters needed to update a UPS carrier account. type UpsCarrierAccountUpdateParameters struct { - AccountNumber string `json:"account_number,omitempty"` + AccountNumber string `json:"account_number,omitempty" url:"account_number,omitempty"` } type upsCarrierAccountUpdateRequest struct { - Data *UpsCarrierAccountUpdateParameters `json:"ups_oauth_registrations,omitempty"` + Data *UpsCarrierAccountUpdateParameters `json:"ups_oauth_registrations,omitempty" url:"ups_oauth_registrations,omitempty"` } func (c *Client) selectCarrierAccountCreationEndpoint(typ string) string { @@ -95,7 +96,7 @@ func (c *Client) GetCarrierTypes() (out []*CarrierType, err error) { // GetCarrierTypesWithContext performs the same operation as GetCarrierTypes, but allows specifying a context that can interrupt the request. func (c *Client) GetCarrierTypesWithContext(ctx context.Context) (out []*CarrierType, err error) { - err = c.get(ctx, "carrier_types", &out) + err = c.do(ctx, http.MethodGet, "carrier_types", nil, &out) return } @@ -132,7 +133,7 @@ func (c *Client) CreateCarrierAccountWithContext(ctx context.Context, in *Carrie req := &carrierAccountRequest{Data: in} endpoint := c.selectCarrierAccountCreationEndpoint(in.Type) - err = c.post(ctx, endpoint, req, &out) + err = c.do(ctx, http.MethodPost, endpoint, req, &out) return } @@ -158,7 +159,7 @@ func (c *Client) CreateUpsCarrierAccountWithContext(ctx context.Context, in *Ups } req := &upsCarrierAccountCreationRequest{Data: in} - err = c.post(ctx, "ups_oauth_registrations", req, &out) + err = c.do(ctx, http.MethodPost, "ups_oauth_registrations", req, &out) return } @@ -169,7 +170,7 @@ func (c *Client) ListCarrierAccounts() (out []*CarrierAccount, err error) { // ListCarrierAccountsWithContext performs the same operation as ListCarrierAccounts, but allows specifying a context that can interrupt the request. func (c *Client) ListCarrierAccountsWithContext(ctx context.Context) (out []*CarrierAccount, err error) { - err = c.get(ctx, "carrier_accounts", &out) + err = c.do(ctx, http.MethodGet, "carrier_accounts", nil, &out) return } @@ -180,7 +181,7 @@ func (c *Client) GetCarrierAccount(carrierAccountID string) (out *CarrierAccount // GetCarrierAccountWithContext performs the same operation as GetCarrierAccount, but allows specifying a context that can interrupt the request. func (c *Client) GetCarrierAccountWithContext(ctx context.Context, carrierAccountID string) (out *CarrierAccount, err error) { - err = c.get(ctx, "carrier_accounts/"+carrierAccountID, &out) + err = c.do(ctx, http.MethodGet, "carrier_accounts/"+carrierAccountID, nil, &out) return } @@ -218,7 +219,7 @@ func (c *Client) UpdateCarrierAccountWithContext(ctx context.Context, in *Carrie } req := &carrierAccountRequest{Data: in} - err = c.patch(ctx, "carrier_accounts/"+in.ID, req, &out) + err = c.do(ctx, http.MethodPatch, "carrier_accounts/"+in.ID, req, &out) return } @@ -249,7 +250,7 @@ func (c *Client) UpdateUpsCarrierAccountWithContext(ctx context.Context, id stri } req := &upsCarrierAccountUpdateRequest{Data: in} - err = c.patch(ctx, "ups_oauth_registrations/"+id, req, &out) + err = c.do(ctx, http.MethodPatch, "ups_oauth_registrations/"+id, req, &out) return } @@ -261,5 +262,5 @@ func (c *Client) DeleteCarrierAccount(carrierAccountID string) error { // DeleteCarrierAccountWithContext performs the same operation as DeleteCarrierAccount, but allows specifying a context that can interrupt the request. func (c *Client) DeleteCarrierAccountWithContext(ctx context.Context, carrierAccountID string) error { - return c.del(ctx, "carrier_accounts/"+carrierAccountID) + return c.do(ctx, http.MethodDelete, "carrier_accounts/"+carrierAccountID, nil, nil) } diff --git a/carrier_message.go b/carrier_message.go index 3fe007a..ed9f268 100644 --- a/carrier_message.go +++ b/carrier_message.go @@ -3,8 +3,8 @@ package easypost // CarrierMessage contains additional status data that is provided by some // carriers for certain operations. type CarrierMessage struct { - Carrier string `json:"carrier,omitempty"` - Type string `json:"type,omitempty"` - Message string `json:"message,omitempty"` - CarrierAccountID string `json:"carrier_account_id,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Message string `json:"message,omitempty" url:"message,omitempty"` + CarrierAccountID string `json:"carrier_account_id,omitempty" url:"carrier_account_id,omitempty"` } diff --git a/carrier_metadata.go b/carrier_metadata.go index d23eb20..729f5a5 100644 --- a/carrier_metadata.go +++ b/carrier_metadata.go @@ -2,55 +2,56 @@ package easypost import ( "context" + "net/http" "strings" ) // CarrierMetadata represents all the metadata for a carrier. type CarrierMetadata struct { - Name string `json:"name,omitempty"` - HumanReadable string `json:"human_readable,omitempty"` - ServiceLevels []*MetadataServiceLevel `json:"service_levels,omitempty"` - PredefinedPackages []*MetadataPredefinedPackage `json:"predefined_packages,omitempty"` - ShipmentOptions []*MetadataShipmentOption `json:"shipment_options,omitempty"` - SupportedFeatures []*MetadataSupportedFeature `json:"supported_features,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + HumanReadable string `json:"human_readable,omitempty" url:"human_readable,omitempty"` + ServiceLevels []*MetadataServiceLevel `json:"service_levels,omitempty" url:"service_levels,omitempty"` + PredefinedPackages []*MetadataPredefinedPackage `json:"predefined_packages,omitempty" url:"predefined_packages,omitempty"` + ShipmentOptions []*MetadataShipmentOption `json:"shipment_options,omitempty" url:"shipment_options,omitempty"` + SupportedFeatures []*MetadataSupportedFeature `json:"supported_features,omitempty" url:"supported_features,omitempty"` } // MetadataServiceLevel represents an available service level of a carrier. type MetadataServiceLevel struct { - Name string `json:"name,omitempty"` - Carrier string `json:"carrier,omitempty"` - HumanReadable string `json:"human_readable,omitempty"` - Description string `json:"description,omitempty"` - Dimensions []string `json:"dimensions,omitempty"` - MaxWeight float64 `json:"max_weight,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + HumanReadable string `json:"human_readable,omitempty" url:"human_readable,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Dimensions []string `json:"dimensions,omitempty" url:"dimensions,omitempty"` + MaxWeight float64 `json:"max_weight,omitempty" url:"max_weight,omitempty"` } // MetadataPredefinedPackage represents an available predefined package of a carrier. type MetadataPredefinedPackage struct { - Name string `json:"name,omitempty"` - Carrier string `json:"carrier,omitempty"` - HumanReadable string `json:"human_readable,omitempty"` - Description string `json:"description,omitempty"` - Dimensions []string `json:"dimensions,omitempty"` - MaxWeight float64 `json:"max_weight,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + HumanReadable string `json:"human_readable,omitempty" url:"human_readable,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Dimensions []string `json:"dimensions,omitempty" url:"dimensions,omitempty"` + MaxWeight float64 `json:"max_weight,omitempty" url:"max_weight,omitempty"` } // MetadataShipmentOption represents an available shipment option of a carrier. type MetadataShipmentOption struct { - Name string `json:"name,omitempty"` - Carrier string `json:"carrier,omitempty"` - HumanReadable string `json:"human_readable,omitempty"` - Description string `json:"description,omitempty"` - Deprecated bool `json:"deprecated,omitempty"` - Type string `json:"type,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + HumanReadable string `json:"human_readable,omitempty" url:"human_readable,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Deprecated bool `json:"deprecated,omitempty" url:"deprecated,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` } // MetadataSupportedFeature represents a supported feature of a carrier. type MetadataSupportedFeature struct { - Name string `json:"name,omitempty"` - Carrier string `json:"carrier,omitempty"` - Description string `json:"description,omitempty"` - Supported bool `json:"supported,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Supported bool `json:"supported,omitempty" url:"supported,omitempty"` } // GetCarrierMetadata retrieves all metadata for all carriers on the EasyPost platform. @@ -68,32 +69,30 @@ func (c *Client) GetCarrierMetadataWithTypes(types []string) (out []*CarrierMeta return c.GetCarrierMetadataWithContext(context.Background(), nil, types) } -// GetCarrierMetadataWithTypes retrieves carrier metadata for a list of carriers and a list of types. +// GetCarrierMetadataWithCarriersAndTypes retrieves carrier metadata for a list of carriers and a list of types. func (c *Client) GetCarrierMetadataWithCarriersAndTypes(carriers []string, types []string) (out []*CarrierMetadata, err error) { return c.GetCarrierMetadataWithContext(context.Background(), carriers, types) } -// GetCarrierMetadataWithContext performs the same operation as -// GetCarrierMetadata, but allows specifying a context that can interrupt the -// request. +// GetCarrierMetadataWithContext performs the same operation as GetCarrierMetadata, but allows specifying a context that can interrupt the request. func (c *Client) GetCarrierMetadataWithContext(ctx context.Context, carriers []string, types []string) (out []*CarrierMetadata, err error) { + params := struct { + Carriers string `json:"carriers,omitempty" url:"carriers,omitempty"` + Types string `json:"types,omitempty" url:"types,omitempty"` + }{} + url := "/v2/metadata/carriers" - if carriers != nil && types != nil { - url = url + "?" - } if carriers != nil { - url = url + "carriers=" + strings.Join(carriers[:], ",") - } - if carriers != nil && types != nil { - url = url + "&" + params.Carriers = strings.Join(carriers[:], ",") } if types != nil { - url = url + "types=" + strings.Join(types[:], ",") + params.Types = strings.Join(types[:], ",") } res := struct { - CarrierMetadata *[]*CarrierMetadata `json:"carriers,omitempty"` + CarrierMetadata *[]*CarrierMetadata `json:"carriers,omitempty" url:"carriers,omitempty"` }{CarrierMetadata: &out} - err = c.get(ctx, url, &res) + + err = c.do(ctx, http.MethodGet, url, params, &res) return } diff --git a/claim.go b/claim.go index 823c145..d360fb6 100644 --- a/claim.go +++ b/claim.go @@ -6,66 +6,66 @@ import ( ) type ClaimHistoryEntry struct { - Status string `json:"status,omitempty"` - StatusDetail string `json:"status_detail,omitempty"` - StatusTimestamp string `json:"status_timestamp,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + StatusDetail string `json:"status_detail,omitempty" url:"status_detail,omitempty"` + StatusTimestamp string `json:"status_timestamp,omitempty" url:"status_timestamp,omitempty"` } // A Claim object represents a claim against insurance on a package. type Claim struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - ApprovedAmount string `json:"approved_amount,omitempty"` - Attachments []string `json:"attachments,omitempty"` - CheckDeliveryAddress string `json:"check_delivery_address,omitempty"` - ContactEmail string `json:"contact_email,omitempty"` - Description string `json:"description,omitempty"` - History []ClaimHistoryEntry `json:"history,omitempty"` - InsuranceAmount string `json:"insurance_amount,omitempty"` - InsuranceId string `json:"insurance_id,omitempty"` - PaymentMethod string `json:"payment_method,omitempty"` - RecipientName string `json:"recipient_name,omitempty"` - RequestedAmount string `json:"requested_amount,omitempty"` - SalvageValue string `json:"salvage_value,omitempty"` - ShipmentId string `json:"shipment_id,omitempty"` - Status string `json:"status,omitempty"` - StatusDetail string `json:"status_detail,omitempty"` - StatusTimestamp string `json:"status_timestamp,omitempty"` - TrackingCode string `json:"tracking_code,omitempty"` - Type string `json:"type,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + ApprovedAmount string `json:"approved_amount,omitempty" url:"approved_amount,omitempty"` + Attachments []string `json:"attachments,omitempty" url:"attachments,omitempty"` + CheckDeliveryAddress string `json:"check_delivery_address,omitempty" url:"check_delivery_address,omitempty"` + ContactEmail string `json:"contact_email,omitempty" url:"contact_email,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + History []ClaimHistoryEntry `json:"history,omitempty" url:"history,omitempty"` + InsuranceAmount string `json:"insurance_amount,omitempty" url:"insurance_amount,omitempty"` + InsuranceId string `json:"insurance_id,omitempty" url:"insurance_id,omitempty"` + PaymentMethod string `json:"payment_method,omitempty" url:"payment_method,omitempty"` + RecipientName string `json:"recipient_name,omitempty" url:"recipient_name,omitempty"` + RequestedAmount string `json:"requested_amount,omitempty" url:"requested_amount,omitempty"` + SalvageValue string `json:"salvage_value,omitempty" url:"salvage_value,omitempty"` + ShipmentId string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + StatusDetail string `json:"status_detail,omitempty" url:"status_detail,omitempty"` + StatusTimestamp string `json:"status_timestamp,omitempty" url:"status_timestamp,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` } // CreateClaimParameters is used to specify parameters for creating a claim. type CreateClaimParameters struct { - TrackingCode string `json:"tracking_code,omitempty"` - Type string `json:"type,omitempty"` - Amount float64 `json:"amount,omitempty"` - EmailEvidenceAttachments []string `json:"email_evidence_attachments,omitempty"` - InvoiceAttachments []string `json:"invoice_attachments,omitempty"` - SupportingDocumentationAttachments []string `json:"supporting_documentation_attachments,omitempty"` - Description string `json:"description,omitempty"` - RecipientName string `json:"recipient_name,omitempty"` - ContactEmail string `json:"contact_email,omitempty"` - PaymentMethod string `json:"payment_method,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Amount float64 `json:"amount,omitempty" url:"amount,omitempty"` + EmailEvidenceAttachments []string `json:"email_evidence_attachments,omitempty" url:"email_evidence_attachments,omitempty"` + InvoiceAttachments []string `json:"invoice_attachments,omitempty" url:"invoice_attachments,omitempty"` + SupportingDocumentationAttachments []string `json:"supporting_documentation_attachments,omitempty" url:"supporting_documentation_attachments,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + RecipientName string `json:"recipient_name,omitempty" url:"recipient_name,omitempty"` + ContactEmail string `json:"contact_email,omitempty" url:"contact_email,omitempty"` + PaymentMethod string `json:"payment_method,omitempty" url:"payment_method,omitempty"` } // ListClaimsParameters is used to specify query parameters for listing claims. type ListClaimsParameters struct { - BeforeID string `url:"before_id,omitempty"` - AfterID string `url:"after_id,omitempty"` - StartDateTime *DateTime `url:"start_datetime,omitempty"` - EndDateTime *DateTime `url:"end_datetime,omitempty"` - PageSize int `url:"page_size,omitempty"` - Type string `url:"type,omitempty"` - Status string `url:"status,omitempty"` + BeforeID string `json:"before_id,omitempty" url:"before_id,omitempty"` + AfterID string `json:"after_id,omitempty" url:"after_id,omitempty"` + StartDateTime *DateTime `json:"start_datetime,omitempty" url:"start_datetime,omitempty"` + EndDateTime *DateTime `json:"end_datetime,omitempty" url:"end_datetime,omitempty"` + PageSize int `json:"page_size,omitempty" url:"page_size,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` } // ListClaimsResult holds the results from the list claims API. type ListClaimsResult struct { - Claims []*Claim `json:"claims,omitempty"` + Claims []*Claim `json:"claims,omitempty" url:"claims,omitempty"` Parameters ListClaimsParameters PaginatedCollection } @@ -77,7 +77,7 @@ func (c *Client) CreateClaim(in *CreateClaimParameters) (out *Claim, err error) // CreateClaimWithContext performs the same operation as CreateClaim, but allows specifying a context that can interrupt the request. func (c *Client) CreateClaimWithContext(ctx context.Context, in *CreateClaimParameters) (out *Claim, err error) { - err = c.post(ctx, "claims", in, &out) + err = c.do(ctx, http.MethodPost, "claims", in, &out) return } @@ -88,7 +88,7 @@ func (c *Client) ListClaims(opts *ListClaimsParameters) (out *ListClaimsResult, // ListClaimsWithContext performs the same operation as ListClaims, but allows specifying a context that can interrupt the request. func (c *Client) ListClaimsWithContext(ctx context.Context, opts *ListClaimsParameters) (out *ListClaimsResult, err error) { - err = c.do(ctx, http.MethodGet, "claims", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "claims", opts, &out) // Store the original query parameters for reuse when getting the next page out.Parameters = *opts return @@ -135,7 +135,7 @@ func (c *Client) GetClaim(claimID string) (out *Claim, err error) { // GetClaimWithContext performs the same operation as GetClaim, but allows specifying a context that can interrupt the request. func (c *Client) GetClaimWithContext(ctx context.Context, claimID string) (out *Claim, err error) { - err = c.get(ctx, "claims/"+claimID, &out) + err = c.do(ctx, http.MethodGet, "claims/"+claimID, nil, &out) return } @@ -146,6 +146,6 @@ func (c *Client) CancelClaim(claimID string) (out *Claim, err error) { // CancelClaimWithContext performs the same operation as CancelClaim, but allows specifying a context that can interrupt the request. func (c *Client) CancelClaimWithContext(ctx context.Context, claimID string) (out *Claim, err error) { - err = c.post(ctx, "claims/"+claimID+"/cancel", nil, &out) + err = c.do(ctx, http.MethodPost, "claims/"+claimID+"/cancel", nil, &out) return } diff --git a/client.go b/client.go index 9e67a6a..473c389 100644 --- a/client.go +++ b/client.go @@ -6,16 +6,14 @@ import ( "encoding/json" "errors" "fmt" + "github.com/google/go-querystring/query" "github.com/google/uuid" "io" "io/ioutil" "net/http" "net/url" "runtime" - "strings" "time" - - "github.com/google/go-querystring/query" ) var apiBaseURL = &url.URL{ @@ -97,26 +95,17 @@ func (c *Client) client() *http.Client { return client } -func (c *Client) convertOptsToURLValues(v interface{}) url.Values { - values, _ := query.Values(v) - return values -} +func (c *Client) setParameters(req *http.Request, params interface{}) error { + switch req.Method { + case http.MethodGet, http.MethodDelete: + // Convert interface into query parameters and set as request URL query + values, _ := query.Values(params) + req.URL.RawQuery = values.Encode() + return nil -func (c *Client) setBody(req *http.Request, in interface{}) error { - switch in := in.(type) { - case url.Values: - buf := []byte(in.Encode()) - req.Body = ioutil.NopCloser(bytes.NewReader(buf)) - req.GetBody = func() (io.ReadCloser, error) { - return ioutil.NopCloser(bytes.NewReader(buf)), nil - } - req.Header.Set("Content-Type", "application/x-www-form-urlencoded") - // Setting Content-Length avoids chunked encoding, which the API - // server doesn't currently support. - req.ContentLength = int64(len(buf)) - case nil: // nop - default: - buf, err := json.Marshal(in) + case http.MethodPost, http.MethodPut, http.MethodPatch: + // Convert interface into JSON and set as request body + buf, err := json.Marshal(params) if err != nil { return err } @@ -128,11 +117,14 @@ func (c *Client) setBody(req *http.Request, in interface{}) error { // Setting Content-Length avoids chunked encoding, which the API // server doesn't currently support. req.ContentLength = int64(len(buf)) + + return nil + default: + return fmt.Errorf("unsupported method: %s", req.Method) } - return nil } -func (c *Client) do(ctx context.Context, method, path string, in, out interface{}) error { +func (c *Client) do(ctx context.Context, method, path string, params interface{}, out interface{}) error { if c.APIKey == "" { return newMissingPropertyError("APIKey") } @@ -143,20 +135,8 @@ func (c *Client) do(ctx context.Context, method, path string, in, out interface{ Header: make(http.Header, 2), } - urlParts := strings.Split(path, "?") - if len(urlParts) > 1 { - req = &http.Request{ - Method: method, - URL: c.baseURL().ResolveReference(&url.URL{ - Path: urlParts[0], - RawQuery: urlParts[1], - }), - Header: make(http.Header, 2), - } - } - req.Header.Set("User-Agent", c.userAgent()) - if err := c.setBody(req, in); err != nil { + if err := c.setParameters(req, params); err != nil { return err } @@ -248,23 +228,3 @@ func (c *Client) do(ctx context.Context, method, path string, in, out interface{ return apiErr } - -func (c *Client) get(ctx context.Context, path string, out interface{}) error { - return c.do(ctx, http.MethodGet, path, nil, out) -} - -func (c *Client) post(ctx context.Context, path string, in, out interface{}) error { - return c.do(ctx, http.MethodPost, path, in, out) -} - -func (c *Client) put(ctx context.Context, path string, in, out interface{}) error { - return c.do(ctx, http.MethodPut, path, in, out) -} - -func (c *Client) patch(ctx context.Context, path string, in, out interface{}) error { - return c.do(ctx, http.MethodPatch, path, in, out) -} - -func (c *Client) del(ctx context.Context, path string) error { - return c.do(ctx, http.MethodDelete, path, nil, nil) -} diff --git a/customs.go b/customs.go index 0f07dd5..2723474 100644 --- a/customs.go +++ b/customs.go @@ -2,48 +2,49 @@ package easypost import ( "context" + "net/http" ) // CustomsInfo objects contain CustomsItem objects and all necessary information // for the generation of customs forms required for international shipping. type CustomsInfo struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - EELPFC string `json:"eel_pfc,omitempty"` - ContentsType string `json:"contents_type,omitempty"` - ContentsExplanation string `json:"contents_explanation,omitempty"` - CustomsCertify bool `json:"customs_certify,omitempty"` - CustomsSigner string `json:"customs_signer,omitempty"` - NonDeliveryOption string `json:"non_delivery_option,omitempty"` - RestrictionType string `json:"restriction_type,omitempty"` - CustomsItems []*CustomsItem `json:"customs_items,omitempty"` - Declaration string `json:"declaration,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + EELPFC string `json:"eel_pfc,omitempty" url:"eel_pfc,omitempty"` + ContentsType string `json:"contents_type,omitempty" url:"contents_type,omitempty"` + ContentsExplanation string `json:"contents_explanation,omitempty" url:"contents_explanation,omitempty"` + CustomsCertify bool `json:"customs_certify,omitempty" url:"customs_certify,omitempty"` + CustomsSigner string `json:"customs_signer,omitempty" url:"customs_signer,omitempty"` + NonDeliveryOption string `json:"non_delivery_option,omitempty" url:"non_delivery_option,omitempty"` + RestrictionType string `json:"restriction_type,omitempty" url:"restriction_type,omitempty"` + CustomsItems []*CustomsItem `json:"customs_items,omitempty" url:"customs_items,omitempty"` + Declaration string `json:"declaration,omitempty" url:"declaration,omitempty"` } // A CustomsItem object describes goods for international shipment. type CustomsItem struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Description string `json:"description,omitempty"` - Quantity float64 `json:"quantity,omitempty"` - Value float64 `json:"value,omitempty,string"` - Weight float64 `json:"weight,omitempty"` - HSTariffNumber string `json:"hs_tariff_number,omitempty"` - Code string `json:"code,omitempty"` - OriginCountry string `json:"origin_country,omitempty"` - Currency string `json:"currency,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Quantity float64 `json:"quantity,omitempty" url:"quantity,omitempty"` + Value float64 `json:"value,omitempty,string" url:"value,omitempty"` + Weight float64 `json:"weight,omitempty" url:"weight,omitempty"` + HSTariffNumber string `json:"hs_tariff_number,omitempty" url:"hs_tariff_number,omitempty"` + Code string `json:"code,omitempty" url:"code,omitempty"` + OriginCountry string `json:"origin_country,omitempty" url:"origin_country,omitempty"` + Currency string `json:"currency,omitempty" url:"currency,omitempty"` } type createCustomsInfoRequest struct { - CustomsInfo *CustomsInfo `json:"customs_info,omitempty"` + CustomsInfo *CustomsInfo `json:"customs_info,omitempty" url:"customs_info,omitempty"` } type createCustomsItemRequest struct { - CustomsItem *CustomsItem `json:"customs_item,omitempty"` + CustomsItem *CustomsItem `json:"customs_item,omitempty" url:"customs_item,omitempty"` } // CreateCustomsInfo creates a new CustomsInfo object. @@ -78,7 +79,7 @@ func (c *Client) CreateCustomsInfo(in *CustomsInfo) (out *CustomsInfo, err error // request. func (c *Client) CreateCustomsInfoWithContext(ctx context.Context, in *CustomsInfo) (out *CustomsInfo, err error) { req := &createCustomsInfoRequest{CustomsInfo: in} - err = c.post(ctx, "customs_infos", req, &out) + err = c.do(ctx, http.MethodPost, "customs_infos", req, &out) return } @@ -90,7 +91,7 @@ func (c *Client) GetCustomsInfo(customsInfoID string) (out *CustomsInfo, err err // GetCustomsInfoWithContext performs the same operation as GetCustomsInfo, but // allows specifying a context that can interrupt the request. func (c *Client) GetCustomsInfoWithContext(ctx context.Context, customsInfoID string) (out *CustomsInfo, err error) { - err = c.get(ctx, "customs_infos/"+customsInfoID, &out) + err = c.do(ctx, http.MethodGet, "customs_infos/"+customsInfoID, nil, &out) return } @@ -116,7 +117,7 @@ func (c *Client) CreateCustomsItem(in *CustomsItem) (out *CustomsItem, err error // request. func (c *Client) CreateCustomsItemWithContext(ctx context.Context, in *CustomsItem) (out *CustomsItem, err error) { req := &createCustomsItemRequest{CustomsItem: in} - err = c.post(ctx, "customs_items", req, &out) + err = c.do(ctx, http.MethodPost, "customs_items", req, &out) return } @@ -128,6 +129,6 @@ func (c *Client) GetCustomsItem(customsItemID string) (out *CustomsItem, err err // GetCustomsItemWithContext performs the same operation as GetCustomsItem, but // allows specifying a context that can interrupt the request. func (c *Client) GetCustomsItemWithContext(ctx context.Context, customsItemID string) (out *CustomsItem, err error) { - err = c.get(ctx, "customs_items/"+customsItemID, &out) + err = c.do(ctx, http.MethodGet, "customs_items/"+customsItemID, nil, &out) return } diff --git a/endshipper.go b/endshipper.go index a5f2ef8..b31487a 100644 --- a/endshipper.go +++ b/endshipper.go @@ -7,8 +7,8 @@ import ( // ListEndShipperResult holds the results from the list EndShippers API. type ListEndShipperResult struct { - EndShippers []*Address `json:"endshippers,omitempty"` - HasMore bool `json:"has_more,omitempty"` + EndShippers []*Address `json:"endshippers,omitempty" url:"endshippers,omitempty"` + HasMore bool `json:"has_more,omitempty" url:"has_more,omitempty"` } // CreateEndShipper submits a request to create a new endshipper, and returns the result. @@ -22,7 +22,7 @@ func (c *Client) CreateEndShipperWithContext(ctx context.Context, in *Address) ( wrappedParams := map[string]interface{}{ "address": in, } - err = c.post(ctx, "end_shippers", wrappedParams, &out) + err = c.do(ctx, http.MethodPost, "end_shippers", wrappedParams, &out) return } @@ -34,7 +34,7 @@ func (c *Client) GetEndShipper(endshipperID string) (out *Address, err error) { // GetEndShipperWithContext performs the same operation as GetEndShipper, but // allows specifying a context that can interrupt the request. func (c *Client) GetEndShipperWithContext(ctx context.Context, endshipperID string) (out *Address, err error) { - err = c.get(ctx, "end_shippers/"+endshipperID, &out) + err = c.do(ctx, http.MethodGet, "end_shippers/"+endshipperID, nil, &out) return } @@ -46,7 +46,7 @@ func (c *Client) ListEndShippers(opts *ListOptions) (out *ListEndShipperResult, // ListEndShippersWithContext performs the same operation as ListEndShippers, but // allows specifying a context that can interrupt the request. func (c *Client) ListEndShippersWithContext(ctx context.Context, opts *ListOptions) (out *ListEndShipperResult, err error) { - err = c.do(ctx, http.MethodGet, "end_shippers", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "end_shippers", opts, &out) return } diff --git a/error.go b/error.go index aee40a0..15cacb0 100644 --- a/error.go +++ b/error.go @@ -15,23 +15,23 @@ import ( // This is different from the LibraryError class, which represents exceptions in the EasyPost library, such as bad HTTP status codes or local validation issues. type Error struct { // Code is a machine-readable code of the problem encountered. - Code string `json:"code,omitempty"` + Code string `json:"code,omitempty" url:"code,omitempty"` // Errors may be provided if there are multiple errors, for example if // multiple fields have invalid values. - Errors []*Error `json:"errors,omitempty"` + Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"` // Field may be provided when the error relates to a specific field. - Field string `json:"field,omitempty"` + Field string `json:"field,omitempty" url:"field,omitempty"` // Message is a human-readable description of the problem encountered. - Message interface{} `json:"message,omitempty"` + Message interface{} `json:"message,omitempty" url:"message,omitempty"` // Suggestion may be provided if the API can provide a suggestion to fix // the error. - Suggestion string `json:"suggestion,omitempty"` + Suggestion string `json:"suggestion,omitempty" url:"suggestion,omitempty"` } func (e *Error) UnmarshalJSON(data []byte) error { type alias Error tmpError := &struct { - Message interface{} `json:"message,omitempty"` + Message interface{} `json:"message,omitempty" url:"message,omitempty"` *alias }{ alias: (*alias)(e), @@ -170,7 +170,7 @@ type APIError struct { // StatusCode is the HTTP numerical status code of the response. StatusCode int // Errors may be provided if there are details about server-side issues that caused the API request to fail. - Errors []*Error `json:"errors,omitempty"` + Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"` } // Error provides a pretty printed string of an APIError object based on present data. @@ -288,7 +288,7 @@ func BuildErrorFromResponse(response *http.Response) error { // deserialize the response body into a temporary object buf, _ := ioutil.ReadAll(response.Body) tmpError := &struct { - Error *Error `json:"error,omitempty"` + Error *Error `json:"error,omitempty" url:"error,omitempty"` }{} if json.Unmarshal(buf, &tmpError) == nil { diff --git a/event.go b/event.go index 7171049..ffb064f 100644 --- a/event.go +++ b/event.go @@ -9,14 +9,14 @@ import ( // Event objects contain details about changes to EasyPost objects type Event struct { - ID string `json:"id,omitempty"` - UserID string `json:"user_id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Description string `json:"description,omitempty"` - PreviousAttributes map[string]interface{} `json:"previous_attributes,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + UserID string `json:"user_id,omitempty" url:"user_id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + PreviousAttributes map[string]interface{} `json:"previous_attributes,omitempty" url:"previous_attributes,omitempty"` // Result will be populated with the relevant object type, i.e. // *Batch, *Insurance, *PaymentLog, *Refund, *Report, *Tracker or *ScanForm. // It will be nil if no 'result' field is present, which is the case for @@ -24,40 +24,40 @@ type Event struct { // EventPayload type will generally be an instance of *Event with this field // present. Having the field here also enables re-using this type to // implement a webhook handler. - Result interface{} `json:"result,omitempty"` - Status string `json:"status,omitempty"` - PendingURLs []string `json:"pending_urls,omitempty"` - CompletedURLs []string `json:"completed_urls,omitempty"` + Result interface{} `json:"result,omitempty" url:"result,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + PendingURLs []string `json:"pending_urls,omitempty" url:"pending_urls,omitempty"` + CompletedURLs []string `json:"completed_urls,omitempty" url:"completed_urls,omitempty"` } // EventPayload represents the result of a webhook call. type EventPayload struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - RequestURL string `json:"request_url,omitempty"` - RequestHeaders map[string]string `json:"request_headers,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + RequestURL string `json:"request_url,omitempty" url:"request_url,omitempty"` + RequestHeaders map[string]string `json:"request_headers,omitempty" url:"request_headers,omitempty"` // RequestBody is the raw request body that was sent to the webhook. This is // expected to be an Event object. It may either be encoded in the API // response as a string (with JSON delimiters escaped) or as base64. The // UnmarshalJSON method will attempt to convert it to an *Event type, but it // may be set to a default type if decoding to an object fails. - RequestBody interface{} `json:"request_body,omitempty"` - ResponseHeaders map[string]string `json:"response_headers,omitempty"` - ResponseBody string `json:"response_body,omitempty"` - ResponseCode int `json:"response_code,omitempty"` - TotalTime int `json:"total_time,omitempty"` + RequestBody interface{} `json:"request_body,omitempty" url:"request_body,omitempty"` + ResponseHeaders map[string]string `json:"response_headers,omitempty" url:"response_headers,omitempty"` + ResponseBody string `json:"response_body,omitempty" url:"response_body,omitempty"` + ResponseCode int `json:"response_code,omitempty" url:"response_code,omitempty"` + TotalTime int `json:"total_time,omitempty" url:"total_time,omitempty"` } // ListEventsResult holds the results from the list events API. type ListEventsResult struct { - Events []*Event `json:"events,omitempty"` + Events []*Event `json:"events,omitempty" url:"events,omitempty"` PaginatedCollection } type listEventPayloadsResult struct { - Payloads *[]*EventPayload `json:"payloads,omitempty"` + Payloads *[]*EventPayload `json:"payloads,omitempty" url:"payloads,omitempty"` } // UnmarshalJSON will attempt to convert an event response to an *Event type, @@ -112,7 +112,7 @@ func (c *Client) ListEvents(opts *ListOptions) (out *ListEventsResult, err error // ListEventsWithContext performs the same operation as ListEvents, but // allows specifying a context that can interrupt the request. func (c *Client) ListEventsWithContext(ctx context.Context, opts *ListOptions) (out *ListEventsResult, err error) { - err = c.do(ctx, http.MethodGet, "events", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "events", opts, &out) return } @@ -155,7 +155,7 @@ func (c *Client) GetEvent(eventID string) (out *Event, err error) { // GetEventWithContext performs the same operation as GetEvent, but allows // specifying a context that can interrupt the request. func (c *Client) GetEventWithContext(ctx context.Context, eventID string) (out *Event, err error) { - err = c.get(ctx, "events/"+eventID, &out) + err = c.do(ctx, http.MethodGet, "events/"+eventID, nil, &out) return } @@ -167,11 +167,7 @@ func (c *Client) ListEventPayloads(eventID string) (out []*EventPayload, err err // ListEventPayloadsWithContext performs the same operation as GetEventPayload, but // allows specifying a context that can interrupt the request. func (c *Client) ListEventPayloadsWithContext(ctx context.Context, eventID string) (out []*EventPayload, err error) { - err = c.get( - ctx, - "events/"+eventID+"/payloads", - &listEventPayloadsResult{Payloads: &out}, - ) + err = c.do(ctx, http.MethodGet, "events/"+eventID+"/payloads", nil, &listEventPayloadsResult{Payloads: &out}) return } @@ -183,6 +179,6 @@ func (c *Client) GetEventPayload(eventID, payloadID string) (out *EventPayload, // GetEventPayloadWithContext performs the same operation as GetEventPayload, but // allows specifying a context that can interrupt the request. func (c *Client) GetEventPayloadWithContext(ctx context.Context, eventID, payloadID string) (out *EventPayload, err error) { - err = c.get(ctx, "events/"+eventID+"/payloads/"+payloadID, &out) + err = c.do(ctx, http.MethodGet, "events/"+eventID+"/payloads/"+payloadID, nil, &out) return } diff --git a/examples b/examples index b1f3d75..7bafcdd 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit b1f3d75c324c2894a6d5c622ee0b31bcc6e1acb3 +Subproject commit 7bafcddd4e7e9f11827a734784127773887443b1 diff --git a/fee.go b/fee.go index a6e7bb9..b321125 100644 --- a/fee.go +++ b/fee.go @@ -3,9 +3,9 @@ package easypost // Fee objects are used to represent the breakdown of charges made when // purchasing an item on EasyPost. type Fee struct { - Object string `json:"object,omitempty"` - Type string `json:"type,omitempty"` - Amount string `json:"amount,omitempty"` - Charged bool `json:"charged,omitempty"` - Refunded bool `json:"refunded,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Amount string `json:"amount,omitempty" url:"amount,omitempty"` + Charged bool `json:"charged,omitempty" url:"charged,omitempty"` + Refunded bool `json:"refunded,omitempty" url:"refunded,omitempty"` } diff --git a/insurance.go b/insurance.go index ba40c93..13c8a88 100644 --- a/insurance.go +++ b/insurance.go @@ -9,33 +9,33 @@ import ( // EasyPost API and shipments purchased through third parties and later // registered with EasyPost. type Insurance struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Amount string `json:"amount,omitempty"` - Carrier string `json:"carrier,omitempty"` - Provider string `json:"provider,omitempty"` - ProviderID string `json:"provider_id,omitempty"` - ShipmentID string `json:"shipment_id,omitempty"` - TrackingCode string `json:"tracking_code,omitempty"` - Status string `json:"status,omitempty"` - Tracker *Tracker `json:"tracker,omitempty"` - ToAddress *Address `json:"to_address,omitempty"` - FromAddress *Address `json:"from_address,omitempty"` - Fee *Fee `json:"fee,omitempty"` - Messages []string `json:"messages,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Amount string `json:"amount,omitempty" url:"amount,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Provider string `json:"provider,omitempty" url:"provider,omitempty"` + ProviderID string `json:"provider_id,omitempty" url:"provider_id,omitempty"` + ShipmentID string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + Tracker *Tracker `json:"tracker,omitempty" url:"tracker,omitempty"` + ToAddress *Address `json:"to_address,omitempty" url:"to_address,omitempty"` + FromAddress *Address `json:"from_address,omitempty" url:"from_address,omitempty"` + Fee *Fee `json:"fee,omitempty" url:"fee,omitempty"` + Messages []string `json:"messages,omitempty" url:"messages,omitempty"` } type createInsuranceRequest struct { - Insurance *Insurance `json:"insurance,omitempty"` + Insurance *Insurance `json:"insurance,omitempty" url:"insurance,omitempty"` } // ListInsurancesResult holds the results from the list insurances API. type ListInsurancesResult struct { - Insurances []*Insurance `json:"insurances,omitempty"` + Insurances []*Insurance `json:"insurances,omitempty" url:"insurances,omitempty"` PaginatedCollection } @@ -62,7 +62,7 @@ func (c *Client) CreateInsurance(in *Insurance) (out *Insurance, err error) { // but allows specifying a context that can interrupt the request. func (c *Client) CreateInsuranceWithContext(ctx context.Context, in *Insurance) (out *Insurance, err error) { req := &createInsuranceRequest{Insurance: in} - err = c.post(ctx, "insurances", req, &out) + err = c.do(ctx, http.MethodPost, "insurances", req, &out) return } @@ -74,7 +74,7 @@ func (c *Client) ListInsurances(opts *ListOptions) (out *ListInsurancesResult, e // ListInsurancesWithContext performs the same operation as ListInsurances, but // allows specifying a context that can interrupt the request. func (c *Client) ListInsurancesWithContext(ctx context.Context, opts *ListOptions) (out *ListInsurancesResult, err error) { - err = c.do(ctx, http.MethodGet, "insurances", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "insurances", opts, &out) return } @@ -117,7 +117,7 @@ func (c *Client) GetInsurance(insuranceID string) (out *Insurance, err error) { // GetInsuranceWithContext performs the same operation as GetInsurance, but // allows specifying a context that can interrupt the request. func (c *Client) GetInsuranceWithContext(ctx context.Context, insuranceID string) (out *Insurance, err error) { - err = c.get(ctx, "insurances/"+insuranceID, &out) + err = c.do(ctx, http.MethodGet, "insurances/"+insuranceID, nil, &out) return } @@ -129,6 +129,6 @@ func (c *Client) RefundInsurance(insuranceID string) (out *Insurance, err error) // RefundInsuranceWithContext performs the same operation as RefundInsurance, but // allows specifying a context that can interrupt the request. func (c *Client) RefundInsuranceWithContext(ctx context.Context, insuranceID string) (out *Insurance, err error) { - err = c.post(ctx, "insurances/"+insuranceID+"/refund", nil, &out) + err = c.do(ctx, http.MethodPost, "insurances/"+insuranceID+"/refund", nil, &out) return } diff --git a/object.go b/object.go index 0832893..9612215 100644 --- a/object.go +++ b/object.go @@ -17,7 +17,7 @@ func UnmarshalJSONObject(data []byte) (interface{}, error) { } var obj struct { - Object string `json:"object"` + Object string `json:"object,omitempty" url:"object,omitempty"` } if err := json.Unmarshal(data, &obj); err != nil { diff --git a/order.go b/order.go index 684e211..8d599e1 100644 --- a/order.go +++ b/order.go @@ -2,35 +2,35 @@ package easypost import ( "context" - "net/url" + "net/http" ) // An Order object represents a collection of packages and can be used for // multi-piece Shipments. type Order struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - ToAddress *Address `json:"to_address,omitempty"` - FromAddress *Address `json:"from_address,omitempty"` - ReturnAddress *Address `json:"return_address,omitempty"` - BuyerAddress *Address `json:"buyer_address,omitempty"` - Shipments []*Shipment `json:"shipments,omitempty"` - Rates []*Rate `json:"rates,omitempty"` - Messages []*CarrierMessage `json:"messages,omitempty"` - IsReturn bool `json:"is_return"` - Service string `json:"service,omitempty"` - CustomsInfo *CustomsInfo `json:"customs_info,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + ToAddress *Address `json:"to_address,omitempty" url:"to_address,omitempty"` + FromAddress *Address `json:"from_address,omitempty" url:"from_address,omitempty"` + ReturnAddress *Address `json:"return_address,omitempty" url:"return_address,omitempty"` + BuyerAddress *Address `json:"buyer_address,omitempty" url:"buyer_address,omitempty"` + Shipments []*Shipment `json:"shipments,omitempty" url:"shipments,omitempty"` + Rates []*Rate `json:"rates,omitempty" url:"rates,omitempty"` + Messages []*CarrierMessage `json:"messages,omitempty" url:"messages,omitempty"` + IsReturn bool `json:"is_return,omitempty" url:"is_return,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + CustomsInfo *CustomsInfo `json:"customs_info,omitempty" url:"customs_info,omitempty"` } type createOrderRequest struct { Order struct { *Order - CarrierAccounts []*CarrierAccount `json:"carrier_accounts,omitempty"` - } `json:"order,omitempty"` + CarrierAccounts []*CarrierAccount `json:"carrier_accounts,omitempty" url:"carrier_accounts,omitempty"` + } `json:"order,omitempty" url:"order,omitempty"` } // CreateOrder creates a new order object. If the `accounts` parameter is given, @@ -69,7 +69,7 @@ func (c *Client) CreateOrder(in *Order, accounts ...*CarrierAccount) (out *Order func (c *Client) CreateOrderWithContext(ctx context.Context, in *Order, accounts ...*CarrierAccount) (out *Order, err error) { var req createOrderRequest req.Order.Order, req.Order.CarrierAccounts = in, accounts - err = c.post(ctx, "orders", &req, &out) + err = c.do(ctx, http.MethodPost, "orders", &req, &out) return } @@ -81,7 +81,7 @@ func (c *Client) GetOrder(orderID string) (out *Order, err error) { // GetOrderWithContext performs the same operation as GetOrder, but allows // specifying a context that can interrupt the request. func (c *Client) GetOrderWithContext(ctx context.Context, orderID string) (out *Order, err error) { - err = c.get(ctx, "orders/"+orderID, &out) + err = c.do(ctx, http.MethodGet, "orders/"+orderID, nil, &out) return } @@ -93,7 +93,7 @@ func (c *Client) GetOrderRates(orderID string) (out *Order, err error) { // GetOrderRatesWithContext performs the same operation as GetOrderRates, but // allows specifying a context that can interrupt the request. func (c *Client) GetOrderRatesWithContext(ctx context.Context, orderID string) (out *Order, err error) { - err = c.get(ctx, "orders/"+orderID+"/rates", &out) + err = c.do(ctx, http.MethodGet, "orders/"+orderID+"/rates", nil, &out) return } @@ -109,11 +109,11 @@ func (c *Client) BuyOrder(orderID, carrier, service string) (out *Order, err err // BuyOrderWithContext performs the same operation as GBuyOrder, but allows // specifying a context that can interrupt the request. func (c *Client) BuyOrderWithContext(ctx context.Context, orderID, carrier, service string) (out *Order, err error) { - vals := url.Values{ - "carrier": []string{carrier}, - "service": []string{service}, - } - err = c.post(ctx, "orders/"+orderID+"/buy", vals, &out) + params := struct { + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + }{Carrier: carrier, Service: service} + err = c.do(ctx, http.MethodPost, "orders/"+orderID+"/buy", params, &out) return } diff --git a/paginated_collection.go b/paginated_collection.go index 4db4527..7a63fb5 100644 --- a/paginated_collection.go +++ b/paginated_collection.go @@ -5,5 +5,5 @@ type PaginatedCollection struct { // HasMore indicates if there are more responses to be fetched. If True, // additional responses can be fetched by updating the AfterID parameter // with the ID of the last item in this object's collection list. - HasMore bool `json:"has_more,omitempty"` + HasMore bool `json:"has_more,omitempty" url:"has_more,omitempty"` } diff --git a/parcel.go b/parcel.go index 3fda8a3..f66d10e 100644 --- a/parcel.go +++ b/parcel.go @@ -2,24 +2,25 @@ package easypost import ( "context" + "net/http" ) // A Parcel objects represent a physical container being shipped. type Parcel struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Length float64 `json:"length,omitempty"` - Width float64 `json:"width,omitempty"` - Height float64 `json:"height,omitempty"` - PredefinedPackage string `json:"predefined_package,omitempty"` - Weight float64 `json:"weight,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Length float64 `json:"length,omitempty" url:"length,omitempty"` + Width float64 `json:"width,omitempty" url:"width,omitempty"` + Height float64 `json:"height,omitempty" url:"height,omitempty"` + PredefinedPackage string `json:"predefined_package,omitempty" url:"predefined_package,omitempty"` + Weight float64 `json:"weight,omitempty" url:"weight,omitempty"` } type createParcelRequest struct { - Parcel *Parcel `json:"parcel,omitempty"` + Parcel *Parcel `json:"parcel,omitempty" url:"parcel,omitempty"` } // CreateParcel creates a new Parcel object. @@ -40,7 +41,7 @@ func (c *Client) CreateParcel(in *Parcel) (out *Parcel, err error) { // CreateParcelWithContext performs the same operation as CreateParcel, but // allows specifying a context that can interrupt the request. func (c *Client) CreateParcelWithContext(ctx context.Context, in *Parcel) (out *Parcel, err error) { - err = c.post(ctx, "parcels", &createParcelRequest{Parcel: in}, &out) + err = c.do(ctx, http.MethodPost, "parcels", &createParcelRequest{Parcel: in}, &out) return } @@ -52,6 +53,6 @@ func (c *Client) GetParcel(parcelID string) (out *Parcel, err error) { // GetParcelWithContext performs the same operation as GetParcel, but allows // specifying a context that can interrupt the request. func (c *Client) GetParcelWithContext(ctx context.Context, parcelID string) (out *Parcel, err error) { - err = c.get(ctx, "parcels/"+parcelID, &out) + err = c.do(ctx, http.MethodGet, "parcels/"+parcelID, nil, &out) return } diff --git a/payment_log.go b/payment_log.go index fd8a272..3a84e98 100644 --- a/payment_log.go +++ b/payment_log.go @@ -1,15 +1,15 @@ package easypost type PaymentLog struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - SourceType string `json:"source_type,omitempty"` - TargetType string `json:"target_type,omitempty"` - Date string `json:"date,omitempty"` - ChargeType string `json:"charge_type,omitempty"` - Status string `json:"status,omitempty"` - Amount string `json:"amount,omitempty"` - Last4 string `json:"last4,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + SourceType string `json:"source_type,omitempty" url:"source_type,omitempty"` + TargetType string `json:"target_type,omitempty" url:"target_type,omitempty"` + Date string `json:"date,omitempty" url:"date,omitempty"` + ChargeType string `json:"charge_type,omitempty" url:"charge_type,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + Amount string `json:"amount,omitempty" url:"amount,omitempty"` + Last4 string `json:"last4,omitempty" url:"last4,omitempty"` } diff --git a/payment_method.go b/payment_method.go index ca3400b..a92fb1f 100644 --- a/payment_method.go +++ b/payment_method.go @@ -15,24 +15,24 @@ const ( ) type PaymentMethod struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - PrimaryPaymentMethod *PaymentMethodObject `json:"primary_payment_method,omitempty"` - SecondaryPaymentMethod *PaymentMethodObject `json:"secondary_payment_method,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + PrimaryPaymentMethod *PaymentMethodObject `json:"primary_payment_method,omitempty" url:"primary_payment_method,omitempty"` + SecondaryPaymentMethod *PaymentMethodObject `json:"secondary_payment_method,omitempty" url:"secondary_payment_method,omitempty"` } type PaymentMethodObject struct { - BankName string `json:"bank_name,omitempty"` // bank account - Brand string `json:"brand,omitempty"` // credit card - Country string `json:"country,omitempty"` // bank account - DisabledAt string `json:"disabled_at,omitempty"` // both - ExpirationMonth int `json:"exp_month,omitempty"` // credit card - ExpirationYear int `json:"exp_year,omitempty"` // credit card - ID string `json:"id,omitempty"` // both - Last4 string `json:"last4,omitempty"` // both - Name string `json:"name,omitempty"` // credit card - Object string `json:"object,omitempty"` // both - Verified bool `json:"verified,omitempty"` // bank account + BankName string `json:"bank_name,omitempty" url:"bank_name,omitempty"` // bank account + Brand string `json:"brand,omitempty" url:"brand,omitempty"` // credit card + Country string `json:"country,omitempty" url:"country,omitempty"` // bank account + DisabledAt string `json:"disabled_at,omitempty" url:"disabled_at,omitempty"` // both + ExpirationMonth int `json:"exp_month,omitempty" url:"exp_month,omitempty"` // credit card + ExpirationYear int `json:"exp_year,omitempty" url:"exp_year,omitempty"` // credit card + ID string `json:"id,omitempty" url:"id,omitempty"` // both + Last4 string `json:"last4,omitempty" url:"last4,omitempty"` // both + Name string `json:"name,omitempty" url:"name,omitempty"` // credit card + Object string `json:"object,omitempty" url:"object,omitempty"` // both + Verified bool `json:"verified,omitempty" url:"verified,omitempty"` // bank account } // getPaymentMethodObjectType returns the PaymentMethodType enum of a PaymentMethodObject. diff --git a/pickup.go b/pickup.go index e4a7576..ba573fe 100644 --- a/pickup.go +++ b/pickup.go @@ -3,54 +3,53 @@ package easypost import ( "context" "net/http" - "net/url" ) // PickupRate contains data about the cost of a pickup. type PickupRate struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Service string `json:"service,omitempty"` - Carrier string `json:"carrier,omitempty"` - Rate string `json:"rate,omitempty"` - Currency string `json:"currency,omitempty"` - PickupID string `json:"pickup_id,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Rate string `json:"rate,omitempty" url:"rate,omitempty"` + Currency string `json:"currency,omitempty" url:"currency,omitempty"` + PickupID string `json:"pickup_id,omitempty" url:"pickup_id,omitempty"` } // A Pickup object represents a pickup from a carrier at a customer's residence // or place of business. type Pickup struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Status string `json:"status,omitempty"` - MinDatetime *DateTime `json:"min_datetime,omitempty"` - MaxDatetime *DateTime `json:"max_datetime,omitempty"` - IsAccountAddress bool `json:"is_account_address,omitempty"` - Instructions string `json:"instructions,omitempty"` - Messages []*CarrierMessage `json:"messages,omitempty"` - Confirmation string `json:"confirmation,omitempty"` - Shipment *Shipment `json:"shipment,omitempty"` - Address *Address `json:"address,omitempty"` - Batch *Batch `json:"batch,omitempty"` - CarrierAccounts []*CarrierAccount `json:"carrier_accounts,omitempty"` - PickupRates []*PickupRate `json:"pickup_rates,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + MinDatetime *DateTime `json:"min_datetime,omitempty" url:"min_datetime,omitempty"` + MaxDatetime *DateTime `json:"max_datetime,omitempty" url:"max_datetime,omitempty"` + IsAccountAddress bool `json:"is_account_address,omitempty" url:"is_account_address,omitempty"` + Instructions string `json:"instructions,omitempty" url:"instructions,omitempty"` + Messages []*CarrierMessage `json:"messages,omitempty" url:"messages,omitempty"` + Confirmation string `json:"confirmation,omitempty" url:"confirmation,omitempty"` + Shipment *Shipment `json:"shipment,omitempty" url:"shipment,omitempty"` + Address *Address `json:"address,omitempty" url:"address,omitempty"` + Batch *Batch `json:"batch,omitempty" url:"batch,omitempty"` + CarrierAccounts []*CarrierAccount `json:"carrier_accounts,omitempty" url:"carrier_accounts,omitempty"` + PickupRates []*PickupRate `json:"pickup_rates,omitempty" url:"pickup_rates,omitempty"` } // ListPickupResult holds the results from the list Pickup API. type ListPickupResult struct { - Pickups []*Pickup `json:"pickups,omitempty"` + Pickups []*Pickup `json:"pickups,omitempty" url:"pickups,omitempty"` PaginatedCollection } type createPickupRequest struct { - Pickup *Pickup `json:"pickup,omitempty"` + Pickup *Pickup `json:"pickup,omitempty" url:"pickup,omitempty"` } // CreatePickup creates a new Pickup object, and automatically fetches rates @@ -75,7 +74,7 @@ func (c *Client) CreatePickup(in *Pickup) (out *Pickup, err error) { // CreatePickupWithContext performs the same operation as CreatePickup, but // allows specifying a context that can interrupt the request. func (c *Client) CreatePickupWithContext(ctx context.Context, in *Pickup) (out *Pickup, err error) { - err = c.post(ctx, "pickups", &createPickupRequest{Pickup: in}, &out) + err = c.do(ctx, http.MethodPost, "pickups", &createPickupRequest{Pickup: in}, &out) return } @@ -87,7 +86,7 @@ func (c *Client) GetPickup(pickupID string) (out *Pickup, err error) { // GetPickupWithContext performs the same operation as GetPickup, but allows // specifying a context that can interrupt the request. func (c *Client) GetPickupWithContext(ctx context.Context, pickupID string) (out *Pickup, err error) { - err = c.get(ctx, "pickups/"+pickupID, &out) + err = c.do(ctx, http.MethodGet, "pickups/"+pickupID, nil, &out) return } @@ -103,10 +102,11 @@ func (c *Client) BuyPickup(pickupID string, rate *PickupRate) (out *Pickup, err // BuyPickupWithContext performs the same operation as BuyPickup, but allows // specifying a context that can interrupt the request. func (c *Client) BuyPickupWithContext(ctx context.Context, pickupID string, rate *PickupRate) (out *Pickup, err error) { - vals := url.Values{ - "carrier": []string{rate.Carrier}, "service": []string{rate.Service}, - } - err = c.post(ctx, "pickups/"+pickupID+"/buy", vals, &out) + params := struct { + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + }{Carrier: rate.Carrier, Service: rate.Service} + err = c.do(ctx, http.MethodPost, "pickups/"+pickupID+"/buy", params, &out) return } @@ -118,7 +118,7 @@ func (c *Client) CancelPickup(pickupID string) (out *Pickup, err error) { // CancelPickupWithContext performs the same operation as CancelPickup, but // allows specifying a context that can interrupt the request. func (c *Client) CancelPickupWithContext(ctx context.Context, pickupID string) (out *Pickup, err error) { - err = c.post(ctx, "pickups/"+pickupID+"/cancel", nil, &out) + err = c.do(ctx, http.MethodPost, "pickups/"+pickupID+"/cancel", nil, &out) return } @@ -147,7 +147,7 @@ func (c *Client) ListPickups(opts *ListOptions) (out *ListPickupResult, err erro // ListPickupsWithContext performs the same operation as ListPickups, but // allows specifying a context that can interrupt the request. func (c *Client) ListPickupsWithContext(ctx context.Context, opts *ListOptions) (out *ListPickupResult, err error) { - err = c.do(ctx, http.MethodGet, "pickups", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "pickups", opts, &out) return } diff --git a/rate.go b/rate.go index 2a35cfb..0611245 100644 --- a/rate.go +++ b/rate.go @@ -2,91 +2,92 @@ package easypost import ( "context" + "net/http" ) // A Rate contains information on shipping cost and delivery time. type Rate struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Service string `json:"service,omitempty"` - Carrier string `json:"carrier,omitempty"` - CarrierAccountID string `json:"carrier_account_id,omitempty"` - ShipmentID string `json:"shipment_id,omitempty"` - Rate string `json:"rate,omitempty"` - Currency string `json:"currency,omitempty"` - RetailRate string `json:"retail_rate,omitempty"` - RetailCurrency string `json:"retail_currency,omitempty"` - ListRate string `json:"list_rate,omitempty"` - ListCurrency string `json:"list_currency,omitempty"` - DeliveryDays int `json:"delivery_days,omitempty"` - DeliveryDate *DateTime `json:"delivery_date,omitempty"` - DeliveryDateGuaranteed bool `json:"delivery_date_guaranteed,omitempty"` - EstDeliveryDays int `json:"est_delivery_days,omitempty"` - BillingType string `json:"billing_type,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + CarrierAccountID string `json:"carrier_account_id,omitempty" url:"carrier_account_id,omitempty"` + ShipmentID string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` + Rate string `json:"rate,omitempty" url:"rate,omitempty"` + Currency string `json:"currency,omitempty" url:"currency,omitempty"` + RetailRate string `json:"retail_rate,omitempty" url:"retail_rate,omitempty"` + RetailCurrency string `json:"retail_currency,omitempty" url:"retail_currency,omitempty"` + ListRate string `json:"list_rate,omitempty" url:"list_rate,omitempty"` + ListCurrency string `json:"list_currency,omitempty" url:"list_currency,omitempty"` + DeliveryDays int `json:"delivery_days,omitempty" url:"delivery_days,omitempty"` + DeliveryDate *DateTime `json:"delivery_date,omitempty" url:"delivery_date,omitempty"` + DeliveryDateGuaranteed bool `json:"delivery_date_guaranteed,omitempty" url:"delivery_date_guaranteed,omitempty"` + EstDeliveryDays int `json:"est_delivery_days,omitempty" url:"est_delivery_days,omitempty"` + BillingType string `json:"billing_type,omitempty" url:"billing_type,omitempty"` } // A SmartRate contains information on shipping cost and delivery time in addition to time-in-transit details. type SmartRate struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Service string `json:"service,omitempty"` - Carrier string `json:"carrier,omitempty"` - CarrierAccountID string `json:"carrier_account_id,omitempty"` - ShipmentID string `json:"shipment_id,omitempty"` - Rate float64 `json:"rate,omitempty"` - Currency string `json:"currency,omitempty"` - RetailRate float64 `json:"retail_rate,omitempty"` - RetailCurrency string `json:"retail_currency,omitempty"` - ListRate float64 `json:"list_rate,omitempty"` - ListCurrency string `json:"list_currency,omitempty"` - DeliveryDays int `json:"delivery_days,omitempty"` - DeliveryDate *DateTime `json:"delivery_date,omitempty"` - DeliveryDateGuaranteed bool `json:"delivery_date_guaranteed,omitempty"` - EstDeliveryDays int `json:"est_delivery_days,omitempty"` - TimeInTransit *TimeInTransit `json:"time_in_transit,omitempty"` - BillingType string `json:"billing_type,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + CarrierAccountID string `json:"carrier_account_id,omitempty" url:"carrier_account_id,omitempty"` + ShipmentID string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` + Rate float64 `json:"rate,omitempty" url:"rate,omitempty"` + Currency string `json:"currency,omitempty" url:"currency,omitempty"` + RetailRate float64 `json:"retail_rate,omitempty" url:"retail_rate,omitempty"` + RetailCurrency string `json:"retail_currency,omitempty" url:"retail_currency,omitempty"` + ListRate float64 `json:"list_rate,omitempty" url:"list_rate,omitempty"` + ListCurrency string `json:"list_currency,omitempty" url:"list_currency,omitempty"` + DeliveryDays int `json:"delivery_days,omitempty" url:"delivery_days,omitempty"` + DeliveryDate *DateTime `json:"delivery_date,omitempty" url:"delivery_date,omitempty"` + DeliveryDateGuaranteed bool `json:"delivery_date_guaranteed,omitempty" url:"delivery_date_guaranteed,omitempty"` + EstDeliveryDays int `json:"est_delivery_days,omitempty" url:"est_delivery_days,omitempty"` + TimeInTransit *TimeInTransit `json:"time_in_transit,omitempty" url:"time_in_transit,omitempty"` + BillingType string `json:"billing_type,omitempty" url:"billing_type,omitempty"` } // A StatelessRate contains information on shipping cost and delivery time, but does not have an ID (is ephemeral). type StatelessRate struct { - BillingType string `json:"billing_type,omitempty"` - Carrier string `json:"carrier,omitempty"` - CarrierAccountID string `json:"carrier_account_id,omitempty"` - Currency string `json:"currency,omitempty"` - DeliveryDate *DateTime `json:"delivery_date,omitempty"` - DeliveryDateGuaranteed bool `json:"delivery_date_guaranteed,omitempty"` - DeliveryDays int `json:"delivery_days,omitempty"` - EstDeliveryDays int `json:"est_delivery_days,omitempty"` - ListCurrency string `json:"list_currency,omitempty"` - ListRate string `json:"list_rate,omitempty"` - Mode string `json:"mode,omitempty"` - Object string `json:"object,omitempty"` - Rate string `json:"rate,omitempty"` - RetailCurrency string `json:"retail_currency,omitempty"` - RetailRate string `json:"retail_rate,omitempty"` - Service string `json:"service,omitempty"` - ShipmentID string `json:"shipment_id,omitempty"` + BillingType string `json:"billing_type,omitempty" url:"billing_type,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + CarrierAccountID string `json:"carrier_account_id,omitempty" url:"carrier_account_id,omitempty"` + Currency string `json:"currency,omitempty" url:"currency,omitempty"` + DeliveryDate *DateTime `json:"delivery_date,omitempty" url:"delivery_date,omitempty"` + DeliveryDateGuaranteed bool `json:"delivery_date_guaranteed,omitempty" url:"delivery_date_guaranteed,omitempty"` + DeliveryDays int `json:"delivery_days,omitempty" url:"delivery_days,omitempty"` + EstDeliveryDays int `json:"est_delivery_days,omitempty" url:"est_delivery_days,omitempty"` + ListCurrency string `json:"list_currency,omitempty" url:"list_currency,omitempty"` + ListRate string `json:"list_rate,omitempty" url:"list_rate,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Rate string `json:"rate,omitempty" url:"rate,omitempty"` + RetailCurrency string `json:"retail_currency,omitempty" url:"retail_currency,omitempty"` + RetailRate string `json:"retail_rate,omitempty" url:"retail_rate,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + ShipmentID string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` } // TimeInTransit provides details on the probability your package will arrive within a certain number of days type TimeInTransit struct { - Percentile50 int `json:"percentile_50,omitempty"` - Percentile75 int `json:"percentile_75,omitempty"` - Percentile85 int `json:"percentile_85,omitempty"` - Percentile90 int `json:"percentile_90,omitempty"` - Percentile95 int `json:"percentile_95,omitempty"` - Percentile97 int `json:"percentile_97,omitempty"` - Percentile99 int `json:"percentile_99,omitempty"` + Percentile50 int `json:"percentile_50,omitempty" url:"percentile_50,omitempty"` + Percentile75 int `json:"percentile_75,omitempty" url:"percentile_75,omitempty"` + Percentile85 int `json:"percentile_85,omitempty" url:"percentile_85,omitempty"` + Percentile90 int `json:"percentile_90,omitempty" url:"percentile_90,omitempty"` + Percentile95 int `json:"percentile_95,omitempty" url:"percentile_95,omitempty"` + Percentile97 int `json:"percentile_97,omitempty" url:"percentile_97,omitempty"` + Percentile99 int `json:"percentile_99,omitempty" url:"percentile_99,omitempty"` } type getStatelessRatesResponse struct { - Rates *[]*StatelessRate `json:"rates,omitempty"` + Rates *[]*StatelessRate `json:"rates,omitempty" url:"rates,omitempty"` } // GetRate retrieves a previously-created rate by its ID. @@ -97,7 +98,7 @@ func (c *Client) GetRate(rateID string) (out *Rate, err error) { // GetRateWithContext performs the same operation as GetRate, but allows // specifying a context that can interrupt the request. func (c *Client) GetRateWithContext(ctx context.Context, rateID string) (out *Rate, err error) { - err = c.get(ctx, "rates/"+rateID, &out) + err = c.do(ctx, http.MethodGet, "rates/"+rateID, nil, &out) return } @@ -111,7 +112,7 @@ func (c *Client) BetaGetStatelessRates(in *Shipment) (out []*StatelessRate, err func (c *Client) BetaGetStatelessRatesWithContext(ctx context.Context, in *Shipment) (out []*StatelessRate, err error) { req := &createShipmentRequest{Shipment: in} res := &getStatelessRatesResponse{Rates: &out} - err = c.post(ctx, "/beta/rates", &req, &res) + err = c.do(ctx, http.MethodPost, "/beta/rates", &req, &res) return } diff --git a/referral_customer.go b/referral_customer.go index f74e545..d5883d4 100644 --- a/referral_customer.go +++ b/referral_customer.go @@ -12,10 +12,10 @@ import ( // A BetaPaymentRefund that has the refund details for the refund request. type BetaPaymentRefund struct { - RefundedAmount int `json:"refunded_amount,omitempty"` - RefundedPaymentLogs []string `json:"refunded_payment_log,omitempty"` - PaymentLogId string `json:"payment_log_id,omitempty"` - Errors []APIError `json:"errors,omitempty"` + RefundedAmount int `json:"refunded_amount,omitempty" url:"refunded_amount,omitempty"` + RefundedPaymentLogs []string `json:"refunded_payment_log,omitempty" url:"refunded_payment_log,omitempty"` + PaymentLogId string `json:"payment_log_id,omitempty" url:"payment_log_id,omitempty"` + Errors []APIError `json:"errors,omitempty" url:"errors,omitempty"` } // A ReferralCustomer contains data about an EasyPost referral customer. @@ -25,37 +25,37 @@ type ReferralCustomer struct { // ListReferralCustomersResult holds the results from the list referral customers API call. type ListReferralCustomersResult struct { - ReferralCustomers []*ReferralCustomer `json:"referral_customers,omitempty"` + ReferralCustomers []*ReferralCustomer `json:"referral_customers,omitempty" url:"referral_customers,omitempty"` PaginatedCollection } // CreditCardOptions specifies options for creating or updating a credit card. type CreditCardOptions struct { - Number string `json:"number,omitempty"` - ExpMonth string `json:"expiration_month,omitempty"` - ExpYear string `json:"expiration_year,omitempty"` - Cvc string `json:"cvc,omitempty"` + Number string `json:"number,omitempty" url:"number,omitempty"` + ExpMonth string `json:"expiration_month,omitempty" url:"expiration_month,omitempty"` + ExpYear string `json:"expiration_year,omitempty" url:"expiration_year,omitempty"` + Cvc string `json:"cvc,omitempty" url:"cvc,omitempty"` } type stripeApiKeyResponse struct { - PublicKey string `json:"public_key"` + PublicKey string `json:"public_key,omitempty" url:"public_key,omitempty"` } type stripeTokenResponse struct { - Id string `json:"id"` + Id string `json:"id,omitempty" url:"id,omitempty"` } type referralCustomerRequest struct { - UserOptions *UserOptions `json:"user,omitempty"` + UserOptions *UserOptions `json:"user,omitempty" url:"user,omitempty"` } type creditCardCreateRequest struct { - CreditCard *easypostCreditCardCreateOptions `json:"credit_card,omitempty"` + CreditCard *easypostCreditCardCreateOptions `json:"credit_card,omitempty" url:"credit_card,omitempty"` } type easypostCreditCardCreateOptions struct { - StripeToken string `json:"stripe_object_id"` - Priority string `json:"priority"` + StripeToken string `json:"stripe_object_id,omitempty" url:"stripe_object_id,omitempty"` + Priority string `json:"priority,omitempty" url:"priority,omitempty"` } // CreateReferralCustomer creates a new referral customer. @@ -66,7 +66,7 @@ func (c *Client) CreateReferralCustomer(in *UserOptions) (out *ReferralCustomer, // CreateReferralCustomerWithContext performs the same operation as CreateReferralCustomer, but allows // specifying a context that can interrupt the request. func (c *Client) CreateReferralCustomerWithContext(ctx context.Context, in *UserOptions) (out *ReferralCustomer, err error) { - err = c.post(ctx, "referral_customers", &referralCustomerRequest{UserOptions: in}, &out) + err = c.do(ctx, http.MethodPost, "referral_customers", &referralCustomerRequest{UserOptions: in}, &out) return } @@ -78,7 +78,7 @@ func (c *Client) ListReferralCustomers(opts *ListOptions) (out *ListReferralCust // ListReferralCustomersWithContext performs the same operation as ListReferralCustomers, but // allows specifying a context that can interrupt the request. func (c *Client) ListReferralCustomersWithContext(ctx context.Context, opts *ListOptions) (out *ListReferralCustomersResult, err error) { - err = c.do(ctx, http.MethodGet, "referral_customers", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "referral_customers", opts, &out) return } @@ -126,7 +126,7 @@ func (c *Client) UpdateReferralCustomerEmailWithContext(ctx context.Context, use Email: &email, }, } - err = c.put(ctx, "referral_customers/"+userId, req, &out) + err = c.do(ctx, http.MethodPut, "referral_customers/"+userId, req, &out) return } @@ -157,7 +157,7 @@ func (c *Client) AddReferralCustomerCreditCardWithContext(ctx context.Context, r } func (c *Client) retrieveEasypostStripeApiKey(ctx context.Context) (out *stripeApiKeyResponse, err error) { - err = c.get(ctx, "partners/stripe_public_key", &out) + err = c.do(ctx, http.MethodGet, "partners/stripe_public_key", nil, &out) return } @@ -213,7 +213,7 @@ func (c *Client) createEasypostCreditCard(ctx context.Context, referralCustomerA CreditCard: creditCardOptions, } - err = client.post(ctx, "credit_cards", creditCardRequest, &out) + err = client.do(ctx, http.MethodPost, "credit_cards", creditCardRequest, &out) return } @@ -233,7 +233,7 @@ func (c *Client) BetaAddPaymentMethodWithContext(ctx context.Context, stripeCust }, } - err = c.post(ctx, "/beta/referral_customers/payment_method", wrappedParams, out) + err = c.do(ctx, http.MethodPost, "/beta/referral_customers/payment_method", wrappedParams, out) return } @@ -249,7 +249,7 @@ func (c *Client) BetaRefundByAmountWithContext(ctx context.Context, refundAmount "refund_amount": refundAmount, } - err = c.post(ctx, "/beta/referral_customers/refunds", params, out) + err = c.do(ctx, http.MethodPost, "/beta/referral_customers/refunds", params, out) return } @@ -265,6 +265,6 @@ func (c *Client) BetaRefundByPaymentLogWithContext(ctx context.Context, paymentL "payment_log_id": paymentLogId, } - err = c.post(ctx, "/beta/referral_customers/refunds", params, out) + err = c.do(ctx, http.MethodPost, "/beta/referral_customers/refunds", params, out) return } diff --git a/refund.go b/refund.go index e28a355..e7d0c87 100644 --- a/refund.go +++ b/refund.go @@ -6,19 +6,19 @@ import ( ) type Refund struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - TrackingCode string `json:"tracking_code,omitempty"` - ConfirmationNumber string `json:"confirmation_number,omitempty"` - Status string `json:"status,omitempty"` - Carrier string `json:"carrier,omitempty"` - ShipmentID string `json:"shipment_id,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + ConfirmationNumber string `json:"confirmation_number,omitempty" url:"confirmation_number,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + ShipmentID string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` } type ListRefundResult struct { - Refunds []*Refund `json:"refunds,omitempty"` + Refunds []*Refund `json:"refunds,omitempty" url:"refunds,omitempty"` PaginatedCollection } @@ -31,7 +31,7 @@ func (c *Client) CreateRefund(in map[string]interface{}) (out []*Refund, err err // allows specifying a context that can interrupt the request. func (c *Client) CreateRefundWithContext(ctx context.Context, in map[string]interface{}) (out []*Refund, err error) { req := map[string]interface{}{"refund": in} - err = c.post(ctx, "refunds", req, &out) + err = c.do(ctx, http.MethodPost, "refunds", req, &out) return } @@ -43,7 +43,7 @@ func (c *Client) ListRefunds(opts *ListOptions) (out *ListRefundResult, err erro // ListRefundsWithContext performs the same operation as ListRefunds, but // allows specifying a context that can interrupt the request. func (c *Client) ListRefundsWithContext(ctx context.Context, opts *ListOptions) (out *ListRefundResult, err error) { - err = c.do(ctx, http.MethodGet, "refunds", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "refunds", opts, &out) return } @@ -86,6 +86,6 @@ func (c *Client) GetRefund(refundID string) (out *Refund, err error) { // GetRefundWithContext performs the same operation as GetRefund, but // allows specifying a context that can interrupt the request. func (c *Client) GetRefundWithContext(ctx context.Context, refundID string) (out *Refund, err error) { - err = c.get(ctx, "refunds/"+refundID, &out) + err = c.do(ctx, http.MethodGet, "refunds/"+refundID, nil, &out) return } diff --git a/report.go b/report.go index 5eccbe0..ce6f20e 100644 --- a/report.go +++ b/report.go @@ -8,26 +8,26 @@ import ( // Report represents a CSV-formatted file that is a log of all the objects // created within a certain time frame. type Report struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Status string `json:"status,omitempty"` - StartDate string `json:"start_date,omitempty"` - EndDate string `json:"end_date,omitempty"` - IncludeChildren bool `json:"include_children,omitempty"` - URL string `json:"url,omitempty"` - URLExpiresAt *DateTime `json:"url_expires_at,omitempty"` - SendEmail bool `json:"send_email,omitempty"` - Columns []string `json:"columns,omitempty"` - AdditionalColumns []string `json:"additional_columns,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + StartDate string `json:"start_date,omitempty" url:"start_date,omitempty"` + EndDate string `json:"end_date,omitempty" url:"end_date,omitempty"` + IncludeChildren bool `json:"include_children,omitempty" url:"include_children,omitempty"` + URL string `json:"url,omitempty" url:"url,omitempty"` + URLExpiresAt *DateTime `json:"url_expires_at,omitempty" url:"url_expires_at,omitempty"` + SendEmail bool `json:"send_email,omitempty" url:"send_email,omitempty"` + Columns []string `json:"columns,omitempty" url:"columns,omitempty"` + AdditionalColumns []string `json:"additional_columns,omitempty" url:"additional_columns,omitempty"` } // ListReportsResult holds the results from the list reports API. type ListReportsResult struct { - Reports []*Report `json:"reports,omitempty"` - Type string `json:"type,omitempty"` + Reports []*Report `json:"reports,omitempty" url:"reports,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` PaginatedCollection } @@ -47,7 +47,7 @@ func (c *Client) CreateReport(typ string, in *Report) (out *Report, err error) { // CreateReportWithContext performs the same operation as CreateReport, but // allows specifying a context that can interrupt the request. func (c *Client) CreateReportWithContext(ctx context.Context, typ string, in *Report) (out *Report, err error) { - err = c.post(ctx, "reports/"+typ, in, &out) + err = c.do(ctx, http.MethodPost, "reports/"+typ, in, &out) return } @@ -59,7 +59,7 @@ func (c *Client) ListReports(typ string, opts *ListOptions) (out *ListReportsRes // ListReportsWithContext performs the same operation as ListReports, but allows // specifying a context that can interrupt the request. func (c *Client) ListReportsWithContext(ctx context.Context, typ string, opts *ListOptions) (out *ListReportsResult, err error) { - err = c.do(ctx, http.MethodGet, "reports/"+typ, c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "reports/"+typ, opts, &out) // Store the original query parameters for reuse when getting the next page out.Type = typ return @@ -110,6 +110,6 @@ func (c *Client) GetReport(typ, reportID string) (out *Report, err error) { // GetReportWithContext performs the same operation as GetReport, but allows // specifying a context that can interrupt the request. func (c *Client) GetReportWithContext(ctx context.Context, typ, reportID string) (out *Report, err error) { - err = c.get(ctx, "reports/"+typ+"/"+reportID, &out) + err = c.do(ctx, http.MethodGet, "reports/"+typ+"/"+reportID, nil, &out) return } diff --git a/scan_form.go b/scan_form.go index db9088e..3b9b814 100644 --- a/scan_form.go +++ b/scan_form.go @@ -8,26 +8,26 @@ import ( // A ScanForm object represents a document that can be scanned to mark all // included tracking codes as "Accepted for Shipment" by the carrier. type ScanForm struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - Status string `json:"status,omitempty"` - Message string `json:"message,omitempty"` - Address *Address `json:"address,omitempty"` - TrackingCodes []string `json:"tracking_codes,omitempty"` - FormURL string `json:"form_url,omitempty"` - FormFileType string `json:"form_file_type,omitempty"` - BatchID string `json:"batch_id,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + Message string `json:"message,omitempty" url:"message,omitempty"` + Address *Address `json:"address,omitempty" url:"address,omitempty"` + TrackingCodes []string `json:"tracking_codes,omitempty" url:"tracking_codes,omitempty"` + FormURL string `json:"form_url,omitempty" url:"form_url,omitempty"` + FormFileType string `json:"form_file_type,omitempty" url:"form_file_type,omitempty"` + BatchID string `json:"batch_id,omitempty" url:"batch_id,omitempty"` } type scanFormRequest struct { - Shipments []*Shipment `json:"shipments,omitempty"` + Shipments []*Shipment `json:"shipments,omitempty" url:"shipments,omitempty"` } // ListScanFormsResult holds the results from the list scan forms API. type ListScanFormsResult struct { - ScanForms []*ScanForm `json:"scan_forms,omitempty"` + ScanForms []*ScanForm `json:"scan_forms,omitempty" url:"scan_forms,omitempty"` PaginatedCollection } @@ -52,7 +52,7 @@ func (c *Client) CreateScanForm(shipmentIDs ...string) (out *ScanForm, err error // CreateScanFormWithContext performs the same operation as CreateScanForm, but // allows specifying a context that can interrupt the request. func (c *Client) CreateScanFormWithContext(ctx context.Context, shipmentIDs ...string) (out *ScanForm, err error) { - err = c.post(ctx, "scan_forms", newScanFormRequest(shipmentIDs...), &out) + err = c.do(ctx, http.MethodPost, "scan_forms", newScanFormRequest(shipmentIDs...), &out) return } @@ -64,7 +64,7 @@ func (c *Client) ListScanForms(opts *ListOptions) (out *ListScanFormsResult, err // ListScanFormsWithContext performs the same operation as ListScanForms, but // allows specifying a context that can interrupt the request. func (c *Client) ListScanFormsWithContext(ctx context.Context, opts *ListOptions) (out *ListScanFormsResult, err error) { - err = c.do(ctx, http.MethodGet, "scan_forms", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "scan_forms", opts, &out) return } @@ -107,6 +107,6 @@ func (c *Client) GetScanForm(scanFormID string) (out *ScanForm, err error) { // GetScanFormWithContext performs the same operation as GetScanForm, but // allows specifying a context that can interrupt the request. func (c *Client) GetScanFormWithContext(ctx context.Context, scanFormID string) (out *ScanForm, err error) { - err = c.get(ctx, "scan_forms/"+scanFormID, &out) + err = c.do(ctx, http.MethodGet, "scan_forms/"+scanFormID, nil, &out) return } diff --git a/shipment.go b/shipment.go index 1b1494e..2171d67 100644 --- a/shipment.go +++ b/shipment.go @@ -3,132 +3,131 @@ package easypost import ( "context" "net/http" - "net/url" ) // A Form represents a form associated with a Shipment. type Form struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - FormType string `json:"form_type,omitempty"` - FormURL string `json:"form_url,omitempty"` - SubmittedElectronically bool `json:"submitted_electronically,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + FormType string `json:"form_type,omitempty" url:"form_type,omitempty"` + FormURL string `json:"form_url,omitempty" url:"form_url,omitempty"` + SubmittedElectronically bool `json:"submitted_electronically,omitempty" url:"submitted_electronically,omitempty"` } // PostageLabel provides details of a shipping label for a purchased shipment. type PostageLabel struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - IntegratedForm string `json:"integrated_form,omitempty"` - LabelDate *DateTime `json:"label_date,omitempty"` - LabelEPL2URL string `json:"label_epl2_url,omitempty"` - LabelFileType string `json:"label_file_type,omitempty"` - LabelPDFURL string `json:"label_pdf_url,omitempty"` - LabelResolution float64 `json:"label_resolution,omitempty"` - LabelSize string `json:"label_size,omitempty"` - LabelType string `json:"label_type,omitempty"` - LabelURL string `json:"label_url,omitempty"` - LabelZPLURL string `json:"label_zpl_url,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + IntegratedForm string `json:"integrated_form,omitempty" url:"integrated_form,omitempty"` + LabelDate *DateTime `json:"label_date,omitempty" url:"label_date,omitempty"` + LabelEPL2URL string `json:"label_epl2_url,omitempty" url:"label_epl2_url,omitempty"` + LabelFileType string `json:"label_file_type,omitempty" url:"label_file_type,omitempty"` + LabelPDFURL string `json:"label_pdf_url,omitempty" url:"label_pdf_url,omitempty"` + LabelResolution float64 `json:"label_resolution,omitempty" url:"label_resolution,omitempty"` + LabelSize string `json:"label_size,omitempty" url:"label_size,omitempty"` + LabelType string `json:"label_type,omitempty" url:"label_type,omitempty"` + LabelURL string `json:"label_url,omitempty" url:"label_url,omitempty"` + LabelZPLURL string `json:"label_zpl_url,omitempty" url:"label_zpl_url,omitempty"` } // A Shipment represents its namesake, and is made up of a "to" and "from" // addresses, the Parcel being shipped, and any customs forms required for // international deliveries. type Shipment struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Reference string `json:"reference,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - ToAddress *Address `json:"to_address,omitempty"` - FromAddress *Address `json:"from_address,omitempty"` - ReturnAddress *Address `json:"return_address,omitempty"` - BuyerAddress *Address `json:"buyer_address,omitempty"` - Parcel *Parcel `json:"parcel,omitempty"` - Carrier string `json:"carrier,omitempty"` - Service string `json:"service,omitempty"` - CarrierAccountIDs []string `json:"carrier_accounts,omitempty"` - CustomsInfo *CustomsInfo `json:"customs_info,omitempty"` - ScanForm *ScanForm `json:"scan_form,omitempty"` - Forms []*Form `json:"forms,omitempty"` - Insurance string `json:"insurance,omitempty"` - Rates []*Rate `json:"rates,omitempty"` - SelectedRate *Rate `json:"selected_rate,omitempty"` - PostageLabel *PostageLabel `json:"postage_label,omitempty"` - Messages []*CarrierMessage `json:"messages,omitempty"` - Options *ShipmentOptions `json:"options,omitempty"` - IsReturn bool `json:"is_return,omitempty"` - TrackingCode string `json:"tracking_code,omitempty"` - USPSZone int `json:"usps_zone,omitempty"` - Status string `json:"status,omitempty"` - Tracker *Tracker `json:"tracker,omitempty"` - Fees []*Fee `json:"fees,omitempty"` - RefundStatus string `json:"refund_status,omitempty"` - BatchID string `json:"batch_id,omitempty"` - BatchStatus string `json:"batch_status,omitempty"` - BatchMessage string `json:"batch_message,omitempty"` - TaxIdentifiers []*TaxIdentifier `json:"tax_identifiers,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Reference string `json:"reference,omitempty" url:"reference,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + ToAddress *Address `json:"to_address,omitempty" url:"to_address,omitempty"` + FromAddress *Address `json:"from_address,omitempty" url:"from_address,omitempty"` + ReturnAddress *Address `json:"return_address,omitempty" url:"return_address,omitempty"` + BuyerAddress *Address `json:"buyer_address,omitempty" url:"buyer_address,omitempty"` + Parcel *Parcel `json:"parcel,omitempty" url:"parcel,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + CarrierAccountIDs []string `json:"carrier_accounts,omitempty" url:"carrier_accounts,omitempty"` + CustomsInfo *CustomsInfo `json:"customs_info,omitempty" url:"customs_info,omitempty"` + ScanForm *ScanForm `json:"scan_form,omitempty" url:"scan_form,omitempty"` + Forms []*Form `json:"forms,omitempty" url:"forms,omitempty"` + Insurance string `json:"insurance,omitempty" url:"insurance,omitempty"` + Rates []*Rate `json:"rates,omitempty" url:"rates,omitempty"` + SelectedRate *Rate `json:"selected_rate,omitempty" url:"selected_rate,omitempty"` + PostageLabel *PostageLabel `json:"postage_label,omitempty" url:"postage_label,omitempty"` + Messages []*CarrierMessage `json:"messages,omitempty" url:"messages,omitempty"` + Options *ShipmentOptions `json:"options,omitempty" url:"options,omitempty"` + IsReturn bool `json:"is_return,omitempty" url:"is_return,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + USPSZone int `json:"usps_zone,omitempty" url:"usps_zone,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + Tracker *Tracker `json:"tracker,omitempty" url:"tracker,omitempty"` + Fees []*Fee `json:"fees,omitempty" url:"fees,omitempty"` + RefundStatus string `json:"refund_status,omitempty" url:"refund_status,omitempty"` + BatchID string `json:"batch_id,omitempty" url:"batch_id,omitempty"` + BatchStatus string `json:"batch_status,omitempty" url:"batch_status,omitempty"` + BatchMessage string `json:"batch_message,omitempty" url:"batch_message,omitempty"` + TaxIdentifiers []*TaxIdentifier `json:"tax_identifiers,omitempty" url:"tax_identifiers,omitempty"` } // ListShipmentsOptions is used to specify query parameters for listing Shipment // objects. type ListShipmentsOptions struct { - BeforeID string `url:"before_id,omitempty"` - AfterID string `url:"after_id,omitempty"` - StartDateTime *DateTime `url:"start_datetime,omitempty"` - EndDateTime *DateTime `url:"end_datetime,omitempty"` - PageSize int `url:"page_size,omitempty"` - Purchased *bool `url:"purchased,omitempty"` - IncludeChildren *bool `url:"include_children,omitempty"` + BeforeID string `json:"before_id,omitempty" url:"before_id,omitempty"` + AfterID string `json:"after_id,omitempty" url:"after_id,omitempty"` + StartDateTime *DateTime `json:"start_datetime,omitempty" url:"start_datetime,omitempty"` + EndDateTime *DateTime `json:"end_datetime,omitempty" url:"end_datetime,omitempty"` + PageSize int `json:"page_size,omitempty" url:"page_size,omitempty"` + Purchased *bool `json:"purchased,omitempty" url:"purchased,omitempty"` + IncludeChildren *bool `json:"include_children,omitempty" url:"include_children,omitempty"` } // ListShipmentsResult holds the results from the list shipments API. type ListShipmentsResult struct { - Shipments []*Shipment `json:"shipments,omitempty"` - Purchased *bool `json:"purchased,omitempty"` - IncludeChildren *bool `json:"include_children,omitempty"` + Shipments []*Shipment `json:"shipments,omitempty" url:"shipments,omitempty"` + Purchased *bool `json:"purchased,omitempty" url:"purchased,omitempty"` + IncludeChildren *bool `json:"include_children,omitempty" url:"include_children,omitempty"` PaginatedCollection } type buyShipmentRequest struct { - Rate *Rate `json:"rate,omitempty"` - Insurance string `json:"insurance,omitempty"` - EndShipperID string `json:"end_shipper_id,omitempty"` + Rate *Rate `json:"rate,omitempty" url:"rate,omitempty"` + Insurance string `json:"insurance,omitempty" url:"insurance,omitempty"` + EndShipperID string `json:"end_shipper_id,omitempty" url:"end_shipper_id,omitempty"` } type createShipmentRequest struct { - Shipment *Shipment `json:"shipment,omitempty"` + Shipment *Shipment `json:"shipment,omitempty" url:"shipment,omitempty"` } type getShipmentRatesResponse struct { - Rates *[]*Rate `json:"rates,omitempty"` + Rates *[]*Rate `json:"rates,omitempty" url:"rates,omitempty"` } type generateFormRequest struct { - Form map[string]interface{} `json:"form,omitempty"` + Form map[string]interface{} `json:"form,omitempty" url:"form,omitempty"` } type EasyPostTimeInTransitData struct { - DaysInTransit TimeInTransit `json:"days_in_transit,omitempty"` - EasyPostEstimatedDeliveryDate string `json:"easypost_estimated_delivery_date,omitempty"` - PlannedShipDate string `json:"planned_ship_date,omitempty"` + DaysInTransit TimeInTransit `json:"days_in_transit,omitempty" url:"days_in_transit,omitempty"` + EasyPostEstimatedDeliveryDate string `json:"easypost_estimated_delivery_date,omitempty" url:"easypost_estimated_delivery_date,omitempty"` + PlannedShipDate string `json:"planned_ship_date,omitempty" url:"planned_ship_date,omitempty"` } type EstimatedDeliveryDate struct { - EasyPostTimeInTransitData EasyPostTimeInTransitData `json:"easypost_time_in_transit_data,omitempty"` - Rate SmartRate `json:"rate,omitempty"` + EasyPostTimeInTransitData EasyPostTimeInTransitData `json:"easypost_time_in_transit_data,omitempty" url:"easypost_time_in_transit_data,omitempty"` + Rate SmartRate `json:"rate,omitempty" url:"rate,omitempty"` } // RecommendShipDateForShipmentResult is the result of the RecommendShipDateForShipment method. type RecommendShipDateForShipmentResult struct { - Rate *SmartRate `json:"rate,omitempty"` - EasyPostTimeInTransitData *TimeInTransitDetailsForShipDate `json:"easypost_time_in_transit_data,omitempty"` + Rate *SmartRate `json:"rate,omitempty" url:"rate,omitempty"` + EasyPostTimeInTransitData *TimeInTransitDetailsForShipDate `json:"easypost_time_in_transit_data,omitempty" url:"easypost_time_in_transit_data,omitempty"` } // CreateShipment creates a new Shipment object. The ToAddress, FromAddress and @@ -169,7 +168,7 @@ func (c *Client) CreateShipment(in *Shipment) (out *Shipment, err error) { // allows specifying a context that can interrupt the request. func (c *Client) CreateShipmentWithContext(ctx context.Context, in *Shipment) (out *Shipment, err error) { req := &createShipmentRequest{Shipment: in} - err = c.post(ctx, "shipments", &req, &out) + err = c.do(ctx, http.MethodPost, "shipments", &req, &out) return } @@ -181,7 +180,7 @@ func (c *Client) ListShipments(opts *ListShipmentsOptions) (out *ListShipmentsRe // ListShipmentsWithContext performs the same operation as ListShipments, but // allows specifying a context that can interrupt the request. func (c *Client) ListShipmentsWithContext(ctx context.Context, opts *ListShipmentsOptions) (out *ListShipmentsResult, err error) { - err = c.do(ctx, http.MethodGet, "shipments", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "shipments", opts, &out) // Store the original query parameters for reuse when getting the next page out.Purchased = opts.Purchased out.IncludeChildren = opts.IncludeChildren @@ -235,12 +234,12 @@ func (c *Client) GetShipment(shipmentID string) (out *Shipment, err error) { // GetShipmentWithContext performs the same operation as GetShipment, but allows // specifying a context that can interrupt the request. func (c *Client) GetShipmentWithContext(ctx context.Context, shipmentID string) (out *Shipment, err error) { - err = c.get(ctx, "shipments/"+shipmentID, &out) + err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID, nil, &out) return } func (c *Client) buyShipment(ctx context.Context, shipmentID string, in *buyShipmentRequest) (out *Shipment, err error) { - err = c.post(ctx, "shipments/"+shipmentID+"/buy", &in, &out) + err = c.do(ctx, http.MethodPost, "shipments/"+shipmentID+"/buy", &in, &out) return } @@ -282,8 +281,11 @@ func (c *Client) GetShipmentLabel(shipmentID, format string) (out *Shipment, err // GetShipmentLabelWithContext performs the same operation as GetShipmentLabel, // but allows specifying a context that can interrupt the request. func (c *Client) GetShipmentLabelWithContext(ctx context.Context, shipmentID, format string) (out *Shipment, err error) { - vals := url.Values{"file_format": []string{format}} - err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/label", vals, &out) + req := struct { + FileFormat string `json:"file_format,omitempty" url:"file_format,omitempty"` + }{} + req.FileFormat = format + err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/label", req, &out) return } @@ -296,9 +298,9 @@ func (c *Client) GetShipmentSmartrates(shipmentID string) (out []*SmartRate, err // but allows specifying a context that can interrupt the request. func (c *Client) GetShipmentSmartratesWithContext(ctx context.Context, shipmentID string) (out []*SmartRate, err error) { res := struct { - Smartrates *[]*SmartRate `json:"result,omitempty"` + Smartrates *[]*SmartRate `json:"result,omitempty" url:"result,omitempty"` }{Smartrates: &out} - err = c.get(ctx, "shipments/"+shipmentID+"/smartrate", &res) + err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/smartrate", nil, &res) return } @@ -313,8 +315,10 @@ func (c *Client) InsureShipment(shipmentID, amount string) (out *Shipment, err e // InsureShipmentWithContext performs the same operation as InsureShipment, but // allows specifying a context that can interrupt the request. func (c *Client) InsureShipmentWithContext(ctx context.Context, shipmentID, amount string) (out *Shipment, err error) { - vals := url.Values{"amount": []string{amount}} - err = c.post(ctx, "shipments/"+shipmentID+"/insure", vals, &out) + params := struct { + Amount string `json:"amount,omitempty" url:"amount,omitempty"` + }{Amount: amount} + err = c.do(ctx, http.MethodPost, "shipments/"+shipmentID+"/insure", params, &out) return } @@ -326,7 +330,7 @@ func (c *Client) RefundShipment(shipmentID string) (out *Shipment, err error) { // RefundShipmentWithContext performs the same operation as RefundShipment, but // allows specifying a context that can interrupt the request. func (c *Client) RefundShipmentWithContext(ctx context.Context, shipmentID string) (out *Shipment, err error) { - err = c.post(ctx, "shipments/"+shipmentID+"/refund", nil, &out) + err = c.do(ctx, http.MethodPost, "shipments/"+shipmentID+"/refund", nil, &out) return } @@ -339,7 +343,7 @@ func (c *Client) RerateShipment(shipmentID string) (out []*Rate, err error) { // but allows specifying a context that can interrupt the request. func (c *Client) RerateShipmentWithContext(ctx context.Context, shipmentID string) (out []*Rate, err error) { res := &getShipmentRatesResponse{Rates: &out} - err = c.post(ctx, "shipments/"+shipmentID+"/rerate", nil, &res) + err = c.do(ctx, http.MethodPost, "shipments/"+shipmentID+"/rerate", nil, &res) return } @@ -387,7 +391,7 @@ func (c *Client) GenerateShipmentFormWithOptions(shipmentID string, formType str func (c *Client) GenerateShipmentFormWithOptionsWithContext(ctx context.Context, shipmentID string, formType string, formOptions map[string]interface{}) (out *Shipment, err error) { formOptions["type"] = formType req := &generateFormRequest{Form: formOptions} - err = c.post(ctx, "shipments/"+shipmentID+"/forms", &req, &out) + err = c.do(ctx, http.MethodPost, "shipments/"+shipmentID+"/forms", &req, &out) return } @@ -398,11 +402,13 @@ func (c *Client) GetShipmentEstimatedDeliveryDate(shipmentID string, plannedShip // GetShipmentEstimatedDeliveryDateWithContext performs the same operation as EstimateDeliveryDateForShipment, but allows specifying a context that can interrupt the request. func (c *Client) GetShipmentEstimatedDeliveryDateWithContext(ctx context.Context, shipmentID string, plannedShipDate string) (out []*EstimatedDeliveryDate, err error) { - vals := url.Values{"planned_ship_date": []string{plannedShipDate}} + params := struct { + PlannedShipDate string `json:"planned_ship_date,omitempty" url:"planned_ship_date,omitempty"` + }{PlannedShipDate: plannedShipDate} res := struct { - EstimatedDeliveryDates *[]*EstimatedDeliveryDate `json:"rates,omitempty"` + EstimatedDeliveryDates *[]*EstimatedDeliveryDate `json:"rates,omitempty" url:"rates,omitempty"` }{EstimatedDeliveryDates: &out} - err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/smartrate/delivery_date", vals, &res) + err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/smartrate/delivery_date", params, &res) return } @@ -413,10 +419,14 @@ func (c *Client) RecommendShipDateForShipment(shipmentID string, desiredDelivery // RecommendShipDateForShipmentWithContext performs the same operation as RecommendShipDateForShipment, but allows specifying a context that can interrupt the request. func (c *Client) RecommendShipDateForShipmentWithContext(ctx context.Context, shipmentID string, desiredDeliveryDate string) (out []*RecommendShipDateForShipmentResult, err error) { - vals := url.Values{"desired_delivery_date": []string{desiredDeliveryDate}} + params := struct { + DesiredDeliveryDate string `json:"desired_delivery_date,omitempty" url:"desired_delivery_date,omitempty"` + }{ + DesiredDeliveryDate: desiredDeliveryDate, + } res := struct { - Results *[]*RecommendShipDateForShipmentResult `json:"rates,omitempty"` + Results *[]*RecommendShipDateForShipmentResult `json:"rates,omitempty" url:"rates,omitempty"` }{Results: &out} - err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/smartrate/precision_shipping", vals, &res) + err = c.do(ctx, http.MethodGet, "shipments/"+shipmentID+"/smartrate/precision_shipping", params, &res) return } diff --git a/shipment_options.go b/shipment_options.go index 64376ba..3bcd2e8 100644 --- a/shipment_options.go +++ b/shipment_options.go @@ -3,72 +3,72 @@ package easypost // ShipmentOptions represents the various options that can be applied to a // shipment at creation. type ShipmentOptions struct { - AdditionalHandling bool `json:"additional_handling,omitempty"` - AddressValidationLevel string `json:"address_validation_level,omitempty"` - Alcohol bool `json:"alcohol,omitempty"` - BillingRef string `json:"billing_ref,omitempty"` - BillReceiverAccount string `json:"bill_receiver_account,omitempty"` - BillReceiverPostalCode string `json:"bill_receiver_postal_code,omitempty"` - BillThirdPartyAccount string `json:"bill_third_party_account,omitempty"` - BillThirdPartyCountry string `json:"bill_third_party_country,omitempty"` - BillThirdPartyPostalCode string `json:"bill_third_party_postal_code,omitempty"` - ByDrone bool `json:"by_drone,omitempty"` - CarbonNeutral bool `json:"carbon_neutral,omitempty"` - CertifiedMail bool `json:"certified_mail,omitempty"` - CODAmount string `json:"cod_amount,omitempty"` - CODMethod string `json:"cod_method,omitempty"` - CODAddressID string `json:"cod_address_id,omitempty"` - CommercialInvoiceSignature string `json:"commercial_invoice_signature,omitempty"` - CommercialInvoiceLetterhead string `json:"commercial_invoice_letterhead,omitempty"` - ContentDescription string `json:"content_description,omitempty"` - Currency string `json:"currency,omitempty"` - DeliveryConfirmation string `json:"delivery_confirmation,omitempty"` - DeliveryMaxDatetime *DateTime `json:"delivery_max_datetime,omitempty"` - DutyPayment *Payment `json:"duty_payment,omitempty"` - DutyPaymentAccount string `json:"duty_payment_account,omitempty"` - DropoffMaxDatetime *DateTime `json:"dropoff_max_datetime,omitempty"` - DropoffType string `json:"dropoff_type,omitempty"` - DryIce bool `json:"dry_ice,omitempty"` - DryIceMedical bool `json:"dry_ice_medical,omitempty,string"` - DryIceWeight float64 `json:"dry_ice_weight,omitempty,string"` - Endorsement string `json:"endorsement,omitempty"` - EndShipperID string `json:"end_shipper_id,omitempty"` - FreightCharge float64 `json:"freight_charge,omitempty"` - HandlingInstructions string `json:"handling_instructions,omitempty"` - Hazmat string `json:"hazmat,omitempty"` - HoldForPickup bool `json:"hold_for_pickup,omitempty"` - Incoterm string `json:"incoterm,omitempty"` - InvoiceNumber string `json:"invoice_number,omitempty"` - LabelDate *DateTime `json:"label_date,omitempty"` - LabelFormat string `json:"label_format,omitempty"` - LabelSize string `json:"label_size,omitempty"` - Machinable bool `json:"machinable,omitempty"` - Payment *Payment `json:"payment,omitempty"` - PickupMinDatetime *DateTime `json:"pickup_min_datetime,omitempty"` - PickupMaxDatetime *DateTime `json:"pickup_max_datetime,omitempty"` - PrintCustom1 string `json:"print_custom_1,omitempty"` - PrintCustom2 string `json:"print_custom_2,omitempty"` - PrintCustom3 string `json:"print_custom_3,omitempty"` - PrintCustom1BarCode bool `json:"print_custom_1_barcode,omitempty"` - PrintCustom2BarCode bool `json:"print_custom_2_barcode,omitempty"` - PrintCustom3BarCode bool `json:"print_custom_3_barcode,omitempty"` - PrintCustom1Code string `json:"print_custom_1_code,omitempty"` - PrintCustom2Code string `json:"print_custom_2_code,omitempty"` - PrintCustom3Code string `json:"print_custom_3_code,omitempty"` - RegisteredMail bool `json:"registered_mail,omitempty"` - RegisteredMailAmount float64 `json:"registered_mail_amount,omitempty"` - ReturnReceipt bool `json:"return_receipt,omitempty"` - SaturdayDelivery bool `json:"saturday_delivery,omitempty"` - SpecialRatesEligibility string `json:"special_rates_eligibility,omitempty"` - SmartpostHub string `json:"smartpost_hub,omitempty"` - SmartpostManifest string `json:"smartpost_manifest,omitempty"` - SuppressETD bool `json:"suppress_etd,omitempty"` + AdditionalHandling bool `json:"additional_handling,omitempty" url:"additional_handling,omitempty"` + AddressValidationLevel string `json:"address_validation_level,omitempty" url:"address_validation_level,omitempty"` + Alcohol bool `json:"alcohol,omitempty" url:"alcohol,omitempty"` + BillingRef string `json:"billing_ref,omitempty" url:"billing_ref,omitempty"` + BillReceiverAccount string `json:"bill_receiver_account,omitempty" url:"bill_receiver_account,omitempty"` + BillReceiverPostalCode string `json:"bill_receiver_postal_code,omitempty" url:"bill_receiver_postal_code,omitempty"` + BillThirdPartyAccount string `json:"bill_third_party_account,omitempty" url:"bill_third_party_account,omitempty"` + BillThirdPartyCountry string `json:"bill_third_party_country,omitempty" url:"bill_third_party_country,omitempty"` + BillThirdPartyPostalCode string `json:"bill_third_party_postal_code,omitempty" url:"bill_third_party_postal_code,omitempty"` + ByDrone bool `json:"by_drone,omitempty" url:"by_drone,omitempty"` + CarbonNeutral bool `json:"carbon_neutral,omitempty" url:"carbon_neutral,omitempty"` + CertifiedMail bool `json:"certified_mail,omitempty" url:"certified_mail,omitempty"` + CODAmount string `json:"cod_amount,omitempty" url:"cod_amount,omitempty"` + CODMethod string `json:"cod_method,omitempty" url:"cod_method,omitempty"` + CODAddressID string `json:"cod_address_id,omitempty" url:"cod_address_id,omitempty"` + CommercialInvoiceSignature string `json:"commercial_invoice_signature,omitempty" url:"commercial_invoice_signature,omitempty"` + CommercialInvoiceLetterhead string `json:"commercial_invoice_letterhead,omitempty" url:"commercial_invoice_letterhead,omitempty"` + ContentDescription string `json:"content_description,omitempty" url:"content_description,omitempty"` + Currency string `json:"currency,omitempty" url:"currency,omitempty"` + DeliveryConfirmation string `json:"delivery_confirmation,omitempty" url:"delivery_confirmation,omitempty"` + DeliveryMaxDatetime *DateTime `json:"delivery_max_datetime,omitempty" url:"delivery_max_datetime,omitempty"` + DutyPayment *Payment `json:"duty_payment,omitempty" url:"duty_payment,omitempty"` + DutyPaymentAccount string `json:"duty_payment_account,omitempty" url:"duty_payment_account,omitempty"` + DropoffMaxDatetime *DateTime `json:"dropoff_max_datetime,omitempty" url:"dropoff_max_datetime,omitempty"` + DropoffType string `json:"dropoff_type,omitempty" url:"dropoff_type,omitempty"` + DryIce bool `json:"dry_ice,omitempty" url:"dry_ice,omitempty"` + DryIceMedical bool `json:"dry_ice_medical,omitempty,string" url:"dry_ice_medical,omitempty"` + DryIceWeight float64 `json:"dry_ice_weight,omitempty,string" url:"dry_ice_weight,omitempty"` + Endorsement string `json:"endorsement,omitempty" url:"endorsement,omitempty"` + EndShipperID string `json:"end_shipper_id,omitempty" url:"end_shipper_id,omitempty"` + FreightCharge float64 `json:"freight_charge,omitempty" url:"freight_charge,omitempty"` + HandlingInstructions string `json:"handling_instructions,omitempty" url:"handling_instructions,omitempty"` + Hazmat string `json:"hazmat,omitempty" url:"hazmat,omitempty"` + HoldForPickup bool `json:"hold_for_pickup,omitempty" url:"hold_for_pickup,omitempty"` + Incoterm string `json:"incoterm,omitempty" url:"incoterm,omitempty"` + InvoiceNumber string `json:"invoice_number,omitempty" url:"invoice_number,omitempty"` + LabelDate *DateTime `json:"label_date,omitempty" url:"label_date,omitempty"` + LabelFormat string `json:"label_format,omitempty" url:"label_format,omitempty"` + LabelSize string `json:"label_size,omitempty" url:"label_size,omitempty"` + Machinable bool `json:"machinable,omitempty" url:"machinable,omitempty"` + Payment *Payment `json:"payment,omitempty" url:"payment,omitempty"` + PickupMinDatetime *DateTime `json:"pickup_min_datetime,omitempty" url:"pickup_min_datetime,omitempty"` + PickupMaxDatetime *DateTime `json:"pickup_max_datetime,omitempty" url:"pickup_max_datetime,omitempty"` + PrintCustom1 string `json:"print_custom_1,omitempty" url:"print_custom_1,omitempty"` + PrintCustom2 string `json:"print_custom_2,omitempty" url:"print_custom_2,omitempty"` + PrintCustom3 string `json:"print_custom_3,omitempty" url:"print_custom_3,omitempty"` + PrintCustom1BarCode bool `json:"print_custom_1_barcode,omitempty" url:"print_custom_1_barcode,omitempty"` + PrintCustom2BarCode bool `json:"print_custom_2_barcode,omitempty" url:"print_custom_2_barcode,omitempty"` + PrintCustom3BarCode bool `json:"print_custom_3_barcode,omitempty" url:"print_custom_3_barcode,omitempty"` + PrintCustom1Code string `json:"print_custom_1_code,omitempty" url:"print_custom_1_code,omitempty"` + PrintCustom2Code string `json:"print_custom_2_code,omitempty" url:"print_custom_2_code,omitempty"` + PrintCustom3Code string `json:"print_custom_3_code,omitempty" url:"print_custom_3_code,omitempty"` + RegisteredMail bool `json:"registered_mail,omitempty" url:"registered_mail,omitempty"` + RegisteredMailAmount float64 `json:"registered_mail_amount,omitempty" url:"registered_mail_amount,omitempty"` + ReturnReceipt bool `json:"return_receipt,omitempty" url:"return_receipt,omitempty"` + SaturdayDelivery bool `json:"saturday_delivery,omitempty" url:"saturday_delivery,omitempty"` + SpecialRatesEligibility string `json:"special_rates_eligibility,omitempty" url:"special_rates_eligibility,omitempty"` + SmartpostHub string `json:"smartpost_hub,omitempty" url:"smartpost_hub,omitempty"` + SmartpostManifest string `json:"smartpost_manifest,omitempty" url:"smartpost_manifest,omitempty"` + SuppressETD bool `json:"suppress_etd,omitempty" url:"suppress_etd,omitempty"` } // Payment provides information on how a shipment is billed. type Payment struct { - Type string `json:"type,omitempty"` - Account string `json:"account,omitempty"` - Country string `json:"country,omitempty"` - PostalCode string `json:"postal_code,omitempty"` + Type string `json:"type,omitempty" url:"type,omitempty"` + Account string `json:"account,omitempty" url:"account,omitempty"` + Country string `json:"country,omitempty" url:"country,omitempty"` + PostalCode string `json:"postal_code,omitempty" url:"postal_code,omitempty"` } diff --git a/smart_rate.go b/smart_rate.go index 6e70719..d67c0de 100644 --- a/smart_rate.go +++ b/smart_rate.go @@ -2,74 +2,75 @@ package easypost import ( "context" + "net/http" ) // TimeInTransitDetailsForDeliveryDate contains the time-in-transit details and estimated delivery date for a specific DeliveryDateForZipPairEstimate. type TimeInTransitDetailsForDeliveryDate struct { - PlannedShipDate *DateTime `json:"planned_ship_date,omitempty"` - EasyPostEstimatedDeliveryDate *DateTime `json:"easypost_estimated_delivery_date,omitempty"` - DaysInTransit *TimeInTransit `json:"days_in_transit,omitempty"` + PlannedShipDate *DateTime `json:"planned_ship_date,omitempty" url:"planned_ship_date,omitempty"` + EasyPostEstimatedDeliveryDate *DateTime `json:"easypost_estimated_delivery_date,omitempty" url:"easypost_estimated_delivery_date,omitempty"` + DaysInTransit *TimeInTransit `json:"days_in_transit,omitempty" url:"days_in_transit,omitempty"` } // DeliveryDateForZipPairEstimate is a single zip-pair-based delivery date estimate for a carrier-service level combination. type DeliveryDateForZipPairEstimate struct { - Carrier string `json:"carrier,omitempty"` - Service string `json:"service,omitempty"` - EasyPostTimeInTransitData *TimeInTransitDetailsForDeliveryDate `json:"easypost_time_in_transit_data,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + EasyPostTimeInTransitData *TimeInTransitDetailsForDeliveryDate `json:"easypost_time_in_transit_data,omitempty" url:"easypost_time_in_transit_data,omitempty"` } // EstimateDeliveryDateForZipPairResult is the result of the EstimateDeliveryDateForZipPair method, containing the estimated delivery date of each carrier-service level combination and additional metadata. type EstimateDeliveryDateForZipPairResult struct { - CarriersWithoutEstimates []string `json:"carriers_without_tint_estimates,omitempty"` - FromZip string `json:"from_zip,omitempty"` - ToZip string `json:"to_zip,omitempty"` - SaturdayDelivery bool `json:"saturday_delivery,omitempty"` - PlannedShipDate *DateTime `json:"planned_ship_date,omitempty"` - Results []*DeliveryDateForZipPairEstimate `json:"results,omitempty"` + CarriersWithoutEstimates []string `json:"carriers_without_tint_estimates,omitempty" url:"carriers_without_tint_estimates,omitempty"` + FromZip string `json:"from_zip,omitempty" url:"from_zip,omitempty"` + ToZip string `json:"to_zip,omitempty" url:"to_zip,omitempty"` + SaturdayDelivery bool `json:"saturday_delivery,omitempty" url:"saturday_delivery,omitempty"` + PlannedShipDate *DateTime `json:"planned_ship_date,omitempty" url:"planned_ship_date,omitempty"` + Results []*DeliveryDateForZipPairEstimate `json:"results,omitempty" url:"results,omitempty"` } // EstimateDeliveryDateForZipPairParams are used in the EstimateDeliveryDateForZipPair method. type EstimateDeliveryDateForZipPairParams struct { - FromZip string `json:"from_zip,omitempty"` - ToZip string `json:"to_zip,omitempty"` - Carriers []string `json:"carriers,omitempty"` - PlannedShipDate string `json:"planned_ship_date,omitempty"` - SaturdayDelivery bool `json:"saturday_delivery,omitempty"` + FromZip string `json:"from_zip,omitempty" url:"from_zip,omitempty"` + ToZip string `json:"to_zip,omitempty" url:"to_zip,omitempty"` + Carriers []string `json:"carriers,omitempty" url:"carriers,omitempty"` + PlannedShipDate string `json:"planned_ship_date,omitempty" url:"planned_ship_date,omitempty"` + SaturdayDelivery bool `json:"saturday_delivery,omitempty" url:"saturday_delivery,omitempty"` } // TimeInTransitDetailsForShipDate contains the time-in-transit details and estimated delivery date for a specific ShipDateForZipPairRecommendation or RecommendShipDateForShipmentResult. type TimeInTransitDetailsForShipDate struct { - DesiredDeliveryDate *DateTime `json:"desired_delivery_date,omitempty"` - EasyPostRecommendedShipDate *DateTime `json:"ship_on_date,omitempty"` - DeliveryDateConfidence float64 `json:"delivery_date_confidence,omitempty"` - EstimatedTransitDays int `json:"estimated_transit_days,omitempty"` - DaysInTransit *TimeInTransit `json:"days_in_transit,omitempty"` + DesiredDeliveryDate *DateTime `json:"desired_delivery_date,omitempty" url:"desired_delivery_date,omitempty"` + EasyPostRecommendedShipDate *DateTime `json:"ship_on_date,omitempty" url:"ship_on_date,omitempty"` + DeliveryDateConfidence float64 `json:"delivery_date_confidence,omitempty" url:"delivery_date_confidence,omitempty"` + EstimatedTransitDays int `json:"estimated_transit_days,omitempty" url:"estimated_transit_days,omitempty"` + DaysInTransit *TimeInTransit `json:"days_in_transit,omitempty" url:"days_in_transit,omitempty"` } // ShipDateForZipPairRecommendation is a single zip-pair-based ship date recommendation for a carrier-service level combination. type ShipDateForZipPairRecommendation struct { - Carrier string `json:"carrier,omitempty"` - Service string `json:"service,omitempty"` - EasyPostTimeInTransitData *TimeInTransitDetailsForShipDate `json:"easypost_time_in_transit_data,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + EasyPostTimeInTransitData *TimeInTransitDetailsForShipDate `json:"easypost_time_in_transit_data,omitempty" url:"easypost_time_in_transit_data,omitempty"` } // RecommendShipDateForZipPairResult is the result of the RecommendShipDateForZipPair method, containing the recommended ship date of each carrier-service level combination and additional metadata. type RecommendShipDateForZipPairResult struct { - CarriersWithoutEstimates []string `json:"carriers_without_tint_estimates,omitempty"` - FromZip string `json:"from_zip,omitempty"` - ToZip string `json:"to_zip,omitempty"` - SaturdayDelivery bool `json:"saturday_delivery,omitempty"` - DesiredDeliveryDate *DateTime `json:"desired_delivery_date,omitempty"` - Results []*ShipDateForZipPairRecommendation `json:"results,omitempty"` + CarriersWithoutEstimates []string `json:"carriers_without_tint_estimates,omitempty" url:"carriers_without_tint_estimates,omitempty"` + FromZip string `json:"from_zip,omitempty" url:"from_zip,omitempty"` + ToZip string `json:"to_zip,omitempty" url:"to_zip,omitempty"` + SaturdayDelivery bool `json:"saturday_delivery,omitempty" url:"saturday_delivery,omitempty"` + DesiredDeliveryDate *DateTime `json:"desired_delivery_date,omitempty" url:"desired_delivery_date,omitempty"` + Results []*ShipDateForZipPairRecommendation `json:"results,omitempty" url:"results,omitempty"` } // RecommendShipDateForZipPairParams are used in the RecommendShipDateForZipPair method. type RecommendShipDateForZipPairParams struct { - FromZip string `json:"from_zip,omitempty"` - ToZip string `json:"to_zip,omitempty"` - Carriers []string `json:"carriers,omitempty"` - DesiredDeliveryDate string `json:"desired_delivery_date,omitempty"` - SaturdayDelivery bool `json:"saturday_delivery,omitempty"` + FromZip string `json:"from_zip,omitempty" url:"from_zip,omitempty"` + ToZip string `json:"to_zip,omitempty" url:"to_zip,omitempty"` + Carriers []string `json:"carriers,omitempty" url:"carriers,omitempty"` + DesiredDeliveryDate string `json:"desired_delivery_date,omitempty" url:"desired_delivery_date,omitempty"` + SaturdayDelivery bool `json:"saturday_delivery,omitempty" url:"saturday_delivery,omitempty"` } // EstimateDeliveryDateForZipPair retrieves the estimated delivery date of each carrier-service level combination via the Smart Deliver By API, based on a specific ship date and origin-destination postal code pair. @@ -79,7 +80,7 @@ func (c *Client) EstimateDeliveryDateForZipPair(params *EstimateDeliveryDateForZ // EstimateDeliveryDateForZipPairWithContext performs the same operation as EstimateDeliveryDateForZipPair, but allows specifying a context that can interrupt the request. func (c *Client) EstimateDeliveryDateForZipPairWithContext(ctx context.Context, params *EstimateDeliveryDateForZipPairParams) (out *EstimateDeliveryDateForZipPairResult, err error) { - err = c.post(ctx, "smartrate/deliver_by", params, &out) + err = c.do(ctx, http.MethodPost, "smartrate/deliver_by", params, &out) return } @@ -90,6 +91,6 @@ func (c *Client) RecommendShipDateForZipPair(params *RecommendShipDateForZipPair // RecommendShipDateForZipPairWithContext performs the same operation as RecommendShipDateForZipPair, but allows specifying a context that can interrupt the request. func (c *Client) RecommendShipDateForZipPairWithContext(ctx context.Context, params *RecommendShipDateForZipPairParams) (out *RecommendShipDateForZipPairResult, err error) { - err = c.post(ctx, "smartrate/deliver_on", params, &out) + err = c.do(ctx, http.MethodPost, "smartrate/deliver_on", params, &out) return } diff --git a/tax_identifier.go b/tax_identifier.go index 0f1dab2..eed4212 100644 --- a/tax_identifier.go +++ b/tax_identifier.go @@ -2,8 +2,8 @@ package easypost // TaxIdentifier objects contain tax information used by carriers. type TaxIdentifier struct { - Entity string `json:"entity,omitempty"` - TaxIdType string `json:"tax_id_type,omitempty"` - TaxId string `json:"tax_id,omitempty"` - IssuingCountry string `json:"issuing_country,omitempty"` + Entity string `json:"entity,omitempty" url:"entity,omitempty"` + TaxIdType string `json:"tax_id_type,omitempty" url:"tax_id_type,omitempty"` + TaxId string `json:"tax_id,omitempty" url:"tax_id,omitempty"` + IssuingCountry string `json:"issuing_country,omitempty" url:"issuing_country,omitempty"` } diff --git a/tests/cassettes/TestAddressAll.yaml b/tests/cassettes/TestAddressAll.yaml index 0abd455..93b0703 100644 --- a/tests/cassettes/TestAddressAll.yaml +++ b/tests/cassettes/TestAddressAll.yaml @@ -2,33 +2,31 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-09-20T18:09:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d1802da757e011ee938f3cecef1b359e","mode":"test","name":"Jack + body: '{"addresses":[{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T22:13:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_80052c0c511c11efa31eac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:09:19+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-09-20T18:09:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d17d8a3857e011ee938e3cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:13:52+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_80025363511c11ef92b23cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-09-20T18:09:19+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:09:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d0efc2ca57e011ee93503cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:52+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:13:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7fb7a1c4511c11efbf8bac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:09:18+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-09-20T18:09:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d0eda05557e011ee934f3cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:13:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7fb5a305511c11ef92a33cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-09-20T18:09:18+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:09:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d06ae39b57e011ee93253cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:13:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7f5a15cd511c11ef928f3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:09:17+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:13:50+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -49,20 +47,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec28e7896122001b320c + - 4d57346d66ad684cf440b8c700373ccc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.075065" + - "0.038812" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestAddressCreate.yaml b/tests/cassettes/TestAddressCreate.yaml index 5d44c0f..45f0c48 100644 --- a/tests/cassettes/TestAddressCreate.yaml +++ b/tests/cassettes/TestAddressCreate.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a7057a28fbc11ee9ddaac1f6bc53342","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f291f05c512411efaf68ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:16+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_7a7057a28fbc11ee9ddaac1f6bc53342 + - /api/v2/addresses/adr_f291f05c512411efaf68ac1f6bc539aa Pragma: - no-cache Referrer-Policy: @@ -41,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec28e7896122001b3243 + - 4d57346d66ad684cf440b8c700373cd5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.045028" + - "0.030020" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestAddressCreateAndVerify.yaml b/tests/cassettes/TestAddressCreateAndVerify.yaml index 80c8efe..c6256e6 100644 --- a/tests/cassettes/TestAddressCreateAndVerify.yaml +++ b/tests/cassettes/TestAddressCreateAndVerify.yaml @@ -15,8 +15,8 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"Not A City","company":"EasyPost","country":"US","created_at":"2024-01-08T18:27:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b750f36ae5311ee8f3b3cecef1b359e","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":null,"state":"ZZ","state_tax_id":null,"street1":"000 - unknown street","street2":null,"updated_at":"2024-01-08T18:27:40+00:00","verifications":{},"zip":"00001"}' + body: '{"carrier_facility":null,"city":"Not A City","company":"EasyPost","country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2a0d4c2512411efbfedac1f6bc53342","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":null,"state":"ZZ","state_tax_id":null,"street1":"000 + unknown street","street2":null,"updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"00001"}' headers: Cache-Control: - private, no-cache, no-store @@ -25,7 +25,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_9b750f36ae5311ee8f3b3cecef1b359e + - /api/v2/addresses/adr_f2a0d4c2512411efbfedac1f6bc53342 Pragma: - no-cache Referrer-Policy: @@ -39,20 +39,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d1c48c8a659c3e9cf40c261200032fae + - 4d57346d66ad684cf440b8c700373ceb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.037722" + - "0.059451" X-Version-Label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -94,20 +94,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d1c48c8a659c3e9cf40c261200032fc4 + - 4d57346d66ad684cf440b8c700373cfc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.037967" + - "0.034481" X-Version-Label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 422 Unprocessable Entity diff --git a/tests/cassettes/TestAddressCreateVerify.yaml b/tests/cassettes/TestAddressCreateVerify.yaml index 04fb9cd..affce44 100644 --- a/tests/cassettes/TestAddressCreateVerify.yaml +++ b/tests/cassettes/TestAddressCreateVerify.yaml @@ -15,8 +15,8 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"Not A City","company":"EasyPost","country":"US","created_at":"2024-01-08T18:27:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b90cd46ae5311eebbf5ac1f6bc539ae","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":null,"state":"ZZ","state_tax_id":null,"street1":"000 - unknown street","street2":null,"updated_at":"2024-01-08T18:27:41+00:00","verifications":{"delivery":{"details":{},"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address + body: '{"carrier_facility":null,"city":"Not A City","company":"EasyPost","country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2bb149f512411efaf78ac1f6bc539aa","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":null,"state":"ZZ","state_tax_id":null,"street1":"000 + unknown street","street2":null,"updated_at":"2024-08-02T23:14:20+00:00","verifications":{"delivery":{"details":{},"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address not found","suggestion":null}],"success":false}},"zip":"00001"}' headers: Cache-Control: @@ -26,7 +26,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_9b90cd46ae5311eebbf5ac1f6bc539ae + - /api/v2/addresses/adr_f2bb149f512411efaf78ac1f6bc539aa Pragma: - no-cache Referrer-Policy: @@ -40,20 +40,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d1c48c8a659c3e9df40c261200032fe1 + - 4d57346d66ad684cf440b8c700373d0d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.046836" + - "0.059374" X-Version-Label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestAddressCreateVerifyStrict.yaml b/tests/cassettes/TestAddressCreateVerifyStrict.yaml index 71051fe..77db3b8 100644 --- a/tests/cassettes/TestAddressCreateVerifyStrict.yaml +++ b/tests/cassettes/TestAddressCreateVerifyStrict.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-01-08T18:27:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9ba97ff1ae5311eebc01ac1f6bc539ae","mode":"test","name":"JACK + body: '{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2c9e61b512411efaeed3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2024-01-08T18:27:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_9ba97ff1ae5311eebc01ac1f6bc539ae + - /api/v2/addresses/adr_f2c9e61b512411efaeed3cecef1b359e Pragma: - no-cache Referrer-Policy: @@ -41,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d1c48c8a659c3e9df40c261200033001 + - 4d57346d66ad684cf440b8c700373d1f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq ab82b2e6e9 - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.053186" + - "0.050829" X-Version-Label: - - easypost-202401051829-4cf193bd35-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestAddressGetNextPage.yaml b/tests/cassettes/TestAddressGetNextPage.yaml index d06c485..61d3e3d 100644 --- a/tests/cassettes/TestAddressGetNextPage.yaml +++ b/tests/cassettes/TestAddressGetNextPage.yaml @@ -2,31 +2,30 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7ac6f0818fbc11eeaa07ac1f6bc539ae","mode":"test","name":"JACK + body: '{"addresses":[{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2c9e61b512411efaeed3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:17+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":"EASYPOST","country":"US","created_at":"2023-11-30T20:10:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7aaa30068fbc11eeace3ac1f6bc539aa","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"417 - MONTGOMERY ST FL 5","street2":null,"updated_at":"2023-11-30T20:10:16+00:00","verifications":{"delivery":{"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"},"errors":[],"success":true}},"zip":"94104-1129"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a7057a28fbc11ee9ddaac1f6bc53342","mode":"test","name":"Jack + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"Not + A City","company":"EasyPost","country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2bb149f512411efaf78ac1f6bc539aa","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":null,"state":"ZZ","state_tax_id":null,"street1":"000 + unknown street","street2":null,"updated_at":"2024-08-02T23:14:20+00:00","verifications":{"delivery":{"details":{},"errors":[{"code":"E.ADDRESS.NOT_FOUND","field":"address","message":"Address + not found","suggestion":null}],"success":false}},"zip":"00001"},{"carrier_facility":null,"city":"Not + A City","company":"EasyPost","country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2a0d4c2512411efbfedac1f6bc53342","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":null,"state":"ZZ","state_tax_id":null,"street1":"000 + unknown street","street2":null,"updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"00001"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f291f05c512411efaf68ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:16+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":"EASYPOST","country":"US","created_at":"2023-11-30T20:10:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a8e29dd8fbc11eea5943cecef1b359e","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"417 - MONTGOMERY ST FL 5","street2":null,"updated_at":"2023-11-30T20:10:16+00:00","verifications":{"delivery":{"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"},"errors":[],"success":true}},"zip":"94104-1129"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:09:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d1802da757e011ee938f3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:13:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_80052c0c511c11efa31eac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:09:19+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:13:52+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -42,60 +41,56 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec29e7896122001b3331 + - 4d57346d66ad684cf440b8c700373d26 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.039369" + - "0.034364" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=adr_d1802da757e011ee938f3cecef1b359e&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?before_id=adr_80052c0c511c11efa31eac1f6bc53342&page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-09-20T18:09:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d17d8a3857e011ee938e3cecef1b359e","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_80025363511c11ef92b23cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-09-20T18:09:19+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:09:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d0efc2ca57e011ee93503cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:52+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:13:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7fb7a1c4511c11efbf8bac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:09:18+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-09-20T18:09:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d0eda05557e011ee934f3cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:13:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7fb5a305511c11ef92a33cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-09-20T18:09:18+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:09:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d06ae39b57e011ee93253cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:13:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7f5a15cd511c11ef928f3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:09:17+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-09-20T18:09:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d0695c8c57e011ee93243cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:13:50+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7f578a41511c11efa300ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-09-20T18:09:17+00:00","verifications":{},"zip":"90277"}],"has_more":true}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:50+00:00","verifications":{},"zip":"90277"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -118,20 +113,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec29e7896122001b3366 + - 4d57346d66ad684cf440b8c700373d3d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.041245" + - "0.039248" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestAddressRetrieve.yaml b/tests/cassettes/TestAddressRetrieve.yaml index 5d9729b..ca88d08 100644 --- a/tests/cassettes/TestAddressRetrieve.yaml +++ b/tests/cassettes/TestAddressRetrieve.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b14fc5f8fbc11eead20ac1f6bc539aa","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2f0f161512411ef9e82ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:17+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_7b14fc5f8fbc11eead20ac1f6bc539aa + - /api/v2/addresses/adr_f2f0f161512411ef9e82ac1f6bc539ae Pragma: - no-cache Referrer-Policy: @@ -41,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec29e7896122001b3394 + - 4d57346d66ad684cf440b8c700373d4b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.047841" + - "0.044097" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -68,12 +68,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses/adr_7b14fc5f8fbc11eead20ac1f6bc539aa + url: https://api.easypost.com/v2/addresses/adr_f2f0f161512411ef9e82ac1f6bc539ae method: GET response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b14fc5f8fbc11eead20ac1f6bc539aa","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f2f0f161512411ef9e82ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:17+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store @@ -94,20 +94,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec29e7896122001b33bf + - 4d57346d66ad684cf440b8c700373d5e X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.027574" + - "0.034264" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestAddressVerify.yaml b/tests/cassettes/TestAddressVerify.yaml index 7dad4c7..1107d8b 100644 --- a/tests/cassettes/TestAddressVerify.yaml +++ b/tests/cassettes/TestAddressVerify.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b4886c58fbc11ee9e57ac1f6bc53342","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f3090d28512411efaf91ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:18+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:20+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_7b4886c58fbc11ee9e57ac1f6bc53342 + - /api/v2/addresses/adr_f3090d28512411efaf91ac1f6bc539aa Pragma: - no-cache Referrer-Policy: @@ -41,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec29e7896122001b33ec + - 4d57346d66ad684cf440b8c700373d6c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.042002" + - "0.041736" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -68,12 +68,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses/adr_7b4886c58fbc11ee9e57ac1f6bc53342/verify + url: https://api.easypost.com/v2/addresses/adr_f3090d28512411efaf91ac1f6bc539aa/verify method: GET response: - body: '{"address":{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b673c698fbc11eea61c3cecef1b359e","mode":"test","name":"JACK + body: '{"address":{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f31a3145512411efaf073cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:18+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}}' headers: Cache-Control: - private, no-cache, no-store @@ -82,7 +82,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_7b673c698fbc11eea61c3cecef1b359e + - /api/v2/addresses/adr_f31a3145512411efaf073cecef1b359e Pragma: - no-cache Referrer-Policy: @@ -91,27 +91,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ae7896122001b3420 + - 4d57346d66ad684df440b8c700373d78 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.063168" + - "0.064399" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestApiError.yaml b/tests/cassettes/TestApiError.yaml index ce2d9ee..93a90fc 100644 --- a/tests/cassettes/TestApiError.yaml +++ b/tests/cassettes/TestApiError.yaml @@ -36,20 +36,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ae7896122001b3457 + - 4d57346d66ad684df440b8c700373d8a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.034324" + - "0.040637" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 422 Unprocessable Entity diff --git a/tests/cassettes/TestApiKeysAll.yaml b/tests/cassettes/TestApiKeysAll.yaml index 650e3c9..c6e0b9b 100644 --- a/tests/cassettes/TestApiKeysAll.yaml +++ b/tests/cassettes/TestApiKeysAll.yaml @@ -12,7 +12,7 @@ interactions: url: https://api.easypost.com/v2/api_keys method: GET response: - body: '{"children":[{"children":[],"id":"user_5f0c48e7a66b42398740b0149b1bb24c","keys":[{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_88e217ee1f0c483c80f7ab83de73bb5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_62c5b384a6b1422bb0b99f5578ba59ee","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_97f56192c53d490aa7851087b88618a4","keys":[{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_ef2cf7363e65470e9ae62a9f8656adf7","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_e19b18ca12f14ab78c5fdd80e8697bad","key":"REDACTED","mode":"production","object":"ApiKey"}]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[{"active":true,"created_at":"2022-02-24T20:56:44Z","id":"ak_67dc6b8292554e67aa2134f9ca6a314a","key":"REDACTED","mode":"production","object":"ApiKey"},{"active":true,"created_at":"2022-02-24T20:56:47Z","id":"ak_c3114bfc14c24041b04f959a1f364924","key":"REDACTED","mode":"test","object":"ApiKey"}]}' + body: '{"children":[{"children":[],"id":"user_5f0c48e7a66b42398740b0149b1bb24c","keys":[{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_88e217ee1f0c483c80f7ab83de73bb5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_62c5b384a6b1422bb0b99f5578ba59ee","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_97f56192c53d490aa7851087b88618a4","keys":[{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_ef2cf7363e65470e9ae62a9f8656adf7","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_e19b18ca12f14ab78c5fdd80e8697bad","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_3d8dac28f4ba42729036133637356d40","keys":[{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_c08fe7b8ce10424ab6532f57d10c626a","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_bb67d66d8bd64d71973873b304677f02","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_f81b29477fec4243a7de2ecc3c4f4907","keys":[{"active":true,"created_at":"2024-07-26T19:35:11Z","id":"ak_e1234571277649c98f2b7f06798741ab","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-07-26T19:35:11Z","id":"ak_8283564a55df467e96d06321fb28030e","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_181e86f095d64d028676afb1bfdb9774","keys":[{"active":true,"created_at":"2024-07-26T20:01:28Z","id":"ak_4dda5e5f7c3c4c1996288035a4e155fd","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-07-26T20:01:28Z","id":"ak_1721bf1db4754de39b6e7437bde210ce","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_03b5468f836c4cb09c017668747a9b7f","keys":[{"active":true,"created_at":"2024-08-02T22:13:55Z","id":"ak_695d053db1374b7dacefefa88adcd58d","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-02T22:13:55Z","id":"ak_a31cad4c3a3c46f89f947e60c9eef529","key":"REDACTED","mode":"production","object":"ApiKey"}]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[{"active":true,"created_at":"2022-02-24T20:56:44Z","id":"ak_67dc6b8292554e67aa2134f9ca6a314a","key":"REDACTED","mode":"production","object":"ApiKey"},{"active":true,"created_at":"2022-02-24T20:56:47Z","id":"ak_c3114bfc14c24041b04f959a1f364924","key":"REDACTED","mode":"test","object":"ApiKey"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -33,20 +33,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ae7896122001b3480 + - 4d57346d66ad684df440b8c700373d95 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.172365" + - "0.072332" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestApiKeysForChildUser.yaml b/tests/cassettes/TestApiKeysForChildUser.yaml index d65fa51..badd4c9 100644 --- a/tests/cassettes/TestApiKeysForChildUser.yaml +++ b/tests/cassettes/TestApiKeysForChildUser.yaml @@ -12,7 +12,7 @@ interactions: url: https://api.easypost.com/v2/api_keys method: GET response: - body: '{"children":[{"children":[],"id":"user_5f0c48e7a66b42398740b0149b1bb24c","keys":[{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_88e217ee1f0c483c80f7ab83de73bb5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_62c5b384a6b1422bb0b99f5578ba59ee","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_97f56192c53d490aa7851087b88618a4","keys":[{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_ef2cf7363e65470e9ae62a9f8656adf7","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_e19b18ca12f14ab78c5fdd80e8697bad","key":"REDACTED","mode":"production","object":"ApiKey"}]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[{"active":true,"created_at":"2022-02-24T20:56:44Z","id":"ak_67dc6b8292554e67aa2134f9ca6a314a","key":"REDACTED","mode":"production","object":"ApiKey"},{"active":true,"created_at":"2022-02-24T20:56:47Z","id":"ak_c3114bfc14c24041b04f959a1f364924","key":"REDACTED","mode":"test","object":"ApiKey"}]}' + body: '{"children":[{"children":[],"id":"user_5f0c48e7a66b42398740b0149b1bb24c","keys":[{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_88e217ee1f0c483c80f7ab83de73bb5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_62c5b384a6b1422bb0b99f5578ba59ee","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_97f56192c53d490aa7851087b88618a4","keys":[{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_ef2cf7363e65470e9ae62a9f8656adf7","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_e19b18ca12f14ab78c5fdd80e8697bad","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_3d8dac28f4ba42729036133637356d40","keys":[{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_c08fe7b8ce10424ab6532f57d10c626a","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_bb67d66d8bd64d71973873b304677f02","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_f81b29477fec4243a7de2ecc3c4f4907","keys":[{"active":true,"created_at":"2024-07-26T19:35:11Z","id":"ak_e1234571277649c98f2b7f06798741ab","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-07-26T19:35:11Z","id":"ak_8283564a55df467e96d06321fb28030e","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_181e86f095d64d028676afb1bfdb9774","keys":[{"active":true,"created_at":"2024-07-26T20:01:28Z","id":"ak_4dda5e5f7c3c4c1996288035a4e155fd","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-07-26T20:01:28Z","id":"ak_1721bf1db4754de39b6e7437bde210ce","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_03b5468f836c4cb09c017668747a9b7f","keys":[{"active":true,"created_at":"2024-08-02T22:13:55Z","id":"ak_695d053db1374b7dacefefa88adcd58d","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-02T22:13:55Z","id":"ak_a31cad4c3a3c46f89f947e60c9eef529","key":"REDACTED","mode":"production","object":"ApiKey"}]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[{"active":true,"created_at":"2022-02-24T20:56:44Z","id":"ak_67dc6b8292554e67aa2134f9ca6a314a","key":"REDACTED","mode":"production","object":"ApiKey"},{"active":true,"created_at":"2022-02-24T20:56:47Z","id":"ak_c3114bfc14c24041b04f959a1f364924","key":"REDACTED","mode":"test","object":"ApiKey"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -33,20 +33,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ae7896122001b34cc + - 4d57346d66ad684df440b8c700373da6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.035012" + - "0.149224" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestApiKeysForParentUser.yaml b/tests/cassettes/TestApiKeysForParentUser.yaml index 1f3fe96..e9c33e8 100644 --- a/tests/cassettes/TestApiKeysForParentUser.yaml +++ b/tests/cassettes/TestApiKeysForParentUser.yaml @@ -14,6 +14,10 @@ interactions: response: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -31,25 +35,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ae7896122001b34fc + - 4d57346d66ad684df440b8c700373dce X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.059622" + - "0.111906" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -66,7 +72,7 @@ interactions: url: https://api.easypost.com/v2/api_keys method: GET response: - body: '{"children":[{"children":[],"id":"user_5f0c48e7a66b42398740b0149b1bb24c","keys":[{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_88e217ee1f0c483c80f7ab83de73bb5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_62c5b384a6b1422bb0b99f5578ba59ee","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_97f56192c53d490aa7851087b88618a4","keys":[{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_ef2cf7363e65470e9ae62a9f8656adf7","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_e19b18ca12f14ab78c5fdd80e8697bad","key":"REDACTED","mode":"production","object":"ApiKey"}]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[{"active":true,"created_at":"2022-02-24T20:56:44Z","id":"ak_67dc6b8292554e67aa2134f9ca6a314a","key":"REDACTED","mode":"production","object":"ApiKey"},{"active":true,"created_at":"2022-02-24T20:56:47Z","id":"ak_c3114bfc14c24041b04f959a1f364924","key":"REDACTED","mode":"test","object":"ApiKey"}]}' + body: '{"children":[{"children":[],"id":"user_5f0c48e7a66b42398740b0149b1bb24c","keys":[{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_88e217ee1f0c483c80f7ab83de73bb5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:01:26Z","id":"ak_62c5b384a6b1422bb0b99f5578ba59ee","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_97f56192c53d490aa7851087b88618a4","keys":[{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_ef2cf7363e65470e9ae62a9f8656adf7","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-09-20T18:09:24Z","id":"ak_e19b18ca12f14ab78c5fdd80e8697bad","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_3d8dac28f4ba42729036133637356d40","keys":[{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_c08fe7b8ce10424ab6532f57d10c626a","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_bb67d66d8bd64d71973873b304677f02","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_f81b29477fec4243a7de2ecc3c4f4907","keys":[{"active":true,"created_at":"2024-07-26T19:35:11Z","id":"ak_e1234571277649c98f2b7f06798741ab","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-07-26T19:35:11Z","id":"ak_8283564a55df467e96d06321fb28030e","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_181e86f095d64d028676afb1bfdb9774","keys":[{"active":true,"created_at":"2024-07-26T20:01:28Z","id":"ak_4dda5e5f7c3c4c1996288035a4e155fd","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-07-26T20:01:28Z","id":"ak_1721bf1db4754de39b6e7437bde210ce","key":"REDACTED","mode":"production","object":"ApiKey"}]},{"children":[],"id":"user_03b5468f836c4cb09c017668747a9b7f","keys":[{"active":true,"created_at":"2024-08-02T22:13:55Z","id":"ak_695d053db1374b7dacefefa88adcd58d","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-02T22:13:55Z","id":"ak_a31cad4c3a3c46f89f947e60c9eef529","key":"REDACTED","mode":"production","object":"ApiKey"}]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[{"active":true,"created_at":"2022-02-24T20:56:44Z","id":"ak_67dc6b8292554e67aa2134f9ca6a314a","key":"REDACTED","mode":"production","object":"ApiKey"},{"active":true,"created_at":"2022-02-24T20:56:47Z","id":"ak_c3114bfc14c24041b04f959a1f364924","key":"REDACTED","mode":"test","object":"ApiKey"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -87,20 +93,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2be7896122001b3531 + - 4d57346d66ad684df440b8c700373de7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.030922" + - "0.110257" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchAddRemoveShipment.yaml b/tests/cassettes/TestBatchAddRemoveShipment.yaml index f8ed16a..d0268db 100644 --- a/tests/cassettes/TestBatchAddRemoveShipment.yaml +++ b/tests/cassettes/TestBatchAddRemoveShipment.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_275f8921512611efb2523cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:19+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:19Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:22:58+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:22:58Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_276235d3512611efb2533cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:19+00:00","verifications":{},"zip":"90277"},"id":"shp_e853c2ec68c6449bb52df8849380e79f","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:10:19Z","height":4,"id":"prcl_31cc39b1591644aab5ec59dfb2763ed6","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:10:19Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:19Z","date_advance":0,"id":"pl_16d2fc1d4046424f8f2e4751f7bbf819","integrated_form":"none","label_date":"2023-11-30T20:10:19Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e89d662567d6e64c7484f6ccd4972198da.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:10:20Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_cf66a453aa7840a39b180a2d7da1ada1","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a5bea097473148d3aa3fa7a205da2044","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ce95f46e473546b9be5ba30ece56e457","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_93aeb1c8dc154dc5ac5da9d18df66190","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_935987bdb1714d3eb185ccbf553a223f","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:22:58+00:00","verifications":{},"zip":"90277"},"id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:22:58Z","height":4,"id":"prcl_d1c9db2fc9de4aba97eeb16bcb663560","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:22:58Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:22:58Z","date_advance":0,"id":"pl_24437d79f186481d9d3e19920805bb63","integrated_form":"none","label_date":"2024-08-02T23:22:58Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e889f54989f8d649b584a926ce0d4ac71d.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:22:59Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_9a08a5a041974674855ed06bf6460eec","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_798b4ae5559a470b826a678312ead61b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_028d5b5b962d45c891d2ab71db0218e5","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_276235d3512611efb2533cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:19+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ce95f46e473546b9be5ba30ece56e457","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:22:58+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_798b4ae5559a470b826a678312ead61b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_275f8921512611efb2523cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:19+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:10:20Z","est_delivery_date":null,"fees":[],"id":"trk_8a3a6087e4db4f588375f9c81adf6066","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzhhM2E2MDg3ZTRkYjRmNTg4Mzc1ZjljODFhZGY2MDY2","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287382873","tracking_details":[],"updated_at":"2023-11-30T20:10:20Z","weight":null},"tracking_code":"9400100105442287382873","updated_at":"2023-11-30T20:10:20Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:22:58+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:22:59Z","est_delivery_date":null,"fees":[],"id":"trk_e46b7b061c804ae89fd0d01bef8052ad","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U0NmI3YjA2MWM4MDRhZTg5ZmQwZDAxYmVmODA1MmFk","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070373557","tracking_details":[],"updated_at":"2024-08-02T23:22:59Z","weight":null},"tracking_code":"9400100110368070373557","updated_at":"2024-08-02T23:22:59Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_e853c2ec68c6449bb52df8849380e79f + - /api/v2/shipments/shp_6a93440162b946b09f3f0dd5a3ecdb75 Pragma: - no-cache Referrer-Policy: @@ -53,20 +53,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2be7896122001b355d + - 4d57347166ad6a52f42c624400387e48 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.984354" + - "1.025374" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -75,7 +75,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -90,18 +90,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_27f4b8a6512611efb2e9ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:22:59+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:22:59Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_27f6c331512611ef83d2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:20+00:00","verifications":{},"zip":"90277"},"id":"shp_0c50a76578504adfafafd1f95a41da36","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:10:20Z","height":4,"id":"prcl_fcbb4b8139574ea6bb6bd11c0e0d0adb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:10:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:21Z","date_advance":0,"id":"pl_e4532919afc44adb89b7bcb370a99543","integrated_form":"none","label_date":"2023-11-30T20:10:21Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8b61d3be463444fd78571d5394fedcaec.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:10:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_09cb00828b39493a8097553240b67243","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e28473116f34399af8692ed11cf47bd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3b2b52279d7d423eaa1eec7bf986bd67","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_9bc978cf95d84a74ae679072aea4c087","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a8817893ae87437ebdb599573dba5987","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:22:59+00:00","verifications":{},"zip":"90277"},"id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:22:59Z","height":4,"id":"prcl_cccbaf92e5cf478b95069a0ba597cb93","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:22:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:22:59Z","date_advance":0,"id":"pl_ae7066d26c1a419691049da018e23405","integrated_form":"none","label_date":"2024-08-02T23:22:59Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e9397450622b4837b243c947d2024414.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:23:00Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e7367a5f589a4a4d8083effa950ddc3a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_38c4a97e7b8f409c9ad954f4405fe1a0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7b575dcf65dc403996298a5f8a1cb84f","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_27f6c331512611ef83d2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e28473116f34399af8692ed11cf47bd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:21Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:22:59+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_38c4a97e7b8f409c9ad954f4405fe1a0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_27f4b8a6512611efb2e9ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:10:21Z","est_delivery_date":null,"fees":[],"id":"trk_b0a359ca437a4e1fa7a7173cf182c98b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IwYTM1OWNhNDM3YTRlMWZhN2E3MTczY2YxODJjOThi","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287382897","tracking_details":[],"updated_at":"2023-11-30T20:10:21Z","weight":null},"tracking_code":"9400100105442287382897","updated_at":"2023-11-30T20:10:21Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:22:59+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:23:00Z","est_delivery_date":null,"fees":[],"id":"trk_011c5d08d99640d69091d2e6463f3a3f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzAxMWM1ZDA4ZDk5NjQwZDY5MDkxZDJlNjQ2M2YzYTNm","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070373571","tracking_details":[],"updated_at":"2024-08-02T23:23:00Z","weight":null},"tracking_code":"9400100110368070373571","updated_at":"2024-08-02T23:23:00Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -110,7 +110,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_0c50a76578504adfafafd1f95a41da36 + - /api/v2/shipments/shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a Pragma: - no-cache Referrer-Policy: @@ -124,20 +124,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ce7896122001b36a0 + - 4d57347166ad6a53f42c624400387edf X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.141344" + - "0.995227" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -156,7 +156,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:21Z","id":"batch_f22fb74a118b485ab53ca91d0e8d2c4c","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:21Z"}' + body: '{"created_at":"2024-08-02T23:23:00Z","id":"batch_ced905a211c444d2a81b584bd31f58d2","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:23:00Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -177,50 +177,50 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2de7896122001b37f1 + - 4d57347166ad6a54f42c624400387f84 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.040056" + - "0.042251" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"shipments":[{"buyer_address":{"city":"SAN FRANCISCO","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK + body: '{"shipments":[{"buyer_address":{"city":"SAN FRANCISCO","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_275f8921512611efb2523cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:19Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:58Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:22:58Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_276235d3512611efb2533cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_e853c2ec68c6449bb52df8849380e79f","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:10:19Z","height":4,"id":"prcl_31cc39b1591644aab5ec59dfb2763ed6","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:10:19Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:19Z","id":"pl_16d2fc1d4046424f8f2e4751f7bbf819","integrated_form":"none","label_date":"2023-11-30T20:10:19Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e89d662567d6e64c7484f6ccd4972198da.png","object":"PostageLabel","updated_at":"2023-11-30T20:10:20Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_cf66a453aa7840a39b180a2d7da1ada1","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_a5bea097473148d3aa3fa7a205da2044","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ce95f46e473546b9be5ba30ece56e457","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_93aeb1c8dc154dc5ac5da9d18df66190","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","id":"rate_935987bdb1714d3eb185ccbf553a223f","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:22:58Z","verifications":{},"zip":"90277"},"id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:22:58Z","height":4,"id":"prcl_d1c9db2fc9de4aba97eeb16bcb663560","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:22:58Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:22:58Z","id":"pl_24437d79f186481d9d3e19920805bb63","integrated_form":"none","label_date":"2024-08-02T23:22:58Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e889f54989f8d649b584a926ce0d4ac71d.png","object":"PostageLabel","updated_at":"2024-08-02T23:22:59Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_9a08a5a041974674855ed06bf6460eec","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_798b4ae5559a470b826a678312ead61b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_028d5b5b962d45c891d2ab71db0218e5","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_276235d3512611efb2533cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ce95f46e473546b9be5ba30ece56e457","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:22:58Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_798b4ae5559a470b826a678312ead61b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_275f8921512611efb2523cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:10:20Z","id":"trk_8a3a6087e4db4f588375f9c81adf6066","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzhhM2E2MDg3ZTRkYjRmNTg4Mzc1ZjljODFhZGY2MDY2","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287382873","updated_at":"2023-11-30T20:10:20Z"},"tracking_code":"9400100105442287382873","updated_at":"2023-11-30T20:10:20Z","usps_zone":4},{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:58Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:22:59Z","id":"trk_e46b7b061c804ae89fd0d01bef8052ad","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U0NmI3YjA2MWM4MDRhZTg5ZmQwZDAxYmVmODA1MmFk","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070373557","updated_at":"2024-08-02T23:22:59Z"},"tracking_code":"9400100110368070373557","updated_at":"2024-08-02T23:22:59Z","usps_zone":4},{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f4b8a6512611efb2e9ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:20Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:59Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:22:59Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f6c331512611ef83d2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_0c50a76578504adfafafd1f95a41da36","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:10:20Z","height":4,"id":"prcl_fcbb4b8139574ea6bb6bd11c0e0d0adb","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:10:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:21Z","id":"pl_e4532919afc44adb89b7bcb370a99543","integrated_form":"none","label_date":"2023-11-30T20:10:21Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8b61d3be463444fd78571d5394fedcaec.png","object":"PostageLabel","updated_at":"2023-11-30T20:10:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_09cb00828b39493a8097553240b67243","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_9e28473116f34399af8692ed11cf47bd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_3b2b52279d7d423eaa1eec7bf986bd67","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","id":"rate_9bc978cf95d84a74ae679072aea4c087","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_a8817893ae87437ebdb599573dba5987","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:22:59Z","verifications":{},"zip":"90277"},"id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:22:59Z","height":4,"id":"prcl_cccbaf92e5cf478b95069a0ba597cb93","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:22:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:22:59Z","id":"pl_ae7066d26c1a419691049da018e23405","integrated_form":"none","label_date":"2024-08-02T23:22:59Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e9397450622b4837b243c947d2024414.png","object":"PostageLabel","updated_at":"2024-08-02T23:23:00Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_e7367a5f589a4a4d8083effa950ddc3a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_38c4a97e7b8f409c9ad954f4405fe1a0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_7b575dcf65dc403996298a5f8a1cb84f","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f6c331512611ef83d2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:21Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_9e28473116f34399af8692ed11cf47bd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:21Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:22:59Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_38c4a97e7b8f409c9ad954f4405fe1a0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f4b8a6512611efb2e9ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:10:21Z","id":"trk_b0a359ca437a4e1fa7a7173cf182c98b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IwYTM1OWNhNDM3YTRlMWZhN2E3MTczY2YxODJjOThi","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287382897","updated_at":"2023-11-30T20:10:21Z"},"tracking_code":"9400100105442287382897","updated_at":"2023-11-30T20:10:21Z","usps_zone":4}]}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:59Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:23:00Z","id":"trk_011c5d08d99640d69091d2e6463f3a3f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzAxMWM1ZDA4ZDk5NjQwZDY5MDkxZDJlNjQ2M2YzYTNm","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070373571","updated_at":"2024-08-02T23:23:00Z"},"tracking_code":"9400100110368070373571","updated_at":"2024-08-02T23:23:00Z","usps_zone":4}]}' form: {} headers: Authorization: @@ -229,10 +229,10 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_f22fb74a118b485ab53ca91d0e8d2c4c/add_shipments + url: https://api.easypost.com/v2/batches/batch_ced905a211c444d2a81b584bd31f58d2/add_shipments method: POST response: - body: '{"created_at":"2023-11-30T20:10:21Z","id":"batch_f22fb74a118b485ab53ca91d0e8d2c4c","label_url":null,"mode":"test","num_shipments":2,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_0c50a76578504adfafafd1f95a41da36","reference":null,"tracking_code":"9400100105442287382897"},{"batch_message":null,"batch_status":"postage_purchased","id":"shp_e853c2ec68c6449bb52df8849380e79f","reference":null,"tracking_code":"9400100105442287382873"}],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":2,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:21Z"}' + body: '{"created_at":"2024-08-02T23:23:00Z","id":"batch_ced905a211c444d2a81b584bd31f58d2","label_url":null,"mode":"test","num_shipments":2,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","reference":null,"tracking_code":"9400100110368070373557"},{"batch_message":null,"batch_status":"postage_purchased","id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","reference":null,"tracking_code":"9400100110368070373571"}],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":2,"queued_for_purchase":0},"updated_at":"2024-08-02T23:23:00Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -253,50 +253,50 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2de7896122001b382c + - 4d57347166ad6a59f42c62440038822f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.075515" + - "0.162931" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"shipments":[{"buyer_address":{"city":"SAN FRANCISCO","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK + body: '{"shipments":[{"buyer_address":{"city":"SAN FRANCISCO","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_275f8921512611efb2523cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:19Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:58Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:22:58Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_276235d3512611efb2533cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_e853c2ec68c6449bb52df8849380e79f","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:10:19Z","height":4,"id":"prcl_31cc39b1591644aab5ec59dfb2763ed6","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:10:19Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:19Z","id":"pl_16d2fc1d4046424f8f2e4751f7bbf819","integrated_form":"none","label_date":"2023-11-30T20:10:19Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e89d662567d6e64c7484f6ccd4972198da.png","object":"PostageLabel","updated_at":"2023-11-30T20:10:20Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_cf66a453aa7840a39b180a2d7da1ada1","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_a5bea097473148d3aa3fa7a205da2044","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ce95f46e473546b9be5ba30ece56e457","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_93aeb1c8dc154dc5ac5da9d18df66190","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","id":"rate_935987bdb1714d3eb185ccbf553a223f","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:22:58Z","verifications":{},"zip":"90277"},"id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:22:58Z","height":4,"id":"prcl_d1c9db2fc9de4aba97eeb16bcb663560","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:22:58Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:22:58Z","id":"pl_24437d79f186481d9d3e19920805bb63","integrated_form":"none","label_date":"2024-08-02T23:22:58Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e889f54989f8d649b584a926ce0d4ac71d.png","object":"PostageLabel","updated_at":"2024-08-02T23:22:59Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_9a08a5a041974674855ed06bf6460eec","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_798b4ae5559a470b826a678312ead61b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_028d5b5b962d45c891d2ab71db0218e5","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_276235d3512611efb2533cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ce95f46e473546b9be5ba30ece56e457","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","updated_at":"2023-11-30T20:10:19Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:19Z","email":"REDACTED","id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:22:58Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:58Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_798b4ae5559a470b826a678312ead61b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","updated_at":"2024-08-02T23:22:58Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:22:58Z","email":"REDACTED","id":"adr_275f8921512611efb2523cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:19Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:10:20Z","id":"trk_8a3a6087e4db4f588375f9c81adf6066","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzhhM2E2MDg3ZTRkYjRmNTg4Mzc1ZjljODFhZGY2MDY2","shipment_id":"shp_e853c2ec68c6449bb52df8849380e79f","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287382873","updated_at":"2023-11-30T20:10:20Z"},"tracking_code":"9400100105442287382873","updated_at":"2023-11-30T20:10:20Z","usps_zone":4},{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:58Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:22:59Z","id":"trk_e46b7b061c804ae89fd0d01bef8052ad","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U0NmI3YjA2MWM4MDRhZTg5ZmQwZDAxYmVmODA1MmFk","shipment_id":"shp_6a93440162b946b09f3f0dd5a3ecdb75","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070373557","updated_at":"2024-08-02T23:22:59Z"},"tracking_code":"9400100110368070373557","updated_at":"2024-08-02T23:22:59Z","usps_zone":4},{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f4b8a6512611efb2e9ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:20Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:59Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:22:59Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f6c331512611ef83d2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_0c50a76578504adfafafd1f95a41da36","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:10:20Z","height":4,"id":"prcl_fcbb4b8139574ea6bb6bd11c0e0d0adb","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:10:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:21Z","id":"pl_e4532919afc44adb89b7bcb370a99543","integrated_form":"none","label_date":"2023-11-30T20:10:21Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8b61d3be463444fd78571d5394fedcaec.png","object":"PostageLabel","updated_at":"2023-11-30T20:10:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_09cb00828b39493a8097553240b67243","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_9e28473116f34399af8692ed11cf47bd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_3b2b52279d7d423eaa1eec7bf986bd67","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","id":"rate_9bc978cf95d84a74ae679072aea4c087","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:20Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_a8817893ae87437ebdb599573dba5987","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:20Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:22:59Z","verifications":{},"zip":"90277"},"id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:22:59Z","height":4,"id":"prcl_cccbaf92e5cf478b95069a0ba597cb93","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:22:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:22:59Z","id":"pl_ae7066d26c1a419691049da018e23405","integrated_form":"none","label_date":"2024-08-02T23:22:59Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e9397450622b4837b243c947d2024414.png","object":"PostageLabel","updated_at":"2024-08-02T23:23:00Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_e7367a5f589a4a4d8083effa950ddc3a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_38c4a97e7b8f409c9ad954f4405fe1a0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_7b575dcf65dc403996298a5f8a1cb84f","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f6c331512611ef83d2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:21Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_9e28473116f34399af8692ed11cf47bd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","updated_at":"2023-11-30T20:10:21Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:20Z","email":"REDACTED","id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:22:59Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:22:59Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_38c4a97e7b8f409c9ad954f4405fe1a0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","updated_at":"2024-08-02T23:22:59Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:22:59Z","email":"REDACTED","id":"adr_27f4b8a6512611efb2e9ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:20Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:10:21Z","id":"trk_b0a359ca437a4e1fa7a7173cf182c98b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IwYTM1OWNhNDM3YTRlMWZhN2E3MTczY2YxODJjOThi","shipment_id":"shp_0c50a76578504adfafafd1f95a41da36","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287382897","updated_at":"2023-11-30T20:10:21Z"},"tracking_code":"9400100105442287382897","updated_at":"2023-11-30T20:10:21Z","usps_zone":4}]}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:22:59Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:23:00Z","id":"trk_011c5d08d99640d69091d2e6463f3a3f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzAxMWM1ZDA4ZDk5NjQwZDY5MDkxZDJlNjQ2M2YzYTNm","shipment_id":"shp_6ecf2cab3e7345a8a18cc1f8bc26ed4a","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070373571","updated_at":"2024-08-02T23:23:00Z"},"tracking_code":"9400100110368070373571","updated_at":"2024-08-02T23:23:00Z","usps_zone":4}]}' form: {} headers: Authorization: @@ -305,10 +305,10 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_f22fb74a118b485ab53ca91d0e8d2c4c/remove_shipments + url: https://api.easypost.com/v2/batches/batch_ced905a211c444d2a81b584bd31f58d2/remove_shipments method: POST response: - body: '{"created_at":"2023-11-30T20:10:21Z","id":"batch_f22fb74a118b485ab53ca91d0e8d2c4c","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:21Z"}' + body: '{"created_at":"2024-08-02T23:23:00Z","id":"batch_ced905a211c444d2a81b584bd31f58d2","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:23:05Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -329,20 +329,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ee7896122001b3864 + - 4d57347166ad6a59f42c624400388268 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.207685" + - "0.051475" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchAll.yaml b/tests/cassettes/TestBatchAll.yaml index a1deda3..be9fd9a 100644 --- a/tests/cassettes/TestBatchAll.yaml +++ b/tests/cassettes/TestBatchAll.yaml @@ -2,19 +2,19 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches + url: https://api.easypost.com/v2/batches?page_size=5 method: GET response: - body: '{"batches":[{"created_at":"2023-11-30T20:10:21Z","id":"batch_f22fb74a118b485ab53ca91d0e8d2c4c","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:22Z"}],"has_more":false}' + body: '{"batches":[{"created_at":"2024-07-26T19:34:05Z","id":"batch_dd22fe3b5eb94538a024538460c106c1","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":"USPS + does not offer service First for this shipment.","batch_status":"postage_purchase_failed","id":"shp_ce270294181f4397ba2aed5174859d70","reference":null,"tracking_code":null}],"state":"purchase_failed","status":{"created":0,"creation_failed":0,"postage_purchase_failed":1,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-07-26T19:34:05Z"},{"created_at":"2024-07-26T19:34:05Z","id":"batch_22a6603d751c460595d85006a91f6547","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"created","id":"shp_b3fadc127a9646cdb1cd6ece1daeba91","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-07-26T19:34:05Z"},{"created_at":"2024-07-26T19:34:05Z","id":"batch_cd17b7229ae74bf29124c44ba46294c3","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"created","id":"shp_9e12afa98102461bbdeb6759c9162c26","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-07-26T19:34:06Z"},{"created_at":"2024-07-26T19:34:06Z","id":"batch_d029f4d68d80446db1d23f296c8e9a96","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":"USPS + does not offer service First for this shipment.","batch_status":"postage_purchase_failed","id":"shp_d6e63bdbd59644f19bf82d53bf784007","reference":null,"tracking_code":null}],"state":"purchase_failed","status":{"created":0,"creation_failed":0,"postage_purchase_failed":1,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-07-26T19:34:06Z"},{"created_at":"2024-07-26T19:34:11Z","id":"batch_b7e57f04d0cd4cb2bef0d3af896ae2eb","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"created","id":"shp_4448c0689d8543268c97523cdc1792c8","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-07-26T19:34:11Z"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ee7896122001b38ce + - e77710fd66ad6a28f3f508bf00393ebd X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "0.062118" + - "0.050458" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchBuy.yaml b/tests/cassettes/TestBatchBuy.yaml index f5720e4..c784d9e 100644 --- a/tests/cassettes/TestBatchBuy.yaml +++ b/tests/cassettes/TestBatchBuy.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} @@ -18,7 +18,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:22Z","id":"batch_2dcac2bc1c7345e9898885a736f76c10","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:22Z"}' + body: '{"created_at":"2024-08-02T23:22:22Z","id":"batch_0f75d5d021da40fc977a81bb6970d02f","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:22:22Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,37 +39,39 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ee7896122001b38fc + - e77710f966ad6a2ef44f7f4e003941df X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "0.051983" + - "0.039723" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_2dcac2bc1c7345e9898885a736f76c10/buy + url: https://api.easypost.com/v2/batches/batch_0f75d5d021da40fc977a81bb6970d02f/buy method: POST response: - body: '{"created_at":"2023-11-30T20:10:22Z","id":"batch_2dcac2bc1c7345e9898885a736f76c10","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_2fd58f424a154a8090313b9e6acfe5af","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:22Z"}' + body: '{"created_at":"2024-08-02T23:22:22Z","id":"batch_0f75d5d021da40fc977a81bb6970d02f","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_723111ec27bf46838a84d8d31fdd7bae","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:22:22Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -90,20 +92,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ee7896122001b3935 + - e77710f966ad6a32f44f7f4e00394457 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "0.062600" + - "0.056217" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchCreate.yaml b/tests/cassettes/TestBatchCreate.yaml index 53cc5d8..0f9e7d3 100644 --- a/tests/cassettes/TestBatchCreate.yaml +++ b/tests/cassettes/TestBatchCreate.yaml @@ -18,7 +18,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:23Z","id":"batch_a320ba75a86749a68b29a401531c8959","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:23Z"}' + body: '{"created_at":"2024-08-02T23:21:55Z","id":"batch_01edb1594b59418e910b9db30d341928","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:21:55Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,20 +39,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2ee7896122001b3969 + - e77710fb66ad6a13f42ea0f000393186 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "0.050630" + - "0.037794" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchCreateScanForm.yaml b/tests/cassettes/TestBatchCreateScanForm.yaml index 73c4908..95fea47 100644 --- a/tests/cassettes/TestBatchCreateScanForm.yaml +++ b/tests/cassettes/TestBatchCreateScanForm.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} @@ -18,7 +18,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:23Z","id":"batch_0f1512b0b2ab4b59a008ce06e209c6c1","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:23Z"}' + body: '{"created_at":"2024-08-02T23:31:39Z","id":"batch_ffdc33bab5cf4965abffd06ecd60463a","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:31:39Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,37 +39,39 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2fe7896122001b39d7 + - 4d57347166ad6c5bf441d9eb0039c08d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.153018" + - "0.047599" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_0f1512b0b2ab4b59a008ce06e209c6c1/buy + url: https://api.easypost.com/v2/batches/batch_ffdc33bab5cf4965abffd06ecd60463a/buy method: POST response: - body: '{"created_at":"2023-11-30T20:10:23Z","id":"batch_0f1512b0b2ab4b59a008ce06e209c6c1","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_b6dbbede51a441d7aa5aca58d4e39c6e","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:23Z"}' + body: '{"created_at":"2024-08-02T23:31:39Z","id":"batch_ffdc33bab5cf4965abffd06ecd60463a","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_6f5ba0cfc19746b1b37418fd4f2d9bcf","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:31:39Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -90,41 +92,39 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec2fe7896122001b3a2d + - 4d57347166ad6c5ef441d9eb0039c3d4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.080094" + - "0.061141" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: file_format= - form: - file_format: - - "" + body: '{}' + form: {} headers: Authorization: - REDACTED Content-Type: - - application/x-www-form-urlencoded + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_0f1512b0b2ab4b59a008ce06e209c6c1/scan_form + url: https://api.easypost.com/v2/batches/batch_ffdc33bab5cf4965abffd06ecd60463a/scan_form method: POST response: - body: '{"created_at":"2023-11-30T20:10:23Z","id":"batch_0f1512b0b2ab4b59a008ce06e209c6c1","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":{"address":null,"batch_id":"batch_0f1512b0b2ab4b59a008ce06e209c6c1","confirmation":null,"created_at":"2023-11-30T20:10:28Z","form_file_type":null,"form_url":null,"id":"sf_f39d531b6e7a4ed79e61f90a4ea03608","message":null,"object":"ScanForm","status":"creating","tracking_codes":[],"updated_at":"2023-11-30T20:10:28Z"},"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_b6dbbede51a441d7aa5aca58d4e39c6e","reference":null,"tracking_code":"9400100105442287382941"}],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:28Z"}' + body: '{"created_at":"2024-08-02T23:31:39Z","id":"batch_ffdc33bab5cf4965abffd06ecd60463a","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":{"address":null,"batch_id":"batch_ffdc33bab5cf4965abffd06ecd60463a","confirmation":null,"created_at":"2024-08-02T23:31:47Z","form_file_type":null,"form_url":null,"id":"sf_1f09eca6dbea4b4cb13e3bc31434dabf","message":null,"object":"ScanForm","status":"creating","tracking_codes":[],"updated_at":"2024-08-02T23:31:47Z"},"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_6f5ba0cfc19746b1b37418fd4f2d9bcf","reference":null,"tracking_code":"9400100110368070375223"}],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2024-08-02T23:31:47Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -145,20 +145,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec34e7896122001b4017 + - 4d57347166ad6c63f441d9eb0039c945 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.083436" + - "0.073073" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchLabel.yaml b/tests/cassettes/TestBatchLabel.yaml index b2b1015..4545858 100644 --- a/tests/cassettes/TestBatchLabel.yaml +++ b/tests/cassettes/TestBatchLabel.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} @@ -18,7 +18,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:29Z","id":"batch_f9c47a9643a748a9be0be608fac8d731","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:29Z"}' + body: '{"created_at":"2024-08-02T23:29:11Z","id":"batch_6b8c765fda544348a829c068beda69cb","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:29:11Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -34,42 +34,46 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec35e7896122001b4044 + - 4d57346a66ad6bc7f4502ccf003945d2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.037919" + - "0.047616" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_f9c47a9643a748a9be0be608fac8d731/buy + url: https://api.easypost.com/v2/batches/batch_6b8c765fda544348a829c068beda69cb/buy method: POST response: - body: '{"created_at":"2023-11-30T20:10:29Z","id":"batch_f9c47a9643a748a9be0be608fac8d731","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_b71ee4dabe6f4426ba96443f3837a1bf","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:29Z"}' + body: '{"created_at":"2024-08-02T23:29:11Z","id":"batch_6b8c765fda544348a829c068beda69cb","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_2c9757050177421ea2d531e2a6c34d84","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:29:11Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -90,41 +94,39 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec35e7896122001b4068 + - 4d57346a66ad6bcaf4502ccf0039471f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.070784" + - "0.066496" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: file_format=ZPL - form: - file_format: - - ZPL + body: '{"file_format":"ZPL"}' + form: {} headers: Authorization: - REDACTED Content-Type: - - application/x-www-form-urlencoded + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_f9c47a9643a748a9be0be608fac8d731/label + url: https://api.easypost.com/v2/batches/batch_6b8c765fda544348a829c068beda69cb/label method: POST response: - body: '{"created_at":"2023-11-30T20:10:29Z","id":"batch_f9c47a9643a748a9be0be608fac8d731","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_b71ee4dabe6f4426ba96443f3837a1bf","reference":null,"tracking_code":"9400100105442287382996"}],"state":"label_generating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:34Z"}' + body: '{"created_at":"2024-08-02T23:29:11Z","id":"batch_6b8c765fda544348a829c068beda69cb","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_2c9757050177421ea2d531e2a6c34d84","reference":null,"tracking_code":"9400100110368070374714"}],"state":"label_generating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2024-08-02T23:29:19Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -145,20 +147,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ae7896122001b44f7 + - 4d57346a66ad6bcff4502ccf00394994 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.049588" + - "0.049355" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchRetrieve.yaml b/tests/cassettes/TestBatchRetrieve.yaml index 72b2e7a..91bf2fe 100644 --- a/tests/cassettes/TestBatchRetrieve.yaml +++ b/tests/cassettes/TestBatchRetrieve.yaml @@ -18,7 +18,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:34Z","id":"batch_57965e87f01e45deb068696495018261","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:34Z"}' + body: '{"created_at":"2024-08-02T23:22:04Z","id":"batch_2d2bacb095de49b6a557501d4e07ac20","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:22:04Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,20 +39,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ae7896122001b4524 + - 4d57346b66ad6a1cf40b8408003864ea X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.047271" + - "0.046531" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -66,10 +66,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_57965e87f01e45deb068696495018261 + url: https://api.easypost.com/v2/batches/batch_2d2bacb095de49b6a557501d4e07ac20 method: GET response: - body: '{"created_at":"2023-11-30T20:10:34Z","id":"batch_57965e87f01e45deb068696495018261","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"created","id":"shp_b992659f918e449b94637d70347bfce0","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:34Z"}' + body: '{"created_at":"2024-08-02T23:22:04Z","id":"batch_2d2bacb095de49b6a557501d4e07ac20","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"created","id":"shp_0f03ff108c0c40afb17fa494b9177554","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:22:04Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -85,27 +85,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ae7896122001b4552 + - 4d57346b66ad6a21f40b8408003866ec X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.027711" + - "0.027574" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBetaReferralAddPaymentMethod.yaml b/tests/cassettes/TestBetaReferralAddPaymentMethod.yaml index 98696ff..2e3004d 100644 --- a/tests/cassettes/TestBetaReferralAddPaymentMethod.yaml +++ b/tests/cassettes/TestBetaReferralAddPaymentMethod.yaml @@ -14,17 +14,11 @@ interactions: url: https://api.easypost.com/beta/referral_customers/payment_method method: POST response: - body: '{"error":{"code":"BILLING.INVALID_PAYMENT_GATEWAY_REFERENCE","errors":[],"message":"Invalid - Payment Gateway Reference."}}' + body: '{"error":{"code":"APIKEY.INACTIVE","errors":[],"message":"This api key + is no longer active. Please use a different api key or reactivate this key."}}' headers: - Cache-Control: - - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 - Expires: - - "0" - Pragma: - - no-cache Referrer-Policy: - strict-origin-when-cross-origin Strict-Transport-Security: @@ -38,22 +32,22 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ae7896122001b457a + - 4d57346d66ad6851f440b8c700374021 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.146064" + - "0.011152" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block - status: 422 Unprocessable Entity - code: 422 + status: 403 Forbidden + code: 403 duration: "" diff --git a/tests/cassettes/TestBetaReferralRefundByAmount.yaml b/tests/cassettes/TestBetaReferralRefundByAmount.yaml index 5cf9adb..ac05580 100644 --- a/tests/cassettes/TestBetaReferralRefundByAmount.yaml +++ b/tests/cassettes/TestBetaReferralRefundByAmount.yaml @@ -14,17 +14,11 @@ interactions: url: https://api.easypost.com/beta/referral_customers/refunds method: POST response: - body: '{"error":{"code":"TRANSACTION.AMOUNT_INVALID","errors":[],"message":"Refund - amount is invalid. Please use a valid amount or escalate to finance."}}' + body: '{"error":{"code":"APIKEY.INACTIVE","errors":[],"message":"This api key + is no longer active. Please use a different api key or reactivate this key."}}' headers: - Cache-Control: - - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 - Expires: - - "0" - Pragma: - - no-cache Referrer-Policy: - strict-origin-when-cross-origin Strict-Transport-Security: @@ -33,29 +27,27 @@ interactions: - Origin X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3be7896122001b45dc + - 4d57346d66ad6851f440b8c70037402a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.430568" + - "0.011269" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block - status: 422 Unprocessable Entity - code: 422 + status: 403 Forbidden + code: 403 duration: "" diff --git a/tests/cassettes/TestBetaReferralRefundByPaymentLogId.yaml b/tests/cassettes/TestBetaReferralRefundByPaymentLogId.yaml index 553eda4..2e46ac5 100644 --- a/tests/cassettes/TestBetaReferralRefundByPaymentLogId.yaml +++ b/tests/cassettes/TestBetaReferralRefundByPaymentLogId.yaml @@ -14,17 +14,11 @@ interactions: url: https://api.easypost.com/beta/referral_customers/refunds method: POST response: - body: '{"error":{"code":"TRANSACTION.DOES_NOT_EXIST","errors":[],"message":"We - could not find a transaction with that id."}}' + body: '{"error":{"code":"APIKEY.INACTIVE","errors":[],"message":"This api key + is no longer active. Please use a different api key or reactivate this key."}}' headers: - Cache-Control: - - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 - Expires: - - "0" - Pragma: - - no-cache Referrer-Policy: - strict-origin-when-cross-origin Strict-Transport-Security: @@ -38,22 +32,22 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3be7896122001b463b + - 4d57346d66ad6851f440b8c700374035 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.044583" + - "0.017758" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block - status: 422 Unprocessable Entity - code: 422 + status: 403 Forbidden + code: 403 duration: "" diff --git a/tests/cassettes/TestBetaStatelessRateGetLowest.yaml b/tests/cassettes/TestBetaStatelessRateGetLowest.yaml index 8f46edc..e434b67 100644 --- a/tests/cassettes/TestBetaStatelessRateGetLowest.yaml +++ b/tests/cassettes/TestBetaStatelessRateGetLowest.yaml @@ -20,8 +20,8 @@ interactions: response: body: '{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","object":"Address","phone":"REDACTED","state":"CA","street1":"388 Townsend - St","street2":"Apt 20","zip":"94107"},"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"parcel":{"height":4,"length":10,"object":"Parcel","weight":15.4,"width":8},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express"}],"to_address":{"city":"Redondo + St","street2":"Apt 20","zip":"94107"},"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"parcel":{"height":4,"length":10,"object":"Parcel","weight":15.4,"width":8},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express"}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}' headers: @@ -46,20 +46,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ce7896122001b4663 + - 4d57346d66ad6851f440b8c70037403c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.406866" + - "0.445693" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBetaStatelessRateGetLowestError.yaml b/tests/cassettes/TestBetaStatelessRateGetLowestError.yaml index 6622a1d..48fb227 100644 --- a/tests/cassettes/TestBetaStatelessRateGetLowestError.yaml +++ b/tests/cassettes/TestBetaStatelessRateGetLowestError.yaml @@ -20,8 +20,8 @@ interactions: response: body: '{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","object":"Address","phone":"REDACTED","state":"CA","street1":"388 Townsend - St","street2":"Apt 20","zip":"94107"},"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"parcel":{"height":4,"length":10,"object":"Parcel","weight":15.4,"width":8},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express"}],"to_address":{"city":"Redondo + St","street2":"Apt 20","zip":"94107"},"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"parcel":{"height":4,"length":10,"object":"Parcel","weight":15.4,"width":8},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage"}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}' headers: @@ -46,20 +46,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ce7896122001b4702 + - 4d57346d66ad6851f440b8c700374098 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.699215" + - "0.451253" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBetaStatelessRateRetrieve.yaml b/tests/cassettes/TestBetaStatelessRateRetrieve.yaml index 62f1511..e178deb 100644 --- a/tests/cassettes/TestBetaStatelessRateRetrieve.yaml +++ b/tests/cassettes/TestBetaStatelessRateRetrieve.yaml @@ -20,8 +20,8 @@ interactions: response: body: '{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","object":"Address","phone":"REDACTED","state":"CA","street1":"388 Townsend - St","street2":"Apt 20","zip":"94107"},"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"parcel":{"height":4,"length":10,"object":"Parcel","weight":15.4,"width":8},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority"}],"to_address":{"city":"Redondo + St","street2":"Apt 20","zip":"94107"},"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"parcel":{"height":4,"length":10,"object":"Parcel","weight":15.4,"width":8},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage"}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}' headers: @@ -46,7 +46,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3de7896122001b47c3 + - 4d57346d66ad6852f440b8c7003740e6 X-Frame-Options: - SAMEORIGIN X-Node: @@ -54,12 +54,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.411039" + - "0.413804" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBuyShipmentWithEndShipper.yaml b/tests/cassettes/TestBuyShipmentWithEndShipper.yaml index 97cd531..7a75e76 100644 --- a/tests/cassettes/TestBuyShipmentWithEndShipper.yaml +++ b/tests/cassettes/TestBuyShipmentWithEndShipper.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","id":"es_3f13203163ab4bde9fd1a92809195cb0","mode":"test","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","id":"es_0d2b872348924e66b4c12d5f277283f2","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:38+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:26+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ee7896122001b483d + - 4d57346d66ad6852f440b8c700374126 X-Frame-Options: - SAMEORIGIN X-Node: @@ -47,12 +47,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.051103" + - "0.052264" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -76,19 +76,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_878e6bb18fbc11eeb4e5ac1f6bc539aa","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f6920eba512411efafe93cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:10:38Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8791770d8fbc11eea617ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:14:26Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f694b613512411ef8107ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"94107"},"id":"shp_997fe65d5add4d04bd06463373a7b54b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:10:38Z","height":4,"id":"prcl_f69e312e8ab440c599c8db3afb262b74","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:10:38Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c38b596413b34d0295091f330262b346","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d82b5878da354f01be07a927ebcfacc1","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_10ac15626d6b4898bef3fdbd5adf6f1e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_681e9b1009684f47b34105fe96165038","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e0dd426cc2614ee6b671e4a4555ee8a9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8791770d8fbc11eea617ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"94107"},"id":"shp_ee1aa87d54a64534a5b8cb4235730037","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:26Z","height":4,"id":"prcl_ffd16d7a9e5c4990b3575f395cda83b7","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:26Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fedca8ac3a8e471eb27f9e2758f652e2","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_60dafd01cff44017b81c7173bc536715","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70f008822b764758b4658e0cc043099f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f694b613512411ef8107ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_878e6bb18fbc11eeb4e5ac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f6920eba512411efafe93cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:10:39Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:14:27Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -97,7 +97,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_997fe65d5add4d04bd06463373a7b54b + - /api/v2/shipments/shp_ee1aa87d54a64534a5b8cb4235730037 Pragma: - no-cache Referrer-Policy: @@ -111,27 +111,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3ee7896122001b4862 + - 4d57346d66ad6852f440b8c700374130 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.551185" + - "0.548559" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"end_shipper_id":"es_3f13203163ab4bde9fd1a92809195cb0","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_10ac15626d6b4898bef3fdbd5adf6f1e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"}}' + body: '{"end_shipper_id":"es_0d2b872348924e66b4c12d5f277283f2","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_70f008822b764758b4658e0cc043099f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"}}' form: {} headers: Authorization: @@ -140,23 +140,23 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_997fe65d5add4d04bd06463373a7b54b/buy + url: https://api.easypost.com/v2/shipments/shp_ee1aa87d54a64534a5b8cb4235730037/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_878e6bb18fbc11eeb4e5ac1f6bc539aa","mode":"test","name":"ELIZABETH + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f6920eba512411efafe93cecef1b359e","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2023-11-30T20:10:39+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2023-11-30T20:10:38Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8791770d8fbc11eea617ac1f6bc53342","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:27+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:14:26Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f694b613512411ef8107ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"94107"},"id":"shp_997fe65d5add4d04bd06463373a7b54b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:10:38Z","height":4,"id":"prcl_f69e312e8ab440c599c8db3afb262b74","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:10:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:39Z","date_advance":0,"id":"pl_016c0b5a970849b2bbe91ef02151d2b0","integrated_form":"none","label_date":"2023-11-30T20:10:39Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8f91868177cf34be9b1a5b806f44f7906.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:10:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c38b596413b34d0295091f330262b346","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d82b5878da354f01be07a927ebcfacc1","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_10ac15626d6b4898bef3fdbd5adf6f1e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_681e9b1009684f47b34105fe96165038","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e0dd426cc2614ee6b671e4a4555ee8a9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8791770d8fbc11eea617ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"94107"},"id":"shp_ee1aa87d54a64534a5b8cb4235730037","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:26Z","height":4,"id":"prcl_ffd16d7a9e5c4990b3575f395cda83b7","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:26Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:27Z","date_advance":0,"id":"pl_7a16e2de87e94206b16740a5017adbcc","integrated_form":"none","label_date":"2024-08-02T23:14:27Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e87dfe6dd0ee924a619f461565f6aa7714.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:14:28Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fedca8ac3a8e471eb27f9e2758f652e2","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_60dafd01cff44017b81c7173bc536715","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70f008822b764758b4658e0cc043099f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f694b613512411ef8107ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_10ac15626d6b4898bef3fdbd5adf6f1e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","updated_at":"2023-11-30T20:10:39Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_878e6bb18fbc11eeb4e5ac1f6bc539aa","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70f008822b764758b4658e0cc043099f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","updated_at":"2024-08-02T23:14:27Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f6920eba512411efafe93cecef1b359e","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2023-11-30T20:10:39+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:10:40Z","est_delivery_date":null,"fees":[],"id":"trk_56d5b657721d4e649ae84211ae4189ff","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU2ZDViNjU3NzIxZDRlNjQ5YWU4NDIxMWFlNDE4OWZm","shipment_id":"shp_997fe65d5add4d04bd06463373a7b54b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383108","tracking_details":[],"updated_at":"2023-11-30T20:10:40Z","weight":null},"tracking_code":"9400100105442287383108","updated_at":"2023-11-30T20:10:40Z","usps_zone":4}' + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:27+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:28Z","est_delivery_date":null,"fees":[],"id":"trk_270df01718e2424f8707cb6082abe0f8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzI3MGRmMDE3MThlMjQyNGY4NzA3Y2I2MDgyYWJlMGY4","shipment_id":"shp_ee1aa87d54a64534a5b8cb4235730037","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070371980","tracking_details":[],"updated_at":"2024-08-02T23:14:28Z","weight":null},"tracking_code":"9400100110368070371980","updated_at":"2024-08-02T23:14:28Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -172,25 +172,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec3fe7896122001b48fd + - 4d57346d66ad6853f440b8c70037417b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.883138" + - "0.911295" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountAll.yaml b/tests/cassettes/TestCarrierAccountAll.yaml index 540463c..aa1d95e 100644 --- a/tests/cassettes/TestCarrierAccountAll.yaml +++ b/tests/cassettes/TestCarrierAccountAll.yaml @@ -31,27 +31,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec40e7896122001b4a0f + - 4d57346d66ad6854f440b8c7003741f5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.051514" + - "0.091104" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountCreate.yaml b/tests/cassettes/TestCarrierAccountCreate.yaml index fd0c560..ac240c2 100644 --- a/tests/cassettes/TestCarrierAccountCreate.yaml +++ b/tests/cassettes/TestCarrierAccountCreate.yaml @@ -14,9 +14,9 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:08Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{},"id":"ca_94291c154236418183431f8e0a6396f1","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-07-10T23:00:08Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:28Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_d84d5270b04e4e66be8b16ae724b2fe9","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:28Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -37,20 +37,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1278f41b62e9003cbc05 + - 4d57346d66ad6854f440b8c700374206 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.070008" + - "0.112931" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,7 +64,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_94291c154236418183431f8e0a6396f1 + url: https://api.easypost.com/v2/carrier_accounts/ca_d84d5270b04e4e66be8b16ae724b2fe9 method: DELETE response: body: '{}' @@ -83,27 +83,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1278f41b62e9003cbc29 + - 4d57346d66ad6854f440b8c70037421f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.064514" + - "0.124288" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountCreateUps.yaml b/tests/cassettes/TestCarrierAccountCreateUps.yaml index 5f651fa..9a89ce8 100644 --- a/tests/cassettes/TestCarrierAccountCreateUps.yaml +++ b/tests/cassettes/TestCarrierAccountCreateUps.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/ups_oauth_registrations method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:08Z","credentials":{},"description":null,"fields":{},"id":"ca_5462da65bdb34ab4ac7c607703c9ecf4","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-07-10T23:00:08Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:28Z","credentials":{},"description":null,"fields":{},"id":"ca_aaabdd4599a4413ca71bb2316c7c8ece","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-08-02T23:14:28Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1278f41b62e9003cbc51 + - 4d57346d66ad6854f440b8c70037423d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.220166" + - "0.097354" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -62,7 +62,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_5462da65bdb34ab4ac7c607703c9ecf4 + url: https://api.easypost.com/v2/carrier_accounts/ca_aaabdd4599a4413ca71bb2316c7c8ece method: DELETE response: body: '{}' @@ -86,20 +86,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1278f41b62e9003cbcb8 + - 4d57346d66ad6855f440b8c700374259 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.060721" + - "0.056924" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountCreateWithCustomWorkflow.yaml b/tests/cassettes/TestCarrierAccountCreateWithCustomWorkflow.yaml index 8178805..8452be2 100644 --- a/tests/cassettes/TestCarrierAccountCreateWithCustomWorkflow.yaml +++ b/tests/cassettes/TestCarrierAccountCreateWithCustomWorkflow.yaml @@ -49,20 +49,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1278f41b62e9003cbcd8 + - 4d57346d66ad6855f440b8c700374264 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.044392" + - "0.042329" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 422 Unprocessable Entity diff --git a/tests/cassettes/TestCarrierAccountDelete.yaml b/tests/cassettes/TestCarrierAccountDelete.yaml index 2fc855d..593d8ec 100644 --- a/tests/cassettes/TestCarrierAccountDelete.yaml +++ b/tests/cassettes/TestCarrierAccountDelete.yaml @@ -14,9 +14,9 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2023-11-30T20:10:41Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{},"id":"ca_cde931e15afb4bfe8183e9d048d06907","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2023-11-30T20:10:41Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:29Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_866e9d339f4a452bb655d6b0f9039362","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:29Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -32,25 +32,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec41e7896122001b4b00 + - 4d57346d66ad6855f440b8c700374272 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.123025" + - "0.066692" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,7 +66,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_cde931e15afb4bfe8183e9d048d06907 + url: https://api.easypost.com/v2/carrier_accounts/ca_866e9d339f4a452bb655d6b0f9039362 method: DELETE response: body: '{}' @@ -88,20 +90,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec41e7896122001b4b29 + - 4d57346d66ad6855f440b8c700374283 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.251348" + - "0.062066" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountRetrieve.yaml b/tests/cassettes/TestCarrierAccountRetrieve.yaml index e0cc792..4a0227d 100644 --- a/tests/cassettes/TestCarrierAccountRetrieve.yaml +++ b/tests/cassettes/TestCarrierAccountRetrieve.yaml @@ -14,9 +14,9 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2023-11-30T20:10:42Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{},"id":"ca_275c6c00101849278293a39596c02e43","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2023-11-30T20:10:42Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:29Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_ac85fda41e9143398f3edc3a47c70ec3","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:29Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -37,20 +37,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec42e7896122001b4bb3 + - 4d57346d66ad6855f440b8c700374293 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.223913" + - "0.082987" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,12 +64,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_275c6c00101849278293a39596c02e43 + url: https://api.easypost.com/v2/carrier_accounts/ca_ac85fda41e9143398f3edc3a47c70ec3 method: GET response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2023-11-30T20:10:42Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{},"id":"ca_275c6c00101849278293a39596c02e43","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2023-11-30T20:10:42Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:29Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_ac85fda41e9143398f3edc3a47c70ec3","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:29Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -90,20 +90,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec42e7896122001b4c18 + - 4d57346d66ad6855f440b8c7003742a2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.033181" + - "0.194389" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -117,7 +117,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_275c6c00101849278293a39596c02e43 + url: https://api.easypost.com/v2/carrier_accounts/ca_ac85fda41e9143398f3edc3a47c70ec3 method: DELETE response: body: '{}' @@ -141,20 +141,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec42e7896122001b4c35 + - 4d57346d66ad6855f440b8c7003742bc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.116064" + - "0.062623" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountTypes.yaml b/tests/cassettes/TestCarrierAccountTypes.yaml index 47efee4..9956ed5 100644 --- a/tests/cassettes/TestCarrierAccountTypes.yaml +++ b/tests/cassettes/TestCarrierAccountTypes.yaml @@ -12,35 +12,38 @@ interactions: url: https://api.easypost.com/v2/carrier_types method: GET response: - body: '[{"fields":{},"logo":null,"object":"CarrierType","readable":"Amazon MWS","type":"AmazonMwsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"APC","type":"ApcAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Asendia + body: '[{"fields":{},"logo":null,"object":"CarrierType","readable":"Accurate","type":"AccurateAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Amazon + MWS","type":"AmazonMwsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"APC","type":"ApcAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Asendia USA","type":"AsendiaUsaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Australia - Post","type":"AustraliaPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"AxlehireV3","type":"AxlehireV3Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Better - Trucks","type":"BetterTrucksAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Canada + Post","type":"AustraliaPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Better + Trucks","type":"BetterTrucksAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Bluestreak","type":"BluestreakAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Canada Post","type":"CanadaPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Canpar","type":"CanparAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"CDL Last Mile Solutions","type":"ColumbusLastMileAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Courier - Express","type":"CourierExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"CouriersPlease","type":"CouriersPleaseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Dai + Express","type":"CourierExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"CouriersPlease","type":"CouriersPleaseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"CSLogistics","type":"CSLogisticsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Dai Post","type":"DaiPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Deliver-It","type":"DeliverItAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Deutsche Post UK","type":"DeutschePostUKAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL - Ecommerce Asia","type":"DhlEcommerceAsiaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL eCommerce Solutions","type":"DhlEcsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL Express","type":"DhlExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL Paket","type":"DhlPaketAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL - Parcel","type":"DhlParcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD","type":"DpdAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD + Parcel","type":"DhlParcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Douglas","type":"DouglasAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD","type":"DpdAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD UK","type":"DpdUkAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD - NL","type":"DpdNlAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Estafeta","type":"EstafetaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Fastway","type":"FastwayAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx","type":"FedexAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx + NL","type":"DpdNlAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"EPost + Global V2","type":"EPostGlobalV2Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Estafeta","type":"EstafetaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx","type":"FedexAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx Cross Border","type":"FedexCrossBorderAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx MailView","type":"FedexMailviewAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx SmartPost","type":"FedexSmartpostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"First - Mile","type":"FirstMileConciseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Flexport","type":"FlexportAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"GSO","type":"GsoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Hailify","type":"HailifyAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Evri","type":"HermesAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Interlink - Express","type":"InterlinkExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"LaserShipV2","type":"LasershipV2Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Loomis - Express","type":"LoomisExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"LSO","type":"LsoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Newgistics","type":"NewgisticsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OmniParcel","type":"OmniParcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OnTrac","type":"OntracAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Optima","type":"OptimaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OSM + Choice","type":"FirstChoiceAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"First + Mile","type":"FirstMileConciseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Flexport","type":"FlexportAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Gio","type":"GioAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"GSO","type":"GsoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Hailify","type":"HailifyAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Henry","type":"HenryAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Evri","type":"HermesAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Interlink + Express","type":"InterlinkExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Jet","type":"JetAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Jitsu","type":"JitsuAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"LaserShipV2","type":"LasershipV2Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Loomis + Express","type":"LoomisExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"LSO","type":"LsoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OmniParcel","type":"OmniParcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OnTrac","type":"OntracAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OnTrac + V3","type":"OntracV3Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Optima","type":"OptimaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OSM Worldwide","type":"OsmWorldwideAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Pandion","type":"PandionAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Parcel Force","type":"ParcelForceAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Cirro E-Commerce","type":"ParcllAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Passport - Global","type":"PassportGlobalAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Purolator","type":"PurolatorAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Royal + Global","type":"PassportGlobalAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Purolator","type":"PurolatorAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Quick","type":"QuickAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Royal Mail","type":"RoyalMailAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"ePost Global","type":"RRDonnelleyAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Sendle","type":"SendleAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"SF - Express","type":"SfExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"SmartKargo","type":"SmartKargoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Sonic","type":"SonicAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Spee-Dee","type":"SpeedeeAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Swyft","type":"SwyftAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"TForce","type":"TforceConciseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Toll","type":"TollAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UDS","type":"UdsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS","type":"UpsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS + Express","type":"SfExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"SmartKargo","type":"SmartKargoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Sonic","type":"SonicAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Spee-Dee","type":"SpeedeeAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Swyft","type":"SwyftAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Tcc","type":"TccAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"TForce","type":"TforceConciseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Toll","type":"TollAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UDS","type":"UdsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS","type":"UpsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS i-Parcel","type":"UpsIparcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS Mail Innovations","type":"UpsMailInnovationsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"USPS","type":"UspsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Veho","type":"VehoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Maergo","type":"XDeliveryAccount"}]' headers: @@ -63,20 +66,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec43e7896122001b4c7a + - 4d57346d66ad6855f440b8c7003742c5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.030258" + - "0.078880" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountUpdate.yaml b/tests/cassettes/TestCarrierAccountUpdate.yaml index 3e2db38..ea17252 100644 --- a/tests/cassettes/TestCarrierAccountUpdate.yaml +++ b/tests/cassettes/TestCarrierAccountUpdate.yaml @@ -14,9 +14,9 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:09Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{},"id":"ca_1e440e0201754527b0c19d3ccbbb5c1e","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-07-10T23:00:09Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:30Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_3b156547088247949ac8dc7ad2d17793","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:30Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -37,20 +37,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1278f41b62e9003cbcef + - 4d57346d66ad6856f440b8c7003742d2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.079382" + - "0.106355" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,12 +64,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_1e440e0201754527b0c19d3ccbbb5c1e + url: https://api.easypost.com/v2/carrier_accounts/ca_3b156547088247949ac8dc7ad2d17793 method: GET response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:09Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{},"id":"ca_1e440e0201754527b0c19d3ccbbb5c1e","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-07-10T23:00:09Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:30Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_3b156547088247949ac8dc7ad2d17793","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:30Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -90,27 +90,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbd0e + - 4d57346d66ad6856f440b8c7003742de X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.042087" + - "0.029677" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"carrier_account":{"description":"My custom description","id":"ca_1e440e0201754527b0c19d3ccbbb5c1e"}}' + body: '{"carrier_account":{"description":"My custom description","id":"ca_3b156547088247949ac8dc7ad2d17793"}}' form: {} headers: Authorization: @@ -119,12 +119,12 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_1e440e0201754527b0c19d3ccbbb5c1e + url: https://api.easypost.com/v2/carrier_accounts/ca_3b156547088247949ac8dc7ad2d17793 method: PATCH response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:09Z","credentials":{},"description":"My - custom description","fields":{},"id":"ca_1e440e0201754527b0c19d3ccbbb5c1e","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-07-10T23:00:09Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:30Z","credentials":{},"description":"My + custom description","fields":{},"id":"ca_3b156547088247949ac8dc7ad2d17793","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2024-08-02T23:14:30Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -145,20 +145,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbd2a + - 4d57346d66ad6856f440b8c7003742e5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.094039" + - "0.151324" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -172,7 +172,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_1e440e0201754527b0c19d3ccbbb5c1e + url: https://api.easypost.com/v2/carrier_accounts/ca_3b156547088247949ac8dc7ad2d17793 method: DELETE response: body: '{}' @@ -196,20 +196,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbd56 + - 4d57346d66ad6856f440b8c700374306 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.062216" + - "0.055580" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountUpdateUps.yaml b/tests/cassettes/TestCarrierAccountUpdateUps.yaml index 05c2e06..07c0e71 100644 --- a/tests/cassettes/TestCarrierAccountUpdateUps.yaml +++ b/tests/cassettes/TestCarrierAccountUpdateUps.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/ups_oauth_registrations method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:09Z","credentials":{},"description":null,"fields":{},"id":"ca_3f3a30eaca1a49fa9360967184448e00","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-07-10T23:00:09Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:30Z","credentials":{},"description":null,"fields":{},"id":"ca_0d04aceeb2f1422da13a796b8515a6dd","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-08-02T23:14:30Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbd75 + - 4d57346d66ad6856f440b8c700374314 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.093533" + - "0.091988" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -62,10 +62,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_3f3a30eaca1a49fa9360967184448e00 + url: https://api.easypost.com/v2/carrier_accounts/ca_0d04aceeb2f1422da13a796b8515a6dd method: GET response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:09Z","credentials":{},"description":null,"fields":{},"id":"ca_3f3a30eaca1a49fa9360967184448e00","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-07-10T23:00:09Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:30Z","credentials":{},"description":null,"fields":{},"id":"ca_0d04aceeb2f1422da13a796b8515a6dd","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-08-02T23:14:30Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -86,20 +86,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbda0 + - 4d57346d66ad6856f440b8c700374324 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.043407" + - "0.031241" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -115,10 +115,10 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/ups_oauth_registrations/ca_3f3a30eaca1a49fa9360967184448e00 + url: https://api.easypost.com/v2/ups_oauth_registrations/ca_0d04aceeb2f1422da13a796b8515a6dd method: PATCH response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2024-07-10T23:00:09Z","credentials":{},"description":null,"fields":{},"id":"ca_3f3a30eaca1a49fa9360967184448e00","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-07-10T23:00:09Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2024-08-02T23:14:30Z","credentials":{},"description":null,"fields":{},"id":"ca_0d04aceeb2f1422da13a796b8515a6dd","logo":null,"object":"CarrierAccount","readable":"UPS","reference":null,"test_credentials":null,"type":"UpsAccount","updated_at":"2024-08-02T23:14:30Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -141,7 +141,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbdc1 + - 4d57346d66ad6856f440b8c70037432d X-Frame-Options: - SAMEORIGIN X-Node: @@ -149,12 +149,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb3nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.074505" + - "0.063195" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -168,7 +168,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_3f3a30eaca1a49fa9360967184448e00 + url: https://api.easypost.com/v2/carrier_accounts/ca_0d04aceeb2f1422da13a796b8515a6dd method: DELETE response: body: '{}' @@ -187,27 +187,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 35d2ed5f668f1279f41b62e9003cbde7 + - 4d57346d66ad6856f440b8c70037433c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.062747" + - "0.057748" X-Version-Label: - - easypost-202407102141-c1077ec6f9-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestClaimAll.yaml b/tests/cassettes/TestClaimAll.yaml index 32dd418..d51c2eb 100644 --- a/tests/cassettes/TestClaimAll.yaml +++ b/tests/cassettes/TestClaimAll.yaml @@ -2,25 +2,29 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/claims + url: https://api.easypost.com/v2/claims?page_size=5 method: GET response: - body: '{"claims":[{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/c44df5462b774c0c977f87e3b60d2b01.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/80738b455dea42658a66a250c40d9aba.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ee68a27ae3854ca5bd17f0752fa81ddf.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:28:59","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:28:59"}],"id":"clm_097e5796aa404ad4992781722224dcea","insurance_amount":"100.00","insurance_id":"ins_b004dab680bb4251abe5888de3bc4d07","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_ec517502568a4cb79d4af314dd16faa1","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:28:59","tracking_code":"9400100110368066408089","type":"damage","updated_at":"2024-07-23T20:28:59"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2170a351b74540d38ad04ba465d6daf9.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4ae21037c02f4e0f90e3e6bf0511c429.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/c910f338b6c9465f8023780002296673.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:28:57","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:28:57"}],"id":"clm_097e3dc1ade44a61b22c27e85d377fec","insurance_amount":"100.00","insurance_id":"ins_a82753192b544bd79ee19d0c22dabff6","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_f9de24018a77456e95a1e5efcbb050fb","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:28:57","tracking_code":"9400100110368066408065","type":"damage","updated_at":"2024-07-23T20:28:57"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9d36dfc0ae1b408893c33aa3fb76baeb.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/03390ff136a14600bf90a01aeed7482b.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/1666429034d24286aa46862ec3379c55.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:28:55","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:28:55"}],"id":"clm_097e083764974c80ab79ff8dbad6f337","insurance_amount":"100.00","insurance_id":"ins_98ffb9130f2945ebbeb57051a54aae5b","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_eceec0522e8244c68ca3ae686e21c244","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:28:55","tracking_code":"9400100110368066408058","type":"damage","updated_at":"2024-07-23T20:28:55"}],"has_more":false}' + body: '{"claims":[{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/03fa7c1303304b099e0b4e4551557a84.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/35788336780b43fa89d2b0f6d5d0b000.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/52bc5e6539b443e9a99fe68002be9309.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T22:12:53","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T22:12:53"}],"id":"clm_097f755883d04405a198fbb96309c3c7","insurance_amount":"100.00","insurance_id":"ins_db03e42beb00436faa77c45f9a725574","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_d38c9ce34866470188c66d6e2b34c0c0","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T22:12:53","tracking_code":"9400100110368070361691","type":"damage","updated_at":"2024-08-02T22:12:53"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/ce5b22efdb164769b4bd862bbea9424d.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/2bfe7b7931a745a39b98770cc91a8590.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/605ff80074784ed9916e8bee6bc4ed70.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T22:12:50","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T22:12:50"}],"id":"clm_097fff597f1a4528b84d4523a3cb2d92","insurance_amount":"100.00","insurance_id":"ins_3cd0fb317071401a96207b0d2a9fee9c","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_31bf3e5b4037499db22843da305b5716","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T22:12:50","tracking_code":"9400100110368070361660","type":"damage","updated_at":"2024-08-02T22:12:50"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/fffb03a39c5f48c5852137ce192d57fd.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/ba2350f66d3c40b1ae914a54fbb8f013.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/e05e10e28b964ff5a14fcb3240ffd2e8.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T22:12:48","description":"Test + description","history":[{"status":"cancelled","status_detail":"Claim cancellation + was requested.","timestamp":"2024-08-02T22:12:49"},{"status":"submitted","status_detail":"Claim + was created.","timestamp":"2024-08-02T22:12:48"}],"id":"clm_097fa3774bc148cda6beb673810064e5","insurance_amount":"100.00","insurance_id":"ins_8acc4665ce824763a9c7a13fc2936ae6","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_5717c87d9c3746709c0c77243d24a4bb","status":"cancelled","status_detail":"Claim + cancellation was requested.","status_timestamp":"2024-08-02T22:12:49","tracking_code":"9400100110368070361653","type":"damage","updated_at":"2024-08-02T22:12:49"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/7a71dd377af0486db08317356a37da79.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/5693a7cba59848e09661f245f9badee7.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/bfa34d01bf91459b8712bb99bf965537.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T20:00:09","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-26T20:00:09"}],"id":"clm_097e5f4fa5894c65ac5d84626ef4d7b7","insurance_amount":"100.00","insurance_id":"ins_6ce1eb789ba948219412bd84f486a174","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_0555917f55e54481902aab72652017b1","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-07-26T20:00:09","tracking_code":"9400100110368067715445","type":"damage","updated_at":"2024-07-26T20:00:09"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/152b9d9e212e44e89522fa963b32f503.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/084d8be2f7bf41b7bf75726d238c4420.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/0e1a5663b16247afb0ced9380e9d2ffb.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T20:00:06","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-26T20:00:06"}],"id":"clm_097ed2360026469a8edd5d2b70344051","insurance_amount":"100.00","insurance_id":"ins_c3b9cd64c4f1434894975ffc43d67bee","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_88f7e8da25ac4709acad86058e5b25eb","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-07-26T20:00:06","tracking_code":"9400100110368067715438","type":"damage","updated_at":"2024-07-26T20:00:06"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -41,20 +45,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015a8f42f248c0023095f + - 4d57346d66ad6857f440b8c70037434b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.044919" + - "0.063731" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestClaimCancel.yaml b/tests/cassettes/TestClaimCancel.yaml index bb4ace7..30beda1 100644 --- a/tests/cassettes/TestClaimCancel.yaml +++ b/tests/cassettes/TestClaimCancel.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c6aff87493411ef8ab4ac1f6bc539aa","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-23T20:42:16+00:00","verifications":{},"zip":"90277"},"created_at":"2024-07-23T20:42:16Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-07-23T20:42:16Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-07-23T20:42:16Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_fab3bc6bfaa74935971d426234a7c331","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-07-23T20:42:16Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_39a57ccd0d9a479c8b2f2523350d0762","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-07-23T20:42:16Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c7358b4493411ef903bac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:14:31Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:31Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:31Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_f29c9337b9574b428694c1f16d875bf9","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:31Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_4a63466497a84e6fa00ca44e750675e7","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:31Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:16+00:00","verifications":{},"zip":"94107"},"id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-23T20:42:16Z","height":4,"id":"prcl_181d074b6555405d94296d97074c945b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-23T20:42:16Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4bf3466e2a5f44179d08f5a1d37d972e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c7c2e3e3eb814cb4a183a0bf3235030a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eb6d8819fcd34b6ca7324b3842edca08","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c7358b4493411ef903bac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"id":"shp_7d9b4931a5c64189ab4ea176f797ee38","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:31Z","height":4,"id":"prcl_24de3216c6eb4d16968387857dbce5ca","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:31Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b5f592a6972c440a86e1766ddf65cda8","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_98e8c32fb55a41ec90ed4b6983c4f5f1","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8199d6b20d8c4ccca6d3ff758894710e","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:16+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c6aff87493411ef8ab4ac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-23T20:42:16+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-07-23T20:42:17Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:14:31Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_6cc7b5a55ea94a19a47a3acf7d160d27 + - /api/v2/shipments/shp_7d9b4931a5c64189ab4ea176f797ee38 Pragma: - no-cache Referrer-Policy: @@ -58,7 +58,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015a8f42f248c00230971 + - 4d57346d66ad6857f440b8c70037435c X-Frame-Options: - SAMEORIGIN X-Node: @@ -67,18 +67,18 @@ interactions: - none X-Proxied: - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq fa152d4755 X-Runtime: - - "0.360183" + - "0.275763" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"insurance":"100.00","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_c7c2e3e3eb814cb4a183a0bf3235030a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"}}' + body: '{"insurance":"100.00","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_8199d6b20d8c4ccca6d3ff758894710e","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"}}' form: {} headers: Authorization: @@ -87,25 +87,25 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_6cc7b5a55ea94a19a47a3acf7d160d27/buy + url: https://api.easypost.com/v2/shipments/shp_7d9b4931a5c64189ab4ea176f797ee38/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c6aff87493411ef8ab4ac1f6bc539aa","mode":"test","name":"ELIZABETH + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-07-23T20:42:17+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-07-23T20:42:16Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-07-23T20:42:16Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-07-23T20:42:16Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_fab3bc6bfaa74935971d426234a7c331","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-07-23T20:42:16Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_39a57ccd0d9a479c8b2f2523350d0762","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-07-23T20:42:16Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c7358b4493411ef903bac1f6bc539ae","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:14:31Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:31Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:31Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_f29c9337b9574b428694c1f16d875bf9","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:31Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_4a63466497a84e6fa00ca44e750675e7","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:31Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:16+00:00","verifications":{},"zip":"94107"},"id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","insurance":"100.00","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-23T20:42:16Z","height":4,"id":"prcl_181d074b6555405d94296d97074c945b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-23T20:42:16Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-07-23T20:42:17Z","date_advance":0,"id":"pl_8f1501c36fec439583286c9cab21538a","integrated_form":"none","label_date":"2024-07-23T20:42:17Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e80273009a826a4c758887c13bef845ee7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-07-23T20:42:18Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4bf3466e2a5f44179d08f5a1d37d972e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c7c2e3e3eb814cb4a183a0bf3235030a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eb6d8819fcd34b6ca7324b3842edca08","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c7358b4493411ef903bac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"id":"shp_7d9b4931a5c64189ab4ea176f797ee38","insurance":"100.00","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:31Z","height":4,"id":"prcl_24de3216c6eb4d16968387857dbce5ca","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:31Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:31Z","date_advance":0,"id":"pl_ad6edf672c254a059e1b4106354aab3a","integrated_form":"none","label_date":"2024-08-02T23:14:31Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e89bcfa96ba27e4d34bcaa7da448182365.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:14:32Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b5f592a6972c440a86e1766ddf65cda8","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_98e8c32fb55a41ec90ed4b6983c4f5f1","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8199d6b20d8c4ccca6d3ff758894710e","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:16+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c7c2e3e3eb814cb4a183a0bf3235030a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","updated_at":"2024-07-23T20:42:17Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-07-23T20:42:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0c6aff87493411ef8ab4ac1f6bc539aa","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8199d6b20d8c4ccca6d3ff758894710e","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","updated_at":"2024-08-02T23:14:31Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-07-23T20:42:17+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-07-23T20:42:18Z","est_delivery_date":null,"fees":[],"id":"trk_18cb4d9e1bf843fa9f9d22d30dac259f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzE4Y2I0ZDllMWJmODQzZmE5ZjlkMjJkMzBkYWMyNTlm","shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368066410129","tracking_details":[],"updated_at":"2024-07-23T20:42:18Z","weight":null},"tracking_code":"9400100110368066410129","updated_at":"2024-07-23T20:42:18Z","usps_zone":4}' + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:32Z","est_delivery_date":null,"fees":[],"id":"trk_cc9751d918fd41a480913c387683262f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NjOTc1MWQ5MThmZDQxYTQ4MDkxM2MzODc2ODMyNjJm","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070371997","tracking_details":[],"updated_at":"2024-08-02T23:14:32Z","weight":null},"tracking_code":"9400100110368070371997","updated_at":"2024-08-02T23:14:32Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -126,7 +126,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015a9f42f248c002309e3 + - 4d57346d66ad6857f440b8c70037438b X-Frame-Options: - SAMEORIGIN X-Node: @@ -134,19 +134,19 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.138500" + - "0.996169" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"amount":100,"contact_email":"test@example.com","description":"Test description","email_evidence_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"invoice_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"supporting_documentation_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"tracking_code":"9400100110368066410129","type":"damage"}' + body: '{"amount":100,"contact_email":"test@example.com","description":"Test description","email_evidence_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"invoice_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"supporting_documentation_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"tracking_code":"9400100110368070371997","type":"damage"}' form: {} headers: Authorization: @@ -158,9 +158,9 @@ interactions: url: https://api.easypost.com/v2/claims method: POST response: - body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/79703f7be53b412e82a59101887bebaa.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/16db67ee17154987a987e515a649d392.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e05074680644ed19fae211480b8a6e6.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:18","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:42:18"}],"id":"clm_097ef26a6fdd4253bdce2853c61ad62a","insurance_amount":"100.00","insurance_id":"ins_7c76fd3ec3d543b0b6fd70e194a80dc0","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:42:18","tracking_code":"9400100110368066410129","type":"damage","updated_at":"2024-07-23T20:42:18"}' + body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/c791c4f854b94b84b72f97cf17db59f9.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/9f595e23d80948cd8ae68cccf9881d48.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/cd2111904a454981897f9f1f4ff1c5b5.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:32","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T23:14:32"}],"id":"clm_097fbceada024fc4b31b5c5afb0ad15f","insurance_amount":"100.00","insurance_id":"ins_84b62fb8a9104597b82f0a72b6c9a2be","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T23:14:32","tracking_code":"9400100110368070371997","type":"damage","updated_at":"2024-08-02T23:14:32"}' headers: Cache-Control: - private, no-cache, no-store @@ -183,7 +183,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015aaf42f248c00230af7 + - 4d57346d66ad6858f440b8c700374426 X-Frame-Options: - SAMEORIGIN X-Node: @@ -191,33 +191,35 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.837222" + - "0.854936" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/claims/clm_097ef26a6fdd4253bdce2853c61ad62a/cancel + url: https://api.easypost.com/v2/claims/clm_097fbceada024fc4b31b5c5afb0ad15f/cancel method: POST response: - body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/79703f7be53b412e82a59101887bebaa.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/16db67ee17154987a987e515a649d392.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e05074680644ed19fae211480b8a6e6.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:18","description":"Test + body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/c791c4f854b94b84b72f97cf17db59f9.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/9f595e23d80948cd8ae68cccf9881d48.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/cd2111904a454981897f9f1f4ff1c5b5.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:32","description":"Test description","history":[{"status":"cancelled","status_detail":"Claim cancellation - was requested.","timestamp":"2024-07-23T20:42:19"},{"status":"submitted","status_detail":"Claim - was created.","timestamp":"2024-07-23T20:42:18"}],"id":"clm_097ef26a6fdd4253bdce2853c61ad62a","insurance_amount":"100.00","insurance_id":"ins_7c76fd3ec3d543b0b6fd70e194a80dc0","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","status":"cancelled","status_detail":"Claim - cancellation was requested.","status_timestamp":"2024-07-23T20:42:19","tracking_code":"9400100110368066410129","type":"damage","updated_at":"2024-07-23T20:42:19"}' + was requested.","timestamp":"2024-08-02T23:14:33"},{"status":"submitted","status_detail":"Claim + was created.","timestamp":"2024-08-02T23:14:32"}],"id":"clm_097fbceada024fc4b31b5c5afb0ad15f","insurance_amount":"100.00","insurance_id":"ins_84b62fb8a9104597b82f0a72b6c9a2be","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","status":"cancelled","status_detail":"Claim + cancellation was requested.","status_timestamp":"2024-08-02T23:14:33","tracking_code":"9400100110368070371997","type":"damage","updated_at":"2024-08-02T23:14:33"}' headers: Cache-Control: - private, no-cache, no-store @@ -238,20 +240,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015abf42f248c00230bcc + - 4d57346d66ad6859f440b8c7003744a5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.043492" + - "0.051494" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestClaimCreate.yaml b/tests/cassettes/TestClaimCreate.yaml index abfdc84..aaac09b 100644 --- a/tests/cassettes/TestClaimCreate.yaml +++ b/tests/cassettes/TestClaimCreate.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0defefdb493411ef8537ac1f6bc53342","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-23T20:42:19+00:00","verifications":{},"zip":"90277"},"created_at":"2024-07-23T20:42:19Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-07-23T20:42:19Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-07-23T20:42:19Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_e21dfec76f5e4d3788be429d14e82fdf","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-07-23T20:42:19Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_ae9d12d6a5bd433ab4a93b124ae954a9","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-07-23T20:42:19Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0df23eb7493411ef8b5cac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:14:33Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:33Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:33Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_17c99f74bf62409a95aa697c9ccc925d","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:33Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_aa1dfd2b73db4c878d432b045c07f77c","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:33Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:19+00:00","verifications":{},"zip":"94107"},"id":"shp_e9185d362b37476db2b7631f9324384f","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-23T20:42:19Z","height":4,"id":"prcl_3ce027fbcb1d41bda5a26bf6602a3611","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-23T20:42:19Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3405664615754d1dbd4f595097b41353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5bd506fef55548c0a32b89c3470ab96d","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_05b9f2eba0e5464e927f7a9ef9e577bf","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0df23eb7493411ef8b5cac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"id":"shp_589db68882e24ee5815a68f3e6b8cf02","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:33Z","height":4,"id":"prcl_d5f39c4a89bd41bd9d724028ac72b657","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:33Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eca79d51d7ac4da7ad7984a64a7e2ea9","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ed18d4c602894eb2bd22387a8173b1ab","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e41726e4d3804bc38da37c01750cae3a","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:19+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0defefdb493411ef8537ac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-23T20:42:19+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-07-23T20:42:19Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:14:33Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_e9185d362b37476db2b7631f9324384f + - /api/v2/shipments/shp_589db68882e24ee5815a68f3e6b8cf02 Pragma: - no-cache Referrer-Policy: @@ -58,27 +58,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015abf42f248c00230bdd + - 4d57346d66ad6859f440b8c7003744b2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.321032" + - "0.265804" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"insurance":"100.00","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_3405664615754d1dbd4f595097b41353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"}}' + body: '{"insurance":"100.00","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ed18d4c602894eb2bd22387a8173b1ab","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"}}' form: {} headers: Authorization: @@ -87,25 +87,25 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_e9185d362b37476db2b7631f9324384f/buy + url: https://api.easypost.com/v2/shipments/shp_589db68882e24ee5815a68f3e6b8cf02/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0defefdb493411ef8537ac1f6bc53342","mode":"test","name":"ELIZABETH + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-07-23T20:42:19+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-07-23T20:42:19Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-07-23T20:42:19Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-07-23T20:42:19Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_e21dfec76f5e4d3788be429d14e82fdf","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-07-23T20:42:19Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_ae9d12d6a5bd433ab4a93b124ae954a9","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-07-23T20:42:19Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0df23eb7493411ef8b5cac1f6bc539aa","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:33+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:14:33Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:33Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:33Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_17c99f74bf62409a95aa697c9ccc925d","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:33Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_aa1dfd2b73db4c878d432b045c07f77c","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:33Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:19+00:00","verifications":{},"zip":"94107"},"id":"shp_e9185d362b37476db2b7631f9324384f","insurance":"100.00","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-23T20:42:19Z","height":4,"id":"prcl_3ce027fbcb1d41bda5a26bf6602a3611","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-23T20:42:19Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-07-23T20:42:20Z","date_advance":0,"id":"pl_64ecd438e8e44506a00dd5b3458f4d25","integrated_form":"none","label_date":"2024-07-23T20:42:20Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e89bdbac2a1573427785f43408fb3747ff.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-07-23T20:42:20Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3405664615754d1dbd4f595097b41353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5bd506fef55548c0a32b89c3470ab96d","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_05b9f2eba0e5464e927f7a9ef9e577bf","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:19Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0df23eb7493411ef8b5cac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"id":"shp_589db68882e24ee5815a68f3e6b8cf02","insurance":"100.00","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:33Z","height":4,"id":"prcl_d5f39c4a89bd41bd9d724028ac72b657","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:33Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:34Z","date_advance":0,"id":"pl_98649637ff5e40c7af55bab0424829d7","integrated_form":"none","label_date":"2024-08-02T23:14:34Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8af4a72a3bac144359db76a0eb84be20c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:14:34Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eca79d51d7ac4da7ad7984a64a7e2ea9","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ed18d4c602894eb2bd22387a8173b1ab","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e41726e4d3804bc38da37c01750cae3a","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:33Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:19+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3405664615754d1dbd4f595097b41353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","updated_at":"2024-07-23T20:42:20Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-07-23T20:42:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0defefdb493411ef8537ac1f6bc53342","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ed18d4c602894eb2bd22387a8173b1ab","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","updated_at":"2024-08-02T23:14:34Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-07-23T20:42:19+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-07-23T20:42:20Z","est_delivery_date":null,"fees":[],"id":"trk_cfb101ec4b5749c1a396668725ff264f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NmYjEwMWVjNGI1NzQ5YzFhMzk2NjY4NzI1ZmYyNjRm","shipment_id":"shp_e9185d362b37476db2b7631f9324384f","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368066410143","tracking_details":[],"updated_at":"2024-07-23T20:42:20Z","weight":null},"tracking_code":"9400100110368066410143","updated_at":"2024-07-23T20:42:20Z","usps_zone":4}' + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:33+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:34Z","est_delivery_date":null,"fees":[],"id":"trk_63a5e289d607458a887ae942f07f5231","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYzYTVlMjg5ZDYwNzQ1OGE4ODdhZTk0MmYwN2Y1MjMx","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372000","tracking_details":[],"updated_at":"2024-08-02T23:14:34Z","weight":null},"tracking_code":"9400100110368070372000","updated_at":"2024-08-02T23:14:34Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -126,27 +126,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015abf42f248c00230c36 + - 4d57346d66ad6859f440b8c7003744e3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq fa152d4755 X-Runtime: - - "0.988077" + - "1.084595" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"amount":100,"contact_email":"test@example.com","description":"Test description","email_evidence_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"invoice_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"supporting_documentation_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"tracking_code":"9400100110368066410143","type":"damage"}' + body: '{"amount":100,"contact_email":"test@example.com","description":"Test description","email_evidence_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"invoice_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"supporting_documentation_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"tracking_code":"9400100110368070372000","type":"damage"}' form: {} headers: Authorization: @@ -158,9 +158,9 @@ interactions: url: https://api.easypost.com/v2/claims method: POST response: - body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/8127cfe6e9854efd8c1aad5a2f7a2fb4.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2767b29020094c5d8db6467c0948aff8.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4efc841619c94902ab7d7e60a616df42.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:20","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:42:20"}],"id":"clm_097ecf98b9d44601971f2a57e34457f6","insurance_amount":"100.00","insurance_id":"ins_431ead6b13a6488789161935a18811b9","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_e9185d362b37476db2b7631f9324384f","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:42:20","tracking_code":"9400100110368066410143","type":"damage","updated_at":"2024-07-23T20:42:20"}' + body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/37018247af1c4db5bf530461fdb16a99.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/2ce44a1ec77f402ca2cec6e84c90f836.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/166c1c8570604489a83130bc7b57eeb3.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:35","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T23:14:35"}],"id":"clm_097fc5a2147b4448bc482a92a33217f8","insurance_amount":"100.00","insurance_id":"ins_5ae9a272413d4d5faf9cdde11cb2ba5d","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T23:14:35","tracking_code":"9400100110368070372000","type":"damage","updated_at":"2024-08-02T23:14:35"}' headers: Cache-Control: - private, no-cache, no-store @@ -176,27 +176,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015acf42f248c00230d25 + - 4d57346d66ad685af440b8c70037456a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.815223" + - "0.875659" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestClaimGetNextPage.yaml b/tests/cassettes/TestClaimGetNextPage.yaml index d2ede2e..53676b1 100644 --- a/tests/cassettes/TestClaimGetNextPage.yaml +++ b/tests/cassettes/TestClaimGetNextPage.yaml @@ -2,31 +2,94 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED + User-Agent: + - REDACTED + url: https://api.easypost.com/v2/claims?page_size=5 + method: GET + response: + body: '{"claims":[{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/37018247af1c4db5bf530461fdb16a99.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/2ce44a1ec77f402ca2cec6e84c90f836.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/166c1c8570604489a83130bc7b57eeb3.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:35","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T23:14:35"}],"id":"clm_097fc5a2147b4448bc482a92a33217f8","insurance_amount":"100.00","insurance_id":"ins_5ae9a272413d4d5faf9cdde11cb2ba5d","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T23:14:35","tracking_code":"9400100110368070372000","type":"damage","updated_at":"2024-08-02T23:14:35"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/c791c4f854b94b84b72f97cf17db59f9.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/9f595e23d80948cd8ae68cccf9881d48.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/cd2111904a454981897f9f1f4ff1c5b5.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:32","description":"Test + description","history":[{"status":"cancelled","status_detail":"Claim cancellation + was requested.","timestamp":"2024-08-02T23:14:33"},{"status":"submitted","status_detail":"Claim + was created.","timestamp":"2024-08-02T23:14:32"}],"id":"clm_097fbceada024fc4b31b5c5afb0ad15f","insurance_amount":"100.00","insurance_id":"ins_84b62fb8a9104597b82f0a72b6c9a2be","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","status":"cancelled","status_detail":"Claim + cancellation was requested.","status_timestamp":"2024-08-02T23:14:33","tracking_code":"9400100110368070371997","type":"damage","updated_at":"2024-08-02T23:14:33"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/03fa7c1303304b099e0b4e4551557a84.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/35788336780b43fa89d2b0f6d5d0b000.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/52bc5e6539b443e9a99fe68002be9309.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T22:12:53","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T22:12:53"}],"id":"clm_097f755883d04405a198fbb96309c3c7","insurance_amount":"100.00","insurance_id":"ins_db03e42beb00436faa77c45f9a725574","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_d38c9ce34866470188c66d6e2b34c0c0","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T22:12:53","tracking_code":"9400100110368070361691","type":"damage","updated_at":"2024-08-02T22:12:53"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/ce5b22efdb164769b4bd862bbea9424d.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/2bfe7b7931a745a39b98770cc91a8590.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/605ff80074784ed9916e8bee6bc4ed70.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T22:12:50","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T22:12:50"}],"id":"clm_097fff597f1a4528b84d4523a3cb2d92","insurance_amount":"100.00","insurance_id":"ins_3cd0fb317071401a96207b0d2a9fee9c","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_31bf3e5b4037499db22843da305b5716","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T22:12:50","tracking_code":"9400100110368070361660","type":"damage","updated_at":"2024-08-02T22:12:50"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/fffb03a39c5f48c5852137ce192d57fd.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/ba2350f66d3c40b1ae914a54fbb8f013.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/e05e10e28b964ff5a14fcb3240ffd2e8.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T22:12:48","description":"Test + description","history":[{"status":"cancelled","status_detail":"Claim cancellation + was requested.","timestamp":"2024-08-02T22:12:49"},{"status":"submitted","status_detail":"Claim + was created.","timestamp":"2024-08-02T22:12:48"}],"id":"clm_097fa3774bc148cda6beb673810064e5","insurance_amount":"100.00","insurance_id":"ins_8acc4665ce824763a9c7a13fc2936ae6","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_5717c87d9c3746709c0c77243d24a4bb","status":"cancelled","status_detail":"Claim + cancellation was requested.","status_timestamp":"2024-08-02T22:12:49","tracking_code":"9400100110368070361653","type":"damage","updated_at":"2024-08-02T22:12:49"}],"has_more":true}' + headers: + Cache-Control: + - private, no-cache, no-store Content-Type: - - application/x-www-form-urlencoded + - application/json; charset=utf-8 + Expires: + - "0" + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Backend: + - easypost + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Ep-Request-Uuid: + - 4d57346d66ad685bf440b8c7003745e1 + X-Frame-Options: + - SAMEORIGIN + X-Node: + - bigweb38nuq + X-Permitted-Cross-Domain-Policies: + - none + X-Proxied: + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 + X-Runtime: + - "0.050397" + X-Version-Label: + - easypost-202408021936-66687f8918-master + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Authorization: + - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/claims + url: https://api.easypost.com/v2/claims?before_id=clm_097fa3774bc148cda6beb673810064e5&page_size=5 method: GET response: - body: '{"claims":[{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/8127cfe6e9854efd8c1aad5a2f7a2fb4.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2767b29020094c5d8db6467c0948aff8.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4efc841619c94902ab7d7e60a616df42.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:20","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:42:20"}],"id":"clm_097ecf98b9d44601971f2a57e34457f6","insurance_amount":"100.00","insurance_id":"ins_431ead6b13a6488789161935a18811b9","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_e9185d362b37476db2b7631f9324384f","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:42:20","tracking_code":"9400100110368066410143","type":"damage","updated_at":"2024-07-23T20:42:20"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/79703f7be53b412e82a59101887bebaa.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/16db67ee17154987a987e515a649d392.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4e05074680644ed19fae211480b8a6e6.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:18","description":"Test + body: '{"claims":[{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/7a71dd377af0486db08317356a37da79.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/5693a7cba59848e09661f245f9badee7.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/bfa34d01bf91459b8712bb99bf965537.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T20:00:09","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-26T20:00:09"}],"id":"clm_097e5f4fa5894c65ac5d84626ef4d7b7","insurance_amount":"100.00","insurance_id":"ins_6ce1eb789ba948219412bd84f486a174","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_0555917f55e54481902aab72652017b1","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-07-26T20:00:09","tracking_code":"9400100110368067715445","type":"damage","updated_at":"2024-07-26T20:00:09"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/152b9d9e212e44e89522fa963b32f503.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/084d8be2f7bf41b7bf75726d238c4420.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/0e1a5663b16247afb0ced9380e9d2ffb.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T20:00:06","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-26T20:00:06"}],"id":"clm_097ed2360026469a8edd5d2b70344051","insurance_amount":"100.00","insurance_id":"ins_c3b9cd64c4f1434894975ffc43d67bee","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_88f7e8da25ac4709acad86058e5b25eb","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-07-26T20:00:06","tracking_code":"9400100110368067715438","type":"damage","updated_at":"2024-07-26T20:00:06"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/ec506c565e0043b884f0540b243d61ae.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/ed7e806c5a8b48b08357d1604f4b942b.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/f3e1e2d797604634850c7f599cdfe9b8.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T20:00:04","description":"Test description","history":[{"status":"cancelled","status_detail":"Claim cancellation - was requested.","timestamp":"2024-07-23T20:42:19"},{"status":"submitted","status_detail":"Claim - was created.","timestamp":"2024-07-23T20:42:18"}],"id":"clm_097ef26a6fdd4253bdce2853c61ad62a","insurance_amount":"100.00","insurance_id":"ins_7c76fd3ec3d543b0b6fd70e194a80dc0","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_6cc7b5a55ea94a19a47a3acf7d160d27","status":"cancelled","status_detail":"Claim - cancellation was requested.","status_timestamp":"2024-07-23T20:42:19","tracking_code":"9400100110368066410129","type":"damage","updated_at":"2024-07-23T20:42:19"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/c44df5462b774c0c977f87e3b60d2b01.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/80738b455dea42658a66a250c40d9aba.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/ee68a27ae3854ca5bd17f0752fa81ddf.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:28:59","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:28:59"}],"id":"clm_097e5796aa404ad4992781722224dcea","insurance_amount":"100.00","insurance_id":"ins_b004dab680bb4251abe5888de3bc4d07","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_ec517502568a4cb79d4af314dd16faa1","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:28:59","tracking_code":"9400100110368066408089","type":"damage","updated_at":"2024-07-23T20:28:59"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2170a351b74540d38ad04ba465d6daf9.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4ae21037c02f4e0f90e3e6bf0511c429.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/c910f338b6c9465f8023780002296673.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:28:57","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:28:57"}],"id":"clm_097e3dc1ade44a61b22c27e85d377fec","insurance_amount":"100.00","insurance_id":"ins_a82753192b544bd79ee19d0c22dabff6","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_f9de24018a77456e95a1e5efcbb050fb","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:28:57","tracking_code":"9400100110368066408065","type":"damage","updated_at":"2024-07-23T20:28:57"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9d36dfc0ae1b408893c33aa3fb76baeb.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/03390ff136a14600bf90a01aeed7482b.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/1666429034d24286aa46862ec3379c55.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:28:55","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:28:55"}],"id":"clm_097e083764974c80ab79ff8dbad6f337","insurance_amount":"100.00","insurance_id":"ins_98ffb9130f2945ebbeb57051a54aae5b","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_eceec0522e8244c68ca3ae686e21c244","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:28:55","tracking_code":"9400100110368066408058","type":"damage","updated_at":"2024-07-23T20:28:55"}],"has_more":false}' + was requested.","timestamp":"2024-07-26T20:00:05"},{"status":"submitted","status_detail":"Claim + was created.","timestamp":"2024-07-26T20:00:04"}],"id":"clm_097e3acfd0674ebe99361155bf245808","insurance_amount":"100.00","insurance_id":"ins_98e3d7ee8d9d44b08187d53807e2b9cc","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_01122c6fca1040dab67ad5d14e712edd","status":"cancelled","status_detail":"Claim + cancellation was requested.","status_timestamp":"2024-07-26T20:00:05","tracking_code":"9400100110368067715414","type":"damage","updated_at":"2024-07-26T20:00:05"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/564ab105c361407a83ea4857198bad8c.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/647e932b0a3e4e44ba23dd08e6946754.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/39b4f705dec74de1aa665a823b743cec.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T19:34:24","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-26T19:34:24"}],"id":"clm_097e250fb3794969aebe10b6f5381a78","insurance_amount":"100.00","insurance_id":"ins_eb2733461f71472ab36293a6486619f8","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_46c5cb016268483793c9c11251baddd2","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-07-26T19:34:24","tracking_code":"9400100110368067708874","type":"damage","updated_at":"2024-07-26T19:34:24"},{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/8c702932d54944e8992185fe46335ed2.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/6dd39aec6142458bb46a15cd422babd8.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240726/3923b412609f434fa400f35173934099.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-26T19:34:21","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-26T19:34:21"}],"id":"clm_097e0eec61b04d1a8088eefdf491411d","insurance_amount":"100.00","insurance_id":"ins_a83ea276afd44bdd800f12b7e7548e9b","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_a959398bff8d4c32846df08a9df494e3","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-07-26T19:34:21","tracking_code":"9400100110368067708829","type":"damage","updated_at":"2024-07-26T19:34:21"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -42,25 +105,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015adf42f248c00230dc6 + - 4d57346d66ad685bf440b8c7003745f4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq fa152d4755 X-Runtime: - - "0.049707" + - "0.056129" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestClaimRetrieve.yaml b/tests/cassettes/TestClaimRetrieve.yaml index 278dc1d..c368945 100644 --- a/tests/cassettes/TestClaimRetrieve.yaml +++ b/tests/cassettes/TestClaimRetrieve.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f58de86493411ef85b3ac1f6bc53342","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-23T20:42:21+00:00","verifications":{},"zip":"90277"},"created_at":"2024-07-23T20:42:21Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-07-23T20:42:21Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-07-23T20:42:21Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_9e25f535cfe84252bf8d120c692c5cbe","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-07-23T20:42:21Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_c2848f5bd0b4452f814b428b07d16533","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-07-23T20:42:21Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f5a9f28493411efbc613cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:14:36Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:36Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:36Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_f5bf2600a96940bdb0e7e58d7819b49a","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:36Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_5126a41fab3740ea90390bc44b1720fe","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:36Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:21+00:00","verifications":{},"zip":"94107"},"id":"shp_9fa021a939f742f49192af14edbfbe5c","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-23T20:42:21Z","height":4,"id":"prcl_b7339d9ca8d141039d8da7953ce95557","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-23T20:42:21Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dcb3f4b5be4a46d2ad42a9be4ca8f2bb","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_44b0d2c8bc214819adc7da90ffdc0824","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_30779544ad514ffaa9365b3d186c5c18","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f5a9f28493411efbc613cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:36Z","height":4,"id":"prcl_48ea7adc21df4446a6154ba965cc4c7d","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:36Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_38fe174fec0843459469a50c7ffe692f","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_64d18c13a3c3449baacf1944721e13c4","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ea3343e49d4545d5bb6c7ad4fc2c97a8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:21+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f58de86493411ef85b3ac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-23T20:42:21+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-07-23T20:42:21Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:14:36Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_9fa021a939f742f49192af14edbfbe5c + - /api/v2/shipments/shp_d4f8721ace0d45e89483ac2d7e7778d4 Pragma: - no-cache Referrer-Policy: @@ -58,27 +58,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015adf42f248c00230dde + - 4d57346d66ad685cf440b8c700374601 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.301259" + - "0.280606" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"insurance":"100.00","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_30779544ad514ffaa9365b3d186c5c18","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"}}' + body: '{"insurance":"100.00","rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ea3343e49d4545d5bb6c7ad4fc2c97a8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"}}' form: {} headers: Authorization: @@ -87,25 +87,25 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_9fa021a939f742f49192af14edbfbe5c/buy + url: https://api.easypost.com/v2/shipments/shp_d4f8721ace0d45e89483ac2d7e7778d4/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f58de86493411ef85b3ac1f6bc53342","mode":"test","name":"ELIZABETH + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-07-23T20:42:22+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-07-23T20:42:21Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-07-23T20:42:21Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-07-23T20:42:21Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_9e25f535cfe84252bf8d120c692c5cbe","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-07-23T20:42:21Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_c2848f5bd0b4452f814b428b07d16533","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-07-23T20:42:21Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f5a9f28493411efbc613cecef1b359e","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:14:36Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:36Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:36Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_f5bf2600a96940bdb0e7e58d7819b49a","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:36Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_5126a41fab3740ea90390bc44b1720fe","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:36Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:21+00:00","verifications":{},"zip":"94107"},"id":"shp_9fa021a939f742f49192af14edbfbe5c","insurance":"100.00","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-23T20:42:21Z","height":4,"id":"prcl_b7339d9ca8d141039d8da7953ce95557","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-23T20:42:21Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-07-23T20:42:22Z","date_advance":0,"id":"pl_50111bc1aba54d71ae1f1837eed17cf1","integrated_form":"none","label_date":"2024-07-23T20:42:22Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240723/e874523393f1b24e998fbe774fbd5a48f8.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-07-23T20:42:22Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dcb3f4b5be4a46d2ad42a9be4ca8f2bb","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_44b0d2c8bc214819adc7da90ffdc0824","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_30779544ad514ffaa9365b3d186c5c18","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:21Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f5a9f28493411efbc613cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","insurance":"100.00","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:36Z","height":4,"id":"prcl_48ea7adc21df4446a6154ba965cc4c7d","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:36Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:36Z","date_advance":0,"id":"pl_1a4b3fca4fbc4e369b4ef4b081fc6f94","integrated_form":"none","label_date":"2024-08-02T23:14:36Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8eb30b6e1880e41518cafbb32ad82e9f8.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:14:37Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_38fe174fec0843459469a50c7ffe692f","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_64d18c13a3c3449baacf1944721e13c4","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ea3343e49d4545d5bb6c7ad4fc2c97a8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-23T20:42:21+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-23T20:42:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_30779544ad514ffaa9365b3d186c5c18","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","updated_at":"2024-07-23T20:42:22Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-07-23T20:42:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f58de86493411ef85b3ac1f6bc53342","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ea3343e49d4545d5bb6c7ad4fc2c97a8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","updated_at":"2024-08-02T23:14:36Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-07-23T20:42:22+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-07-23T20:42:22Z","est_delivery_date":null,"fees":[],"id":"trk_685d45b64d6c425990496424f6fb59bd","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY4NWQ0NWI2NGQ2YzQyNTk5MDQ5NjQyNGY2ZmI1OWJk","shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368066410150","tracking_details":[],"updated_at":"2024-07-23T20:42:22Z","weight":null},"tracking_code":"9400100110368066410150","updated_at":"2024-07-23T20:42:22Z","usps_zone":4}' + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:37Z","est_delivery_date":null,"fees":[],"id":"trk_ba7fb165db3f4807af4b90c95a798d98","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JhN2ZiMTY1ZGIzZjQ4MDdhZjRiOTBjOTVhNzk4ZDk4","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372017","tracking_details":[],"updated_at":"2024-08-02T23:14:37Z","weight":null},"tracking_code":"9400100110368070372017","updated_at":"2024-08-02T23:14:37Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -126,27 +126,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015adf42f248c00230e31 + - 4d57346d66ad685cf440b8c70037462a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb3nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - extlb2nuq fa152d4755 X-Runtime: - - "0.898736" + - "1.032070" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"amount":100,"contact_email":"test@example.com","description":"Test description","email_evidence_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"invoice_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"supporting_documentation_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"tracking_code":"9400100110368066410150","type":"damage"}' + body: '{"amount":100,"contact_email":"test@example.com","description":"Test description","email_evidence_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"invoice_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"supporting_documentation_attachments":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="],"tracking_code":"9400100110368070372017","type":"damage"}' form: {} headers: Authorization: @@ -158,9 +158,9 @@ interactions: url: https://api.easypost.com/v2/claims method: POST response: - body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/a286dceba155434d9c8236be77041569.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f5e694f03dec4b95be379d716f5cb5cb.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/c75f8f4d64a548aa8891724d4eb27d11.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:22","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:42:22"}],"id":"clm_097e094345d74d319a9f252c072e824d","insurance_amount":"100.00","insurance_id":"ins_d25fcb11efcf4f44a1120b527c7c360b","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:42:22","tracking_code":"9400100110368066410150","type":"damage","updated_at":"2024-07-23T20:42:22"}' + body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/533ab48c89b24595b9a2bac708bafc12.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/8ac6c3d3f45c416184a6b0bbdab8b80d.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/b8bac428d8f84acf9de3feecfbfcecce.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:37","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T23:14:37"}],"id":"clm_097f50f902c34e019e381eaf0938f00c","insurance_amount":"100.00","insurance_id":"ins_7c77e8db3dbf49568bd0f32688f713e9","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T23:14:37","tracking_code":"9400100110368070372017","type":"damage","updated_at":"2024-08-02T23:14:37"}' headers: Cache-Control: - private, no-cache, no-store @@ -181,20 +181,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015aef42f248c00230f31 + - 4d57346d66ad685df440b8c7003746b3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.752850" + - "0.760822" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -208,12 +208,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/claims/clm_097e094345d74d319a9f252c072e824d + url: https://api.easypost.com/v2/claims/clm_097f50f902c34e019e381eaf0938f00c method: GET response: - body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/a286dceba155434d9c8236be77041569.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/f5e694f03dec4b95be379d716f5cb5cb.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/c75f8f4d64a548aa8891724d4eb27d11.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-07-23T20:42:22","description":"Test - description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-07-23T20:42:22"}],"id":"clm_097e094345d74d319a9f252c072e824d","insurance_amount":"100.00","insurance_id":"ins_d25fcb11efcf4f44a1120b527c7c360b","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_9fa021a939f742f49192af14edbfbe5c","status":"submitted","status_detail":"Claim - was created.","status_timestamp":"2024-07-23T20:42:22","tracking_code":"9400100110368066410150","type":"damage","updated_at":"2024-07-23T20:42:22"}' + body: '{"approved_amount":null,"attachments":["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/533ab48c89b24595b9a2bac708bafc12.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/8ac6c3d3f45c416184a6b0bbdab8b80d.png","https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240802/b8bac428d8f84acf9de3feecfbfcecce.png"],"check_delivery_address":null,"contact_email":"test@example.com","created_at":"2024-08-02T23:14:37","description":"Test + description","history":[{"status":"submitted","status_detail":"Claim was created.","timestamp":"2024-08-02T23:14:37"}],"id":"clm_097f50f902c34e019e381eaf0938f00c","insurance_amount":"100.00","insurance_id":"ins_7c77e8db3dbf49568bd0f32688f713e9","mode":"test","object":"Claim","payment_method":"easypost_wallet","recipient_name":null,"requested_amount":"100.00","salvage_value":null,"shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","status":"submitted","status_detail":"Claim + was created.","status_timestamp":"2024-08-02T23:14:37","tracking_code":"9400100110368070372017","type":"damage","updated_at":"2024-08-02T23:14:37"}' headers: Cache-Control: - private, no-cache, no-store @@ -236,20 +236,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 98f5faea66a015aff42f248c0023100a + - 4d57346d66ad685ef440b8c700374727 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.034222" + - "0.040751" X-Version-Label: - - easypost-202407231832-14d334dc13-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCustomsInfoCreate.yaml b/tests/cassettes/TestCustomsInfoCreate.yaml index d4981ea..78c2f6f 100644 --- a/tests/cassettes/TestCustomsInfoCreate.yaml +++ b/tests/cassettes/TestCustomsInfoCreate.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/customs_infos method: POST response: - body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:10:44Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:10:44Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_9aa4f98ef8fc44cfa71a35983afe605c","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:10:44Z","value":"23.25","weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_1da23b28c0564628b9dd88539f0ef024","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:10:44Z"}' + body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:38Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:38Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_3372853612824fc994650e882c274ad2","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:38Z","value":"23.25","weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_95bd796170a44836968e98d163135536","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:38Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/customs_infos/cstinfo_1da23b28c0564628b9dd88539f0ef024 + - /api/v2/customs_infos/cstinfo_95bd796170a44836968e98d163135536 Pragma: - no-cache Referrer-Policy: @@ -36,25 +36,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec44e7896122001b4db0 + - 4d57346d66ad685ef440b8c700374732 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.048011" + - "0.041790" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestCustomsInfoRetrieve.yaml b/tests/cassettes/TestCustomsInfoRetrieve.yaml index ffaa892..0ec9afd 100644 --- a/tests/cassettes/TestCustomsInfoRetrieve.yaml +++ b/tests/cassettes/TestCustomsInfoRetrieve.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/customs_infos method: POST response: - body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:10:44Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:10:44Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_2fa92a886d7a42f7952ca57a2369d2de","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:10:44Z","value":"23.25","weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_b13f0e00933f42acb96b356d371ae914","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:10:44Z"}' + body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:38Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:38Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_c4818ce249ae428cb9bea43cecd7ec57","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:38Z","value":"23.25","weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_437c2569f68d4fb28f0dced564bee68d","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:38Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/customs_infos/cstinfo_b13f0e00933f42acb96b356d371ae914 + - /api/v2/customs_infos/cstinfo_437c2569f68d4fb28f0dced564bee68d Pragma: - no-cache Referrer-Policy: @@ -41,7 +41,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec44e7896122001b4dd6 + - 4d57346d66ad685ef440b8c700374741 X-Frame-Options: - SAMEORIGIN X-Node: @@ -49,12 +49,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.043059" + - "0.041928" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -68,12 +68,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/customs_infos/cstinfo_b13f0e00933f42acb96b356d371ae914 + url: https://api.easypost.com/v2/customs_infos/cstinfo_437c2569f68d4fb28f0dced564bee68d method: GET response: - body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:10:44Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:10:44Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_2fa92a886d7a42f7952ca57a2369d2de","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:10:44Z","value":"23.25","weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_b13f0e00933f42acb96b356d371ae914","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:10:44Z"}' + body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:14:38Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:14:38Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_c4818ce249ae428cb9bea43cecd7ec57","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:38Z","value":"23.25","weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_437c2569f68d4fb28f0dced564bee68d","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:14:38Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -94,20 +94,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec44e7896122001b4dfc + - 4d57346d66ad685ef440b8c70037474f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.024851" + - "0.025220" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCustomsItemCreate.yaml b/tests/cassettes/TestCustomsItemCreate.yaml index d70dd60..e449121 100644 --- a/tests/cassettes/TestCustomsItemCreate.yaml +++ b/tests/cassettes/TestCustomsItemCreate.yaml @@ -14,8 +14,8 @@ interactions: url: https://api.easypost.com/v2/customs_items method: POST response: - body: '{"code":null,"created_at":"2023-11-30T20:10:45Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_35735bf6818049179b16a610ab2af362","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:10:45Z","value":"23.25","weight":11}' + body: '{"code":null,"created_at":"2024-08-02T23:14:38Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_0e5a83bd8c3f415490289a627e170586","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:38Z","value":"23.25","weight":11}' headers: Cache-Control: - private, no-cache, no-store @@ -24,7 +24,7 @@ interactions: Expires: - "0" Location: - - /api/v2/customs_items/cstitem_35735bf6818049179b16a610ab2af362 + - /api/v2/customs_items/cstitem_0e5a83bd8c3f415490289a627e170586 Pragma: - no-cache Referrer-Policy: @@ -33,27 +33,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec44e7896122001b4e1d + - 4d57346d66ad685ef440b8c700374755 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.049426" + - "0.034776" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestCustomsItemRetrieve.yaml b/tests/cassettes/TestCustomsItemRetrieve.yaml index 09cb618..7d0202e 100644 --- a/tests/cassettes/TestCustomsItemRetrieve.yaml +++ b/tests/cassettes/TestCustomsItemRetrieve.yaml @@ -14,8 +14,8 @@ interactions: url: https://api.easypost.com/v2/customs_items method: POST response: - body: '{"code":null,"created_at":"2023-11-30T20:10:45Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_b9cd231485904a74ac735e6c6d65b293","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:10:45Z","value":"23.25","weight":11}' + body: '{"code":null,"created_at":"2024-08-02T23:14:38Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_b44faecad5044205a5dc2941ea80e7cf","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:38Z","value":"23.25","weight":11}' headers: Cache-Control: - private, no-cache, no-store @@ -24,7 +24,7 @@ interactions: Expires: - "0" Location: - - /api/v2/customs_items/cstitem_b9cd231485904a74ac735e6c6d65b293 + - /api/v2/customs_items/cstitem_b44faecad5044205a5dc2941ea80e7cf Pragma: - no-cache Referrer-Policy: @@ -38,7 +38,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec45e7896122001b4e4b + - 4d57346d66ad685ef440b8c700374762 X-Frame-Options: - SAMEORIGIN X-Node: @@ -46,12 +46,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.037227" + - "0.032808" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -65,11 +65,11 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/customs_items/cstitem_b9cd231485904a74ac735e6c6d65b293 + url: https://api.easypost.com/v2/customs_items/cstitem_b44faecad5044205a5dc2941ea80e7cf method: GET response: - body: '{"code":null,"created_at":"2023-11-30T20:10:45Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_b9cd231485904a74ac735e6c6d65b293","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:10:45Z","value":"23.25","weight":11}' + body: '{"code":null,"created_at":"2024-08-02T23:14:38Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_b44faecad5044205a5dc2941ea80e7cf","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:14:38Z","value":"23.25","weight":11}' headers: Cache-Control: - private, no-cache, no-store @@ -90,20 +90,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec45e7896122001b4e6b + - 4d57346d66ad685ef440b8c700374770 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.025598" + - "0.026935" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestDateTimeJSON.yaml b/tests/cassettes/TestDateTimeJSON.yaml index 95fe093..1d8c2b9 100644 --- a/tests/cassettes/TestDateTimeJSON.yaml +++ b/tests/cassettes/TestDateTimeJSON.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb459858fbc11eea888ac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdad206f512411efb1c0ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:45+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:45Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb6776f8fbc11eeafca3cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:39+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:14:38Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdaf749e512411efa0bcac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:45+00:00","verifications":{},"zip":"90277"},"id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:10:45Z","height":4,"id":"prcl_2ce379eb2b2d413da0ba78e985ac2fc2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:10:45Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:46Z","date_advance":0,"id":"pl_35e5280039c048b38178173a30517ada","integrated_form":"none","label_date":"2023-11-30T20:10:46Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e84a4a66ce6d4b49cbae83e725688cc35e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:10:46Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6988dd1161f24d7fa30cff152fa011ff","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_84541f70a1ed41b2a252debef07461e0","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ebf8da1995d543f2996fed79bde87287","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cea98f2853554b17b8a27ff58de3d5a7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_05f35cefb0384fbaaf128b07bbac8b19","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb6776f8fbc11eeafca3cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:38+00:00","verifications":{},"zip":"90277"},"id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:38Z","height":4,"id":"prcl_27dfe39918dd4b85b5b66b9b65ee993c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:39Z","date_advance":0,"id":"pl_ddd0cd26bf65417fa0e537dcbb2fa7b8","integrated_form":"none","label_date":"2024-08-02T23:14:39Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e868826d5ace98416ab265477704f4b8b2.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:14:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_465691432ed74407bd769be5a974f790","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_082bb3ecbfeb40f8b3ad582ecad5707c","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dc107cfdc3b64ac19521a87487e48d15","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdaf749e512411efa0bcac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:45+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cea98f2853554b17b8a27ff58de3d5a7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:46Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb459858fbc11eea888ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:38+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dc107cfdc3b64ac19521a87487e48d15","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdad206f512411efb1c0ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:45+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:10:46Z","est_delivery_date":null,"fees":[],"id":"trk_791aef2d7ed349fbb48872d01a26a0c3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzc5MWFlZjJkN2VkMzQ5ZmJiNDg4NzJkMDFhMjZhMGMz","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383153","tracking_details":[],"updated_at":"2023-11-30T20:10:46Z","weight":null},"tracking_code":"9400100105442287383153","updated_at":"2023-11-30T20:10:46Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:39+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:39Z","est_delivery_date":null,"fees":[],"id":"trk_ad58e625ac494232a69e62ab1221df1b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2FkNThlNjI1YWM0OTQyMzJhNjllNjJhYjEyMjFkZjFi","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372024","tracking_details":[],"updated_at":"2024-08-02T23:14:39Z","weight":null},"tracking_code":"9400100110368070372024","updated_at":"2024-08-02T23:14:39Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_daffd8a1d1d74924a75c5a2a580d0f7b + - /api/v2/shipments/shp_6e2fc238a5f04625a7b9510f0a62c33b Pragma: - no-cache Referrer-Policy: @@ -53,20 +53,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec45e7896122001b4e8c + - 4d57346d66ad685ef440b8c700374779 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.008274" + - "1.141878" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -75,19 +75,19 @@ interactions: - request: body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2023-12-08T00:00:00Z","min_datetime":"2023-12-08T00:00:00Z","shipment":{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:45Z","email":"REDACTED","id":"adr_8bb459858fbc11eea888ac1f6bc53342","mode":"test","name":"JACK + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2024-08-14T00:00:00Z","min_datetime":"2024-08-14T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:14:38Z","email":"REDACTED","id":"adr_fdad206f512411efb1c0ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:45Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:10:45Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:45Z","email":"REDACTED","id":"adr_8bb6776f8fbc11eeafca3cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:14:39Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:14:38Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:14:38Z","email":"REDACTED","id":"adr_fdaf749e512411efa0bcac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:45Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:10:45Z","height":4,"id":"prcl_2ce379eb2b2d413da0ba78e985ac2fc2","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:10:45Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:10:46Z","id":"pl_35e5280039c048b38178173a30517ada","integrated_form":"none","label_date":"2023-11-30T20:10:46Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e84a4a66ce6d4b49cbae83e725688cc35e.png","object":"PostageLabel","updated_at":"2023-11-30T20:10:46Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","id":"rate_6988dd1161f24d7fa30cff152fa011ff","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_84541f70a1ed41b2a252debef07461e0","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ebf8da1995d543f2996fed79bde87287","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_cea98f2853554b17b8a27ff58de3d5a7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:45Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_05f35cefb0384fbaaf128b07bbac8b19","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:45Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:10:45Z","email":"REDACTED","id":"adr_8bb6776f8fbc11eeafca3cecef1b359e","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:14:38Z","verifications":{},"zip":"90277"},"id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:14:38Z","height":4,"id":"prcl_27dfe39918dd4b85b5b66b9b65ee993c","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:14:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:39Z","id":"pl_ddd0cd26bf65417fa0e537dcbb2fa7b8","integrated_form":"none","label_date":"2024-08-02T23:14:39Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e868826d5ace98416ab265477704f4b8b2.png","object":"PostageLabel","updated_at":"2024-08-02T23:14:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_465691432ed74407bd769be5a974f790","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_082bb3ecbfeb40f8b3ad582ecad5707c","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_dc107cfdc3b64ac19521a87487e48d15","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:14:38Z","email":"REDACTED","id":"adr_fdaf749e512411efa0bcac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:10:45Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:10:46Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_cea98f2853554b17b8a27ff58de3d5a7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","updated_at":"2023-11-30T20:10:46Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:10:45Z","email":"REDACTED","id":"adr_8bb459858fbc11eea888ac1f6bc53342","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:14:38Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:39Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_dc107cfdc3b64ac19521a87487e48d15","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","updated_at":"2024-08-02T23:14:39Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:14:38Z","email":"REDACTED","id":"adr_fdad206f512411efb1c0ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:10:45Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:10:46Z","id":"trk_791aef2d7ed349fbb48872d01a26a0c3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzc5MWFlZjJkN2VkMzQ5ZmJiNDg4NzJkMDFhMjZhMGMz","shipment_id":"shp_daffd8a1d1d74924a75c5a2a580d0f7b","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383153","updated_at":"2023-11-30T20:10:46Z"},"tracking_code":"9400100105442287383153","updated_at":"2023-11-30T20:10:46Z","usps_zone":4}}}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:14:39Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:14:39Z","id":"trk_ad58e625ac494232a69e62ab1221df1b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2FkNThlNjI1YWM0OTQyMzJhNjllNjJhYjEyMjFkZjFi","shipment_id":"shp_6e2fc238a5f04625a7b9510f0a62c33b","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372024","updated_at":"2024-08-02T23:14:39Z"},"tracking_code":"9400100110368070372024","updated_at":"2024-08-02T23:14:39Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -99,10 +99,10 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fe631eb4512411efb1393cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:10:46Z","id":"pickup_9414b16274fa4f52ba78736996430609","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:10:48Z","currency":"USD","id":"pickuprate_b78dc388c6d544b68b536a4260921049","mode":"test","object":"PickupRate","pickup_id":"pickup_9414b16274fa4f52ba78736996430609","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:10:48Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:10:46Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:40+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:14:40Z","id":"pickup_20f7e8966b634b9da952c2ff095fd72a","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:14:42Z","currency":"USD","id":"pickuprate_32f8763f44e843a3bb3e8145a4d97551","mode":"test","object":"PickupRate","pickup_id":"pickup_20f7e8966b634b9da952c2ff095fd72a","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:14:42Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:14:40Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -118,27 +118,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec46e7896122001b4f90 + - 4d57346d66ad685ff440b8c700374819 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.846310" + - "2.414327" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEndShipperAll.yaml b/tests/cassettes/TestEndShipperAll.yaml index c69e0c5..88eab6d 100644 --- a/tests/cassettes/TestEndShipperAll.yaml +++ b/tests/cassettes/TestEndShipperAll.yaml @@ -2,16 +2,14 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/end_shippers + url: https://api.easypost.com/v2/end_shippers?page_size=5 method: GET response: body: '{"end_shippers":[{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T15:54:21+00:00","email":"REDACTED","id":"es_b4d6563ab66249fa8b02c0e820bf9745","mode":"test","name":"JACK @@ -44,25 +42,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec48e7896122001b5193 + - 4d57346d66ad6862f440b8c700374965 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.132843" + - "0.136606" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEndShipperCreate.yaml b/tests/cassettes/TestEndShipperCreate.yaml index d974ac1..401c15e 100644 --- a/tests/cassettes/TestEndShipperCreate.yaml +++ b/tests/cassettes/TestEndShipperCreate.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:48+00:00","email":"REDACTED","id":"es_e51abebb52d9491aaea4d3038c3ce707","mode":"test","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:42+00:00","email":"REDACTED","id":"es_fa6e6fe20b984d2ea18124a263f1e582","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:48+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:42+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,20 +39,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec48e7896122001b51c6 + - 4d57346d66ad6862f440b8c700374983 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.049533" + - "0.056996" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestEndShipperRetrieve.yaml b/tests/cassettes/TestEndShipperRetrieve.yaml index 0b6c02a..b934f48 100644 --- a/tests/cassettes/TestEndShipperRetrieve.yaml +++ b/tests/cassettes/TestEndShipperRetrieve.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:49+00:00","email":"REDACTED","id":"es_6a7cc5e1959248ec8c5accb02274b17a","mode":"test","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:42+00:00","email":"REDACTED","id":"es_a69a05d2d26d4bcbaa934461be879c3a","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:49+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:42+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -34,27 +34,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec49e7896122001b51fa + - 4d57346d66ad6862f440b8c700374996 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.045755" + - "0.050980" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -68,12 +66,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/end_shippers/es_6a7cc5e1959248ec8c5accb02274b17a + url: https://api.easypost.com/v2/end_shippers/es_a69a05d2d26d4bcbaa934461be879c3a method: GET response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:49+00:00","email":"REDACTED","id":"es_6a7cc5e1959248ec8c5accb02274b17a","mode":"test","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:42+00:00","email":"REDACTED","id":"es_a69a05d2d26d4bcbaa934461be879c3a","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:49+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:42+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -89,25 +87,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec49e7896122001b522a + - 4d57346d66ad6862f440b8c7003749a3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.029093" + - "0.070723" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEndShipperUpdate.yaml b/tests/cassettes/TestEndShipperUpdate.yaml index d27da41..fce3b19 100644 --- a/tests/cassettes/TestEndShipperUpdate.yaml +++ b/tests/cassettes/TestEndShipperUpdate.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:49+00:00","email":"REDACTED","id":"es_77bd174daffc4b1d949e4b9008f83e33","mode":"test","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:43+00:00","email":"REDACTED","id":"es_568913e51a7c44f581a33a4986fe95ba","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:49+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:43+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -39,29 +39,29 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec49e7896122001b5244 + - 4d57346d66ad6862f440b8c7003749b7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.051436" + - "0.047155" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"address":{"city":"San Francisco","company":"EasyPost","country":"US","created_at":"2023-11-30T20:10:49Z","email":"REDACTED","id":"es_77bd174daffc4b1d949e4b9008f83e33","mode":"test","name":"Captain + body: '{"address":{"city":"San Francisco","company":"EasyPost","country":"US","created_at":"2024-08-02T23:14:43Z","email":"REDACTED","id":"es_568913e51a7c44f581a33a4986fe95ba","mode":"test","name":"Captain Sparrow","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:49Z","zip":"94107"}}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:43Z","zip":"94107"}}' form: {} headers: Authorization: @@ -70,12 +70,12 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/end_shippers/es_77bd174daffc4b1d949e4b9008f83e33 + url: https://api.easypost.com/v2/end_shippers/es_568913e51a7c44f581a33a4986fe95ba method: PUT response: - body: '{"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2023-11-30T20:10:49+00:00","email":"REDACTED","id":"es_77bd174daffc4b1d949e4b9008f83e33","mode":"test","name":"CAPTAIN + body: '{"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2024-08-02T23:14:43+00:00","email":"REDACTED","id":"es_568913e51a7c44f581a33a4986fe95ba","mode":"test","name":"CAPTAIN SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:10:49+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:43+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store @@ -96,20 +96,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec49e7896122001b5276 + - 4d57346d66ad6863f440b8c7003749ca X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.051160" + - "0.057490" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEstimateDeliveryDateForZipPair.yaml b/tests/cassettes/TestEstimateDeliveryDateForZipPair.yaml index 629303a..50a59d1 100644 --- a/tests/cassettes/TestEstimateDeliveryDateForZipPair.yaml +++ b/tests/cassettes/TestEstimateDeliveryDateForZipPair.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"carriers":["USPS"],"from_zip":"94107","planned_ship_date":"2024-07-17","to_zip":"90277"}' + body: '{"carriers":["USPS"],"from_zip":"94107","planned_ship_date":"2024-08-14","to_zip":"90277"}' form: {} headers: Authorization: @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/smartrate/deliver_by method: POST response: - body: '{"carriers_without_tint_estimates":null,"from_zip":"94107","planned_ship_date":"2024-07-17","results":[{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-07-18"},"service":"express"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":9},"easypost_estimated_delivery_date":"2024-07-19"},"service":"groundadvantage"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":9},"easypost_estimated_delivery_date":"2024-07-19"},"service":"librarymail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":7,"percentile_99":10},"easypost_estimated_delivery_date":"2024-07-20"},"service":"mediamail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":8},"easypost_estimated_delivery_date":"2024-07-19"},"service":"priority"}],"saturday_delivery":null,"to_zip":"90277"}' + body: '{"carriers_without_tint_estimates":null,"from_zip":"94107","planned_ship_date":"2024-08-14","results":[{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":5,"percentile_99":6},"easypost_estimated_delivery_date":"2024-08-16"},"service":"express"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":5,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-08-17"},"service":"groundadvantage"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":5,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-08-17"},"service":"librarymail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":5,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-08-17"},"service":"mediamail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":5,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-08-17"},"service":"priority"}],"saturday_delivery":null,"to_zip":"90277"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 21ac78cf669182f1f3f85b04001051b9 + - 4d57346d66ad6863f440b8c7003749da X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 + - intlb4nuq c0f5e722d1 - extlb2nuq fa152d4755 X-Runtime: - - "0.068583" + - "0.068353" X-Version-Label: - - easypost-202407121702-a82cfb9ac3-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventAll.yaml b/tests/cassettes/TestEventAll.yaml index a98642a..c36d418 100644 --- a/tests/cassettes/TestEventAll.yaml +++ b/tests/cassettes/TestEventAll.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/events + url: https://api.easypost.com/v2/events?page_size=5 method: GET response: - body: '{"events":[{"created_at":"2023-11-30T20:10:48.715Z","description":"batch.created","id":"evt_8d96aedc8fbc11eeb4cd35bc67845c54","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:35.679Z","description":"batch.updated","id":"evt_85d18d168fbc11eeb5093b12b506d7cc","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:34.816Z","description":"batch.updated","id":"evt_854e02528fbc11eeafeb1f7470bf2be3","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:34.714Z","description":"batch.created","id":"evt_853e57e48fbc11ee8329714fa0a9261d","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:34.545Z","description":"batch.updated","id":"evt_852499d08fbc11eebb546f4eb254d892","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' + body: '{"events":[{"created_at":"2024-08-02T23:14:42.466Z","description":"batch.created","id":"evt_ffd61954512411efb3fb0f61e66fb597","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.139Z","description":"batch.updated","id":"evt_f5821890512411ef9cbf5d205ddcdc41","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.024Z","description":"batch.created","id":"evt_f5709be2512411efa6f973fa0c1eb1de","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.982Z","description":"batch.updated","id":"evt_f56a2258512411ef92ba25cb3c50e8f0","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.833Z","description":"batch.created","id":"evt_f5537bc0512411ef96fa0d9c733a51d8","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +33,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec49e7896122001b52a5 + - 4d57346d66ad6863f440b8c7003749e6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.250713" + - "0.217376" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventRetrieve.yaml b/tests/cassettes/TestEventRetrieve.yaml index eaf9639..9ee51a5 100644 --- a/tests/cassettes/TestEventRetrieve.yaml +++ b/tests/cassettes/TestEventRetrieve.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/events + url: https://api.easypost.com/v2/events?page_size=5 method: GET response: - body: '{"events":[{"created_at":"2023-11-30T20:10:50.419Z","description":"tracker.created","id":"evt_8e9abcc48fbc11eeb5a951c9be745d60","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:48.715Z","description":"batch.created","id":"evt_8d96aedc8fbc11eeb4cd35bc67845c54","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:35.679Z","description":"batch.updated","id":"evt_85d18d168fbc11eeb5093b12b506d7cc","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:34.816Z","description":"batch.updated","id":"evt_854e02528fbc11eeafeb1f7470bf2be3","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:34.714Z","description":"batch.created","id":"evt_853e57e48fbc11ee8329714fa0a9261d","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' + body: '{"events":[{"created_at":"2024-08-02T23:14:42.466Z","description":"batch.created","id":"evt_ffd61954512411efb3fb0f61e66fb597","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.139Z","description":"batch.updated","id":"evt_f5821890512411ef9cbf5d205ddcdc41","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.024Z","description":"batch.created","id":"evt_f5709be2512411efa6f973fa0c1eb1de","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.982Z","description":"batch.updated","id":"evt_f56a2258512411ef92ba25cb3c50e8f0","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.833Z","description":"batch.created","id":"evt_f5537bc0512411ef96fa0d9c733a51d8","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -30,27 +28,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec4ae7896122001b5321 + - 4d57346d66ad6863f440b8c7003749ff X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.229634" + - "0.197543" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -64,10 +60,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/events/evt_8e9abcc48fbc11eeb5a951c9be745d60 + url: https://api.easypost.com/v2/events/evt_ffd61954512411efb3fb0f61e66fb597 method: GET response: - body: '{"completed_urls":[],"created_at":"2023-11-30T20:10:50.000Z","description":"tracker.created","id":"evt_8e9abcc48fbc11eeb5a951c9be745d60","mode":"test","object":"Event","pending_urls":[],"previous_attributes":{},"status":"pending","updated_at":"2023-11-30T20:10:50.000Z","user_id":"user_a76997d126dd488f8ad22d52301300b0"}' + body: '{"completed_urls":[],"created_at":"2024-08-02T23:14:42.000Z","description":"batch.created","id":"evt_ffd61954512411efb3fb0f61e66fb597","mode":"test","object":"Event","pending_urls":[],"previous_attributes":{},"status":"pending","updated_at":"2024-08-02T23:14:42.000Z","user_id":"user_a76997d126dd488f8ad22d52301300b0"}' headers: Cache-Control: - private, no-cache, no-store @@ -88,20 +84,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec4ae7896122001b5382 + - 4d57346d66ad6863f440b8c700374a22 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.033329" + - "0.036243" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventRetrieveAllPayloads.yaml b/tests/cassettes/TestEventRetrieveAllPayloads.yaml index 028efc8..c95e45a 100644 --- a/tests/cassettes/TestEventRetrieveAllPayloads.yaml +++ b/tests/cassettes/TestEventRetrieveAllPayloads.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:10:51Z","disabled_at":null,"id":"hook_8ee766dc8fbc11eea6507957b4a9c4be","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:14:44Z","disabled_at":null,"id":"hook_00ad86be512511ef866a090dc81d82c1","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec4ae7896122001b53a2 + - 4d57346d66ad6863f440b8c700374a2b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.190297" + - "0.193206" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -57,7 +57,7 @@ interactions: - request: body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} @@ -71,7 +71,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:51Z","id":"batch_83a1dfda1cf147fa8466dd61dfc22429","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:51Z"}' + body: '{"created_at":"2024-08-02T23:14:44Z","id":"batch_88b47b9062474021975019748f80f763","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:14:44Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -92,39 +92,37 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec4be7896122001b53e9 + - 4d57346d66ad6864f440b8c700374a53 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.044520" + - "0.289949" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/events + url: https://api.easypost.com/v2/events?page_size=5 method: GET response: - body: '{"events":[{"created_at":"2023-11-30T20:10:54.802Z","description":"tracker.created","id":"evt_91377be88fbc11ee9e042b145e73b990","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:53.827Z","description":"tracker.created","id":"evt_90a2b99a8fbc11ee844e17dc6198d24d","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:51.685Z","description":"tracker.created","id":"evt_8f5bfd088fbc11eeb933014a89249994","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:51.438Z","description":"batch.created","id":"evt_8f36382a8fbc11ee985a5f2c8ec3177f","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:51.415Z","description":"batch.updated","id":"evt_8f32b3da8fbc11eeb1b7256c5feab8dc","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' + body: '{"events":[{"created_at":"2024-08-02T23:14:44.513Z","description":"batch.updated","id":"evt_010e6ae2512511efa77e0fb5e2a08ba7","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:44.407Z","description":"batch.created","id":"evt_00fe29ac512511efb3647fc470164b24","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:42.466Z","description":"batch.created","id":"evt_ffd61954512411efb3fb0f61e66fb597","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.139Z","description":"batch.updated","id":"evt_f5821890512411ef9cbf5d205ddcdc41","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.024Z","description":"batch.created","id":"evt_f5709be2512411efa6f973fa0c1eb1de","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -145,20 +143,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec50e7896122001b58a5 + - 4d57346d66ad6869f440b8c700374d29 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.282039" + - "0.182704" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -172,7 +170,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/events/evt_91377be88fbc11ee9e042b145e73b990/payloads + url: https://api.easypost.com/v2/events/evt_010e6ae2512511efa77e0fb5e2a08ba7/payloads method: GET response: body: '{"payloads":[]}' @@ -191,27 +189,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec50e7896122001b5919 + - 4d57346d66ad6869f440b8c700374d52 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.031941" + - "0.038056" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -225,7 +221,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_8ee766dc8fbc11eea6507957b4a9c4be + url: https://api.easypost.com/v2/webhooks/hook_00ad86be512511ef866a090dc81d82c1 method: DELETE response: body: '{}' @@ -249,20 +245,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec51e7896122001b593d + - 4d57346d66ad6869f440b8c700374d5c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.359788" + - "0.405030" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventRetrievePayload.yaml b/tests/cassettes/TestEventRetrievePayload.yaml index 4ae540c..665de27 100644 --- a/tests/cassettes/TestEventRetrievePayload.yaml +++ b/tests/cassettes/TestEventRetrievePayload.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:10:58Z","disabled_at":null,"id":"hook_92e569828fbc11eeb453099751300000","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:14:50Z","disabled_at":null,"id":"hook_047128b4512511ef92245da9ec411bc4","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,7 +35,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec51e7896122001b59bf + - 4d57346d66ad686af440b8c700374da8 X-Frame-Options: - SAMEORIGIN X-Node: @@ -43,12 +43,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.167648" + - "0.149397" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -57,7 +57,7 @@ interactions: - request: body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} @@ -71,7 +71,7 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"created_at":"2023-11-30T20:10:57Z","id":"batch_d9f5f5095a114924b872b8ef14a35f70","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2023-11-30T20:10:57Z"}' + body: '{"created_at":"2024-08-02T23:14:50Z","id":"batch_c2d54a3083694d829ec9578fd0a66e43","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2024-08-02T23:14:50Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -87,46 +87,42 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec51e7896122001b5a15 + - 4d57346d66ad686af440b8c700374dc5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.045026" + - "0.047120" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/events + url: https://api.easypost.com/v2/events?page_size=5 method: GET response: - body: '{"events":[{"created_at":"2023-11-30T20:10:58.053Z","description":"batch.updated","id":"evt_9327ab808fbc11eebe704192e9ab1762","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:57.959Z","description":"batch.created","id":"evt_93194ec88fbc11ee902d6dab887e48ec","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:54.802Z","description":"tracker.created","id":"evt_91377be88fbc11ee9e042b145e73b990","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:53.827Z","description":"tracker.created","id":"evt_90a2b99a8fbc11ee844e17dc6198d24d","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:51.685Z","description":"tracker.created","id":"evt_8f5bfd088fbc11eeb933014a89249994","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' + body: '{"events":[{"created_at":"2024-08-02T23:14:50.639Z","description":"batch.updated","id":"evt_04b523ac512511ef830b512e12724368","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:50.425Z","description":"batch.created","id":"evt_04946f9a512511ef82ea53407dbbc5df","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:44.513Z","description":"batch.updated","id":"evt_010e6ae2512511efa77e0fb5e2a08ba7","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:44.407Z","description":"batch.created","id":"evt_00fe29ac512511efb3647fc470164b24","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:42.466Z","description":"batch.created","id":"evt_ffd61954512411efb3fb0f61e66fb597","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -147,20 +143,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec52e7896122001b5a48 + - 4d57346d66ad686af440b8c700374dd5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.223109" + - "0.200311" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -174,7 +170,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/events/evt_9327ab808fbc11eebe704192e9ab1762/payloads/payload_11111111111111111111111111111111 + url: https://api.easypost.com/v2/events/evt_04b523ac512511ef830b512e12724368/payloads/payload_11111111111111111111111111111111 method: GET response: body: '{"error":{"code":"PAYLOAD.NOT_FOUND","errors":[],"message":"The payload(s) @@ -199,20 +195,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec52e7896122001b5ab2 + - 4d57346d66ad686af440b8c700374dfb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.039825" + - "0.038849" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 404 Not Found @@ -226,7 +222,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_92e569828fbc11eeb453099751300000 + url: https://api.easypost.com/v2/webhooks/hook_047128b4512511ef92245da9ec411bc4 method: DELETE response: body: '{}' @@ -250,20 +246,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec52e7896122001b5b08 + - 4d57346d66ad686af440b8c700374e09 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.355983" + - "0.361946" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventsGetNextPage.yaml b/tests/cassettes/TestEventsGetNextPage.yaml index 09dcdd4..b104aee 100644 --- a/tests/cassettes/TestEventsGetNextPage.yaml +++ b/tests/cassettes/TestEventsGetNextPage.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/events + url: https://api.easypost.com/v2/events?page_size=5 method: GET response: - body: '{"events":[{"created_at":"2023-11-30T20:10:58.053Z","description":"batch.updated","id":"evt_9327ab808fbc11eebe704192e9ab1762","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:57.959Z","description":"batch.created","id":"evt_93194ec88fbc11ee902d6dab887e48ec","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:54.802Z","description":"tracker.created","id":"evt_91377be88fbc11ee9e042b145e73b990","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:53.827Z","description":"tracker.created","id":"evt_90a2b99a8fbc11ee844e17dc6198d24d","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:51.685Z","description":"tracker.created","id":"evt_8f5bfd088fbc11eeb933014a89249994","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' + body: '{"events":[{"created_at":"2024-08-02T23:14:50.639Z","description":"batch.updated","id":"evt_04b523ac512511ef830b512e12724368","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:50.425Z","description":"batch.created","id":"evt_04946f9a512511ef82ea53407dbbc5df","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:44.513Z","description":"batch.updated","id":"evt_010e6ae2512511efa77e0fb5e2a08ba7","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:44.407Z","description":"batch.created","id":"evt_00fe29ac512511efb3647fc470164b24","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:42.466Z","description":"batch.created","id":"evt_ffd61954512411efb3fb0f61e66fb597","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -30,44 +28,44 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec53e7896122001b5b8d + - 4d57346d66ad686bf440b8c700374e4a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.221440" + - "0.220695" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=evt_8f5bfd088fbc11eeb933014a89249994&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/events + url: https://api.easypost.com/v2/events?before_id=evt_ffd61954512411efb3fb0f61e66fb597&page_size=5 method: GET response: - body: '{"events":[{"created_at":"2023-11-30T20:10:51.438Z","description":"batch.created","id":"evt_8f36382a8fbc11ee985a5f2c8ec3177f","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:51.415Z","description":"batch.updated","id":"evt_8f32b3da8fbc11eeb1b7256c5feab8dc","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:50.419Z","description":"tracker.created","id":"evt_8e9abcc48fbc11eeb5a951c9be745d60","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:48.715Z","description":"batch.created","id":"evt_8d96aedc8fbc11eeb4cd35bc67845c54","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2023-11-30T20:10:35.679Z","description":"batch.updated","id":"evt_85d18d168fbc11eeb5093b12b506d7cc","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' + body: '{"events":[{"created_at":"2024-08-02T23:14:25.139Z","description":"batch.updated","id":"evt_f5821890512411ef9cbf5d205ddcdc41","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:25.024Z","description":"batch.created","id":"evt_f5709be2512411efa6f973fa0c1eb1de","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.982Z","description":"batch.updated","id":"evt_f56a2258512411ef92ba25cb3c50e8f0","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.833Z","description":"batch.created","id":"evt_f5537bc0512411ef96fa0d9c733a51d8","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2024-08-02T23:14:24.807Z","description":"batch.updated","id":"evt_f54f9172512411ef9f271dfd76ae4144","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -83,25 +81,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec53e7896122001b5bd5 + - 4d57346d66ad686bf440b8c700374e69 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.222444" + - "0.170947" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestGetCarrierMetadata.yaml b/tests/cassettes/TestGetCarrierMetadata.yaml index da14acc..273dd51 100644 --- a/tests/cassettes/TestGetCarrierMetadata.yaml +++ b/tests/cassettes/TestGetCarrierMetadata.yaml @@ -12,7 +12,8 @@ interactions: url: https://api.easypost.com/v2/metadata/carriers method: GET response: - body: '{"carriers":[{"human_readable":"Amazon MWS","name":"amazonmws","predefined_packages":[],"service_levels":[{"carrier":"amazonmws","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"UPS + body: '{"carriers":[{"human_readable":"Accurate","name":"accurate","predefined_packages":[],"service_levels":[{"carrier":"accurate","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Route"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Amazon + MWS","name":"amazonmws","predefined_packages":[],"service_levels":[{"carrier":"amazonmws","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"UPS Rates"},{"carrier":"amazonmws","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"USPS Rates"},{"carrier":"amazonmws","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FedEx Rates"},{"carrier":"amazonmws","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"UPS @@ -105,7 +106,8 @@ interactions: Standard Economy","max_weight":null,"name":"ePAQStandardEconomy"},{"carrier":"asendiausa","description":null,"dimensions":[],"human_readable":"ePAQ Standard International Priority Airmail","max_weight":null,"name":"ePAQStandardIPA"},{"carrier":"asendiausa","description":null,"dimensions":[],"human_readable":"ePAQ Standard International Surface Air Lift","max_weight":null,"name":"ePAQStandardISAL"},{"carrier":"asendiausa","description":null,"dimensions":[],"human_readable":"ePaq - Select PMEI Non-Presort","max_weight":null,"name":"ePaqSelectPMEINonPresort"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Australia + Select PMEI Non-Presort","max_weight":null,"name":"ePaqSelectPMEINonPresort"},{"carrier":"asendiausa","description":null,"dimensions":[],"human_readable":"ePAQ + Select DDP DG","max_weight":null,"name":"ePAQSelectDDPDG"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Australia Post","name":"australiapost","predefined_packages":[{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Carton","max_weight":null,"name":"CARTON"},{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Pallet","max_weight":null,"name":"PALLET"},{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Satchel","max_weight":null,"name":"SATCHEL"},{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Bag","max_weight":null,"name":"BAG"},{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Envelope","max_weight":null,"name":"ENVELOPE"},{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Item","max_weight":null,"name":"ITEM"},{"carrier":"australiapost","description":null,"dimensions":[],"human_readable":"Jiffy Bag","max_weight":null,"name":"JIFFYBAG"},{"carrier":"australiapost","description":"Up to 500kg","dimensions":[],"human_readable":"Skid","max_weight":null,"name":"SKID"}],"service_levels":[{"carrier":"australiapost","description":"Specific @@ -118,35 +120,39 @@ interactions: service availability is determined by your AustraliaPost account.","dimensions":[],"human_readable":"Commercial","max_weight":null,"name":"Commercial"}],"shipment_options":[],"supported_features":[{"carrier":"australiapost","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"australiapost","description":"Not available with Print as You Go.","name":"bill_on_label_purchase","supported":true},{"carrier":"australiapost","description":"Daily manifesting when using Print as You Go.","name":"bill_on_manifest","supported":true},{"carrier":"australiapost","description":null,"name":"bill_on_scan","supported":false},{"carrier":"australiapost","description":null,"name":"commercial_invoices","supported":null},{"carrier":"australiapost","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"australiapost","description":null,"name":"labels","supported":true},{"carrier":"australiapost","description":null,"name":"orders","supported":true},{"carrier":"australiapost","description":null,"name":"pickups","supported":false},{"carrier":"australiapost","description":null,"name":"rating","supported":true},{"carrier":"australiapost","description":null,"name":"refunds","supported":true},{"carrier":"australiapost","description":"Domestic - only.","name":"returns","supported":true},{"carrier":"australiapost","description":null,"name":"scanforms","supported":true},{"carrier":"australiapost","description":null,"name":"sort_codes","supported":false},{"carrier":"australiapost","description":null,"name":"test_environment","supported":true},{"carrier":"australiapost","description":null,"name":"tracking","supported":true}]},{"human_readable":"AxlehireV3","name":"axlehirev3","predefined_packages":[],"service_levels":[{"carrier":"axlehirev3","description":null,"dimensions":[],"human_readable":"AxleHire - Delivery","max_weight":null,"name":"AxleHireDelivery"}],"shipment_options":[{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Carrier - Instructions","name":"carrier_instructions","type":"map"},{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Label - Date","name":"label_date","type":"datetime"},{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Label - Format","name":"label_format","type":"string"},{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Label - Size","name":"label_size","type":"string"},{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Delivery - Confirmation","name":"delivery_confirmation","type":"string"},{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Delivery - Max Datetime","name":"delivery_max_datetime","type":"datetime"},{"carrier":"axlehirev3","deprecated":false,"description":null,"human_readable":"Delivery - Min Datetime","name":"delivery_min_datetime","type":"datetime"}],"supported_features":[{"carrier":"axlehirev3","description":null,"name":"commercial_invoices","supported":false},{"carrier":"axlehirev3","description":null,"name":"labels","supported":true},{"carrier":"axlehirev3","description":null,"name":"orders","supported":false},{"carrier":"axlehirev3","description":null,"name":"pickups","supported":true},{"carrier":"axlehirev3","description":null,"name":"rating","supported":true},{"carrier":"axlehirev3","description":null,"name":"refunds","supported":false},{"carrier":"axlehirev3","description":null,"name":"returns","supported":false},{"carrier":"axlehirev3","description":null,"name":"scanforms","supported":true},{"carrier":"axlehirev3","description":null,"name":"sort_codes","supported":false},{"carrier":"axlehirev3","description":null,"name":"test_environment","supported":false},{"carrier":"axlehirev3","description":null,"name":"tracking","supported":true}]},{"human_readable":"Better + only.","name":"returns","supported":true},{"carrier":"australiapost","description":null,"name":"scanforms","supported":true},{"carrier":"australiapost","description":null,"name":"sort_codes","supported":false},{"carrier":"australiapost","description":null,"name":"test_environment","supported":true}]},{"human_readable":"Better Trucks","name":"bettertrucks","predefined_packages":[],"service_levels":[{"carrier":"bettertrucks","description":null,"dimensions":[],"human_readable":"Next - Day","max_weight":null,"name":"NEXT_DAY"},{"carrier":"bettertrucks","description":null,"dimensions":[],"human_readable":"Express","max_weight":null,"name":"EXPRESS"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Canada - Post","name":"canadapost","predefined_packages":[],"service_levels":[{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Delivered - Tonight","max_weight":null,"name":"DeliveredTonight"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Regular - Parcel","max_weight":null,"name":"RegularParcel"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Expedited - Parcel","max_weight":null,"name":"ExpeditedParcel"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Xpresspost","max_weight":null,"name":"Xpresspost"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Xpresspost - Certified","max_weight":null,"name":"XpresspostCertified"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Priority","max_weight":null,"name":"Priority"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Library - Books","max_weight":null,"name":"LibraryBooks"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Expedited - Parcel USA","max_weight":null,"name":"ExpeditedParcelUSA"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Small - Packet USA Air","max_weight":null,"name":"SmallPacketUSAAir"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Tracked + Day","max_weight":null,"name":"NEXT_DAY"},{"carrier":"bettertrucks","description":null,"dimensions":[],"human_readable":"Express","max_weight":null,"name":"EXPRESS"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Bluestreak","name":"bluestreak","predefined_packages":[],"service_levels":[{"carrier":"bluestreak","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"N5"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Canada + Post","name":"canadapost","predefined_packages":[],"service_levels":[{"carrier":"canadapost","description":"Up + to 3 days for local delivery, up to 6 days for regional delivery and up to 10 + days for national delivery","dimensions":[],"human_readable":"Regular Parcel","max_weight":null,"name":"RegularParcel"},{"carrier":"canadapost","description":"Up + to 2 days for local delivery, up to 4 days for regional delivery and up to 8 + days for national delivery","dimensions":[],"human_readable":"Expedited Parcel","max_weight":null,"name":"ExpeditedParcel"},{"carrier":"canadapost","description":"Next-day + and 2-day delivery","dimensions":[],"human_readable":"Xpresspost","max_weight":null,"name":"Xpresspost"},{"carrier":"canadapost","description":"Next-day + delivery with signature","dimensions":[],"human_readable":"Priority","max_weight":null,"name":"Priority"},{"carrier":"canadapost","description":"Delivery + in as little as 4 business days for larger parcels","dimensions":[],"human_readable":"Expedited + Parcel USA","max_weight":null,"name":"ExpeditedParcelUSA"},{"carrier":"canadapost","description":"Delivery + in as little as 5 business days for small and lightweight items","dimensions":[],"human_readable":"Small + Packet USA Air","max_weight":null,"name":"SmallPacketUSAAir"},{"carrier":"canadapost","description":"Delivery + in as little as 4 business days for small and lightweight items","dimensions":[],"human_readable":"Tracked Packet USA","max_weight":null,"name":"TrackedPacketUSA"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Tracked - Packet USA LVM","max_weight":null,"name":"TrackedPacketUSALVM"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Xpresspost - USA","max_weight":null,"name":"XpresspostUSA"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Xpresspost - International","max_weight":null,"name":"XpresspostInternational"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"International - Parcel Air","max_weight":null,"name":"InternationalParcelAir"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"International - Parcel Surface","max_weight":null,"name":"InternationalParcelSurface"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Small - Packet International Air","max_weight":null,"name":"SmallPacketInternationalAir"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Small - Packet International Surface","max_weight":null,"name":"SmallPacketInternationalSurface"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Tracked - Packet International","max_weight":null,"name":"TrackedPacketInternational"},{"carrier":"canadapost","description":null,"dimensions":[],"human_readable":"Expedited - Parcel Plus","max_weight":null,"name":"ExpeditedParcelPlus"}],"shipment_options":[],"supported_features":[{"carrier":"canadapost","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"canadapost","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"canadapost","description":null,"name":"bill_on_manifest","supported":true},{"carrier":"canadapost","description":null,"name":"bill_on_scan","supported":false},{"carrier":"canadapost","description":null,"name":"commercial_invoices","supported":true},{"carrier":"canadapost","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"canadapost","description":null,"name":"labels","supported":true},{"carrier":"canadapost","description":null,"name":"orders","supported":false},{"carrier":"canadapost","description":null,"name":"pickups","supported":true},{"carrier":"canadapost","description":null,"name":"rating","supported":true},{"carrier":"canadapost","description":null,"name":"refunds","supported":true},{"carrier":"canadapost","description":null,"name":"returns","supported":true},{"carrier":"canadapost","description":null,"name":"scanforms","supported":true},{"carrier":"canadapost","description":null,"name":"sort_codes","supported":false},{"carrier":"canadapost","description":null,"name":"test_environment","supported":true},{"carrier":"canadapost","description":null,"name":"tracking","supported":true}]},{"human_readable":"Canpar","name":"canpar","predefined_packages":[],"service_levels":[{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Ground","max_weight":null,"name":"Ground"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"USA","max_weight":null,"name":"USA"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Select + Packet USA LVM","max_weight":null,"name":"TrackedPacketUSALVM"},{"carrier":"canadapost","description":"Delivery + in 2 and 3 business days","dimensions":[],"human_readable":"Xpresspost USA","max_weight":null,"name":"XpresspostUSA"},{"carrier":"canadapost","description":"Delivery + in as little as 4 business days","dimensions":[],"human_readable":"Xpresspost + International","max_weight":null,"name":"XpresspostInternational"},{"carrier":"canadapost","description":"Delivery + in as little as 6 business days for larger parcels","dimensions":[],"human_readable":"International + Parcel Air","max_weight":null,"name":"InternationalParcelAir"},{"carrier":"canadapost","description":"Delivery + in 1 month and up to 3 months","dimensions":[],"human_readable":"International + Parcel Surface","max_weight":null,"name":"InternationalParcelSurface"},{"carrier":"canadapost","description":"Delivery + in as little as 6 business days for small and lightweight items","dimensions":[],"human_readable":"Small + Packet International Air","max_weight":null,"name":"SmallPacketInternationalAir"},{"carrier":"canadapost","description":"Delivery + in 1 month and up to 3 months for small and lightweight items","dimensions":[],"human_readable":"Small + Packet International Surface","max_weight":null,"name":"SmallPacketInternationalSurface"},{"carrier":"canadapost","description":"Delivery + in as little as 6 business days","dimensions":[],"human_readable":"Tracked Packet + International","max_weight":null,"name":"TrackedPacketInternational"},{"carrier":"canadapost","description":"Up + to 3 days for local delivery, up to 6 days for regional delivery and up to 10 + days for national delivery","dimensions":[],"human_readable":"Expedited Parcel + Plus","max_weight":null,"name":"ExpeditedParcelPlus"}],"shipment_options":[],"supported_features":[{"carrier":"canadapost","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"canadapost","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"canadapost","description":null,"name":"bill_on_manifest","supported":true},{"carrier":"canadapost","description":null,"name":"bill_on_scan","supported":false},{"carrier":"canadapost","description":null,"name":"commercial_invoices","supported":true},{"carrier":"canadapost","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"canadapost","description":null,"name":"labels","supported":true},{"carrier":"canadapost","description":null,"name":"orders","supported":false},{"carrier":"canadapost","description":null,"name":"pickups","supported":true},{"carrier":"canadapost","description":null,"name":"rating","supported":true},{"carrier":"canadapost","description":null,"name":"refunds","supported":true},{"carrier":"canadapost","description":null,"name":"returns","supported":true},{"carrier":"canadapost","description":null,"name":"scanforms","supported":true},{"carrier":"canadapost","description":null,"name":"sort_codes","supported":false},{"carrier":"canadapost","description":null,"name":"test_environment","supported":true}]},{"human_readable":"Canpar","name":"canpar","predefined_packages":[],"service_levels":[{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Ground","max_weight":null,"name":"Ground"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"USA","max_weight":null,"name":"USA"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Select Letter","max_weight":null,"name":"SelectLetter"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Select Pak","max_weight":null,"name":"SelectPak"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Select","max_weight":null,"name":"Select"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Overnight Letter","max_weight":null,"name":"OvernightLetter"},{"carrier":"canpar","description":null,"dimensions":[],"human_readable":"Overnight @@ -164,7 +170,7 @@ interactions: Method","name":"cod_method","type":"string"},{"carrier":"canpar","deprecated":true,"description":null,"human_readable":"Date Advance","name":"date_advance","type":"integer"},{"carrier":"canpar","deprecated":false,"description":null,"human_readable":"Billing Ref","name":"billing_ref","type":"string"}],"supported_features":[{"carrier":"canpar","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"canpar","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"canpar","description":null,"name":"bill_on_manifest","supported":null},{"carrier":"canpar","description":null,"name":"bill_on_scan","supported":null},{"carrier":"canpar","description":null,"name":"commercial_invoices","supported":false},{"carrier":"canpar","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"canpar","description":null,"name":"labels","supported":true},{"carrier":"canpar","description":null,"name":"orders","supported":false},{"carrier":"canpar","description":null,"name":"pickups","supported":true},{"carrier":"canpar","description":null,"name":"rating","supported":true},{"carrier":"canpar","description":null,"name":"refunds","supported":true},{"carrier":"canpar","description":"Subject - to regular pricing.","name":"returns","supported":false},{"carrier":"canpar","description":null,"name":"scanforms","supported":true},{"carrier":"canpar","description":null,"name":"sort_codes","supported":false},{"carrier":"canpar","description":null,"name":"test_environment","supported":true},{"carrier":"canpar","description":null,"name":"tracking","supported":true}]},{"human_readable":"CDL + to regular pricing.","name":"returns","supported":false},{"carrier":"canpar","description":null,"name":"scanforms","supported":true},{"carrier":"canpar","description":null,"name":"sort_codes","supported":false},{"carrier":"canpar","description":null,"name":"test_environment","supported":true}]},{"human_readable":"CDL Last Mile Solutions","name":"cdllastmilesolutions","predefined_packages":[],"service_levels":[{"carrier":"cdllastmilesolutions","description":null,"dimensions":[],"human_readable":"DISTRIBUTION","max_weight":null,"name":"DISTRIBUTION"},{"carrier":"cdllastmilesolutions","description":null,"dimensions":[],"human_readable":"Same Day","max_weight":null,"name":"Same Day"}],"shipment_options":[{"carrier":"cdllastmilesolutions","deprecated":false,"description":null,"human_readable":"Delivery Max Datetime","name":"delivery_max_datetime","type":"datetime"},{"carrier":"cdllastmilesolutions","deprecated":false,"description":null,"human_readable":"Delivery @@ -177,8 +183,10 @@ interactions: Custom 1","name":"print_custom_1","type":"string"},{"carrier":"cdllastmilesolutions","deprecated":true,"description":null,"human_readable":"Print Custom 1 Barcode","name":"print_custom_1_barcode","type":"boolean"},{"carrier":"cdllastmilesolutions","deprecated":true,"description":null,"human_readable":"Print Custom 2","name":"print_custom_2","type":"string"},{"carrier":"cdllastmilesolutions","deprecated":true,"description":null,"human_readable":"Print - Custom 2 Barcode","name":"print_custom_2_barcode","type":"boolean"}],"supported_features":[{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_manifest","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_scan","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"commercial_invoices","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"labels","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"orders","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"pickups","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"rating","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"refunds","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"returns","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"scanforms","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"sort_codes","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"test_environment","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"tracking","supported":true}]},{"human_readable":"Chronopost","name":"chronopost","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"Cirro - E-Commerce","name":"cirroecommerce","predefined_packages":[],"service_levels":[{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECOCE + Custom 2 Barcode","name":"print_custom_2_barcode","type":"boolean"}],"supported_features":[{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_manifest","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"bill_on_scan","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"commercial_invoices","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"cdllastmilesolutions","description":null,"name":"labels","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"orders","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"pickups","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"rating","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"refunds","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"returns","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"scanforms","supported":false},{"carrier":"cdllastmilesolutions","description":null,"name":"sort_codes","supported":true},{"carrier":"cdllastmilesolutions","description":null,"name":"test_environment","supported":null}]},{"human_readable":"Chronopost","name":"chronopost","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"Cirro + E-Commerce","name":"cirroecommerce","predefined_packages":[],"service_levels":[{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CADOECOEA + (CA Domestic Economy East)"},{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CADOECOWE + (CA Domestic Economy West)"},{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECOCE (US to CA Economy)"},{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECONE (US to CA Economy)"},{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECOWE (US to CA Economy)"},{"carrier":"cirroecommerce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ECOCE @@ -274,13 +282,16 @@ interactions: Parcel","max_weight":null,"name":"500gmParcel"},{"carrier":"couriersplease","description":null,"dimensions":[],"human_readable":"1kg Parcel","max_weight":null,"name":"1KgParcel"},{"carrier":"couriersplease","description":null,"dimensions":[],"human_readable":"3kg Parcel","max_weight":null,"name":"3KgParcel"},{"carrier":"couriersplease","description":null,"dimensions":[],"human_readable":"5kg - Parcel","max_weight":null,"name":"5KgParcel"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DAI + Parcel","max_weight":null,"name":"5KgParcel"}],"shipment_options":[],"supported_features":[]},{"human_readable":"CSLogistics","name":"cslogistics","predefined_packages":[],"service_levels":[{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Distribution"},{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ASAP"},{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Freight + Priority"},{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Freight + Regular"},{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Priority"},{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Regular"},{"carrier":"cslogistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Scheduled"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DAI Post","name":"daipost","predefined_packages":[],"service_levels":[{"carrier":"daipost","description":null,"dimensions":[],"human_readable":"Parcel Epacket","max_weight":null,"name":"ParcelMax"},{"carrier":"daipost","description":null,"dimensions":[],"human_readable":"International Economy","max_weight":null,"name":"InternationalEconomy"},{"carrier":"daipost","description":null,"dimensions":[],"human_readable":"International Standard","max_weight":null,"name":"InternationalStandard"},{"carrier":"daipost","description":null,"dimensions":[],"human_readable":"International Express","max_weight":null,"name":"InternationalExpress"},{"carrier":"daipost","description":null,"dimensions":[],"human_readable":"Domestic - Tracked","max_weight":null,"name":"DomesticTracked"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Deliver-It","name":"deliverit","predefined_packages":[],"service_levels":[{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Saturday"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Economy"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Noon-It"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Early-It"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Afternoon"}],"shipment_options":[],"supported_features":[{"carrier":"deliverit","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"deliverit","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"deliverit","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"deliverit","description":null,"name":"bill_on_scan","supported":false},{"carrier":"deliverit","description":null,"name":"commercial_invoices","supported":false},{"carrier":"deliverit","description":null,"name":"labels","supported":true},{"carrier":"deliverit","description":null,"name":"orders","supported":false},{"carrier":"deliverit","description":null,"name":"pickups","supported":false},{"carrier":"deliverit","description":null,"name":"rating","supported":true},{"carrier":"deliverit","description":null,"name":"refunds","supported":true},{"carrier":"deliverit","description":null,"name":"returns","supported":false},{"carrier":"deliverit","description":null,"name":"scanforms","supported":false},{"carrier":"deliverit","description":null,"name":"sort_codes","supported":false},{"carrier":"deliverit","description":null,"name":"test_environment","supported":false},{"carrier":"deliverit","description":null,"name":"tracking","supported":true}]},{"human_readable":"Deutsche + Tracked","max_weight":null,"name":"DomesticTracked"},{"carrier":"daipost","description":null,"dimensions":[],"human_readable":"Parcel + Right","max_weight":null,"name":"ParcelRight"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Deliver-It","name":"deliverit","predefined_packages":[],"service_levels":[{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Saturday"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Economy"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Noon-It"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Early-It"},{"carrier":"deliverit","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Afternoon"}],"shipment_options":[],"supported_features":[{"carrier":"deliverit","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"deliverit","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"deliverit","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"deliverit","description":null,"name":"bill_on_scan","supported":false},{"carrier":"deliverit","description":null,"name":"commercial_invoices","supported":false},{"carrier":"deliverit","description":null,"name":"labels","supported":true},{"carrier":"deliverit","description":null,"name":"orders","supported":false},{"carrier":"deliverit","description":null,"name":"pickups","supported":false},{"carrier":"deliverit","description":null,"name":"rating","supported":true},{"carrier":"deliverit","description":null,"name":"refunds","supported":true},{"carrier":"deliverit","description":null,"name":"returns","supported":false},{"carrier":"deliverit","description":null,"name":"scanforms","supported":false},{"carrier":"deliverit","description":null,"name":"sort_codes","supported":false},{"carrier":"deliverit","description":null,"name":"test_environment","supported":false}]},{"human_readable":"Deutsche Post","name":"deutschepost","predefined_packages":[],"service_levels":[{"carrier":"deutschepost","description":null,"dimensions":[],"human_readable":"Packet Plus","max_weight":null,"name":"PacketPlus"}],"shipment_options":[{"carrier":"deutschepost","deprecated":false,"description":null,"human_readable":"Additional Handling","name":"additional_handling","type":"boolean"},{"carrier":"deutschepost","deprecated":true,"description":null,"human_readable":"Bill @@ -298,12 +309,11 @@ interactions: Size","name":"label_size","type":"string"},{"carrier":"deutschepost","deprecated":true,"description":null,"human_readable":"Print Custom 1","name":"print_custom_1","type":"string"},{"carrier":"deutschepost","deprecated":true,"description":null,"human_readable":"Print Custom 2","name":"print_custom_2","type":"string"},{"carrier":"deutschepost","deprecated":false,"description":null,"human_readable":"Return - Service","name":"return_service","type":"string"}],"supported_features":[{"carrier":"deutschepost","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"deutschepost","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"deutschepost","description":null,"name":"bill_on_manifest","supported":null},{"carrier":"deutschepost","description":null,"name":"bill_on_scan","supported":null},{"carrier":"deutschepost","description":null,"name":"commercial_invoices","supported":false},{"carrier":"deutschepost","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"deutschepost","description":null,"name":"labels","supported":true},{"carrier":"deutschepost","description":null,"name":"orders","supported":false},{"carrier":"deutschepost","description":null,"name":"pickups","supported":false},{"carrier":"deutschepost","description":null,"name":"rating","supported":true},{"carrier":"deutschepost","description":null,"name":"refunds","supported":false},{"carrier":"deutschepost","description":null,"name":"returns","supported":true},{"carrier":"deutschepost","description":null,"name":"scanforms","supported":false},{"carrier":"deutschepost","description":null,"name":"sort_codes","supported":false},{"carrier":"deutschepost","description":null,"name":"test_environment","supported":false},{"carrier":"deutschepost","description":null,"name":"tracking","supported":true}]},{"human_readable":"Deutsche + Service","name":"return_service","type":"string"}],"supported_features":[{"carrier":"deutschepost","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"deutschepost","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"deutschepost","description":null,"name":"bill_on_manifest","supported":null},{"carrier":"deutschepost","description":null,"name":"bill_on_scan","supported":null},{"carrier":"deutschepost","description":null,"name":"commercial_invoices","supported":false},{"carrier":"deutschepost","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"deutschepost","description":null,"name":"labels","supported":true},{"carrier":"deutschepost","description":null,"name":"orders","supported":false},{"carrier":"deutschepost","description":null,"name":"pickups","supported":false},{"carrier":"deutschepost","description":null,"name":"rating","supported":true},{"carrier":"deutschepost","description":null,"name":"refunds","supported":false},{"carrier":"deutschepost","description":null,"name":"returns","supported":true},{"carrier":"deutschepost","description":null,"name":"scanforms","supported":false},{"carrier":"deutschepost","description":null,"name":"sort_codes","supported":false},{"carrier":"deutschepost","description":null,"name":"test_environment","supported":false}]},{"human_readable":"Deutsche Post UK","name":"deutschepostuk","predefined_packages":[],"service_levels":[{"carrier":"deutschepostuk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityPacketPlus"},{"carrier":"deutschepostuk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityPacket"},{"carrier":"deutschepostuk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityPacketTracked"},{"carrier":"deutschepostuk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BusinessMailRegistered"},{"carrier":"deutschepostuk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"StandardPacket"},{"carrier":"deutschepostuk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BusinessMailStandard"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DHL eCommerce Solutions","name":"dhlecommercesolutions","predefined_packages":[],"service_levels":[{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelExpedited"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelExpeditedMax"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelGround"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLBPMExpedited"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLBPMGround"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelInternationalDirect"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelInternationalStandard"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLPacketInternational"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelInternationalDirectPriority"},{"carrier":"dhlecommercesolutions","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLParcelInternationalDirectStandard"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DHL Express","name":"dhlexpress","predefined_packages":[{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JumboDocument"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JumboParcel"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Document"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLFlyer"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Domestic"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressDocument"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DHLExpressEnvelope"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JumboBox"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JumboJuniorDocument"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JuniorJumboBox"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JumboJuniorParcel"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"OtherDHLPackaging"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"YourPackaging"}],"service_levels":[{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BreakBulkEconomy"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BreakBulkExpress"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticEconomySelect"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticExpress"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticExpress1030"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticExpress1200"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomySelect"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomySelectNonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EuroPack"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EuropackNonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express1030"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express1030NonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express1200NonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express1200"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express900"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express900NonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressEasy"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressEasyNonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressEnvelope"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressWorldwide"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressWorldwideB2C"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressWorldwideB2CNonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressWorldwideECX"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressWorldwideNonDoc"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightWorldwide"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalmailBusiness"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JetLine"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"JumboBox"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LogisticsServices"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SameDay"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SecureLine"},{"carrier":"dhlexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SprintLine"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DHL - Paket","name":"dhlpaket","predefined_packages":[],"service_levels":[{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EuroPaket"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Paket"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PaketConnect"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PaketInternational"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Retoure"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DHL - SmartMail","name":"dhlsmartmail","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"DPD","name":"dpd","predefined_packages":[],"service_levels":[{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDCLASSIC"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD8:30"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD10:00"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD12:00"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD18:00"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDEXPRESS"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDPARCELLETTER"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDPARCELLETTERPLUS"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDINTERNATIONALMAIL"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DPD + Paket","name":"dhlpaket","predefined_packages":[],"service_levels":[{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EuroPaket"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Paket"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PaketConnect"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PaketInternational"},{"carrier":"dhlpaket","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Retoure"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DoorDash","name":"doordash","predefined_packages":[],"service_levels":[{"carrier":"doordash","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Standard"}],"shipment_options":[],"supported_features":[{"carrier":"doordash","description":null,"name":"labels","supported":null},{"carrier":"doordash","description":null,"name":"rating","supported":true},{"carrier":"doordash","description":null,"name":"refunds","supported":null}]},{"human_readable":"DPD","name":"dpd","predefined_packages":[],"service_levels":[{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDCLASSIC"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD8:30"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD10:00"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD12:00"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPD18:00"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDEXPRESS"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDPARCELLETTER"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDPARCELLETTERPLUS"},{"carrier":"dpd","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DPDINTERNATIONALMAIL"}],"shipment_options":[],"supported_features":[]},{"human_readable":"DPD NL","name":"dpdnl","predefined_packages":[],"service_levels":[{"carrier":"dpdnl","description":null,"dimensions":[],"human_readable":"DPDNL Classic","max_weight":null,"name":"DPDNL_CLASSIC"},{"carrier":"dpdnl","description":null,"dimensions":[],"human_readable":"Express 10","max_weight":null,"name":"EXPRESS_10"},{"carrier":"dpdnl","description":null,"dimensions":[],"human_readable":"Express @@ -311,22 +321,40 @@ interactions: 18","max_weight":null,"name":"EXPRESS_18"},{"carrier":"dpdnl","description":null,"dimensions":[],"human_readable":"International Express","max_weight":null,"name":"INTERNATIONAL_EXPRESS"},{"carrier":"dpdnl","description":null,"dimensions":[],"human_readable":"DPDNL B2C Home","max_weight":null,"name":"DPDNL_HOME"},{"carrier":"dpdnl","description":null,"dimensions":[],"human_readable":"DPDNL - B2C Shop","max_weight":null,"name":"DPDNL_TO_SHOP"}],"shipment_options":[],"supported_features":[{"carrier":"dpdnl","description":null,"name":"commercial_invoices","supported":false},{"carrier":"dpdnl","description":null,"name":"labels","supported":true},{"carrier":"dpdnl","description":null,"name":"orders","supported":false},{"carrier":"dpdnl","description":null,"name":"pickups","supported":false},{"carrier":"dpdnl","description":null,"name":"rating","supported":true},{"carrier":"dpdnl","description":null,"name":"refunds","supported":true},{"carrier":"dpdnl","description":null,"name":"returns","supported":false},{"carrier":"dpdnl","description":null,"name":"scanforms","supported":false},{"carrier":"dpdnl","description":null,"name":"sort_codes","supported":false},{"carrier":"dpdnl","description":null,"name":"test_environment","supported":true},{"carrier":"dpdnl","description":null,"name":"tracking","supported":true}]},{"human_readable":"DPD - UK","name":"dpduk","predefined_packages":[{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Pallet"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressPak"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcel"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Freight"}],"service_levels":[{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"AirClassicInternationalAir"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"AirExpressInternationalAir"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSunday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpdTwoDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSunday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpdTwoDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSunday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpdTwoDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelReturnToShop"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSunday12:00"}],"shipment_options":[],"supported_features":[]},{"human_readable":"ePostGlobal","name":"epostglobal","predefined_packages":[],"service_levels":[{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CourierServiceDDP"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CourierServiceDDU"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticEconomyParcel"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticParcelBPM"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticPriorityParcel"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticPriorityParcelBPM"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EMIService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomyParcelService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IPAService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ISALService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMIService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDDP"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDDU"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDeliveryConfirmationDDP"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDeliveryConfirmationDDU"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ePacketService"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Estafeta","name":"estafeta","predefined_packages":[{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ENVELOPE"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PARCEL"}],"service_levels":[{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NextDayBy930"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NextDayBy1130"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NextDay"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"TwoDay"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LTL"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Evri","name":"evri","predefined_packages":[],"service_levels":[{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Courier2Home"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Courier2HomeNextDay"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2Home"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2HomeNextDay"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2Shop"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2ShopNextDay"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Fastway","name":"fastway","predefined_packages":[{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"fastway","description":"(Satchel)","dimensions":[],"human_readable":null,"max_weight":null,"name":"A2"},{"carrier":"fastway","description":"(Satchel)","dimensions":[],"human_readable":null,"max_weight":null,"name":"A3"},{"carrier":"fastway","description":"(Satchel, + B2C Shop","max_weight":null,"name":"DPDNL_TO_SHOP"}],"shipment_options":[],"supported_features":[{"carrier":"dpdnl","description":null,"name":"commercial_invoices","supported":false},{"carrier":"dpdnl","description":null,"name":"labels","supported":true},{"carrier":"dpdnl","description":null,"name":"orders","supported":false},{"carrier":"dpdnl","description":null,"name":"pickups","supported":false},{"carrier":"dpdnl","description":null,"name":"rating","supported":true},{"carrier":"dpdnl","description":null,"name":"refunds","supported":true},{"carrier":"dpdnl","description":null,"name":"returns","supported":false},{"carrier":"dpdnl","description":null,"name":"scanforms","supported":false},{"carrier":"dpdnl","description":null,"name":"sort_codes","supported":false},{"carrier":"dpdnl","description":null,"name":"test_environment","supported":true}]},{"human_readable":"DPD + UK","name":"dpduk","predefined_packages":[{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Pallet"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressPak"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcel"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Freight"}],"service_levels":[{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"AirClassicInternationalAir"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"AirExpressInternationalAir"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpresspakSunday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelDpdTwoDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcelSunday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletDpdTwoDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletSunday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpd10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpd12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpdClassic"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpdNextDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelDpdTwoDay"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelReturnToShop"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSaturday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSaturday10:30"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSaturday12:00"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSunday"},{"carrier":"dpduk","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSunday12:00"}],"shipment_options":[],"supported_features":[]},{"human_readable":"ePostGlobal","name":"epostglobal","predefined_packages":[],"service_levels":[{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CourierServiceDDP"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CourierServiceDDU"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticEconomyParcel"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticParcelBPM"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticPriorityParcel"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticPriorityParcelBPM"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EMIService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomyParcelService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IPAService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ISALService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMIService"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDDP"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDDU"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDeliveryConfirmationDDP"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelDeliveryConfirmationDDU"},{"carrier":"epostglobal","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ePacketService"}],"shipment_options":[],"supported_features":[]},{"human_readable":"EPostGlobalV2","name":"epostglobalv2","predefined_packages":[],"service_levels":[{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CourierService"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CourierServiceDutiesPaid"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticPriorityParcel"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticeDGE"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomyParcel"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpeditedParcelWithDeliveryConfirmationDutiesPaid"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpeditedWithDC"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FirstClassParcelsInternational"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IPA"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ISAL"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMEI"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMEIDDP"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMIPresortService"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMIServiceDutyPaid"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityPacketDDU"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelNoDeliveryConfirmation"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelNoDeliveryConfirmationDutiesPaid"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelWithDeliveryConfirmation"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityParcelWithDeliveryConfirmationDutiesPaid"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ePacket"},{"carrier":"epostglobalv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ePacketDDP"}],"shipment_options":[],"supported_features":[{"carrier":"epostglobalv2","description":null,"name":"labels","supported":null},{"carrier":"epostglobalv2","description":null,"name":"rating","supported":true},{"carrier":"epostglobalv2","description":null,"name":"refunds","supported":null}]},{"human_readable":"Estafeta","name":"estafeta","predefined_packages":[{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ENVELOPE"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PARCEL"}],"service_levels":[{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"11:30"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"12:30"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Dia + Sig."},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"2 + Dias"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Terrestre"},{"carrier":"estafeta","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LTL"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Evri","name":"evri","predefined_packages":[],"service_levels":[{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Courier2Home"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Courier2HomeNextDay"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2Home"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2HomeNextDay"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2Shop"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Shop2ShopNextDay"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Courier2Shop"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Courier2ShopNextDay"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"International + Delivery"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Commercial"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DDP + Courier"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DDU + Courier"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DDU + Shop"},{"carrier":"evri","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Postal"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Fastway","name":"fastway","predefined_packages":[{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"fastway","description":"(Satchel)","dimensions":[],"human_readable":null,"max_weight":null,"name":"A2"},{"carrier":"fastway","description":"(Satchel)","dimensions":[],"human_readable":null,"max_weight":null,"name":"A3"},{"carrier":"fastway","description":"(Satchel, not available in Australia)","dimensions":[],"human_readable":null,"max_weight":null,"name":"A4"},{"carrier":"fastway","description":"(Satchel, not available in South Africa)","dimensions":[],"human_readable":null,"max_weight":null,"name":"A5"},{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BOXSML"},{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BOXMED"},{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BOXLRG"}],"service_levels":[{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"fastway","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Satchel"}],"shipment_options":[],"supported_features":[]},{"human_readable":"FedEx","name":"fedex","predefined_packages":[{"carrier":"fedex","description":"Up - to approximately 60 pages","dimensions":["9.5in x 12.5in"],"human_readable":null,"max_weight":8,"name":"FedExEnvelope"},{"carrier":"fedex","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FedExBox"},{"carrier":"fedex","description":null,"dimensions":["12in - x 15.5in"],"human_readable":null,"max_weight":88,"name":"FedExPak"},{"carrier":"fedex","description":"Triangular + to approximately 60 pages","dimensions":["9.5in x 12.5in"],"human_readable":null,"max_weight":160,"name":"FedExEnvelope"},{"carrier":"fedex","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FedExBox"},{"carrier":"fedex","description":null,"dimensions":["12in + x 15.5in"],"human_readable":null,"max_weight":800,"name":"FedExPak"},{"carrier":"fedex","description":"Triangular box for plans, posters, fabric rolls, charts and blueprints","dimensions":["38in - x 6in x 6in x 6in"],"human_readable":null,"max_weight":320,"name":"FedExTube"},{"carrier":"fedex","description":"To + x 6in x 6in x 6in"],"human_readable":null,"max_weight":800,"name":"FedExTube"},{"carrier":"fedex","description":"To qualify for the flat rate, weight cannot exceed 10 kg","dimensions":["15.81in x 12.94in x 10.19in"],"human_readable":null,"max_weight":352,"name":"FedEx10kgBox"},{"carrier":"fedex","description":"To qualify for the flat rate, weight cannot exceed 25 kg.","dimensions":["21.56in - x 16.56in x 13.19in"],"human_readable":null,"max_weight":880,"name":"FedEx25kgBox"},{"carrier":"fedex","description":null,"dimensions":["12.25in - x 10.9in x 1.5in","8.75in x 2.63in x 11.25in"],"human_readable":null,"max_weight":320,"name":"FedExSmallBox"},{"carrier":"fedex","description":null,"dimensions":["13.25in - x 11.5in x 2.38in","8.75in x 4.38in x 11.25in"],"human_readable":null,"max_weight":320,"name":"FedExMediumBox"},{"carrier":"fedex","description":null,"dimensions":["17.88in - x 12.38in x 3in","8.75in x 7.75in x 11.25in"],"human_readable":null,"max_weight":320,"name":"FedExLargeBox"},{"carrier":"fedex","description":null,"dimensions":["11.88in - x 10.75in x 11in","15.25in x 14.13in x 6in"],"human_readable":null,"max_weight":320,"name":"FedExExtraLargeBox"}],"service_levels":[{"carrier":"fedex","description":"2 + x 16.56in x 13.19in"],"human_readable":null,"max_weight":880,"name":"FedEx25kgBox"},{"carrier":"fedex","description":"Maximum + weight allowed is based on pricing option: 50 lbs (800 oz) for domestic Express + One Rate shipments, 20 lbs (320 oz) for domestic weight-based Express shipments, + 40 lbs (640 oz) for international weight-based Express shipments.","dimensions":["12.25in + x 10.9in x 1.5in","8.75in x 2.63in x 11.25in"],"human_readable":null,"max_weight":800,"name":"FedExSmallBox"},{"carrier":"fedex","description":"Maximum + weight allowed is based on pricing option: 50 lbs (800 oz) for domestic Express + One Rate shipments, 20 lbs (320 oz) for domestic weight-based Express shipments, + 40 lbs (640 oz) for international weight-based Express shipments.","dimensions":["13.25in + x 11.5in x 2.38in","8.75in x 4.38in x 11.25in"],"human_readable":null,"max_weight":800,"name":"FedExMediumBox"},{"carrier":"fedex","description":"Maximum + weight allowed is based on pricing option: 50 lbs (800 oz) for domestic Express + One Rate shipments, 20 lbs (320 oz) for domestic weight-based Express shipments, + 40 lbs (640 oz) for international weight-based Express shipments.","dimensions":["17.88in + x 12.38in x 3in","8.75in x 7.75in x 11.25in"],"human_readable":null,"max_weight":800,"name":"FedExLargeBox"},{"carrier":"fedex","description":"Maximum + weight allowed is based on pricing option: 50 lbs (800 oz) for domestic Express + One Rate shipments, 20 lbs (320 oz) for domestic weight-based Express shipments, + 40 lbs (640 oz) for international weight-based Express shipments.","dimensions":["11.88in + x 10.75in x 11in","15.25in x 14.13in x 6in"],"human_readable":null,"max_weight":800,"name":"FedExExtraLargeBox"}],"service_levels":[{"carrier":"fedex","description":"2 business days by 4:30pm, Saturday delivery","dimensions":null,"human_readable":"FedEx 2 Day","max_weight":null,"name":"FEDEX_2_DAY"},{"carrier":"fedex","description":"2 business days by 10:30am","dimensions":null,"human_readable":"FedEx 2 Day (AM)","max_weight":null,"name":"FEDEX_2_DAY_AM"},{"carrier":"fedex","description":"3 @@ -350,14 +378,19 @@ interactions: Overnight","max_weight":null,"name":"STANDARD_OVERNIGHT"}],"shipment_options":[],"supported_features":[]},{"human_readable":"FedEx Cross Border","name":"fedexcrossborder","predefined_packages":[],"service_levels":[{"carrier":"fedexcrossborder","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CBEC"},{"carrier":"fedexcrossborder","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CBECL"},{"carrier":"fedexcrossborder","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CBECP"}],"shipment_options":[],"supported_features":[]},{"human_readable":"FedEx Ground Economy","name":"fedexgroundeconomy","predefined_packages":[],"service_levels":[{"carrier":"fedexgroundeconomy","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SMART_POST"}],"shipment_options":[],"supported_features":[]},{"human_readable":"FedEx - Mailview","name":"fedexmailview","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"FedEx SmartPost","name":"fedexsmartpost","predefined_packages":[],"service_levels":[{"carrier":"fedexsmartpost","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SMART_POST"}],"shipment_options":[],"supported_features":[]},{"human_readable":"First - Mile","name":"firstmile","predefined_packages":[],"service_levels":[{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelPriority"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelExpedited"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelReturns"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelGround"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelExpeditedPlus"}],"shipment_options":[],"supported_features":[{"carrier":"firstmile","description":null,"name":"labels","supported":true},{"carrier":"firstmile","description":null,"name":"orders","supported":false},{"carrier":"firstmile","description":null,"name":"pickups","supported":false},{"carrier":"firstmile","description":null,"name":"rating","supported":true},{"carrier":"firstmile","description":null,"name":"refunds","supported":true},{"carrier":"firstmile","description":null,"name":"returns","supported":true},{"carrier":"firstmile","description":null,"name":"scanforms","supported":false},{"carrier":"firstmile","description":null,"name":"test_environment","supported":true},{"carrier":"firstmile","description":null,"name":"tracking","supported":true}]},{"human_readable":"Flexport","name":"flexport","predefined_packages":[],"service_levels":[{"carrier":"flexport","description":null,"dimensions":[],"human_readable":"Standard","max_weight":null,"name":"Standard"},{"carrier":"flexport","description":null,"dimensions":[],"human_readable":"Expedited","max_weight":null,"name":"Expedited"}],"shipment_options":[],"supported_features":[{"carrier":"flexport","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"flexport","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"flexport","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"flexport","description":null,"name":"bill_on_scan","supported":true},{"carrier":"flexport","description":null,"name":"commercial_invoices","supported":false},{"carrier":"flexport","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"flexport","description":null,"name":"labels","supported":true},{"carrier":"flexport","description":null,"name":"orders","supported":false},{"carrier":"flexport","description":null,"name":"pickups","supported":false},{"carrier":"flexport","description":null,"name":"rating","supported":true},{"carrier":"flexport","description":null,"name":"refunds","supported":false},{"carrier":"flexport","description":null,"name":"returns","supported":false},{"carrier":"flexport","description":null,"name":"scanforms","supported":false},{"carrier":"flexport","description":null,"name":"sort_codes","supported":false},{"carrier":"flexport","description":null,"name":"test_environment","supported":false},{"carrier":"flexport","description":null,"name":"tracking","supported":true}]},{"human_readable":"GLS","name":"gls","predefined_packages":[],"service_levels":[{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CaliforniaParcelService"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlyPriorityOvernight"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlySaturdayService"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Overnight"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityOvernight"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SaturdayDeliveryService"}],"shipment_options":[],"supported_features":[]},{"human_readable":"GSO","name":"gso","predefined_packages":[],"service_levels":[{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CaliforniaParcelService"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlyPriorityOvernight"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlySaturdayService"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Overnight"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityOvernight"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SaturdayDeliveryService"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Hailify","name":"hailify","predefined_packages":[],"service_levels":[{"carrier":"hailify","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Xpress"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Interlink - Express","name":"interlinkexpress","predefined_packages":[{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Pallet"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressPak"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcel"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Freight"}],"service_levels":[{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkAirClassicInternationalAir"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkAirExpressInternationalAir"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1By10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1By12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1NextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1Saturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1SaturdayBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1SaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1Sunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1SundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5By10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5By10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5By12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5NextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5Saturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SaturdayBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SaturdayBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5Sunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightNextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSaturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSaturdayBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelDpdEuropeByRoad"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelNextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelReturn"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelReturnToShop"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturdayBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturdayBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelShipToShop"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelTwoDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkPickupParcelDpdEuropeByRoad"}],"shipment_options":[],"supported_features":[]},{"human_readable":"JP + Choice","name":"firstchoice","predefined_packages":[],"service_levels":[{"carrier":"firstchoice","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ST"}],"shipment_options":[],"supported_features":[{"carrier":"firstchoice","description":null,"name":"labels","supported":null}]},{"human_readable":"First + Mile","name":"firstmile","predefined_packages":[],"service_levels":[{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelPriority"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelExpedited"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelReturns"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelGround"},{"carrier":"firstmile","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"XParcelExpeditedPlus"}],"shipment_options":[],"supported_features":[{"carrier":"firstmile","description":null,"name":"labels","supported":true},{"carrier":"firstmile","description":null,"name":"orders","supported":false},{"carrier":"firstmile","description":null,"name":"pickups","supported":false},{"carrier":"firstmile","description":null,"name":"rating","supported":true},{"carrier":"firstmile","description":null,"name":"refunds","supported":true},{"carrier":"firstmile","description":null,"name":"returns","supported":true},{"carrier":"firstmile","description":null,"name":"scanforms","supported":false},{"carrier":"firstmile","description":null,"name":"test_environment","supported":true}]},{"human_readable":"Flexport","name":"flexport","predefined_packages":[],"service_levels":[{"carrier":"flexport","description":null,"dimensions":[],"human_readable":"Standard","max_weight":null,"name":"Standard"},{"carrier":"flexport","description":null,"dimensions":[],"human_readable":"Expedited","max_weight":null,"name":"Expedited"}],"shipment_options":[],"supported_features":[{"carrier":"flexport","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"flexport","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"flexport","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"flexport","description":null,"name":"bill_on_scan","supported":true},{"carrier":"flexport","description":null,"name":"commercial_invoices","supported":false},{"carrier":"flexport","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"flexport","description":null,"name":"labels","supported":true},{"carrier":"flexport","description":null,"name":"orders","supported":false},{"carrier":"flexport","description":null,"name":"pickups","supported":false},{"carrier":"flexport","description":null,"name":"rating","supported":true},{"carrier":"flexport","description":null,"name":"refunds","supported":false},{"carrier":"flexport","description":null,"name":"returns","supported":false},{"carrier":"flexport","description":null,"name":"scanforms","supported":false},{"carrier":"flexport","description":null,"name":"sort_codes","supported":false},{"carrier":"flexport","description":null,"name":"test_environment","supported":false}]},{"human_readable":"Gio","name":"gio","predefined_packages":[],"service_levels":[{"carrier":"gio","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"scheduled"}],"shipment_options":[],"supported_features":[]},{"human_readable":"GLS","name":"gls","predefined_packages":[],"service_levels":[{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CaliforniaParcelService"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlyPriorityOvernight"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlySaturdayService"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Overnight"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityOvernight"},{"carrier":"gls","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SaturdayDeliveryService"}],"shipment_options":[],"supported_features":[]},{"human_readable":"GSO","name":"gso","predefined_packages":[],"service_levels":[{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CaliforniaParcelService"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlyPriorityOvernight"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EarlySaturdayService"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Overnight"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityOvernight"},{"carrier":"gso","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SaturdayDeliveryService"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Hailify","name":"hailify","predefined_packages":[],"service_levels":[{"carrier":"hailify","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Xpress"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Henry","name":"henry","predefined_packages":[],"service_levels":[{"carrier":"henry","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Distribution"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Interlink + Express","name":"interlinkexpress","predefined_packages":[{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Parcel"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Pallet"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressPak"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FreightParcel"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Freight"}],"service_levels":[{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkAirClassicInternationalAir"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkAirExpressInternationalAir"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1By10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1By12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1NextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1Saturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1SaturdayBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1SaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1Sunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak1SundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5By10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5By10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5By12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5NextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5Saturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SaturdayBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SaturdayBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5Sunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkExpresspak5SundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightNextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSaturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSaturdayBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkFreightSundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelDpdEuropeByRoad"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelNextDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelReturn"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelReturnToShop"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturdayBy10"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturdayBy10:30"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSaturdayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelShipToShop"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSunday"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelSundayBy12"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkParcelTwoDay"},{"carrier":"interlinkexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InterlinkPickupParcelDpdEuropeByRoad"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Jet","name":"jet","predefined_packages":[],"service_levels":[{"carrier":"jet","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Distribution"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Jitsu","name":"jitsu","predefined_packages":[],"service_levels":[{"carrier":"jitsu","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"AxleHireDelivery"}],"shipment_options":[],"supported_features":[{"carrier":"jitsu","description":null,"name":"labels","supported":null},{"carrier":"jitsu","description":null,"name":"pickups","supported":null},{"carrier":"jitsu","description":null,"name":"rating","supported":true},{"carrier":"jitsu","description":null,"name":"scanforms","supported":null}]},{"human_readable":"JP Post","name":"jppost","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"Kuroneko Yamato","name":"kuronekoyamato","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"La Poste","name":"laposte","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]},{"human_readable":"LaserShip","name":"lasershipv2","predefined_packages":[{"carrier":"lasershipv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Envelope"},{"carrier":"lasershipv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Custom"}],"service_levels":[{"carrier":"lasershipv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SameDay"},{"carrier":"lasershipv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NextDay"},{"carrier":"lasershipv2","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Weekend"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Loomis - Express","name":"loomisexpress","predefined_packages":[],"service_levels":[{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisGround"},{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisExpress1800"},{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisExpress1200"},{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisExpress900"}],"shipment_options":[],"supported_features":[]},{"human_readable":"LSO","name":"lso","predefined_packages":[],"service_levels":[],"shipment_options":[{"carrier":"lso","deprecated":false,"description":null,"human_readable":"Delivery + Express","name":"loomisexpress","predefined_packages":[],"service_levels":[{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisGround"},{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisExpress1800"},{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisExpress1200"},{"carrier":"loomisexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LoomisExpress900"}],"shipment_options":[],"supported_features":[{"carrier":"loomisexpress","description":null,"name":"labels","supported":null},{"carrier":"loomisexpress","description":null,"name":"pickups","supported":null},{"carrier":"loomisexpress","description":null,"name":"rating","supported":true},{"carrier":"loomisexpress","description":null,"name":"scanforms","supported":null},{"carrier":"loomisexpress","description":null,"name":"test_environment","supported":null}]},{"human_readable":"LSO","name":"lso","predefined_packages":[],"service_levels":[{"carrier":"lso","description":null,"dimensions":null,"human_readable":"Early + Next Day by 8:30 a.m.","max_weight":null,"name":"PriorityEarly"},{"carrier":"lso","description":null,"dimensions":null,"human_readable":"Priority + Next Day by 10:30 a.m.","max_weight":null,"name":"PriorityBasic"},{"carrier":"lso","description":null,"dimensions":null,"human_readable":"Priority + 2nd Business Day","max_weight":null,"name":"Priority2ndDay"},{"carrier":"lso","description":null,"dimensions":null,"human_readable":"Economy + Next Day by 3 p.m.","max_weight":null,"name":"GroundEarly"},{"carrier":"lso","description":null,"dimensions":null,"human_readable":"Ground + Basic in 1-3 business days","max_weight":null,"name":"GroundBasic"},{"carrier":"lso","description":null,"dimensions":null,"human_readable":"eCommerce","max_weight":null,"name":"ECommerce"}],"shipment_options":[{"carrier":"lso","deprecated":false,"description":null,"human_readable":"Delivery Confirmation","name":"delivery_confirmation","type":"string"},{"carrier":"lso","deprecated":false,"description":null,"human_readable":"Saturday Delivery","name":"saturday_delivery","type":"boolean"},{"carrier":"lso","deprecated":true,"description":null,"human_readable":"Date Advance","name":"date_advance","type":"integer"},{"carrier":"lso","deprecated":true,"description":null,"human_readable":"Declared @@ -366,18 +399,24 @@ interactions: Size","name":"label_size","type":"string"},{"carrier":"lso","deprecated":true,"description":null,"human_readable":"Print Custom 1","name":"print_custom_1","type":"string"},{"carrier":"lso","deprecated":true,"description":null,"human_readable":"Print Custom 2","name":"print_custom_2","type":"string"},{"carrier":"lso","deprecated":true,"description":null,"human_readable":"Print - Custom 3","name":"print_custom_3","type":"string"}],"supported_features":[{"carrier":"lso","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"lso","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"lso","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"lso","description":null,"name":"bill_on_scan","supported":true},{"carrier":"lso","description":null,"name":"commercial_invoices","supported":false},{"carrier":"lso","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"lso","description":null,"name":"labels","supported":true},{"carrier":"lso","description":null,"name":"orders","supported":false},{"carrier":"lso","description":null,"name":"pickups","supported":true},{"carrier":"lso","description":null,"name":"rating","supported":true},{"carrier":"lso","description":null,"name":"refunds","supported":false},{"carrier":"lso","description":null,"name":"returns","supported":false},{"carrier":"lso","description":null,"name":"scanforms","supported":false},{"carrier":"lso","description":null,"name":"sort_codes","supported":false},{"carrier":"lso","description":null,"name":"test_environment","supported":true},{"carrier":"lso","description":null,"name":"tracking","supported":true}]},{"human_readable":"Maergo","name":"maergo","predefined_packages":[],"service_levels":[{"carrier":"maergo","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Standard"}],"shipment_options":[],"supported_features":[{"carrier":"maergo","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"maergo","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"maergo","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"maergo","description":null,"name":"bill_on_scan","supported":false},{"carrier":"maergo","description":null,"name":"commercial_invoices","supported":false},{"carrier":"maergo","description":null,"name":"labels","supported":false},{"carrier":"maergo","description":null,"name":"orders","supported":false},{"carrier":"maergo","description":null,"name":"pickups","supported":false},{"carrier":"maergo","description":null,"name":"rating","supported":true},{"carrier":"maergo","description":null,"name":"refunds","supported":true},{"carrier":"maergo","description":null,"name":"returns","supported":false},{"carrier":"maergo","description":null,"name":"scanforms","supported":false},{"carrier":"maergo","description":null,"name":"sort_codes","supported":false},{"carrier":"maergo","description":null,"name":"test_environment","supported":false},{"carrier":"maergo","description":null,"name":"tracking","supported":true}]},{"human_readable":"Newgistics","name":"newgistics","predefined_packages":[],"service_levels":[{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSelect"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSelectLightweight"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FirstClassMail"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityMail"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BoundPrintedMatter"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Ontrac","name":"ontrac","predefined_packages":[{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Letter"}],"service_levels":[{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Sunrise"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Gold"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"OnTracGround"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SameDay"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletizedFreight"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Optima","name":"optima","predefined_packages":[],"service_levels":[{"carrier":"optima","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NxtDay"}],"shipment_options":[],"supported_features":[]},{"human_readable":"OSM - Worldwide","name":"osmworldwide","predefined_packages":[{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"parcel"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"irregularparcel"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"softpack"}],"service_levels":[{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Parcel - Select Lightweight","max_weight":null,"name":"ParcelSelectLightweight"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Priority","max_weight":null,"name":"Priority"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"BPM","max_weight":null,"name":"BPM"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Parcel + Custom 3","name":"print_custom_3","type":"string"}],"supported_features":[{"carrier":"lso","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"lso","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"lso","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"lso","description":null,"name":"bill_on_scan","supported":true},{"carrier":"lso","description":null,"name":"commercial_invoices","supported":false},{"carrier":"lso","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"lso","description":null,"name":"labels","supported":true},{"carrier":"lso","description":null,"name":"orders","supported":false},{"carrier":"lso","description":null,"name":"pickups","supported":true},{"carrier":"lso","description":null,"name":"rating","supported":true},{"carrier":"lso","description":null,"name":"refunds","supported":false},{"carrier":"lso","description":null,"name":"returns","supported":false},{"carrier":"lso","description":null,"name":"scanforms","supported":false},{"carrier":"lso","description":null,"name":"sort_codes","supported":false},{"carrier":"lso","description":null,"name":"test_environment","supported":true}]},{"human_readable":"Maergo","name":"maergo","predefined_packages":[],"service_levels":[{"carrier":"maergo","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Standard"}],"shipment_options":[],"supported_features":[{"carrier":"maergo","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"maergo","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"maergo","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"maergo","description":null,"name":"bill_on_scan","supported":false},{"carrier":"maergo","description":null,"name":"commercial_invoices","supported":false},{"carrier":"maergo","description":null,"name":"labels","supported":false},{"carrier":"maergo","description":null,"name":"orders","supported":false},{"carrier":"maergo","description":null,"name":"pickups","supported":false},{"carrier":"maergo","description":null,"name":"rating","supported":true},{"carrier":"maergo","description":null,"name":"refunds","supported":true},{"carrier":"maergo","description":null,"name":"returns","supported":false},{"carrier":"maergo","description":null,"name":"scanforms","supported":false},{"carrier":"maergo","description":null,"name":"sort_codes","supported":false},{"carrier":"maergo","description":null,"name":"test_environment","supported":false}]},{"human_readable":"Newgistics","name":"newgistics","predefined_packages":[],"service_levels":[{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSelect"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelSelectLightweight"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ground"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FirstClassMail"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PriorityMail"},{"carrier":"newgistics","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"BoundPrintedMatter"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Ontrac","name":"ontrac","predefined_packages":[{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Letter"}],"service_levels":[{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Sunrise"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Gold"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"OnTracGround"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SameDay"},{"carrier":"ontrac","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PalletizedFreight"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Optima","name":"optima","predefined_packages":[],"service_levels":[{"carrier":"optima","description":null,"dimensions":["Maximum + length: 48in","Maximum width: 32in","Maximum height: 32in"],"human_readable":null,"max_weight":800,"name":"NxtDay"}],"shipment_options":[],"supported_features":[]},{"human_readable":"OSM + Worldwide","name":"osmworldwide","predefined_packages":[{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"parcel"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"irregularparcel"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"softpack"}],"service_levels":[{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Priority","max_weight":null,"name":"Priority"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"BPM","max_weight":null,"name":"BPM"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Parcel Select","max_weight":null,"name":"ParcelSelect"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Media Mail","max_weight":null,"name":"MediaMail"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Marketing Parcel","max_weight":null,"name":"MarketingParcel"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Marketing Parcel Tracked","max_weight":null,"name":"MarketingParcelTracked"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Parcel - Select Lightweight Hazardous Material","max_weight":null,"name":"ParcelSelectLightweightHazardousMaterial"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Parcel Select Hazardous Material","max_weight":null,"name":"ParcelSelectHazardousMaterial"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"USPS Ground Advantage","max_weight":null,"name":"USPSGroundAdvantage"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"USPS - Ground Advantage Lightweight","max_weight":null,"name":"USPSGroundAdvantageLightweight"}],"shipment_options":[],"supported_features":[{"carrier":"osmworldwide","description":null,"name":"labels","supported":true},{"carrier":"osmworldwide","description":null,"name":"orders","supported":false},{"carrier":"osmworldwide","description":null,"name":"pickups","supported":false},{"carrier":"osmworldwide","description":null,"name":"rating","supported":true},{"carrier":"osmworldwide","description":null,"name":"refunds","supported":false},{"carrier":"osmworldwide","description":null,"name":"returns","supported":false},{"carrier":"osmworldwide","description":"Manifesting","name":"scanforms","supported":true},{"carrier":"osmworldwide","description":null,"name":"sort_codes","supported":true},{"carrier":"osmworldwide","description":null,"name":"tracking","supported":true}]},{"human_readable":"Pandion","name":"pandion","predefined_packages":[],"service_levels":[{"carrier":"pandion","description":null,"dimensions":[],"human_readable":"Pandion - Express","max_weight":null,"name":"Pandion Express"}],"shipment_options":[],"supported_features":[{"carrier":"pandion","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"pandion","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"pandion","description":null,"name":"bill_on_manifest","supported":true},{"carrier":"pandion","description":null,"name":"bill_on_scan","supported":true},{"carrier":"pandion","description":null,"name":"commercial_invoices","supported":false},{"carrier":"pandion","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"pandion","description":null,"name":"labels","supported":true},{"carrier":"pandion","description":null,"name":"orders","supported":false},{"carrier":"pandion","description":null,"name":"pickups","supported":false},{"carrier":"pandion","description":null,"name":"rating","supported":true},{"carrier":"pandion","description":null,"name":"refunds","supported":false},{"carrier":"pandion","description":null,"name":"returns","supported":true},{"carrier":"pandion","description":null,"name":"scanforms","supported":true},{"carrier":"pandion","description":null,"name":"sort_codes","supported":false},{"carrier":"pandion","description":null,"name":"test_environment","supported":true},{"carrier":"pandion","description":null,"name":"tracking","supported":true}]},{"human_readable":"Parcelforce","name":"parcelforce","predefined_packages":[],"service_levels":[{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express9"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express9Secure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express9CourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express10"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express10Secure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express10Exchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express10SecureExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express10CourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressAM"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressAMSecure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressAMExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressAMSecureExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressAMCourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressPM"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ExpressPMSecure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express24"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express24Large"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express24Secure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express24Exchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express24SecureExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express24CourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express48"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Express48Large"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelRiderPlus"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalBulkDirect"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalExpress"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalExpressEnvelopeDelivery"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalExpressPackDelivery"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalValue"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalPriority"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"GlobalPriorityReturns"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EuroPriorityHome"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EuroPriorityBusiness"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IrelandExpress"}],"shipment_options":[],"supported_features":[]},{"human_readable":"PARCLL","name":"parcll","predefined_packages":[],"service_levels":[{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECOCE + Ground Advantage Lightweight","max_weight":null,"name":"USPSGroundAdvantageLightweight"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"USPS + Ground Advantage Hazmat","max_weight":null,"name":"USPSGroundAdvantageHazmat"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"USPS + Ground Advantage Hazmat Signature","max_weight":null,"name":"USPSGroundAdvantageHazmatSignature"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"USPS + Ground Advantage Lightweight Hazmat","max_weight":null,"name":"USPSGroundAdvantageLightweightHazmat"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"USPS + Ground Advantage Lightweight Hazmat Signature","max_weight":null,"name":"USPSGroundAdvantageLightweightHazmatSignature"},{"carrier":"osmworldwide","description":null,"dimensions":[],"human_readable":"Parcel + Select Hazmat Signature","max_weight":null,"name":"ParcelSelectHazmatSignature"}],"shipment_options":[],"supported_features":[{"carrier":"osmworldwide","description":null,"name":"labels","supported":true},{"carrier":"osmworldwide","description":null,"name":"orders","supported":false},{"carrier":"osmworldwide","description":null,"name":"pickups","supported":false},{"carrier":"osmworldwide","description":null,"name":"rating","supported":true},{"carrier":"osmworldwide","description":null,"name":"refunds","supported":false},{"carrier":"osmworldwide","description":null,"name":"returns","supported":false},{"carrier":"osmworldwide","description":"Manifesting","name":"scanforms","supported":true},{"carrier":"osmworldwide","description":null,"name":"sort_codes","supported":true}]},{"human_readable":"Pandion","name":"pandion","predefined_packages":[],"service_levels":[{"carrier":"pandion","description":null,"dimensions":[],"human_readable":"Pandion + Express","max_weight":null,"name":"Pandion Express"}],"shipment_options":[],"supported_features":[{"carrier":"pandion","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"pandion","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"pandion","description":null,"name":"bill_on_manifest","supported":true},{"carrier":"pandion","description":null,"name":"bill_on_scan","supported":true},{"carrier":"pandion","description":null,"name":"commercial_invoices","supported":false},{"carrier":"pandion","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"pandion","description":null,"name":"labels","supported":true},{"carrier":"pandion","description":null,"name":"orders","supported":false},{"carrier":"pandion","description":null,"name":"pickups","supported":false},{"carrier":"pandion","description":null,"name":"rating","supported":true},{"carrier":"pandion","description":null,"name":"refunds","supported":false},{"carrier":"pandion","description":null,"name":"returns","supported":true},{"carrier":"pandion","description":null,"name":"scanforms","supported":true},{"carrier":"pandion","description":null,"name":"sort_codes","supported":false},{"carrier":"pandion","description":null,"name":"test_environment","supported":true}]},{"human_readable":"Parcelforce","name":"parcelforce","predefined_packages":[],"service_levels":[{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"europrioritybusiness"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"europriorityhome"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express10"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express10CourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express10Exchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express10Secure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express10SecureExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express24"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express24CourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express24Exchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express24large"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express24Secure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express24SecureExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express48"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express48large"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express9"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express9CourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"express9Secure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressAM"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressAMCourierPack"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressAMExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressAMSecure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressAMSecureExchange"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressPM"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"expressPMSecure"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalBulkDirect"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalexpress"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalexpressEnvelopeDelivery"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalexpressPackDelivery"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalpriority"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalpriorityReturns"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"globalvalue"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"irelandexpress"},{"carrier":"parcelforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ParcelRiderPlus"}],"shipment_options":[],"supported_features":[]},{"human_readable":"PARCLL","name":"parcll","predefined_packages":[],"service_levels":[{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CADOECOEA + (CA Domestic Economy East)"},{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CADOECOWE + (CA Domestic Economy West)"},{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECOCE (US to CA Economy)"},{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECONE (US to CA Economy)"},{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CAECOWE (US to CA Economy)"},{"carrier":"parcll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"ECOCE @@ -458,7 +497,7 @@ interactions: Quick Ship Pack","max_weight":null,"name":"PurolatorQuickShipPack"},{"carrier":"purolator","description":null,"dimensions":[],"human_readable":"Purolator Quick Ship Box","max_weight":null,"name":"PurolatorQuickShipBox"}],"shipment_options":[],"supported_features":[{"carrier":"purolator","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"purolator","description":null,"name":"commercial_invoices","supported":true},{"carrier":"purolator","description":null,"name":"labels","supported":true},{"carrier":"purolator","description":null,"name":"orders","supported":true},{"carrier":"purolator","description":null,"name":"pickups","supported":true},{"carrier":"purolator","description":null,"name":"rating","supported":true},{"carrier":"purolator","description":"Purolator bills at the end of the day for all labels created that day. You cannot refund - a label after the end of the day it was created.","name":"refunds","supported":true},{"carrier":"purolator","description":null,"name":"returns","supported":true},{"carrier":"purolator","description":null,"name":"scanforms","supported":true},{"carrier":"purolator","description":null,"name":"sort_codes","supported":false},{"carrier":"purolator","description":null,"name":"test_environment","supported":true},{"carrier":"purolator","description":null,"name":"tracking","supported":true}]},{"human_readable":"Royal + a label after the end of the day it was created.","name":"refunds","supported":true},{"carrier":"purolator","description":null,"name":"returns","supported":true},{"carrier":"purolator","description":null,"name":"scanforms","supported":true},{"carrier":"purolator","description":null,"name":"sort_codes","supported":false},{"carrier":"purolator","description":null,"name":"test_environment","supported":true}]},{"human_readable":"Quick","name":"quick","predefined_packages":[],"service_levels":[{"carrier":"quick","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Routed"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Royal Mail","name":"royalmail","predefined_packages":[{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LARGELETTER"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SMALLPARCEL"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"MEDIUMPARCEL"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"LETTER"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PRINTEDPAPER"}],"service_levels":[{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalPriority"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomy"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalStandard"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalTrackedAndSigned"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalTracked"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalSigned"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"AccountMail"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"RoyalMailUnsigned"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"RoyalMail"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SpecialDeliveryGuaranteed"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SpecialDeliveryGuaranteed1pm"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SpecialDeliveryGuaranteed9am"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"StandardLetter"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked24"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked24HighVolume"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked24HighVolumeSignature"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked24LBT"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked24SignatureLBT"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked48LBT"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked48SignatureLBT"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked24Signature"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked48"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked48HighVolume"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked48HighVolumeSignature"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tracked48Signature"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"TrackedReturns24"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"TrackedReturns48"},{"carrier":"royalmail","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"CrossBorderImportTracked48HighVolume"}],"shipment_options":[{"carrier":"royalmail","deprecated":false,"description":null,"human_readable":"Carrier Insurance Amount","name":"carrier_insurance_amount","type":"float"},{"carrier":"royalmail","deprecated":false,"description":null,"human_readable":"Carrier Notification Email","name":"carrier_notification_email","type":"boolean"},{"carrier":"royalmail","deprecated":false,"description":null,"human_readable":"Carrier @@ -474,204 +513,14 @@ interactions: Number","name":"license_number","type":"string"},{"carrier":"royalmail","deprecated":true,"description":null,"human_readable":"Print Custom 1","name":"print_custom_1","type":"string"},{"carrier":"royalmail","deprecated":true,"description":null,"human_readable":"Print Custom 2","name":"print_custom_2","type":"string"},{"carrier":"royalmail","deprecated":false,"description":null,"human_readable":"Saturday - Delivery","name":"saturday_delivery","type":"boolean"}],"supported_features":[{"carrier":"royalmail","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"royalmail","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"royalmail","description":null,"name":"bill_on_manifest","supported":true},{"carrier":"royalmail","description":null,"name":"bill_on_scan","supported":false},{"carrier":"royalmail","description":null,"name":"commercial_invoices","supported":false},{"carrier":"royalmail","description":null,"name":"delivers_to_po_box","supported":true},{"carrier":"royalmail","description":null,"name":"labels","supported":true},{"carrier":"royalmail","description":null,"name":"orders","supported":false},{"carrier":"royalmail","description":null,"name":"pickups","supported":false},{"carrier":"royalmail","description":null,"name":"rating","supported":true},{"carrier":"royalmail","description":null,"name":"refunds","supported":true},{"carrier":"royalmail","description":null,"name":"returns","supported":true},{"carrier":"royalmail","description":null,"name":"scanforms","supported":true},{"carrier":"royalmail","description":null,"name":"sort_codes","supported":true},{"carrier":"royalmail","description":null,"name":"test_environment","supported":true},{"carrier":"royalmail","description":null,"name":"tracking","supported":true}]},{"human_readable":"SEKO + Delivery","name":"saturday_delivery","type":"boolean"}],"supported_features":[{"carrier":"royalmail","description":null,"name":"bill_on_delivery","supported":false},{"carrier":"royalmail","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"royalmail","description":null,"name":"bill_on_manifest","supported":true},{"carrier":"royalmail","description":null,"name":"bill_on_scan","supported":false},{"carrier":"royalmail","description":null,"name":"commercial_invoices","supported":false},{"carrier":"royalmail","description":null,"name":"delivers_to_po_box","supported":true},{"carrier":"royalmail","description":null,"name":"labels","supported":true},{"carrier":"royalmail","description":null,"name":"orders","supported":false},{"carrier":"royalmail","description":null,"name":"pickups","supported":false},{"carrier":"royalmail","description":null,"name":"rating","supported":true},{"carrier":"royalmail","description":null,"name":"refunds","supported":true},{"carrier":"royalmail","description":null,"name":"returns","supported":true},{"carrier":"royalmail","description":null,"name":"scanforms","supported":true},{"carrier":"royalmail","description":null,"name":"sort_codes","supported":true},{"carrier":"royalmail","description":null,"name":"test_environment","supported":true}]},{"human_readable":"SEKO OmniParcel","name":"sekoomniparcel","predefined_packages":[{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Bag"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Box"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Carton"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Container"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Crate"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Envelope"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Pail"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Pallet"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Satchel"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Tub"}],"service_levels":[{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ecommerce Standard Tracked"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Ecommerce Express Tracked"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Domestic Express"},{"carrier":"sekoomniparcel","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Domestic - Standard"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Sendle","name":"sendle","predefined_packages":[],"service_levels":[{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Standard","max_weight":null,"name":"Standard"},{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Express","max_weight":null,"name":"Express"}],"shipment_options":[],"supported_features":[]},{"human_readable":"SF - Express","name":"sfexpress","predefined_packages":[],"service_levels":[{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalStandardExpressDoc"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalStandardExpressParcel"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomyExpressPilot"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomyExpressDoc"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomyExpressParcel"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticExpress"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticStandard"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticIntraCity"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"StandardExpress"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomyExpress"}],"shipment_options":[],"supported_features":[]},{"human_readable":"SmartKargo","name":"smartkargo","predefined_packages":[],"service_levels":[{"carrier":"smartkargo","description":"Expedited - Product, 2 business days","dimensions":[],"human_readable":"Expedited Product, - 2 business days","max_weight":null,"name":"EPR"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Express","dimensions":[],"human_readable":"eCommerce Express","max_weight":null,"name":"EXP"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":"eCommerce - Standard","dimensions":[],"human_readable":"eCommerce Standard","max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":"eCommerce - Postal Standard","dimensions":[],"human_readable":"eCommerce Postal Standard","max_weight":null,"name":"EPS"}],"shipment_options":[],"supported_features":[{"carrier":"smartkargo","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"smartkargo","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"smartkargo","description":null,"name":"bill_on_manifest","supported":null},{"carrier":"smartkargo","description":null,"name":"bill_on_scan","supported":null},{"carrier":"smartkargo","description":null,"name":"commercial_invoices","supported":false},{"carrier":"smartkargo","description":null,"name":"delivers_to_po_box","supported":false},{"carrier":"smartkargo","description":null,"name":"labels","supported":true},{"carrier":"smartkargo","description":null,"name":"orders","supported":false},{"carrier":"smartkargo","description":null,"name":"pickups","supported":false},{"carrier":"smartkargo","description":null,"name":"rating","supported":true},{"carrier":"smartkargo","description":null,"name":"refunds","supported":true},{"carrier":"smartkargo","description":null,"name":"returns","supported":false},{"carrier":"smartkargo","description":null,"name":"scanforms","supported":false},{"carrier":"smartkargo","description":null,"name":"sort_codes","supported":false},{"carrier":"smartkargo","description":null,"name":"test_environment","supported":true},{"carrier":"smartkargo","description":null,"name":"tracking","supported":true}]},{"human_readable":"Sonic","name":"sonic","predefined_packages":[],"service_levels":[{"carrier":"sonic","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SAMEDAY"}],"shipment_options":[],"supported_features":[{"carrier":"sonic","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"sonic","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"sonic","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"sonic","description":null,"name":"bill_on_scan","supported":false},{"carrier":"sonic","description":null,"name":"commercial_invoices","supported":false},{"carrier":"sonic","description":null,"name":"labels","supported":true},{"carrier":"sonic","description":null,"name":"orders","supported":false},{"carrier":"sonic","description":null,"name":"pickups","supported":false},{"carrier":"sonic","description":null,"name":"rating","supported":true},{"carrier":"sonic","description":null,"name":"refunds","supported":true},{"carrier":"sonic","description":null,"name":"returns","supported":false},{"carrier":"sonic","description":null,"name":"scanforms","supported":false},{"carrier":"sonic","description":null,"name":"sort_codes","supported":false},{"carrier":"sonic","description":null,"name":"test_environment","supported":false},{"carrier":"sonic","description":null,"name":"tracking","supported":true}]},{"human_readable":"Spee-Dee","name":"speedee","predefined_packages":[],"service_levels":[{"carrier":"speedee","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SpeeDeeDelivery"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Swyft","name":"swyft","predefined_packages":[],"service_levels":[{"carrier":"swyft","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NEXTDAY"},{"carrier":"swyft","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SAMEDAY"}],"shipment_options":[],"supported_features":[{"carrier":"swyft","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"swyft","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"swyft","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"swyft","description":null,"name":"bill_on_scan","supported":false},{"carrier":"swyft","description":null,"name":"commercial_invoices","supported":false},{"carrier":"swyft","description":null,"name":"labels","supported":false},{"carrier":"swyft","description":null,"name":"orders","supported":false},{"carrier":"swyft","description":null,"name":"pickups","supported":false},{"carrier":"swyft","description":null,"name":"rating","supported":true},{"carrier":"swyft","description":null,"name":"refunds","supported":true},{"carrier":"swyft","description":null,"name":"returns","supported":false},{"carrier":"swyft","description":null,"name":"scanforms","supported":false},{"carrier":"swyft","description":null,"name":"sort_codes","supported":false},{"carrier":"swyft","description":null,"name":"test_environment","supported":false},{"carrier":"swyft","description":null,"name":"tracking","supported":true}]},{"human_readable":"TForce + Standard"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Sendle","name":"sendle","predefined_packages":[],"service_levels":[{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Standard","max_weight":null,"name":"Standard"},{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Express","max_weight":null,"name":"Express"},{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Saver","max_weight":null,"name":"Saver"},{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Two-Day","max_weight":null,"name":"Two-Day"},{"carrier":"sendle","description":null,"dimensions":[],"human_readable":"Three-Day","max_weight":null,"name":"Three-Day"}],"shipment_options":[],"supported_features":[]},{"human_readable":"SF + Express","name":"sfexpress","predefined_packages":[],"service_levels":[{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalStandardExpressDoc"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalStandardExpressParcel"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomyExpressPilot"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomyExpressDoc"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"InternationalEconomyExpressParcel"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticExpress"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticStandard"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"DomesticIntraCity"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"StandardExpress"},{"carrier":"sfexpress","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EconomyExpress"}],"shipment_options":[],"supported_features":[]},{"human_readable":"SmartKargo","name":"smartkargo","predefined_packages":[],"service_levels":[{"carrier":"smartkargo","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EPR"},{"carrier":"smartkargo","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EPS"},{"carrier":"smartkargo","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EST"},{"carrier":"smartkargo","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EXP"}],"shipment_options":[],"supported_features":[{"carrier":"smartkargo","description":null,"name":"labels","supported":null},{"carrier":"smartkargo","description":null,"name":"rating","supported":true},{"carrier":"smartkargo","description":null,"name":"refunds","supported":null},{"carrier":"smartkargo","description":null,"name":"test_environment","supported":null}]},{"human_readable":"Sonic","name":"sonic","predefined_packages":[],"service_levels":[{"carrier":"sonic","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SAMEDAY"}],"shipment_options":[],"supported_features":[{"carrier":"sonic","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"sonic","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"sonic","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"sonic","description":null,"name":"bill_on_scan","supported":false},{"carrier":"sonic","description":null,"name":"commercial_invoices","supported":false},{"carrier":"sonic","description":null,"name":"labels","supported":true},{"carrier":"sonic","description":null,"name":"orders","supported":false},{"carrier":"sonic","description":null,"name":"pickups","supported":false},{"carrier":"sonic","description":null,"name":"rating","supported":true},{"carrier":"sonic","description":null,"name":"refunds","supported":true},{"carrier":"sonic","description":null,"name":"returns","supported":false},{"carrier":"sonic","description":null,"name":"scanforms","supported":false},{"carrier":"sonic","description":null,"name":"sort_codes","supported":false},{"carrier":"sonic","description":null,"name":"test_environment","supported":false}]},{"human_readable":"Spee-Dee","name":"speedee","predefined_packages":[],"service_levels":[{"carrier":"speedee","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SpeeDeeDelivery"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Swyft","name":"swyft","predefined_packages":[],"service_levels":[{"carrier":"swyft","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NEXTDAY"},{"carrier":"swyft","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"SAMEDAY"}],"shipment_options":[],"supported_features":[{"carrier":"swyft","description":null,"name":"bill_on_delivery","supported":true},{"carrier":"swyft","description":null,"name":"bill_on_label_purchase","supported":false},{"carrier":"swyft","description":null,"name":"bill_on_manifest","supported":false},{"carrier":"swyft","description":null,"name":"bill_on_scan","supported":false},{"carrier":"swyft","description":null,"name":"commercial_invoices","supported":false},{"carrier":"swyft","description":null,"name":"labels","supported":false},{"carrier":"swyft","description":null,"name":"orders","supported":false},{"carrier":"swyft","description":null,"name":"pickups","supported":false},{"carrier":"swyft","description":null,"name":"rating","supported":true},{"carrier":"swyft","description":null,"name":"refunds","supported":true},{"carrier":"swyft","description":null,"name":"returns","supported":false},{"carrier":"swyft","description":null,"name":"scanforms","supported":false},{"carrier":"swyft","description":null,"name":"sort_codes","supported":false},{"carrier":"swyft","description":null,"name":"test_environment","supported":false}]},{"human_readable":"TCC","name":"tcc","predefined_packages":[],"service_levels":[{"carrier":"tcc","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Smith + Drug Same Day"}],"shipment_options":[],"supported_features":[]},{"human_readable":"TForce Logistics","name":"tforce","predefined_packages":[],"service_levels":[{"carrier":"tforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"NextDay"},{"carrier":"tforce","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"Return"}],"shipment_options":[],"supported_features":[]},{"human_readable":"Toll","name":"toll","predefined_packages":[],"service_levels":[{"carrier":"toll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IPEC Direct"},{"carrier":"toll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IPEC Fashion"},{"carrier":"toll","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"IPEC @@ -722,28 +571,31 @@ interactions: x 12in x 6in"],"human_readable":null,"max_weight":null,"name":"LargeFlatRateBox"},{"carrier":"usps","description":null,"dimensions":["12.25in x 12.25in x 6in"],"human_readable":null,"max_weight":null,"name":"LargeFlatRateBoxAPOFPO"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FlatTubTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EMMTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FullTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"HalfTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMODSack"}],"service_levels":[{"carrier":"usps","description":"1-5 business days","dimensions":["Cards, Letters and Flats only (no Parcels)","See - Predefined Packages (Card, Letter, Flat) for details"],"human_readable":null,"max_weight":13,"name":"First"},{"carrier":"usps","description":"1-3 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"Priority"},{"carrier":"usps","description":"1-2 - days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"Express"},{"carrier":"usps","description":"2-5 - days","dimensions":["Combined Length and Girth \u003c 130in"],"human_readable":null,"max_weight":70,"name":"GroundAdvantage"},{"carrier":"usps","description":"2-8 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"LibraryMail"},{"carrier":"usps","description":"2-8 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"MediaMail"},{"carrier":"usps","description":null,"dimensions":["Must - be rectangular, otherwise an additional charge may apply."],"human_readable":null,"max_weight":15.994,"name":"FirstClassMailInternational"},{"carrier":"usps","description":"7-21 + Predefined Packages (Card, Letter, Flat) for details"],"human_readable":"First-Class + Mail®","max_weight":13,"name":"First"},{"carrier":"usps","description":"1-3 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail®","max_weight":1120,"name":"Priority"},{"carrier":"usps","description":"1-2 + days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail Express®","max_weight":1120,"name":"Express"},{"carrier":"usps","description":"2-5 + days","dimensions":["Combined Length and Girth \u003c 130in"],"human_readable":"USPS + Ground Advantage®","max_weight":70,"name":"GroundAdvantage"},{"carrier":"usps","description":"2-8 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Library + Mail®","max_weight":1120,"name":"LibraryMail"},{"carrier":"usps","description":"2-8 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Media + Mail®","max_weight":1120,"name":"MediaMail"},{"carrier":"usps","description":null,"dimensions":["Must + be rectangular, otherwise an additional charge may apply."],"human_readable":"First-Class + Mail International®","max_weight":15.994,"name":"FirstClassMailInternational"},{"carrier":"usps","description":"7-21 days","dimensions":["Packages (Other Than Rolls): Combined Length and Girth \u003c 108in","Rolls (Tubes): Length: min 4in; max 36 in. Length plus twice the diameter (combined): min 6.75 in; max 42in.","Some countries have specific - prohibitions and restrictions"],"human_readable":null,"max_weight":64,"name":"FirstClassPackageInternationalService"},{"carrier":"usps","description":"6-10 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"PriorityMailInternational"},{"carrier":"usps","description":"3-5 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"ExpressMailInternational"}],"shipment_options":[],"supported_features":[{"carrier":"usps","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"usps","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"usps","description":null,"name":"commercial_invoices","supported":null},{"carrier":"usps","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"usps","description":null,"name":"labels","supported":null},{"carrier":"usps","description":null,"name":"pickups","supported":null},{"carrier":"usps","description":null,"name":"rating","supported":true},{"carrier":"usps","description":null,"name":"refunds","supported":null},{"carrier":"usps","description":null,"name":"returns","supported":null},{"carrier":"usps","description":null,"name":"scanforms","supported":null},{"carrier":"usps","description":null,"name":"test_environment","supported":null},{"carrier":"usps","description":null,"name":"tracking","supported":true}]},{"human_readable":"Veho","name":"veho","predefined_packages":[],"service_levels":[{"carrier":"veho","description":null,"dimensions":[],"human_readable":"Next - Day","max_weight":null,"name":"nextDay"},{"carrier":"veho","description":null,"dimensions":[],"human_readable":"Same - Day","max_weight":null,"name":"sameDay"}],"shipment_options":[{"carrier":"veho","deprecated":false,"description":null,"human_readable":"Label - Date","name":"label_date","type":"datetime"},{"carrier":"veho","deprecated":false,"description":null,"human_readable":"Handling - Instructions","name":"handling_instructions","type":"string"},{"carrier":"veho","deprecated":false,"description":null,"human_readable":"Print - Custom","name":"print_custom","type":"array"},{"carrier":"veho","deprecated":true,"description":null,"human_readable":"Print - Custom 1","name":"print_custom_1","type":"string"},{"carrier":"veho","deprecated":true,"description":null,"human_readable":"Print - Custom 2","name":"print_custom_2","type":"string"},{"carrier":"veho","deprecated":true,"description":null,"human_readable":"Print - Custom 3","name":"print_custom_3","type":"string"},{"carrier":"veho","deprecated":true,"description":null,"human_readable":"Print - Custom 3 Barcode","name":"print_custom_3_barcode","type":"boolean"}],"supported_features":[{"carrier":"veho","description":null,"name":"commercial_invoices","supported":false},{"carrier":"veho","description":null,"name":"labels","supported":true},{"carrier":"veho","description":null,"name":"orders","supported":false},{"carrier":"veho","description":null,"name":"pickups","supported":true},{"carrier":"veho","description":null,"name":"rating","supported":true},{"carrier":"veho","description":null,"name":"refunds","supported":false},{"carrier":"veho","description":null,"name":"returns","supported":false},{"carrier":"veho","description":null,"name":"scanforms","supported":false},{"carrier":"veho","description":null,"name":"sort_codes","supported":false},{"carrier":"veho","description":null,"name":"test_environment","supported":true},{"carrier":"veho","description":null,"name":"tracking","supported":true}]},{"human_readable":"Yanwen","name":"yanwen","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]}]}' + prohibitions and restrictions"],"human_readable":"First-Class Package International + Service®","max_weight":64,"name":"FirstClassPackageInternationalService"},{"carrier":"usps","description":"6-10 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail International®","max_weight":1120,"name":"PriorityMailInternational"},{"carrier":"usps","description":"3-5 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail Express International®","max_weight":1120,"name":"ExpressMailInternational"}],"shipment_options":[],"supported_features":[{"carrier":"usps","description":null,"name":"bill_on_delivery","supported":null},{"carrier":"usps","description":null,"name":"bill_on_label_purchase","supported":null},{"carrier":"usps","description":null,"name":"commercial_invoices","supported":null},{"carrier":"usps","description":null,"name":"delivers_to_po_box","supported":null},{"carrier":"usps","description":null,"name":"labels","supported":null},{"carrier":"usps","description":null,"name":"pickups","supported":null},{"carrier":"usps","description":null,"name":"rating","supported":true},{"carrier":"usps","description":null,"name":"refunds","supported":null},{"carrier":"usps","description":null,"name":"returns","supported":null},{"carrier":"usps","description":null,"name":"scanforms","supported":null},{"carrier":"usps","description":null,"name":"test_environment","supported":null}]},{"human_readable":"Veho","name":"veho","predefined_packages":[],"service_levels":[{"carrier":"veho","description":null,"dimensions":null,"human_readable":"Next + Day","max_weight":800,"name":"nextDay"},{"carrier":"veho","description":null,"dimensions":null,"human_readable":"Same + Day","max_weight":800,"name":"sameDay"}],"shipment_options":[],"supported_features":[{"carrier":"veho","description":null,"name":"labels","supported":null},{"carrier":"veho","description":null,"name":"pickups","supported":null},{"carrier":"veho","description":null,"name":"rating","supported":true},{"carrier":"veho","description":null,"name":"test_environment","supported":null}]},{"human_readable":"Yanwen","name":"yanwen","predefined_packages":[],"service_levels":[],"shipment_options":[],"supported_features":[]}]}' headers: Cache-Control: - private, no-cache, no-store @@ -764,20 +616,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec54e7896122001b5c42 + - 4d57346d66ad686bf440b8c700374e87 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.071570" + - "1.096608" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestGetCarrierMetadataWithCarriersAndTypes.yaml b/tests/cassettes/TestGetCarrierMetadataWithCarriersAndTypes.yaml index b1700b4..571ba34 100644 --- a/tests/cassettes/TestGetCarrierMetadataWithCarriersAndTypes.yaml +++ b/tests/cassettes/TestGetCarrierMetadataWithCarriersAndTypes.yaml @@ -9,7 +9,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/metadata/carriers?carriers=usps&types=service_levels,predefined_packages + url: https://api.easypost.com/v2/metadata/carriers?carriers=usps&types=service_levels%2Cpredefined_packages method: GET response: body: '{"carriers":[{"human_readable":"USPS","name":"usps","predefined_packages":[{"carrier":"usps","description":null,"dimensions":["6in @@ -29,19 +29,29 @@ interactions: x 12in x 6in"],"human_readable":null,"max_weight":null,"name":"LargeFlatRateBox"},{"carrier":"usps","description":null,"dimensions":["12.25in x 12.25in x 6in"],"human_readable":null,"max_weight":null,"name":"LargeFlatRateBoxAPOFPO"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FlatTubTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"EMMTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"FullTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"HalfTrayBox"},{"carrier":"usps","description":null,"dimensions":[],"human_readable":null,"max_weight":null,"name":"PMODSack"}],"service_levels":[{"carrier":"usps","description":"1-5 business days","dimensions":["Cards, Letters and Flats only (no Parcels)","See - Predefined Packages (Card, Letter, Flat) for details"],"human_readable":null,"max_weight":13,"name":"First"},{"carrier":"usps","description":"1-3 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"Priority"},{"carrier":"usps","description":"1-2 - days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"Express"},{"carrier":"usps","description":"2-5 - days","dimensions":["Combined Length and Girth \u003c 130in"],"human_readable":null,"max_weight":70,"name":"GroundAdvantage"},{"carrier":"usps","description":"2-8 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"LibraryMail"},{"carrier":"usps","description":"2-8 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"MediaMail"},{"carrier":"usps","description":null,"dimensions":["Must - be rectangular, otherwise an additional charge may apply."],"human_readable":null,"max_weight":15.994,"name":"FirstClassMailInternational"},{"carrier":"usps","description":"7-21 + Predefined Packages (Card, Letter, Flat) for details"],"human_readable":"First-Class + Mail®","max_weight":13,"name":"First"},{"carrier":"usps","description":"1-3 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail®","max_weight":1120,"name":"Priority"},{"carrier":"usps","description":"1-2 + days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail Express®","max_weight":1120,"name":"Express"},{"carrier":"usps","description":"2-5 + days","dimensions":["Combined Length and Girth \u003c 130in"],"human_readable":"USPS + Ground Advantage®","max_weight":70,"name":"GroundAdvantage"},{"carrier":"usps","description":"2-8 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Library + Mail®","max_weight":1120,"name":"LibraryMail"},{"carrier":"usps","description":"2-8 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Media + Mail®","max_weight":1120,"name":"MediaMail"},{"carrier":"usps","description":null,"dimensions":["Must + be rectangular, otherwise an additional charge may apply."],"human_readable":"First-Class + Mail International®","max_weight":15.994,"name":"FirstClassMailInternational"},{"carrier":"usps","description":"7-21 days","dimensions":["Packages (Other Than Rolls): Combined Length and Girth \u003c 108in","Rolls (Tubes): Length: min 4in; max 36 in. Length plus twice the diameter (combined): min 6.75 in; max 42in.","Some countries have specific - prohibitions and restrictions"],"human_readable":null,"max_weight":64,"name":"FirstClassPackageInternationalService"},{"carrier":"usps","description":"6-10 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"PriorityMailInternational"},{"carrier":"usps","description":"3-5 - business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":null,"max_weight":1120,"name":"ExpressMailInternational"}]}]}' + prohibitions and restrictions"],"human_readable":"First-Class Package International + Service®","max_weight":64,"name":"FirstClassPackageInternationalService"},{"carrier":"usps","description":"6-10 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail International®","max_weight":1120,"name":"PriorityMailInternational"},{"carrier":"usps","description":"3-5 + business days","dimensions":["Combined Length and Girth \u003c 108in"],"human_readable":"Priority + Mail Express International®","max_weight":1120,"name":"ExpressMailInternational"}]}]}' headers: Cache-Control: - private, no-cache, no-store @@ -62,20 +72,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec54e7896122001b5cb0 + - 4d57346d66ad686cf440b8c700374f31 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.030656" + - "0.041580" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestGetNextPage.yaml b/tests/cassettes/TestGetNextPage.yaml index 035e365..cb00ba2 100644 --- a/tests/cassettes/TestGetNextPage.yaml +++ b/tests/cassettes/TestGetNextPage.yaml @@ -2,33 +2,31 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_931983718fbc11eebbf5ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0495c68c512511efa207ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9317c3ff8fbc11eead39ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_049354d6512511efb25d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1e52478fbc11eeaadcac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fdc488512511ef82d5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1ca5ab8fbc11eeb98dac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fbbf7c512511efa150ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fe631eb4512411efb1393cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:40+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -49,98 +47,96 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec54e7896122001b5cd5 + - 4d57346d66ad686cf440b8c700374f45 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.031129" + - "0.034979" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=adr_8c6170f48fbc11eeb0383cecef1b359e + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?before_id=adr_fe631eb4512411efb1393cecef1b359e method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb6776f8fbc11eeafca3cecef1b359e","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdaf749e512411efa0bcac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:45+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb459858fbc11eea888ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:38+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdad206f512411efb1c0ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:45+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8791770d8fbc11eea617ac1f6bc53342","mode":"test","name":"Jack + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:39+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_878e6bb18fbc11eeb4e5ac1f6bc539aa","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T20:10:39+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_853f95ae8fbc11eeb070ac1f6bc539ae","mode":"test","name":"Jack + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:33+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:34+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_853da3bd8fbc11eeb06cac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f694b613512411ef8107ac1f6bc53342","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:26+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f6920eba512411efafe93cecef1b359e","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:27+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f572048f512411ef9f49ac1f6bc539ae","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:25+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f570455f512411efafbf3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:34+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81f0d9358fbc11eeaa3f3cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:25+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f553dcfb512411efb047ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:29+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81ef37498fbc11eea2b2ac1f6bc53342","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e9980198fbc11eea8213cecef1b359e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:23+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e97f7b58fbc11eea81d3cecef1b359e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e4c3b428fbc11eeac45ac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f5522f27512411efafbb3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:23+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e4a53e48fbc11eea054ac1f6bc53342","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:23+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e13c8c38fbc11eeaf11ac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f536f94b512411efb042ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:22+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e1208ca8fbc11eea7d03cecef1b359e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7cc10c588fbc11eeab50ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f534e33e512411ef80c3ac1f6bc53342","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f528bdd0512411efafb53cecef1b359e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f526aa22512411ef80c2ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:20+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7cbe97028fbc11ee9f45ac1f6bc53342","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7c18eac58fbc11eeadc4ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f50960fb512411efafb23cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:19+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7c1599938fbc11eeaac7ac1f6bc539ae","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:19+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b673c698fbc11eea61c3cecef1b359e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:18+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b4886c58fbc11ee9e57ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f50750b8512411efafb13cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:18+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:24+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -161,7 +157,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec55e7896122001b5cff + - 4d57346d66ad686df440b8c700374f4f X-Frame-Options: - SAMEORIGIN X-Node: @@ -169,12 +165,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.049870" + - "0.067191" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestGetNextPageWithPageSize.yaml b/tests/cassettes/TestGetNextPageWithPageSize.yaml index f1fcd1b..50fe762 100644 --- a/tests/cassettes/TestGetNextPageWithPageSize.yaml +++ b/tests/cassettes/TestGetNextPageWithPageSize.yaml @@ -2,33 +2,31 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_931983718fbc11eebbf5ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0495c68c512511efa207ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9317c3ff8fbc11eead39ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_049354d6512511efb25d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1e52478fbc11eeaadcac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fdc488512511ef82d5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1ca5ab8fbc11eeb98dac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fbbf7c512511efa150ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fe631eb4512411efb1393cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:40+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -49,53 +47,51 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec55e7896122001b5d1d + - 4d57346d66ad686df440b8c700374f62 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.033350" + - "0.038943" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=adr_8c6170f48fbc11eeb0383cecef1b359e&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?before_id=adr_fe631eb4512411efb1393cecef1b359e&page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb6776f8fbc11eeafca3cecef1b359e","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdaf749e512411efa0bcac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:45+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:10:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8bb459858fbc11eea888ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:38+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fdad206f512411efb1c0ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:10:45+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8791770d8fbc11eea617ac1f6bc53342","mode":"test","name":"Jack + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:39+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:38+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:10:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_878e6bb18fbc11eeb4e5ac1f6bc539aa","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T20:10:39+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_853f95ae8fbc11eeb070ac1f6bc539ae","mode":"test","name":"Jack + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:34+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -111,25 +107,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec55e7896122001b5d3e + - 4d57346d66ad686df440b8c700374f6a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.038995" + - "0.053793" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestHooks.yaml b/tests/cassettes/TestHooks.yaml index b435c0f..b6887e7 100644 --- a/tests/cassettes/TestHooks.yaml +++ b/tests/cassettes/TestHooks.yaml @@ -2,33 +2,31 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_931983718fbc11eebbf5ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0495c68c512511efa207ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9317c3ff8fbc11eead39ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_049354d6512511efb25d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1e52478fbc11eeaadcac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fdc488512511ef82d5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1ca5ab8fbc11eeb98dac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fbbf7c512511efa150ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fe631eb4512411efb1393cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:40+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -44,27 +42,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec55e7896122001b5d5f + - 4d57346d66ad686df440b8c700374f76 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.041881" + - "0.032795" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestHooksUnsubscribing.yaml b/tests/cassettes/TestHooksUnsubscribing.yaml index 6db397a..5bd69b7 100644 --- a/tests/cassettes/TestHooksUnsubscribing.yaml +++ b/tests/cassettes/TestHooksUnsubscribing.yaml @@ -2,33 +2,31 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_931983718fbc11eebbf5ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0495c68c512511efa207ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9317c3ff8fbc11eead39ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_049354d6512511efb25d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1e52478fbc11eeaadcac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fdc488512511ef82d5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1ca5ab8fbc11eeb98dac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fbbf7c512511efa150ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fe631eb4512411efb1393cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:40+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -49,53 +47,51 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec55e7896122001b5dcc + - 4d57346d66ad686df440b8c700374f80 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.034928" + - "0.033622" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_931983718fbc11eebbf5ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0495c68c512511efa207ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9317c3ff8fbc11eead39ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_049354d6512511efb25d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:57+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1e52478fbc11eeaadcac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:50+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fdc488512511ef82d5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8f1ca5ab8fbc11eeb98dac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:44+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_00fbbf7c512511efa150ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:51+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:44+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fe631eb4512411efb1393cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"}],"has_more":true}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:40+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -116,20 +112,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec56e7896122001b5dfb + - 4d57346d66ad686df440b8c700374f85 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.033492" + - "0.036496" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestInsuranceAll.yaml b/tests/cassettes/TestInsuranceAll.yaml index 985eb42..21b2b25 100644 --- a/tests/cassettes/TestInsuranceAll.yaml +++ b/tests/cassettes/TestInsuranceAll.yaml @@ -2,19 +2,71 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/insurances + url: https://api.easypost.com/v2/insurances?page_size=5 method: GET response: - body: '{"has_more":false,"insurances":[]}' + body: '{"has_more":true,"insurances":[{"amount":"100.00000","created_at":"2024-08-02T23:14:36Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"id":"ins_7c77e8db3dbf49568bd0f32688f713e9","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:37Z","est_delivery_date":"2024-08-02T23:14:37Z","fees":[],"finalized":true,"id":"trk_ba7fb165db3f4807af4b90c95a798d98","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JhN2ZiMTY1ZGIzZjQ4MDdhZjRiOTBjOTVhNzk4ZDk4","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372017","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:37Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:37Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:37Z","weight":null},"tracking_code":"9400100110368070372017","updated_at":"2024-08-02T23:14:37Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:33Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"id":"ins_5ae9a272413d4d5faf9cdde11cb2ba5d","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:33+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:34Z","est_delivery_date":"2024-08-02T23:14:34Z","fees":[],"finalized":true,"id":"trk_63a5e289d607458a887ae942f07f5231","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYzYTVlMjg5ZDYwNzQ1OGE4ODdhZTk0MmYwN2Y1MjMx","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372000","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:34Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:34Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:34Z","weight":null},"tracking_code":"9400100110368070372000","updated_at":"2024-08-02T23:14:34Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:31Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"id":"ins_84b62fb8a9104597b82f0a72b6c9a2be","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:32Z","est_delivery_date":"2024-08-02T23:14:32Z","fees":[],"finalized":true,"id":"trk_cc9751d918fd41a480913c387683262f","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NjOTc1MWQ5MThmZDQxYTQ4MDkxM2MzODc2ODMyNjJm","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070371997","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:32Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:32Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:32Z","weight":null},"tracking_code":"9400100110368070371997","updated_at":"2024-08-02T23:14:32Z"},{"amount":"100.00000","created_at":"2024-08-02T22:13:10Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T22:13:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_670245d3511c11efb8d1ac1f6bc539ae","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T22:13:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_fa59cf357244433896b8e07fe35f2411","messages":["Insurance + was cancelled by the user."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:13:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_66fce5ea511c11ef8c173cecef1b359e","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:13:10+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T22:13:54Z","est_delivery_date":"2024-08-02T22:13:54Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"finalized":true,"id":"trk_4f71ba82b6b544fc8fed7b82b4f217f1","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzRmNzFiYTgyYjZiNTQ0ZmM4ZmVkN2I4MmI0ZjIxN2Yx","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T22:13:54Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T10:50:54Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T22:13:54Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-08-02T22:14:50Z"},{"amount":"100.00000","created_at":"2024-08-02T22:13:08Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T22:13:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6643095e511c11ef8bca3cecef1b359e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T22:13:08+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_b9d08f6ce75d46beaa1967f1993602d5","messages":["The + tracking number could not be tracked."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:13:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_663d4801511c11ef9c78ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:13:08+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T22:13:09Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_a510d3b31bee434696d9040b28237d90","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2E1MTBkM2IzMWJlZTQzNDY5NmQ5MDQwYjI4MjM3ZDkw","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100110368070361752","tracking_details":[{"carrier_code":"","datetime":"2024-08-02T22:13:09Z","description":"","message":"In + test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, + EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2024-08-02T22:13:09Z","weight":null},"tracking_code":"9400100110368070361752","updated_at":"2024-08-02T22:14:35Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -30,25 +82,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec56e7896122001b5e1c + - 4d57346d66ad686df440b8c700374f99 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.027557" + - "0.340964" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestInsuranceCreate.yaml b/tests/cassettes/TestInsuranceCreate.yaml index 3a17ccd..95ab1a2 100644 --- a/tests/cassettes/TestInsuranceCreate.yaml +++ b/tests/cassettes/TestInsuranceCreate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_95d27b4e8fbc11eeb6103cecef1b359e","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_06ac4459512511efa261ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:02Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_95d477a08fbc11eeb6123cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:14:53Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_06aeae9f512511efb364ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:02+00:00","verifications":{},"zip":"90277"},"id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:02Z","height":4,"id":"prcl_d392e7eee74e4761b2a5b3ab7d8d1493","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:02Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:03Z","date_advance":0,"id":"pl_2dcc375864e24a56926528fdfeb2f973","integrated_form":"none","label_date":"2023-11-30T20:11:03Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e89ebd235cd9aa4978bda04dfadad8c7a7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:03Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8fe1cdd0c4674341af89708e5d896837","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","updated_at":"2023-11-30T20:11:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_166ed88c8ccb452eb48ee8150adfe6f0","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","updated_at":"2023-11-30T20:11:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4221bed354da43cfb8d999f0f91d7e95","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","updated_at":"2023-11-30T20:11:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_67afdfc72b434fbbbbb29cf9a3fbd313","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","updated_at":"2023-11-30T20:11:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e757d0e144a54171954a7351705c3251","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","updated_at":"2023-11-30T20:11:02Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_95d477a08fbc11eeb6123cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:53+00:00","verifications":{},"zip":"90277"},"id":"shp_8ab9990ca34c4ff7af621f41921e6453","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:14:53Z","height":4,"id":"prcl_1271d96df55447a283e51db5d55bed92","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:14:53Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:14:54Z","date_advance":0,"id":"pl_bbfea81091ba4dfc926e15b9204ebe8f","integrated_form":"none","label_date":"2024-08-02T23:14:54Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8ce83ad2e206646e0af30d33e55becd0e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:14:54Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_16b5b6e189b14b3481c1491a3d325f35","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_8ab9990ca34c4ff7af621f41921e6453","updated_at":"2024-08-02T23:14:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8053738975864f54aed20fb8ce567455","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_8ab9990ca34c4ff7af621f41921e6453","updated_at":"2024-08-02T23:14:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4f50eaa1b21a43339c469ed9350e199a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_8ab9990ca34c4ff7af621f41921e6453","updated_at":"2024-08-02T23:14:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_06aeae9f512511efb364ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:02+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:03Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_67afdfc72b434fbbbbb29cf9a3fbd313","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","updated_at":"2023-11-30T20:11:03Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_95d27b4e8fbc11eeb6103cecef1b359e","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:53+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:14:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_16b5b6e189b14b3481c1491a3d325f35","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_8ab9990ca34c4ff7af621f41921e6453","updated_at":"2024-08-02T23:14:54Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_06ac4459512511efa261ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:03Z","est_delivery_date":null,"fees":[],"id":"trk_db5d0a60faf44aec915a02dbc795692e","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RiNWQwYTYwZmFmNDRhZWM5MTVhMDJkYmM3OTU2OTJl","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383252","tracking_details":[],"updated_at":"2023-11-30T20:11:03Z","weight":null},"tracking_code":"9400100105442287383252","updated_at":"2023-11-30T20:11:03Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:14:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:55Z","est_delivery_date":null,"fees":[],"id":"trk_c9a8a31a97ed49f8a6901f3fdca29d18","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M5YThhMzFhOTdlZDQ5ZjhhNjkwMWYzZmRjYTI5ZDE4","shipment_id":"shp_8ab9990ca34c4ff7af621f41921e6453","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372062","tracking_details":[],"updated_at":"2024-08-02T23:14:55Z","weight":null},"tracking_code":"9400100110368070372062","updated_at":"2024-08-02T23:14:54Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_4f8c887a9bd84b0bb4683ae0f0cada1c + - /api/v2/shipments/shp_8ab9990ca34c4ff7af621f41921e6453 Pragma: - no-cache Referrer-Policy: @@ -53,20 +53,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec56e7896122001b5e45 + - 4d57346d66ad686df440b8c700374fd3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.996816" + - "1.144008" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -77,7 +77,7 @@ interactions: Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"},"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"tracking_code":"9400100105442287383252"}}' + N Harbor Dr","zip":"90277"},"tracking_code":"9400100110368070372062"}}' form: {} headers: Authorization: @@ -89,18 +89,18 @@ interactions: url: https://api.easypost.com/v2/insurances method: POST response: - body: '{"amount":"100.00000","created_at":"2023-11-30T20:11:03Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_96876a2a8fbc11eebe07ac1f6bc539aa","mode":"test","name":"JACK + body: '{"amount":"100.00000","created_at":"2024-08-02T23:14:55Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_077437a1512511efa28cac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:03+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_c132b5a92b9746b0a8c1d4f255756878","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_968207248fbc11eeaf55ac1f6bc53342","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_0fe20e037da14c0da9f8a2307a3eadde","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_076e7118512511ef83eeac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2023-11-30T20:11:03+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:03Z","est_delivery_date":"2023-11-30T20:11:03Z","fees":[],"finalized":true,"id":"trk_db5d0a60faf44aec915a02dbc795692e","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RiNWQwYTYwZmFmNDRhZWM5MTVhMDJkYmM3OTU2OTJl","shipment_id":"shp_4f8c887a9bd84b0bb4683ae0f0cada1c","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383252","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:03Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:03Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:03Z","weight":null},"tracking_code":"9400100105442287383252","updated_at":"2023-11-30T20:11:03Z"}' + Package Service"},"created_at":"2024-08-02T23:14:55Z","est_delivery_date":"2024-08-02T23:14:55Z","fees":[],"finalized":true,"id":"trk_c9a8a31a97ed49f8a6901f3fdca29d18","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M5YThhMzFhOTdlZDQ5ZjhhNjkwMWYzZmRjYTI5ZDE4","shipment_id":"shp_8ab9990ca34c4ff7af621f41921e6453","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372062","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:55Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:55Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:55Z","weight":null},"tracking_code":"9400100110368070372062","updated_at":"2024-08-02T23:14:55Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -109,7 +109,7 @@ interactions: Expires: - "0" Location: - - /api/v2/insurances/ins_c132b5a92b9746b0a8c1d4f255756878 + - /api/v2/insurances/ins_0fe20e037da14c0da9f8a2307a3eadde Pragma: - no-cache Referrer-Policy: @@ -125,20 +125,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec57e7896122001b5f44 + - 4d57346d66ad686ff440b8c70037508c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.170643" + - "0.363498" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestInsuranceGetNextPage.yaml b/tests/cassettes/TestInsuranceGetNextPage.yaml index 46e2926..620d9b4 100644 --- a/tests/cassettes/TestInsuranceGetNextPage.yaml +++ b/tests/cassettes/TestInsuranceGetNextPage.yaml @@ -2,27 +2,202 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED + User-Agent: + - REDACTED + url: https://api.easypost.com/v2/insurances?page_size=5 + method: GET + response: + body: '{"has_more":true,"insurances":[{"amount":"100.00000","created_at":"2024-08-02T23:14:55Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_077437a1512511efa28cac1f6bc539ae","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_0fe20e037da14c0da9f8a2307a3eadde","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_076e7118512511ef83eeac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:55Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_843137abcd07433fa9ebe64020789cec","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzg0MzEzN2FiY2QwNzQzM2ZhOWViZTY0MDIwNzg5Y2Vj","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100110368070372062","tracking_details":[{"carrier_code":"","datetime":"2024-08-02T23:14:55Z","description":"","message":"In + test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, + EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2024-08-02T23:14:55Z","weight":null},"tracking_code":"9400100110368070372062","updated_at":"2024-08-02T23:14:55Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:36Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"id":"ins_7c77e8db3dbf49568bd0f32688f713e9","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:37Z","est_delivery_date":"2024-08-02T23:14:37Z","fees":[],"finalized":true,"id":"trk_ba7fb165db3f4807af4b90c95a798d98","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JhN2ZiMTY1ZGIzZjQ4MDdhZjRiOTBjOTVhNzk4ZDk4","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372017","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:37Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:37Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:37Z","weight":null},"tracking_code":"9400100110368070372017","updated_at":"2024-08-02T23:14:37Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:33Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"id":"ins_5ae9a272413d4d5faf9cdde11cb2ba5d","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:33+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:34Z","est_delivery_date":"2024-08-02T23:14:34Z","fees":[],"finalized":true,"id":"trk_63a5e289d607458a887ae942f07f5231","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYzYTVlMjg5ZDYwNzQ1OGE4ODdhZTk0MmYwN2Y1MjMx","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372000","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:34Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:34Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:34Z","weight":null},"tracking_code":"9400100110368070372000","updated_at":"2024-08-02T23:14:34Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:31Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"id":"ins_84b62fb8a9104597b82f0a72b6c9a2be","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:32Z","est_delivery_date":"2024-08-02T23:14:32Z","fees":[],"finalized":true,"id":"trk_cc9751d918fd41a480913c387683262f","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NjOTc1MWQ5MThmZDQxYTQ4MDkxM2MzODc2ODMyNjJm","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070371997","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:32Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:32Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:32Z","weight":null},"tracking_code":"9400100110368070371997","updated_at":"2024-08-02T23:14:32Z"},{"amount":"100.00000","created_at":"2024-08-02T22:13:10Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T22:13:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_670245d3511c11efb8d1ac1f6bc539ae","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T22:13:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_fa59cf357244433896b8e07fe35f2411","messages":["Insurance + was cancelled by the user."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:13:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_66fce5ea511c11ef8c173cecef1b359e","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:13:10+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T22:13:54Z","est_delivery_date":"2024-08-02T22:13:54Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"finalized":true,"id":"trk_4f71ba82b6b544fc8fed7b82b4f217f1","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzRmNzFiYTgyYjZiNTQ0ZmM4ZmVkN2I4MmI0ZjIxN2Yx","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T22:13:54Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T10:50:54Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T22:13:54Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-08-02T22:14:50Z"}]}' + headers: + Cache-Control: + - private, no-cache, no-store Content-Type: - - application/x-www-form-urlencoded + - application/json; charset=utf-8 + Expires: + - "0" + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Backend: + - easypost + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Ep-Request-Uuid: + - 4d57346d66ad686ff440b8c7003750ca + X-Frame-Options: + - SAMEORIGIN + X-Node: + - bigweb39nuq + X-Permitted-Cross-Domain-Policies: + - none + X-Proxied: + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 + X-Runtime: + - "0.365100" + X-Version-Label: + - easypost-202408021936-66687f8918-master + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Authorization: + - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/insurances + url: https://api.easypost.com/v2/insurances?before_id=ins_fa59cf357244433896b8e07fe35f2411&page_size=5 method: GET response: - body: '{"has_more":false,"insurances":[{"amount":"100.00000","created_at":"2023-11-30T20:11:03Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_96876a2a8fbc11eebe07ac1f6bc539aa","mode":"test","name":"JACK + body: '{"has_more":true,"insurances":[{"amount":"100.00000","created_at":"2024-08-02T22:13:08Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T22:13:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6643095e511c11ef8bca3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:03+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_c132b5a92b9746b0a8c1d4f255756878","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_968207248fbc11eeaf55ac1f6bc53342","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T22:13:08+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_b9d08f6ce75d46beaa1967f1993602d5","messages":["The + tracking number could not be tracked."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:13:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_663d4801511c11ef9c78ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T20:11:03+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:03Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_c46d05e258dd49d3af4412c96ea4cb49","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M0NmQwNWUyNThkZDQ5ZDNhZjQ0MTJjOTZlYTRjYjQ5","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100105442287383252","tracking_details":[{"carrier_code":"","datetime":"2023-11-30T20:11:03Z","description":"","message":"In + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:13:08+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T22:13:09Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_a510d3b31bee434696d9040b28237d90","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2E1MTBkM2IzMWJlZTQzNDY5NmQ5MDQwYjI4MjM3ZDkw","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100110368070361752","tracking_details":[{"carrier_code":"","datetime":"2024-08-02T22:13:09Z","description":"","message":"In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, - EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2023-11-30T20:11:03Z","weight":null},"tracking_code":"9400100105442287383252","updated_at":"2023-11-30T20:11:03Z"}]}' + EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2024-08-02T22:13:09Z","weight":null},"tracking_code":"9400100110368070361752","updated_at":"2024-08-02T22:14:35Z"},{"amount":"100.00000","created_at":"2024-08-02T22:12:52Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:12:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5c536bfe511c11ef990cac1f6bc53342","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:12:52+00:00","verifications":{},"zip":"94107"},"id":"ins_db03e42beb00436faa77c45f9a725574","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_d38c9ce34866470188c66d6e2b34c0c0","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:12:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5c507a48511c11efb555ac1f6bc539ae","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:12:52+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2024-07-05T12:06:53Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T22:12:53Z","est_delivery_date":"2024-08-02T22:15:53Z","fees":[],"finalized":true,"id":"trk_0b34a6563cd841f9a71f5cc98f24b440","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBiMzRhNjU2M2NkODQxZjlhNzFmNWNjOThmMjRiNDQw","shipment_id":"shp_d38c9ce34866470188c66d6e2b34c0c0","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100110368070361691","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T22:15:53Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T10:52:53Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2024-07-03T20:57:53Z","description":"","message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2024-07-04T22:33:53Z","description":"","message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2024-07-05T01:24:53Z","description":"","message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T07:04:53Z","description":"","message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T07:14:53Z","description":"","message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T12:06:53Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2024-08-02T22:15:53Z","weight":null},"tracking_code":"9400100110368070361691","updated_at":"2024-08-02T22:12:53Z"},{"amount":"100.00000","created_at":"2024-08-02T22:12:49Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:12:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5ac1c51a511c11ef86c2ac1f6bc539aa","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:12:49+00:00","verifications":{},"zip":"94107"},"id":"ins_3cd0fb317071401a96207b0d2a9fee9c","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_31bf3e5b4037499db22843da305b5716","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:12:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5abf1514511c11efb4c8ac1f6bc539ae","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:12:50+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2024-07-05T12:06:51Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T22:12:50Z","est_delivery_date":"2024-08-02T22:15:51Z","fees":[],"finalized":true,"id":"trk_c9e4fad0cdeb4005ad5260398ba305a9","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M5ZTRmYWQwY2RlYjQwMDVhZDUyNjAzOThiYTMwNWE5","shipment_id":"shp_31bf3e5b4037499db22843da305b5716","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100110368070361660","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T22:15:51Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T10:52:51Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2024-07-03T20:57:51Z","description":"","message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2024-07-04T22:33:51Z","description":"","message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2024-07-05T01:24:51Z","description":"","message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T07:04:51Z","description":"","message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T07:14:51Z","description":"","message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T12:06:51Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2024-08-02T22:15:51Z","weight":null},"tracking_code":"9400100110368070361660","updated_at":"2024-08-02T22:12:50Z"},{"amount":"100.00000","created_at":"2024-08-02T22:12:47Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T22:12:47+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_595cf44e511c11ef878a3cecef1b359e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T22:12:47+00:00","verifications":{},"zip":"94107"},"id":"ins_8acc4665ce824763a9c7a13fc2936ae6","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_5717c87d9c3746709c0c77243d24a4bb","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T22:12:47+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_595a5dc6511c11ef9848ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T22:12:47+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2024-07-05T12:06:48Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T22:12:48Z","est_delivery_date":"2024-08-02T22:15:48Z","fees":[],"finalized":true,"id":"trk_ac24a25917ea477e817e012d883c87e4","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2FjMjRhMjU5MTdlYTQ3N2U4MTdlMDEyZDg4M2M4N2U0","shipment_id":"shp_5717c87d9c3746709c0c77243d24a4bb","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100110368070361653","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T22:15:48Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T10:52:48Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2024-07-03T20:57:48Z","description":"","message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2024-07-04T22:33:48Z","description":"","message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2024-07-05T01:24:48Z","description":"","message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T07:04:48Z","description":"","message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T07:14:48Z","description":"","message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-07-05T12:06:48Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2024-08-02T22:15:48Z","weight":null},"tracking_code":"9400100110368070361653","updated_at":"2024-08-02T22:12:48Z"},{"amount":"100.00000","created_at":"2024-07-26T20:01:20Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-07-26T20:01:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d3007bd84b8911ef910bac1f6bc53342","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-07-26T20:01:19+00:00","verifications":{},"zip":"90277"},"id":"ins_00bdb4fca7fa42749a8cd486b02994a8","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_5f80f84011954bfca6586b42cb8bc5dd","status":"purchased","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-07-26T20:01:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_d2f5db654b8911ef9107ac1f6bc53342","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-07-26T20:01:19+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2024-06-29T09:55:20Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2024-07-26T20:01:20Z","est_delivery_date":"2024-07-26T20:04:20Z","fees":[],"finalized":true,"id":"trk_dda81da053b0477882a588f1d83b68ac","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RkYTgxZGEwNTNiMDQ3Nzg4MmE1ODhmMWQ4M2I2OGFj","shipment_id":"shp_5f80f84011954bfca6586b42cb8bc5dd","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100110368067715933","tracking_details":[{"carrier_code":"","datetime":"2024-06-26T20:04:20Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-06-27T08:41:20Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2024-06-27T18:46:20Z","description":"","message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2024-06-28T20:22:20Z","description":"","message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2024-06-28T23:13:20Z","description":"","message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-06-29T04:53:20Z","description":"","message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-06-29T05:03:20Z","description":"","message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2024-06-29T09:55:20Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2024-07-26T20:04:20Z","weight":null},"tracking_code":"9400100110368067715933","updated_at":"2024-07-26T20:01:20Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -43,20 +218,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec57e7896122001b5f98 + - 4d57346d66ad686ff440b8c70037511d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.103962" + - "0.332979" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestInsuranceRefund.yaml b/tests/cassettes/TestInsuranceRefund.yaml index 493bb23..1122ae2 100644 --- a/tests/cassettes/TestInsuranceRefund.yaml +++ b/tests/cassettes/TestInsuranceRefund.yaml @@ -18,18 +18,18 @@ interactions: url: https://api.easypost.com/v2/insurances method: POST response: - body: '{"amount":"100.00000","created_at":"2024-04-08T17:57:03Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2024-04-08T17:57:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_68251b87f5d111ee9712ac1f6bc53342","mode":"test","name":"JACK + body: '{"amount":"100.00000","created_at":"2024-08-02T23:14:56Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_082c46f8512511efb33a3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2024-04-08T17:57:03+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_9e630a5091fe4a158ac78f92167f3fce","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-04-08T17:57:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_681fcddbf5d111eeac823cecef1b359e","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_771ab9de6f26463083fbb4058c08197d","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_08279fd2512511efb3d2ac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-04-08T17:57:03+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2024-04-08T17:54:50Z","est_delivery_date":"2024-04-08T17:54:50Z","fees":[],"finalized":true,"id":"trk_f36a7ce2330f43348702140d85edc9db","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YzNmE3Y2UyMzMwZjQzMzQ4NzAyMTQwZDg1ZWRjOWRi","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-03-08T17:54:50Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-03-09T06:31:50Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-04-08T17:54:50Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-04-08T17:57:03Z"}' + Package Service"},"created_at":"2024-08-02T22:13:54Z","est_delivery_date":"2024-08-02T22:13:54Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"finalized":true,"id":"trk_4f71ba82b6b544fc8fed7b82b4f217f1","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzRmNzFiYTgyYjZiNTQ0ZmM4ZmVkN2I4MmI0ZjIxN2Yx","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T22:13:54Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T10:50:54Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T22:13:54Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-08-02T23:14:56Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -38,7 +38,7 @@ interactions: Expires: - "0" Location: - - /api/v2/insurances/ins_9e630a5091fe4a158ac78f92167f3fce + - /api/v2/insurances/ins_771ab9de6f26463083fbb4058c08197d Pragma: - no-cache Referrer-Policy: @@ -52,49 +52,51 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 295ee62166142fefe799e56500924611 + - 4d57346d66ad6870f440b8c700375167 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq 39c21b8207 - - extlb2nuq 60566a9ec2 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.185811" + - "0.363594" X-Version-Label: - - easypost-202404081732-cdcb81b7f6-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/insurances/ins_9e630a5091fe4a158ac78f92167f3fce/refund + url: https://api.easypost.com/v2/insurances/ins_771ab9de6f26463083fbb4058c08197d/refund method: POST response: - body: '{"amount":"100.00000","created_at":"2024-04-08T17:57:03Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2024-04-08T17:57:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_68251b87f5d111ee9712ac1f6bc53342","mode":"test","name":"JACK + body: '{"amount":"100.00000","created_at":"2024-08-02T23:14:56Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_082c46f8512511efb33a3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2024-04-08T17:57:03+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_9e630a5091fe4a158ac78f92167f3fce","messages":["Insurance + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_771ab9de6f26463083fbb4058c08197d","messages":["Insurance was cancelled by the user."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-04-08T17:57:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_681fcddbf5d111eeac823cecef1b359e","mode":"test","name":"ELIZABETH + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_08279fd2512511efb3d2ac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2024-04-08T17:57:03+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2024-04-08T17:57:04Z","est_delivery_date":"2024-04-08T17:57:04Z","fees":[],"finalized":true,"id":"trk_7f7d4c306afd4be2b6bd9a4404f1845f","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzdmN2Q0YzMwNmFmZDRiZTJiNmJkOWE0NDA0ZjE4NDVm","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-03-08T17:57:04Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-03-09T06:34:04Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-04-08T17:57:04Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-04-08T17:57:04Z"}' + Package Service"},"created_at":"2024-08-02T23:14:56Z","est_delivery_date":"2024-08-02T23:14:56Z","fees":[],"finalized":true,"id":"trk_3b6fe4eae7794f10b8a39251f321df0d","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiNmZlNGVhZTc3OTRmMTBiOGEzOTI1MWYzMjFkZjBk","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:56Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:56Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:56Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-08-02T23:14:56Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -110,25 +112,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 295ee62166142ff0e799e5650092464e + - 4d57346d66ad6870f440b8c7003751a3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq 39c21b8207 - - extlb2nuq 60566a9ec2 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.092726" + - "0.186887" X-Version-Label: - - easypost-202404081732-cdcb81b7f6-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestInsuranceRetrieve.yaml b/tests/cassettes/TestInsuranceRetrieve.yaml index b15553d..30f8537 100644 --- a/tests/cassettes/TestInsuranceRetrieve.yaml +++ b/tests/cassettes/TestInsuranceRetrieve.yaml @@ -2,91 +2,70 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/insurances + url: https://api.easypost.com/v2/insurances?page_size=5 method: GET response: - body: '{"has_more":true,"insurances":[{"amount":"100.00000","created_at":"2023-11-30T00:21:56Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T00:21:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_786e77838f1611ee8b19ac1f6bc53342","mode":"test","name":"JACK + body: '{"has_more":true,"insurances":[{"amount":"100.00000","created_at":"2024-08-02T23:14:56Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_082c46f8512511efb33a3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T00:21:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_9ac7e8ab94ba4b4991e5185d76fdbeda","messages":["The - tracking number could not be tracked."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T00:21:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7868adc48f1611eeba91ac1f6bc539aa","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_771ab9de6f26463083fbb4058c08197d","messages":["Insurance + was cancelled by the user."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_08279fd2512511efb3d2ac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T00:21:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T00:21:56Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_e38f8b58108b49a1923543478a33163c","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2UzOGY4YjU4MTA4YjQ5YTE5MjM1NDM0NzhhMzMxNjNj","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100105442286713012","tracking_details":[{"carrier_code":"","datetime":"2023-11-30T00:21:56Z","description":"","message":"In - test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, - EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2023-11-30T00:21:56Z","weight":null},"tracking_code":"9400100105442286713012","updated_at":"2023-11-30T00:23:33Z"},{"amount":"100.00000","created_at":"2023-11-30T00:21:55Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T00:21:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_777c049c8f1611eeba31ac1f6bc539aa","mode":"test","name":"JACK + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:56Z","est_delivery_date":"2024-08-02T23:14:56Z","fees":[],"finalized":true,"id":"trk_3b6fe4eae7794f10b8a39251f321df0d","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiNmZlNGVhZTc3OTRmMTBiOGEzOTI1MWYzMjFkZjBk","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:56Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:56Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:56Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-08-02T23:14:56Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:55Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_077437a1512511efa28cac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T00:21:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_f2dad32f4aef49ebaf3ab7798580faac","messages":["The - tracking number could not be tracked."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T00:21:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_777681b88f1611ee97ab3cecef1b359e","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_0fe20e037da14c0da9f8a2307a3eadde","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_076e7118512511ef83eeac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T00:21:55+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T00:21:55Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_0b02108d38834784a608ce6cc4949c7f","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBiMDIxMDhkMzg4MzQ3ODRhNjA4Y2U2Y2M0OTQ5Yzdm","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100105442286713005","tracking_details":[{"carrier_code":"","datetime":"2023-11-30T00:21:55Z","description":"","message":"In + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:14:55Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_843137abcd07433fa9ebe64020789cec","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzg0MzEzN2FiY2QwNzQzM2ZhOWViZTY0MDIwNzg5Y2Vj","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100110368070372062","tracking_details":[{"carrier_code":"","datetime":"2024-08-02T23:14:55Z","description":"","message":"In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, - EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2023-11-30T00:21:55Z","weight":null},"tracking_code":"9400100105442286713005","updated_at":"2023-11-30T00:23:20Z"},{"amount":"100.00000","created_at":"2023-11-29T23:44:15Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-29T23:44:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_33d5ff4b8f1111ee9440ac1f6bc539ae","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-29T23:44:14+00:00","verifications":{},"zip":"90277"},"id":"ins_13489c167f064c9fad4dc9b5b742766a","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_565aec2cbf8e4097b34fb908f1de75c8","status":"purchased","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-29T23:44:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_33d3c18f8f1111eea7edac1f6bc539aa","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-29T23:44:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON - SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2023-11-01T13:38:15Z","object":"CarrierDetail","origin_location":"HOUSTON - TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class - Package Service"},"created_at":"2023-11-29T23:44:15Z","est_delivery_date":"2023-11-29T23:47:15Z","fees":[],"finalized":true,"id":"trk_c482d76e360f41339dc7bbe50a44fdad","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M0ODJkNzZlMzYwZjQxMzM5ZGM3YmJlNTBhNDRmZGFk","shipment_id":"shp_565aec2cbf8e4097b34fb908f1de75c8","signed_by":"John - Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100105442286704287","tracking_details":[{"carrier_code":"","datetime":"2023-10-29T23:47:15Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-30T12:24:15Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2023-10-30T22:29:15Z","description":"","message":"Arrived - at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH - HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2023-11-01T00:05:15Z","description":"","message":"Arrived - at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2023-11-01T02:56:15Z","description":"","message":"Arrived - at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T08:36:15Z","description":"","message":"Sorting - Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T08:46:15Z","description":"","message":"Out - for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T13:38:15Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2023-11-29T23:47:15Z","weight":null},"tracking_code":"9400100105442286704287","updated_at":"2023-11-29T23:44:15Z"},{"amount":"100.00000","created_at":"2023-11-29T23:44:13Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-29T23:44:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3302bed88f1111ee93e7ac1f6bc539ae","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-29T23:44:12+00:00","verifications":{},"zip":"90277"},"id":"ins_484595ff53454fb5bd57bc6090bc3315","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_465fc411f1a24fa98cdcb7b8fd398b16","status":"purchased","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-29T23:44:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_330049478f1111ee851c3cecef1b359e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-29T23:44:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON - SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2023-11-01T13:38:14Z","object":"CarrierDetail","origin_location":"HOUSTON - TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class - Package Service"},"created_at":"2023-11-29T23:44:13Z","est_delivery_date":"2023-11-29T23:47:14Z","fees":[],"finalized":true,"id":"trk_1cc7a4f3cbd947c8a9df224ddba49887","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzFjYzdhNGYzY2JkOTQ3YzhhOWRmMjI0ZGRiYTQ5ODg3","shipment_id":"shp_465fc411f1a24fa98cdcb7b8fd398b16","signed_by":"John - Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100105442286704270","tracking_details":[{"carrier_code":"","datetime":"2023-10-29T23:47:14Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-30T12:24:14Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2023-10-30T22:29:14Z","description":"","message":"Arrived - at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH - HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2023-11-01T00:05:14Z","description":"","message":"Arrived - at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2023-11-01T02:56:14Z","description":"","message":"Arrived - at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T08:36:14Z","description":"","message":"Sorting - Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T08:46:14Z","description":"","message":"Out - for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T13:38:14Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2023-11-29T23:47:14Z","weight":null},"tracking_code":"9400100105442286704270","updated_at":"2023-11-29T23:44:13Z"},{"amount":"244.99000","created_at":"2023-11-29T23:44:04Z","fee":{"amount":"2.44990","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-29T23:44:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_2d87159f8f1111ee9140ac1f6bc539ae","mode":"test","name":"Jack + EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2024-08-02T23:14:55Z","weight":null},"tracking_code":"9400100110368070372062","updated_at":"2024-08-02T23:14:55Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:36Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0ec204512411efb15cac1f6bc539aa","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:36+00:00","verifications":{},"zip":"94107"},"id":"ins_7c77e8db3dbf49568bd0f32688f713e9","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fc0cb6b0512411efb15aac1f6bc539aa","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:36+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:37Z","est_delivery_date":"2024-08-02T23:14:37Z","fees":[],"finalized":true,"id":"trk_ba7fb165db3f4807af4b90c95a798d98","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JhN2ZiMTY1ZGIzZjQ4MDdhZjRiOTBjOTVhNzk4ZDk4","shipment_id":"shp_d4f8721ace0d45e89483ac2d7e7778d4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372017","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:37Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:37Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:37Z","weight":null},"tracking_code":"9400100110368070372017","updated_at":"2024-08-02T23:14:37Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:33Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa83e604512411ef81acac1f6bc53342","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:33+00:00","verifications":{},"zip":"94107"},"id":"ins_5ae9a272413d4d5faf9cdde11cb2ba5d","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fa8132b9512411ef81a9ac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:33+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:34Z","est_delivery_date":"2024-08-02T23:14:34Z","fees":[],"finalized":true,"id":"trk_63a5e289d607458a887ae942f07f5231","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYzYTVlMjg5ZDYwNzQ1OGE4ODdhZTk0MmYwN2Y1MjMx","shipment_id":"shp_589db68882e24ee5815a68f3e6b8cf02","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372000","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:34Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:34Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:34Z","weight":null},"tracking_code":"9400100110368070372000","updated_at":"2024-08-02T23:14:34Z"},{"amount":"100.00000","created_at":"2024-08-02T23:14:31Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f918be91512411efb0423cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-29T23:44:03+00:00","verifications":{},"zip":"94107"},"id":"ins_0ebd1625ccdd43c0bae88432ec28c605","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_907be785a6f649adb78b986f6e4d8904","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-29T23:44:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_2d82665f8f1111ee913fac1f6bc539ae","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:14:31+00:00","verifications":{},"zip":"94107"},"id":"ins_84b62fb8a9104597b82f0a72b6c9a2be","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","status":"purchased","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_f915a90d512411ef8163ac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-29T23:44:04+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON - SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2023-11-01T13:38:05Z","object":"CarrierDetail","origin_location":"HOUSTON - TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class - Package Service"},"created_at":"2023-11-29T23:44:05Z","est_delivery_date":"2023-11-29T23:47:05Z","fees":[],"finalized":true,"id":"trk_0c5a3b38ffab41a391ad2bfcc1bba36b","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBjNWEzYjM4ZmZhYjQxYTM5MWFkMmJmY2MxYmJhMzZi","shipment_id":"shp_907be785a6f649adb78b986f6e4d8904","signed_by":"John - Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100105442286704225","tracking_details":[{"carrier_code":"","datetime":"2023-10-29T23:47:05Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-30T12:24:05Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":"","datetime":"2023-10-30T22:29:05Z","description":"","message":"Arrived - at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH - HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":"","datetime":"2023-11-01T00:05:05Z","description":"","message":"Arrived - at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":"","datetime":"2023-11-01T02:56:05Z","description":"","message":"Arrived - at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T08:36:05Z","description":"","message":"Sorting - Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T08:46:05Z","description":"","message":"Out - for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":"","datetime":"2023-11-01T13:38:05Z","description":"","message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2023-11-29T23:47:05Z","weight":null},"tracking_code":"9400100105442286704225","updated_at":"2023-11-29T23:44:04Z"}]}' + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:32Z","est_delivery_date":"2024-08-02T23:14:32Z","fees":[],"finalized":true,"id":"trk_cc9751d918fd41a480913c387683262f","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NjOTc1MWQ5MThmZDQxYTQ4MDkxM2MzODc2ODMyNjJm","shipment_id":"shp_7d9b4931a5c64189ab4ea176f797ee38","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070371997","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:32Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:32Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:32Z","weight":null},"tracking_code":"9400100110368070371997","updated_at":"2024-08-02T23:14:32Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -107,20 +86,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 7f2c1939656a2195e0de350c001f0145 + - 4d57346d66ad6870f440b8c7003751ca X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.280345" + - "0.300285" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -134,19 +113,22 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/insurances/ins_9ac7e8ab94ba4b4991e5185d76fdbeda + url: https://api.easypost.com/v2/insurances/ins_771ab9de6f26463083fbb4058c08197d method: GET response: - body: '{"amount":"100.00000","created_at":"2023-11-30T00:21:56Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T00:21:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_786e77838f1611ee8b19ac1f6bc53342","mode":"test","name":"JACK + body: '{"amount":"100.00000","created_at":"2024-08-02T23:14:56Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_082c46f8512511efb33a3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T00:21:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_9ac7e8ab94ba4b4991e5185d76fdbeda","messages":["The - tracking number could not be tracked."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T00:21:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7868adc48f1611eeba91ac1f6bc539aa","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_771ab9de6f26463083fbb4058c08197d","messages":["Insurance + was cancelled by the user."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_08279fd2512511efb3d2ac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T00:21:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T00:21:56Z","est_delivery_date":null,"fees":[],"finalized":true,"id":"trk_e38f8b58108b49a1923543478a33163c","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2UzOGY4YjU4MTA4YjQ5YTE5MjM1NDM0NzhhMzMxNjNj","shipment_id":null,"signed_by":null,"status":"error","status_detail":null,"tracking_code":"9400100105442286713012","tracking_details":[{"carrier_code":"","datetime":"2023-11-30T00:21:56Z","description":"","message":"In - test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, - EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2023-11-30T00:21:56Z","weight":null},"tracking_code":"9400100105442286713012","updated_at":"2023-11-30T00:23:33Z"}' + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2024-08-02T23:14:56Z","est_delivery_date":"2024-08-02T23:14:56Z","fees":[],"finalized":true,"id":"trk_3b6fe4eae7794f10b8a39251f321df0d","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiNmZlNGVhZTc3OTRmMTBiOGEzOTI1MWYzMjFkZjBk","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:14:56Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:51:56Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:14:56Z","weight":null},"tracking_code":"EZ1000000001","updated_at":"2024-08-02T23:14:56Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -167,20 +149,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 7f2c1939656a2195e0de350c001f01b0 + - 4d57346d66ad6871f440b8c7003751fa X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.072973" + - "0.139561" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestMultipleHooks.yaml b/tests/cassettes/TestMultipleHooks.yaml index 4a84f66..c5a9d5a 100644 --- a/tests/cassettes/TestMultipleHooks.yaml +++ b/tests/cassettes/TestMultipleHooks.yaml @@ -2,33 +2,31 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses + url: https://api.easypost.com/v2/addresses?page_size=5 method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_978329d38fbc11eeafdcac1f6bc53342","mode":"test","name":"JACK + body: '{"addresses":[{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_082c46f8512511efb33a3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:05+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_977c4dfa8fbc11eebb25ac1f6bc539ae","mode":"test","name":"ELIZABETH + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:56+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_08279fd2512511efb3d2ac1f6bc539aa","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T20:11:05+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_96d42d548fbc11eebe36ac1f6bc539aa","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:04+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_96d1e5a38fbc11eebac6ac1f6bc539ae","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:04+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:03+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_96876a2a8fbc11eebe07ac1f6bc539aa","mode":"test","name":"JACK + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:56+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_077437a1512511efa28cac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:03+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}],"has_more":true}' + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:14:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_076e7118512511ef83eeac1f6bc53342","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:14:55+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:14:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_06aeae9f512511efb364ac1f6bc539aa","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:14:53+00:00","verifications":{},"zip":"90277"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -49,20 +47,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec59e7896122001b6146 + - 4d57346d66ad6871f440b8c70037521b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.033693" + - "0.036711" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestOrderBuyRate.yaml b/tests/cassettes/TestOrderBuyRate.yaml index ae05c58..e47b32c 100644 --- a/tests/cassettes/TestOrderBuyRate.yaml +++ b/tests/cassettes/TestOrderBuyRate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"is_return":false,"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo + 20","zip":"94107"},"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} @@ -18,45 +18,45 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:29Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:33:12Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"id":"order_cd68849d586a4b41bafc84256b71f105","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_468e28e80a1546709e14e349dfd07e9d","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9ebf46bc4dca422e87cf15ea71f7d029","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6d10ce95fef545628c1a1cea8d642bdb","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_899c154e51854c2db4c1f33289aa8b67","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_89b7b9ab600d4829b67654cb0685157b","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"id":"order_c7effbf5f7094a1f9fcd9dfb3425e7ab","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e5ec6b8b40b04e9d9f64733a45f7823e","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5b5fcb22ef5c4a03ac16821c9157aa98","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_661d2028abb54d12a471cbc387736655","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:29Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:33:12Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"id":"shp_5cd4ade690014904914fcfd46433bda6","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_cd68849d586a4b41bafc84256b71f105","parcel":{"created_at":"2024-06-14T16:17:29Z","height":null,"id":"prcl_7cd2f84b7989468a9953937929b93172","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:29Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_468e28e80a1546709e14e349dfd07e9d","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9ebf46bc4dca422e87cf15ea71f7d029","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6d10ce95fef545628c1a1cea8d642bdb","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_899c154e51854c2db4c1f33289aa8b67","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_89b7b9ab600d4829b67654cb0685157b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"id":"shp_755e1bba99f64156bcd0f08d391d29e6","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c7effbf5f7094a1f9fcd9dfb3425e7ab","parcel":{"created_at":"2024-08-02T23:33:12Z","height":null,"id":"prcl_18f4c8878d044c908ada6b07daf142ce","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:33:12Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:12Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e5ec6b8b40b04e9d9f64733a45f7823e","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:12Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:12Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5b5fcb22ef5c4a03ac16821c9157aa98","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:12Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:12Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_661d2028abb54d12a471cbc387736655","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:12Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:29Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:33:12Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:29Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:33:12Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"id":"shp_d344316c76234c78819c8cd669e5c5cb","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_cd68849d586a4b41bafc84256b71f105","parcel":{"created_at":"2024-06-14T16:17:29Z","height":null,"id":"prcl_c337d23d3a1d4c15961168c84ddd831c","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:29Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e7f7b9a9cea942889543fa9893debd46","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a24f47a470f54f76b1fe48ae022a503b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3f94310c4c62478b89ae6a3cc0ad7195","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_538ee957255f46e3839a729425191118","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8cd9df9ca697420cb967553c2c1c2691","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"id":"shp_79bc85b13b89469f867fc0d296aee91a","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c7effbf5f7094a1f9fcd9dfb3425e7ab","parcel":{"created_at":"2024-08-02T23:33:12Z","height":null,"id":"prcl_2d22101b4f304fabbff57229104d533e","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:33:12Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b453f52da4494dffad5d0e0fd9996427","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8e4bb0b27a854220bb3d140a8986ecab","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f5db7bda91fc4d69a5a85919a3e39e16","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:29Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:33:12Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:30Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:33:13Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -65,7 +65,7 @@ interactions: Expires: - "0" Location: - - /api/v2/orders/order_cd68849d586a4b41bafc84256b71f105 + - /api/v2/orders/order_c7effbf5f7094a1f9fcd9dfb3425e7ab Pragma: - no-cache Referrer-Policy: @@ -74,84 +74,82 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d19e78a0745000299ce + - 4d57346b66ad6cb8f43f0c32003a13d0 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.061345" + - "1.102375" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: carrier=USPS&service=First - form: - carrier: - - USPS - service: - - First + body: '{"carrier":"USPS","service":"GroundAdvantage"}' + form: {} headers: Authorization: - REDACTED Content-Type: - - application/x-www-form-urlencoded + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/orders/order_cd68849d586a4b41bafc84256b71f105/buy + url: https://api.easypost.com/v2/orders/order_c7effbf5f7094a1f9fcd9dfb3425e7ab/buy method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"REDONDO BEACH","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"ELIZABETH + body: '{"buyer_address":{"carrier_facility":null,"city":"REDONDO BEACH","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-06-14T16:17:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-06-14T16:17:29Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:33:14+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:33:12Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"id":"order_cd68849d586a4b41bafc84256b71f105","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_468e28e80a1546709e14e349dfd07e9d","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9ebf46bc4dca422e87cf15ea71f7d029","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6d10ce95fef545628c1a1cea8d642bdb","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_899c154e51854c2db4c1f33289aa8b67","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_89b7b9ab600d4829b67654cb0685157b","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"id":"order_c7effbf5f7094a1f9fcd9dfb3425e7ab","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e5ec6b8b40b04e9d9f64733a45f7823e","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5b5fcb22ef5c4a03ac16821c9157aa98","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_661d2028abb54d12a471cbc387736655","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-06-14T16:17:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-06-14T16:17:29Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.07000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:33:14+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:33:12Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.07000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"id":"shp_5cd4ade690014904914fcfd46433bda6","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_cd68849d586a4b41bafc84256b71f105","parcel":{"created_at":"2024-06-14T16:17:29Z","height":null,"id":"prcl_7cd2f84b7989468a9953937929b93172","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:29Z","weight":10.2,"width":null},"postage_label":{"created_at":"2024-06-14T16:17:31Z","date_advance":0,"id":"pl_62ddb7d6307c4a73980ca3afaa7bcc18","integrated_form":"none","label_date":"2024-06-14T16:17:31Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240614/e801092c259dcf422cac3ae86a5de3cc67.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-06-14T16:17:31Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_468e28e80a1546709e14e349dfd07e9d","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9ebf46bc4dca422e87cf15ea71f7d029","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6d10ce95fef545628c1a1cea8d642bdb","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_899c154e51854c2db4c1f33289aa8b67","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_89b7b9ab600d4829b67654cb0685157b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:30Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"id":"shp_755e1bba99f64156bcd0f08d391d29e6","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c7effbf5f7094a1f9fcd9dfb3425e7ab","parcel":{"created_at":"2024-08-02T23:33:12Z","height":null,"id":"prcl_18f4c8878d044c908ada6b07daf142ce","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:33:12Z","weight":10.2,"width":null},"postage_label":{"created_at":"2024-08-02T23:33:13Z","date_advance":0,"id":"pl_773f6ed284504c57b6d2762b12b0a4aa","integrated_form":"none","label_date":"2024-08-02T23:33:13Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8f6fc84e398cb4bc69e85a2b808972f61.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:33:14Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:12Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e5ec6b8b40b04e9d9f64733a45f7823e","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:12Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:12Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5b5fcb22ef5c4a03ac16821c9157aa98","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:12Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:12Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_661d2028abb54d12a471cbc387736655","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:12Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6d10ce95fef545628c1a1cea8d642bdb","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","updated_at":"2024-06-14T16:17:31Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_661d2028abb54d12a471cbc387736655","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","updated_at":"2024-08-02T23:33:14Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-06-14T16:17:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-06-14T16:17:32Z","est_delivery_date":null,"fees":[],"id":"trk_d692b52eb51648f794d10bb147a81658","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q2OTJiNTJlYjUxNjQ4Zjc5NGQxMGJiMTQ3YTgxNjU4","shipment_id":"shp_5cd4ade690014904914fcfd46433bda6","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368051953365","tracking_details":[],"updated_at":"2024-06-14T16:17:32Z","weight":null},"tracking_code":"9400100110368051953365","updated_at":"2024-06-14T16:17:31Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"ELIZABETH + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:33:14+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:33:15Z","est_delivery_date":null,"fees":[],"id":"trk_9c7d20a42c314cf29f51f031844a473b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzljN2QyMGE0MmMzMTRjZjI5ZjUxZjAzMTg0NGE0NzNi","shipment_id":"shp_755e1bba99f64156bcd0f08d391d29e6","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070375438","tracking_details":[],"updated_at":"2024-08-02T23:33:15Z","weight":null},"tracking_code":"9400100110368070375438","updated_at":"2024-08-02T23:33:14Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-06-14T16:17:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-06-14T16:17:29Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"6.26000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:33:14+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:33:12Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"6.33000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"id":"shp_d344316c76234c78819c8cd669e5c5cb","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_cd68849d586a4b41bafc84256b71f105","parcel":{"created_at":"2024-06-14T16:17:29Z","height":null,"id":"prcl_c337d23d3a1d4c15961168c84ddd831c","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:29Z","weight":17.5,"width":null},"postage_label":{"created_at":"2024-06-14T16:17:31Z","date_advance":0,"id":"pl_296347a8a86d4ba48eecdf7ba1ff588d","integrated_form":"none","label_date":"2024-06-14T16:17:31Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240614/e8a04fc237c0074315ad88083b9964d23b.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-06-14T16:17:32Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e7f7b9a9cea942889543fa9893debd46","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a24f47a470f54f76b1fe48ae022a503b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3f94310c4c62478b89ae6a3cc0ad7195","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_538ee957255f46e3839a729425191118","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8cd9df9ca697420cb967553c2c1c2691","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:30Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cf52332a6911efb494ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"id":"shp_79bc85b13b89469f867fc0d296aee91a","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c7effbf5f7094a1f9fcd9dfb3425e7ab","parcel":{"created_at":"2024-08-02T23:33:12Z","height":null,"id":"prcl_2d22101b4f304fabbff57229104d533e","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:33:12Z","weight":17.5,"width":null},"postage_label":{"created_at":"2024-08-02T23:33:14Z","date_advance":0,"id":"pl_573e49b71a12491ca780d57ff682a571","integrated_form":"none","label_date":"2024-08-02T23:33:14Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e88394dcf4074f41b19203e1ef310e38d3.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:33:14Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b453f52da4494dffad5d0e0fd9996427","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8e4bb0b27a854220bb3d140a8986ecab","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f5db7bda91fc4d69a5a85919a3e39e16","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956d2834512711efbff8ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:29+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a24f47a470f54f76b1fe48ae022a503b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","updated_at":"2024-06-14T16:17:31Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:12+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b453f52da4494dffad5d0e0fd9996427","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","updated_at":"2024-08-02T23:33:14Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-06-14T16:17:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-06-14T16:17:32Z","est_delivery_date":null,"fees":[],"id":"trk_0ec0cb8494eb4f6b998fa6cb5e3c118b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBlYzBjYjg0OTRlYjRmNmI5OThmYTZjYjVlM2MxMThi","shipment_id":"shp_d344316c76234c78819c8cd669e5c5cb","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9434600110368051953381","tracking_details":[],"updated_at":"2024-06-14T16:17:32Z","weight":null},"tracking_code":"9434600110368051953381","updated_at":"2024-06-14T16:17:32Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2024-06-14T16:17:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_98cd76902a6911efb521ac1f6bc539ae","mode":"test","name":"ELIZABETH + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:33:14+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:33:15Z","est_delivery_date":null,"fees":[],"id":"trk_a4fe98ab932b4410850fe534c113e9d3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2E0ZmU5OGFiOTMyYjQ0MTA4NTBmZTUzNGMxMTNlOWQz","shipment_id":"shp_79bc85b13b89469f867fc0d296aee91a","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9434600110368070375447","tracking_details":[],"updated_at":"2024-08-02T23:33:15Z","weight":null},"tracking_code":"9434600110368070375447","updated_at":"2024-08-02T23:33:14Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:33:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_956b5b5b512711ef91eaac1f6bc53342","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2024-06-14T16:17:31+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"updated_at":"2024-06-14T16:17:30Z"}' + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:33:14+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"updated_at":"2024-08-02T23:33:13Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -172,20 +170,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d1ae78a074500029aef + - 4d57346b66ad6cb9f43f0c32003a149b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.664047" + - "1.603870" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestOrderCreate.yaml b/tests/cassettes/TestOrderCreate.yaml index 6bad506..9fd9fc0 100644 --- a/tests/cassettes/TestOrderCreate.yaml +++ b/tests/cassettes/TestOrderCreate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"is_return":false,"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo + 20","zip":"94107"},"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} @@ -18,45 +18,45 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a8341e72a6911efa4b03cecef1b359e","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b738d45512711efba073cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:32Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a855a5a2a6911ef85b5ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:28Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b756d7c512711efba083cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"94107"},"id":"order_7027b18396ab42f59974edc7fbcdacab","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_068c18ec83174d3e88e245b62c698c91","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0a3f1aa27b784c918091c3948b14fb5a","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7e45f48a8cae4a6790fd8f1da022aa7d","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_9693c19ac0314f6183878609e7d46940","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_286b57fb47ae4742b6cb9327f48fdc70","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a855a5a2a6911ef85b5ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"94107"},"id":"order_9cbcab9e33cc424784101d7a586cb082","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0eaf17103a884515a5dbe6adc9973c5c","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dc1e2b9b697a4e1197b0cf887142b93d","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ed8c4ab4d58d41d998158ecc121c078b","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b756d7c512711efba083cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a8341e72a6911efa4b03cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b738d45512711efba073cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:32Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a855a5a2a6911ef85b5ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:28Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b756d7c512711efba083cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"94107"},"id":"shp_82886821b18847e198e9028ce6b7617a","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_7027b18396ab42f59974edc7fbcdacab","parcel":{"created_at":"2024-06-14T16:17:32Z","height":null,"id":"prcl_926d5ab18d9541a795957efa0f2e3571","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:32Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_068c18ec83174d3e88e245b62c698c91","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":"2024-06-14T16:17:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0a3f1aa27b784c918091c3948b14fb5a","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":"2024-06-14T16:17:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7e45f48a8cae4a6790fd8f1da022aa7d","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":"2024-06-14T16:17:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_9693c19ac0314f6183878609e7d46940","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":"2024-06-14T16:17:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_286b57fb47ae4742b6cb9327f48fdc70","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_82886821b18847e198e9028ce6b7617a","updated_at":"2024-06-14T16:17:32Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a855a5a2a6911ef85b5ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"94107"},"id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_9cbcab9e33cc424784101d7a586cb082","parcel":{"created_at":"2024-08-02T23:32:28Z","height":null,"id":"prcl_fd28452b8e7047759eb0caa4a3c7f3b5","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:28Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0eaf17103a884515a5dbe6adc9973c5c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","updated_at":"2024-08-02T23:32:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dc1e2b9b697a4e1197b0cf887142b93d","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","updated_at":"2024-08-02T23:32:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ed8c4ab4d58d41d998158ecc121c078b","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_67c21aaf4e4d49cf9af6bdc509dfe549","updated_at":"2024-08-02T23:32:29Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b756d7c512711efba083cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a8341e72a6911efa4b03cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b738d45512711efba073cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:32Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a8341e72a6911efa4b03cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:28Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b738d45512711efba073cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:32Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a855a5a2a6911ef85b5ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:28Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b756d7c512711efba083cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"94107"},"id":"shp_8542fb3eab844196b1fb120aec06ee2f","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_7027b18396ab42f59974edc7fbcdacab","parcel":{"created_at":"2024-06-14T16:17:32Z","height":null,"id":"prcl_3ccb4417bdca4efc94ffe5bd412e601b","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:32Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_8673017bd18f46edbba1e3cbc32dc1e3","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_8542fb3eab844196b1fb120aec06ee2f","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_23d252beb53345418cd3f4a1fd9fc3a6","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_8542fb3eab844196b1fb120aec06ee2f","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b0a6be90ca5a4746a79b54342f62e844","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_8542fb3eab844196b1fb120aec06ee2f","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bf01750ab0cb40439326fd1c68b3e6df","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_8542fb3eab844196b1fb120aec06ee2f","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3f0f534a97a6449e93128e70ab5ca41a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_8542fb3eab844196b1fb120aec06ee2f","updated_at":"2024-06-14T16:17:33Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a855a5a2a6911ef85b5ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"94107"},"id":"shp_d944dbf42f8a44f99b32f798700fdfa4","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_9cbcab9e33cc424784101d7a586cb082","parcel":{"created_at":"2024-08-02T23:32:28Z","height":null,"id":"prcl_6eadb0c87fc94fb48b58d838cf8d1bad","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:28Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d00b5a584fbe49aa86fc50bf56e605e6","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_d944dbf42f8a44f99b32f798700fdfa4","updated_at":"2024-08-02T23:32:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_391e58823acd485c9b1107ece5ea987b","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_d944dbf42f8a44f99b32f798700fdfa4","updated_at":"2024-08-02T23:32:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_abef8d52255b48e4a64bc1c09fb9c0ed","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_d944dbf42f8a44f99b32f798700fdfa4","updated_at":"2024-08-02T23:32:29Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b756d7c512711efba083cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a8341e72a6911efa4b03cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b738d45512711efba073cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:32Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9a8341e72a6911efa4b03cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:28Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7b738d45512711efba073cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:32+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:33Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:28+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:32:29Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -65,7 +65,7 @@ interactions: Expires: - "0" Location: - - /api/v2/orders/order_7027b18396ab42f59974edc7fbcdacab + - /api/v2/orders/order_9cbcab9e33cc424784101d7a586cb082 Pragma: - no-cache Referrer-Policy: @@ -79,20 +79,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d1ce78a074500029ce0 + - 4d57347166ad6c8cf45123a80039f197 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.017780" + - "1.039662" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestOrderGetRates.yaml b/tests/cassettes/TestOrderGetRates.yaml index 2d12470..477e872 100644 --- a/tests/cassettes/TestOrderGetRates.yaml +++ b/tests/cassettes/TestOrderGetRates.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"is_return":false,"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo + 20","zip":"94107"},"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} @@ -18,45 +18,45 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:33Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:48Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"id":"order_1ca20d01bf904c0b92c5dba39eda9371","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_a61c8f3f17654a7c87852de7a5d7d84f","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0d8526b3cd9d4f9f844c07aaca8b6217","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9d3f2fdcf8144eaa975f79054682b8a1","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0659cd90db2247a995a7a0b745dc6893","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d6f40596262840d3a56a9b705aa5aa9b","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"id":"order_e1a1928cd82247f0ba9c439c999aea1e","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d783e7aaba734602abd66b162f12c897","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3833157c416a45688e4cfdaa2d4395f0","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_301e933962a44696b7671e6f4d78263e","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:33Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:48Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"id":"shp_1384a4b7bb474ac4a73e5612a1419319","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_1ca20d01bf904c0b92c5dba39eda9371","parcel":{"created_at":"2024-06-14T16:17:33Z","height":null,"id":"prcl_f5d3035050c7484d802ea45b9fa90e3c","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:33Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_a61c8f3f17654a7c87852de7a5d7d84f","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0d8526b3cd9d4f9f844c07aaca8b6217","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9d3f2fdcf8144eaa975f79054682b8a1","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0659cd90db2247a995a7a0b745dc6893","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d6f40596262840d3a56a9b705aa5aa9b","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:33Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"id":"shp_7a6374150138415dbd8f4777911b7abd","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_e1a1928cd82247f0ba9c439c999aea1e","parcel":{"created_at":"2024-08-02T23:32:48Z","height":null,"id":"prcl_8e786ae34f0040fbb50bd375340df6d5","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:48Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d783e7aaba734602abd66b162f12c897","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":"2024-08-02T23:32:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3833157c416a45688e4cfdaa2d4395f0","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":"2024-08-02T23:32:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_301e933962a44696b7671e6f4d78263e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":"2024-08-02T23:32:49Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:33Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:48Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:33Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:48Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"id":"shp_dca90ef842dc409ba377cb650597f2e4","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_1ca20d01bf904c0b92c5dba39eda9371","parcel":{"created_at":"2024-06-14T16:17:33Z","height":null,"id":"prcl_6b79935a55d244b5a1c744639853681b","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:33Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_50be7e8e05c547d5a5b96c2c0ba0fcad","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f2d7a6d8e13944919c33e0a6d60577cb","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e6527971faae4816a6f77e091c2025f3","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_92ac577eb1fe442ca3be088331765e08","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_45c1356911da473297de50e2bcc0ffac","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_e1a1928cd82247f0ba9c439c999aea1e","parcel":{"created_at":"2024-08-02T23:32:48Z","height":null,"id":"prcl_51f91dc1f53e438eadf488a79ec00109","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:48Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_96c6bdf777f949c49703a3b34fdfbe59","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","updated_at":"2024-08-02T23:32:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ea6833cd6b47450aa417c8cef12123e4","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","updated_at":"2024-08-02T23:32:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_11c9e2b30b114400b4d3f2cbf6c53401","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","updated_at":"2024-08-02T23:32:49Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:33Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:48Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:34Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:32:49Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -65,7 +65,7 @@ interactions: Expires: - "0" Location: - - /api/v2/orders/order_1ca20d01bf904c0b92c5dba39eda9371 + - /api/v2/orders/order_e1a1928cd82247f0ba9c439c999aea1e Pragma: - no-cache Referrer-Policy: @@ -79,20 +79,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d1de78a074500029e09 + - 4d57346a66ad6ca0f45013c6003a0319 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.978376" + - "1.048490" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -106,46 +106,46 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/orders/order_1ca20d01bf904c0b92c5dba39eda9371/rates + url: https://api.easypost.com/v2/orders/order_e1a1928cd82247f0ba9c439c999aea1e/rates method: GET response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:33Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:48Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"id":"order_1ca20d01bf904c0b92c5dba39eda9371","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_8e3a0ea5c1724d7994e5461a0a31da24","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_09623b479ec747adb07235fa26f907ab","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f7a1195749de4d3faf083b326a5fbfcc","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_64993ddc1e1e414a85eb7ade254e0beb","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8ea051fdfaf74b45bb88c79eec4ed262","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"id":"order_e1a1928cd82247f0ba9c439c999aea1e","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_49a78482457b4bf2950effbdb292a481","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_396766e2c08c48d0a7b8ad25eb22980f","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_160ad891b71a4eeb9669853d121a0e8c","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:33Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:48Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"id":"shp_1384a4b7bb474ac4a73e5612a1419319","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_1ca20d01bf904c0b92c5dba39eda9371","parcel":{"created_at":"2024-06-14T16:17:33Z","height":null,"id":"prcl_f5d3035050c7484d802ea45b9fa90e3c","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:33Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_8e3a0ea5c1724d7994e5461a0a31da24","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_09623b479ec747adb07235fa26f907ab","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f7a1195749de4d3faf083b326a5fbfcc","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_64993ddc1e1e414a85eb7ade254e0beb","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8ea051fdfaf74b45bb88c79eec4ed262","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_1384a4b7bb474ac4a73e5612a1419319","updated_at":"2024-06-14T16:17:35Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"id":"shp_7a6374150138415dbd8f4777911b7abd","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_e1a1928cd82247f0ba9c439c999aea1e","parcel":{"created_at":"2024-08-02T23:32:48Z","height":null,"id":"prcl_8e786ae34f0040fbb50bd375340df6d5","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:48Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_49a78482457b4bf2950effbdb292a481","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":"2024-08-02T23:32:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_396766e2c08c48d0a7b8ad25eb22980f","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":"2024-08-02T23:32:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_160ad891b71a4eeb9669853d121a0e8c","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_7a6374150138415dbd8f4777911b7abd","updated_at":"2024-08-02T23:32:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:33Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:48Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:33Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:48Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"id":"shp_dca90ef842dc409ba377cb650597f2e4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_1ca20d01bf904c0b92c5dba39eda9371","parcel":{"created_at":"2024-06-14T16:17:33Z","height":null,"id":"prcl_6b79935a55d244b5a1c744639853681b","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:33Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a61dc3e22dac497baded444436eceee9","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9d2b029a115e4738bffe70eba4d93d33","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_706d257fd74348549528bbe401b4d1a5","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e86540e1d7d9471aa0c9f66d07791490","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_a12eedd44e9b4e1195131cb6a95b016c","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_dca90ef842dc409ba377cb650597f2e4","updated_at":"2024-06-14T16:17:35Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2bc44e2a6911efa50b3cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_e1a1928cd82247f0ba9c439c999aea1e","parcel":{"created_at":"2024-08-02T23:32:48Z","height":null,"id":"prcl_51f91dc1f53e438eadf488a79ec00109","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:48Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_44c69996df774f65baea66ab8afe17fe","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","updated_at":"2024-08-02T23:32:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8f5eccb2f92f46e78296848ae0de72df","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","updated_at":"2024-08-02T23:32:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_01ad7cbcb141422d9984fa6352183e01","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_a4b7ebd5080f48a2a81d96a1817f6be4","updated_at":"2024-08-02T23:32:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_87575348512711efbcd0ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:33Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b29f7ee2a6911efb62bac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:48Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_875542d8512711ef8eacac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:33+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:34Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:48+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:32:49Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -161,25 +161,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d1ee78a074500029f14 + - 4d57346a66ad6ca5f45013c6003a06ad X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.144541" + - "0.977741" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestOrderLowestRate.yaml b/tests/cassettes/TestOrderLowestRate.yaml index ed351bb..886618e 100644 --- a/tests/cassettes/TestOrderLowestRate.yaml +++ b/tests/cassettes/TestOrderLowestRate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"is_return":false,"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo + 20","zip":"94107"},"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} @@ -18,45 +18,45 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c8494b12a6911efb63cac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9717616b512711ef8076ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:35Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c86e92d2a6911efb6c7ac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:33:15Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_97195e70512711ef803e3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"94107"},"id":"order_a9300b03bd9c46cb9d66eb01110db549","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ddbdb0c085e947dc9f00812aa3830ab5","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ff124a380c8943608ddc843a7083e76b","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_438bd725db55410e881e17e164198ba5","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_72a3c82db1c84345a9651d4000b95504","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_cdb157d4e72e48cc8176974383ec4f83","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c86e92d2a6911efb6c7ac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"94107"},"id":"order_b383709b347c41f29e2837eb9ab495eb","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e51f2683535a4efeb4b04eaef100268c","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_f7427e03093c42709ffc2358d7de502f","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bb6ec1261d064a4390a5e134ab0c729d","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_f7427e03093c42709ffc2358d7de502f","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8d49618c88954b33a063a4f55913de59","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_f7427e03093c42709ffc2358d7de502f","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_97195e70512711ef803e3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c8494b12a6911efb63cac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9717616b512711ef8076ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:35Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c86e92d2a6911efb6c7ac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:33:15Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_97195e70512711ef803e3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"94107"},"id":"shp_bcbee5bd0338406298c064b226d9f274","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_a9300b03bd9c46cb9d66eb01110db549","parcel":{"created_at":"2024-06-14T16:17:35Z","height":null,"id":"prcl_92240394f60c42109cfd5489ec8d597d","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:35Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ddbdb0c085e947dc9f00812aa3830ab5","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ff124a380c8943608ddc843a7083e76b","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_438bd725db55410e881e17e164198ba5","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_72a3c82db1c84345a9651d4000b95504","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_cdb157d4e72e48cc8176974383ec4f83","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_bcbee5bd0338406298c064b226d9f274","updated_at":"2024-06-14T16:17:36Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c86e92d2a6911efb6c7ac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"94107"},"id":"shp_f7427e03093c42709ffc2358d7de502f","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_b383709b347c41f29e2837eb9ab495eb","parcel":{"created_at":"2024-08-02T23:33:15Z","height":null,"id":"prcl_22e7923957064e5e96a8d933e4187f5d","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:33:15Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e51f2683535a4efeb4b04eaef100268c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f7427e03093c42709ffc2358d7de502f","updated_at":"2024-08-02T23:33:15Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bb6ec1261d064a4390a5e134ab0c729d","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f7427e03093c42709ffc2358d7de502f","updated_at":"2024-08-02T23:33:15Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8d49618c88954b33a063a4f55913de59","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_f7427e03093c42709ffc2358d7de502f","updated_at":"2024-08-02T23:33:15Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_97195e70512711ef803e3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c8494b12a6911efb63cac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9717616b512711ef8076ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:35Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c8494b12a6911efb63cac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:33:15Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9717616b512711ef8076ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:35Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c86e92d2a6911efb6c7ac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:33:15Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_97195e70512711ef803e3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"94107"},"id":"shp_2e38af39b626455092e034a7ca2ee70b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_a9300b03bd9c46cb9d66eb01110db549","parcel":{"created_at":"2024-06-14T16:17:35Z","height":null,"id":"prcl_6ab923a2beba456e949dba14302811f0","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:35Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_a9fc9d3ba9f04e9d8a7db4164ad77e9b","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_2e38af39b626455092e034a7ca2ee70b","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_24ccbf715947474395862e2533547267","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_2e38af39b626455092e034a7ca2ee70b","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a1068cd86d1946fb860902642d723ebf","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_2e38af39b626455092e034a7ca2ee70b","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7cd7253a61d74e1f857c75a67792db10","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_2e38af39b626455092e034a7ca2ee70b","updated_at":"2024-06-14T16:17:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fd21167dd107416fac634d785344a801","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_2e38af39b626455092e034a7ca2ee70b","updated_at":"2024-06-14T16:17:36Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c86e92d2a6911efb6c7ac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"94107"},"id":"shp_83eca4c6a79b403896302b1fdfd16fce","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_b383709b347c41f29e2837eb9ab495eb","parcel":{"created_at":"2024-08-02T23:33:15Z","height":null,"id":"prcl_f71b0b61a24b48de9d48d77ed09a4b84","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:33:15Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_876d5f1d9e314a5e82218f92d3f11877","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_83eca4c6a79b403896302b1fdfd16fce","updated_at":"2024-08-02T23:33:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5abf4db09b74413194d58fd982744be4","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_83eca4c6a79b403896302b1fdfd16fce","updated_at":"2024-08-02T23:33:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:33:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c96e248ad87941c89119550ec3eb806b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_83eca4c6a79b403896302b1fdfd16fce","updated_at":"2024-08-02T23:33:16Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_97195e70512711ef803e3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c8494b12a6911efb63cac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9717616b512711ef8076ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:35Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c8494b12a6911efb63cac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:33:15Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:33:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9717616b512711ef8076ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:35+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:36Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:33:15+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:33:16Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -65,7 +65,7 @@ interactions: Expires: - "0" Location: - - /api/v2/orders/order_a9300b03bd9c46cb9d66eb01110db549 + - /api/v2/orders/order_b383709b347c41f29e2837eb9ab495eb Pragma: - no-cache Referrer-Policy: @@ -79,20 +79,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d1fe78a07450002a053 + - 4d57346b66ad6cbbf43f0c32003a15a9 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.998277" + - "0.972696" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestOrderRetrieve.yaml b/tests/cassettes/TestOrderRetrieve.yaml index 2382410..23048af 100644 --- a/tests/cassettes/TestOrderRetrieve.yaml +++ b/tests/cassettes/TestOrderRetrieve.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"is_return":false,"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo + 20","zip":"94107"},"shipments":[{"parcel":{"weight":10.2}},{"parcel":{"weight":17.5}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} @@ -18,45 +18,45 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:36Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:38Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"id":"order_ea8d798b6e4c4a728fb7c5358923ab42","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_aa228adeb7634e59884ad6d7c522f641","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e25d55306cf04e4183dd4a2a0e162300","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ff5de2c6f26d46e3b7eb5cc5050d06ab","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8de3526e2cd645189151c02fbf7bd3e0","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e371b267f194c14b52c4da979df6b8b","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"id":"order_dcc077266d0c49b0bfff8e16cfabe2be","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f466defda8ed4c11812b6382142d7f4c","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_49987599c6234ec9b7a01733f4d50344","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_335666dc25dd4cc0a2a92aa9f73a0265","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:36Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:38Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"id":"shp_875313906c854bd7a623b8d7121a78a0","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_ea8d798b6e4c4a728fb7c5358923ab42","parcel":{"created_at":"2024-06-14T16:17:36Z","height":null,"id":"prcl_e6710b18150d4187b11b9f496553033e","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:36Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_aa228adeb7634e59884ad6d7c522f641","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e25d55306cf04e4183dd4a2a0e162300","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ff5de2c6f26d46e3b7eb5cc5050d06ab","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8de3526e2cd645189151c02fbf7bd3e0","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e371b267f194c14b52c4da979df6b8b","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"id":"shp_06af9bca1a1d4c459a94819ac430cff3","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_dcc077266d0c49b0bfff8e16cfabe2be","parcel":{"created_at":"2024-08-02T23:32:38Z","height":null,"id":"prcl_f9b9da90c47e4439b72b0cf1492aa9c4","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:38Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f466defda8ed4c11812b6382142d7f4c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_49987599c6234ec9b7a01733f4d50344","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_335666dc25dd4cc0a2a92aa9f73a0265","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":"2024-08-02T23:32:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:36Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:38Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:36Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:38Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"id":"shp_08a961c839c445f09403cb1ab8f0545b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_ea8d798b6e4c4a728fb7c5358923ab42","parcel":{"created_at":"2024-06-14T16:17:36Z","height":null,"id":"prcl_1b9f5ea80cb941f2ac32f631ab634a95","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:36Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_665322751f04454ca3f4f1dd290558ba","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9190946a8fc84a079b16f1651626b155","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9d648a5cec824311a3f7097299e9afc4","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_acd87032572c4fa5a4ba05e4330ad1a0","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_71531b8c3bb943798586b87fbacda6f8","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"id":"shp_18c5aad5ac16414fa316eaba019c87ef","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_dcc077266d0c49b0bfff8e16cfabe2be","parcel":{"created_at":"2024-08-02T23:32:38Z","height":null,"id":"prcl_c5a4f4b536c64acebe5407c9526a8f03","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:38Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_317e5ca23acc40b5b85f4608611ab768","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_18c5aad5ac16414fa316eaba019c87ef","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_609b6b98f73d42ae847620b9e7201e60","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_18c5aad5ac16414fa316eaba019c87ef","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_24adc51871674408b7cd17d444e16a44","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_18c5aad5ac16414fa316eaba019c87ef","updated_at":"2024-08-02T23:32:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:36Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:38Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:37Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:32:39Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -65,7 +65,7 @@ interactions: Expires: - "0" Location: - - /api/v2/orders/order_ea8d798b6e4c4a728fb7c5358923ab42 + - /api/v2/orders/order_dcc077266d0c49b0bfff8e16cfabe2be Pragma: - no-cache Referrer-Policy: @@ -79,20 +79,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d20e78a07450002a14e + - 4d57346a66ad6c96f40af7cd0039fafb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.993646" + - "0.938205" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -106,46 +106,46 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/orders/order_ea8d798b6e4c4a728fb7c5358923ab42 + url: https://api.easypost.com/v2/orders/order_dcc077266d0c49b0bfff8e16cfabe2be method: GET response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:36Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:38Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"id":"order_ea8d798b6e4c4a728fb7c5358923ab42","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_aa228adeb7634e59884ad6d7c522f641","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e25d55306cf04e4183dd4a2a0e162300","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"13.79","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ff5de2c6f26d46e3b7eb5cc5050d06ab","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8de3526e2cd645189151c02fbf7bd3e0","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"First","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e371b267f194c14b52c4da979df6b8b","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.33","retail_currency":"USD","retail_rate":"17.50","service":"ParcelSelect","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"id":"order_dcc077266d0c49b0bfff8e16cfabe2be","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f466defda8ed4c11812b6382142d7f4c","list_currency":"USD","list_rate":"70.30","mode":"test","object":"Rate","rate":"70.30","retail_currency":"USD","retail_rate":"80.70","service":"Express","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_49987599c6234ec9b7a01733f4d50344","list_currency":"USD","list_rate":"17.22","mode":"test","object":"Rate","rate":"14.48","retail_currency":"USD","retail_rate":"22.30","service":"Priority","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_335666dc25dd4cc0a2a92aa9f73a0265","list_currency":"USD","list_rate":"12.82","mode":"test","object":"Rate","rate":"11.40","retail_currency":"USD","retail_rate":"17.50","service":"GroundAdvantage","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":null}],"reference":"","return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:36Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:38Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"id":"shp_875313906c854bd7a623b8d7121a78a0","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_ea8d798b6e4c4a728fb7c5358923ab42","parcel":{"created_at":"2024-06-14T16:17:36Z","height":null,"id":"prcl_e6710b18150d4187b11b9f496553033e","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:36Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_aa228adeb7634e59884ad6d7c522f641","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e25d55306cf04e4183dd4a2a0e162300","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.88","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ff5de2c6f26d46e3b7eb5cc5050d06ab","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8de3526e2cd645189151c02fbf7bd3e0","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"First","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e371b267f194c14b52c4da979df6b8b","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"ParcelSelect","shipment_id":"shp_875313906c854bd7a623b8d7121a78a0","updated_at":"2024-06-14T16:17:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"id":"shp_06af9bca1a1d4c459a94819ac430cff3","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_dcc077266d0c49b0bfff8e16cfabe2be","parcel":{"created_at":"2024-08-02T23:32:38Z","height":null,"id":"prcl_f9b9da90c47e4439b72b0cf1492aa9c4","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:38Z","weight":10.2,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f466defda8ed4c11812b6382142d7f4c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_49987599c6234ec9b7a01733f4d50344","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_335666dc25dd4cc0a2a92aa9f73a0265","list_currency":"USD","list_rate":"5.07","mode":"test","object":"Rate","rate":"5.07","retail_currency":"USD","retail_rate":"6.70","service":"GroundAdvantage","shipment_id":"shp_06af9bca1a1d4c459a94819ac430cff3","updated_at":"2024-08-02T23:32:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:36Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:38Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"created_at":"2024-06-14T16:17:36Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:32:38Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"id":"shp_08a961c839c445f09403cb1ab8f0545b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_ea8d798b6e4c4a728fb7c5358923ab42","parcel":{"created_at":"2024-06-14T16:17:36Z","height":null,"id":"prcl_1b9f5ea80cb941f2ac32f631ab634a95","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-06-14T16:17:36Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_665322751f04454ca3f4f1dd290558ba","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"6.91","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9190946a8fc84a079b16f1651626b155","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9d648a5cec824311a3f7097299e9afc4","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"First","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_acd87032572c4fa5a4ba05e4330ad1a0","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.26","retail_currency":"USD","retail_rate":"10.80","service":"ParcelSelect","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-06-14T16:17:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_71531b8c3bb943798586b87fbacda6f8","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_08a961c839c445f09403cb1ab8f0545b","updated_at":"2024-06-14T16:17:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d28b1872a6911efb678ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"id":"shp_18c5aad5ac16414fa316eaba019c87ef","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_dcc077266d0c49b0bfff8e16cfabe2be","parcel":{"created_at":"2024-08-02T23:32:38Z","height":null,"id":"prcl_c5a4f4b536c64acebe5407c9526a8f03","length":null,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:32:38Z","weight":17.5,"width":null},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_317e5ca23acc40b5b85f4608611ab768","list_currency":"USD","list_rate":"37.20","mode":"test","object":"Rate","rate":"37.20","retail_currency":"USD","retail_rate":"42.80","service":"Express","shipment_id":"shp_18c5aad5ac16414fa316eaba019c87ef","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_609b6b98f73d42ae847620b9e7201e60","list_currency":"USD","list_rate":"8.97","mode":"test","object":"Rate","rate":"7.58","retail_currency":"USD","retail_rate":"12.50","service":"Priority","shipment_id":"shp_18c5aad5ac16414fa316eaba019c87ef","updated_at":"2024-08-02T23:32:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:32:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_24adc51871674408b7cd17d444e16a44","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"6.33","retail_currency":"USD","retail_rate":"10.80","service":"GroundAdvantage","shipment_id":"shp_18c5aad5ac16414fa316eaba019c87ef","updated_at":"2024-08-02T23:32:39Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8153bcd9512711efbb4d3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-06-14T16:17:36Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-06-14T16:17:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d26b2d12a6911efa5f33cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:32:38Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:32:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_81520ca3512711efabafac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-06-14T16:17:36+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-06-14T16:17:37Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:32:38+00:00","verifications":{},"zip":"90277"},"updated_at":"2024-08-02T23:32:39Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -166,20 +166,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9a93413e666c6d21e78a07450002a253 + - 4d57346a66ad6c9af40af7cd0039fe3d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq 9d6131b01c - - extlb1nuq a97f7bac00 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.136873" + - "0.134121" X-Version-Label: - - easypost-202406132320-de9fa0c698-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestParcelCreate.yaml b/tests/cassettes/TestParcelCreate.yaml index ccf1fa9..9da7147 100644 --- a/tests/cassettes/TestParcelCreate.yaml +++ b/tests/cassettes/TestParcelCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/parcels method: POST response: - body: '{"created_at":"2023-11-30T20:11:12Z","height":4,"id":"prcl_c68f64b22cf849d1bf47d86e8308d776","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:12Z","weight":15.4,"width":8}' + body: '{"created_at":"2024-08-02T23:15:04Z","height":4,"id":"prcl_9f73c38a578746638eac24f9fcc81f74","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:04Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store @@ -23,7 +23,7 @@ interactions: Expires: - "0" Location: - - /api/v2/parcels/prcl_c68f64b22cf849d1bf47d86e8308d776 + - /api/v2/parcels/prcl_9f73c38a578746638eac24f9fcc81f74 Pragma: - no-cache Referrer-Policy: @@ -37,20 +37,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec60e7896122001b6706 + - 4d57346d66ad6878f440b8c7003756b0 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.042271" + - "0.027589" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestParcelRetrieve.yaml b/tests/cassettes/TestParcelRetrieve.yaml index 80eca25..2d1bf97 100644 --- a/tests/cassettes/TestParcelRetrieve.yaml +++ b/tests/cassettes/TestParcelRetrieve.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/parcels method: POST response: - body: '{"created_at":"2023-11-30T20:11:12Z","height":4,"id":"prcl_9d9c85af20c5400ba1fb0b992c346292","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:12Z","weight":15.4,"width":8}' + body: '{"created_at":"2024-08-02T23:15:04Z","height":4,"id":"prcl_f2b697605a7645a9a10d408f9bd83192","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:04Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store @@ -23,7 +23,7 @@ interactions: Expires: - "0" Location: - - /api/v2/parcels/prcl_9d9c85af20c5400ba1fb0b992c346292 + - /api/v2/parcels/prcl_f2b697605a7645a9a10d408f9bd83192 Pragma: - no-cache Referrer-Policy: @@ -39,7 +39,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec60e7896122001b6727 + - 4d57346d66ad6878f440b8c7003756c2 X-Frame-Options: - SAMEORIGIN X-Node: @@ -47,12 +47,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.036933" + - "0.029336" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -66,10 +66,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/parcels/prcl_9d9c85af20c5400ba1fb0b992c346292 + url: https://api.easypost.com/v2/parcels/prcl_f2b697605a7645a9a10d408f9bd83192 method: GET response: - body: '{"created_at":"2023-11-30T20:11:12Z","height":4,"id":"prcl_9d9c85af20c5400ba1fb0b992c346292","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:12Z","weight":15.4,"width":8}' + body: '{"created_at":"2024-08-02T23:15:04Z","height":4,"id":"prcl_f2b697605a7645a9a10d408f9bd83192","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:04Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store @@ -90,20 +90,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec60e7896122001b6754 + - 4d57346d66ad6878f440b8c7003756dd X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.027347" + - "0.022393" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupAll.yaml b/tests/cassettes/TestPickupAll.yaml index b0d3538..4944c5e 100644 --- a/tests/cassettes/TestPickupAll.yaml +++ b/tests/cassettes/TestPickupAll.yaml @@ -2,39 +2,37 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups + url: https://api.easypost.com/v2/pickups?page_size=5 method: GET response: body: '{"has_more":true,"pickups":[{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4640d604512711efbd2aac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:10:46Z","id":"pickup_9414b16274fa4f52ba78736996430609","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:10:48Z","currency":"USD","id":"pickuprate_b78dc388c6d544b68b536a4260921049","mode":"test","object":"PickupRate","pickup_id":"pickup_9414b16274fa4f52ba78736996430609","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:10:48Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:10:46Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b61372a057e011ee87b73cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:59+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:59Z","id":"pickup_40eee602963642f59da413be2b40b8ee","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:31:00Z","currency":"USD","id":"pickuprate_52f5bd2b542145fe90a6f2dfcca40346","mode":"test","object":"PickupRate","pickup_id":"pickup_40eee602963642f59da413be2b40b8ee","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:31:00Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:59Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40681b02512711ef9a3eac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:33+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:33Z","id":"pickup_14ad033f4574499293b6d9ff4d3829a6","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:33Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e717ca57e011ee9095ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:49+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743900","created_at":"2024-08-02T23:30:49Z","id":"pickup_8ff98ceacba6446f8706d192e1c2d609","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:50Z","currency":"USD","id":"pickuprate_1a8ed2d8d2b84351bbb289a4263b90ff","mode":"test","object":"PickupRate","pickup_id":"pickup_8ff98ceacba6446f8706d192e1c2d609","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:50Z"}],"reference":null,"status":"canceled","updated_at":"2024-08-02T23:30:53Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3b40ebf0512711efa8993cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:31+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:31Z","id":"pickup_5fd427765cb24f1499afa78359d5e62c","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:31Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b3f9432357e011ee904aac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:41+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743910","created_at":"2024-08-02T23:30:41Z","id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:42Z","currency":"USD","id":"pickuprate_48409b39630a4688a706cddf991c296e","mode":"test","object":"PickupRate","pickup_id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:42Z"}],"reference":null,"status":"scheduled","updated_at":"2024-08-02T23:30:43Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_37bf31ff512711ef982fac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:29+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:29Z","id":"pickup_7a52e1331a994ff9aac6644997d751a2","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:29Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2e16dad57e011eebf11ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:35+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:35Z","id":"pickup_331173c376d7455894588e1481dbf804","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:36Z","currency":"USD","id":"pickuprate_80721c4f86fb4e7786456b0989e8f163","mode":"test","object":"PickupRate","pickup_id":"pickup_331173c376d7455894588e1481dbf804","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:36Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:35Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3374334f512711ef977aac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:28+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:28Z","id":"pickup_c93aecbd50e849afb8b74cb6585f071e","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:28Z"}]}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:28+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:28Z","id":"pickup_f3d17fa5314a41389300f9d0f7bc9448","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:29Z","currency":"USD","id":"pickuprate_950115db23e647928b49070c78e27e5b","mode":"test","object":"PickupRate","pickup_id":"pickup_f3d17fa5314a41389300f9d0f7bc9448","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:29Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:28Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -55,20 +53,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec61e7896122001b6777 + - 4d57346e66ad6c39f419314800399bb2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.083961" + - "0.179270" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupBuy.yaml b/tests/cassettes/TestPickupBuy.yaml index f562455..749caa4 100644 --- a/tests/cassettes/TestPickupBuy.yaml +++ b/tests/cassettes/TestPickupBuy.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:13+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c4f456f8fbc11eeb2cdac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3a99bc7e512711efba81ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:13Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:13+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c51e6688fbc11ee817aac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:40Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3a9c8d37512711efa8853cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:13+00:00","verifications":{},"zip":"90277"},"id":"shp_b2420f85f8c443fcbe6fd3271c968a05","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:13Z","height":4,"id":"prcl_a30acc6b9df84b3688645896f582b53e","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:13Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:13Z","date_advance":0,"id":"pl_d9915d040e3c4ea19b96275342f3bad8","integrated_form":"none","label_date":"2023-11-30T20:11:13Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8fec2158126474747b7b8a48c0ec7cf8c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:14Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_ae13b3316f4a4c0f9ef32ca4d9141ddc","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8f08a61d139741d99c950ffacab411cc","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5331e1acaffb4687b87886201a52c699","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_db185b2e5a5b492bb97d53485888d938","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_01fe9f4d65da4f1a8a48cab6c77d1cf1","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:13+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c51e6688fbc11ee817aac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:40+00:00","verifications":{},"zip":"90277"},"id":"shp_542daf56f7914da8899c5771f46e916d","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:30:40Z","height":4,"id":"prcl_eead28dbd86c4453a1682e0bf2d8be0b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:30:40Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:40Z","date_advance":0,"id":"pl_6d5ac23b18ee439f9d437bc1ee49cece","integrated_form":"none","label_date":"2024-08-02T23:30:40Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8dc79c2189b3249b2849d3b3979b6d697.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:30:40Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_51657b808be34b7ab07e8dc105566bf6","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7c63cfa6b1a648a58d308b3d5699634a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_40a5661f953d46508057c64909b1843b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3a9c8d37512711efa8853cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:13+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_db185b2e5a5b492bb97d53485888d938","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:14Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:13+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9c4f456f8fbc11eeb2cdac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:40+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_40a5661f953d46508057c64909b1843b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3a99bc7e512711efba81ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:14Z","est_delivery_date":null,"fees":[],"id":"trk_674b319935864e24aed0c125ea8826e8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY3NGIzMTk5MzU4NjRlMjRhZWQwYzEyNWVhODgyNmU4","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383337","tracking_details":[],"updated_at":"2023-11-30T20:11:14Z","weight":null},"tracking_code":"9400100105442287383337","updated_at":"2023-11-30T20:11:14Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:30:40Z","est_delivery_date":null,"fees":[],"id":"trk_6ed93f09f88a475a9e14352483c17b94","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzZlZDkzZjA5Zjg4YTQ3NWE5ZTE0MzUyNDgzYzE3Yjk0","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070374950","tracking_details":[],"updated_at":"2024-08-02T23:30:40Z","weight":null},"tracking_code":"9400100110368070374950","updated_at":"2024-08-02T23:30:40Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_b2420f85f8c443fcbe6fd3271c968a05 + - /api/v2/shipments/shp_542daf56f7914da8899c5771f46e916d Pragma: - no-cache Referrer-Policy: @@ -48,25 +48,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec61e7896122001b67a8 + - 4d57346b66ad6c20f4095eeb00398060 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.040602" + - "0.997119" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -75,19 +77,19 @@ interactions: - request: body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2023-12-08T00:00:00Z","min_datetime":"2023-12-08T00:00:00Z","shipment":{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:13Z","email":"REDACTED","id":"adr_9c4f456f8fbc11eeb2cdac1f6bc53342","mode":"test","name":"JACK + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2024-08-14T00:00:00Z","min_datetime":"2024-08-14T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:40Z","email":"REDACTED","id":"adr_3a99bc7e512711efba81ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:13Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:13Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:13Z","email":"REDACTED","id":"adr_9c51e6688fbc11ee817aac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:40Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:40Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:40Z","email":"REDACTED","id":"adr_3a9c8d37512711efa8853cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:13Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_b2420f85f8c443fcbe6fd3271c968a05","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:11:13Z","height":4,"id":"prcl_a30acc6b9df84b3688645896f582b53e","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:11:13Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:13Z","id":"pl_d9915d040e3c4ea19b96275342f3bad8","integrated_form":"none","label_date":"2023-11-30T20:11:13Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8fec2158126474747b7b8a48c0ec7cf8c.png","object":"PostageLabel","updated_at":"2023-11-30T20:11:14Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","id":"rate_ae13b3316f4a4c0f9ef32ca4d9141ddc","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_8f08a61d139741d99c950ffacab411cc","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_5331e1acaffb4687b87886201a52c699","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_db185b2e5a5b492bb97d53485888d938","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:13Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_01fe9f4d65da4f1a8a48cab6c77d1cf1","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:13Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:13Z","email":"REDACTED","id":"adr_9c51e6688fbc11ee817aac1f6bc539aa","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:30:40Z","verifications":{},"zip":"90277"},"id":"shp_542daf56f7914da8899c5771f46e916d","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:30:40Z","height":4,"id":"prcl_eead28dbd86c4453a1682e0bf2d8be0b","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:30:40Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:40Z","id":"pl_6d5ac23b18ee439f9d437bc1ee49cece","integrated_form":"none","label_date":"2024-08-02T23:30:40Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8dc79c2189b3249b2849d3b3979b6d697.png","object":"PostageLabel","updated_at":"2024-08-02T23:30:40Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_51657b808be34b7ab07e8dc105566bf6","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_7c63cfa6b1a648a58d308b3d5699634a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_40a5661f953d46508057c64909b1843b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:40Z","email":"REDACTED","id":"adr_3a9c8d37512711efa8853cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:13Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:14Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_db185b2e5a5b492bb97d53485888d938","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","updated_at":"2023-11-30T20:11:14Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:13Z","email":"REDACTED","id":"adr_9c4f456f8fbc11eeb2cdac1f6bc53342","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:30:40Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:40Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_40a5661f953d46508057c64909b1843b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","updated_at":"2024-08-02T23:30:40Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:40Z","email":"REDACTED","id":"adr_3a99bc7e512711efba81ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:13Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:11:14Z","id":"trk_674b319935864e24aed0c125ea8826e8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY3NGIzMTk5MzU4NjRlMjRhZWQwYzEyNWVhODgyNmU4","shipment_id":"shp_b2420f85f8c443fcbe6fd3271c968a05","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383337","updated_at":"2023-11-30T20:11:14Z"},"tracking_code":"9400100105442287383337","updated_at":"2023-11-30T20:11:14Z","usps_zone":4}}}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:40Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:30:40Z","id":"trk_6ed93f09f88a475a9e14352483c17b94","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzZlZDkzZjA5Zjg4YTQ3NWE5ZTE0MzUyNDgzYzE3Yjk0","shipment_id":"shp_542daf56f7914da8899c5771f46e916d","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070374950","updated_at":"2024-08-02T23:30:40Z"},"tracking_code":"9400100110368070374950","updated_at":"2024-08-02T23:30:40Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -99,10 +101,10 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d0233c68fbc11ee81e2ac1f6bc539aa","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3b40ebf0512711efa8993cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:14+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:14Z","id":"pickup_e7506a34aabd488e8f825cfb816088ed","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:15Z","currency":"USD","id":"pickuprate_28a8a38e530f4b5b85cbc3f62871c284","mode":"test","object":"PickupRate","pickup_id":"pickup_e7506a34aabd488e8f825cfb816088ed","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:15Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:14Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:41+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:41Z","id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:42Z","currency":"USD","id":"pickuprate_48409b39630a4688a706cddf991c296e","mode":"test","object":"PickupRate","pickup_id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:42Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:41Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -118,53 +120,47 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec62e7896122001b688b + - 4d57346b66ad6c21f4095eeb0039816b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.790911" + - "1.032946" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: carrier=USPS&service=NextDay - form: - carrier: - - USPS - service: - - NextDay + body: '{"carrier":"USPS","service":"NextDay"}' + form: {} headers: Authorization: - REDACTED Content-Type: - - application/x-www-form-urlencoded + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_e7506a34aabd488e8f825cfb816088ed/buy + url: https://api.easypost.com/v2/pickups/pickup_119e3f71b96448f6b7f6c4e5bb8e67a6/buy method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d0233c68fbc11ee81e2ac1f6bc539aa","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3b40ebf0512711efa8993cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:14+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC63780362","created_at":"2023-11-30T20:11:14Z","id":"pickup_e7506a34aabd488e8f825cfb816088ed","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:15Z","currency":"USD","id":"pickuprate_28a8a38e530f4b5b85cbc3f62871c284","mode":"test","object":"PickupRate","pickup_id":"pickup_e7506a34aabd488e8f825cfb816088ed","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:15Z"}],"reference":null,"status":"scheduled","updated_at":"2023-11-30T20:11:16Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:41+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743910","created_at":"2024-08-02T23:30:41Z","id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:42Z","currency":"USD","id":"pickuprate_48409b39630a4688a706cddf991c296e","mode":"test","object":"PickupRate","pickup_id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:42Z"}],"reference":null,"status":"scheduled","updated_at":"2024-08-02T23:30:43Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -180,27 +176,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec63e7896122001b6949 + - 4d57346b66ad6c22f4095eeb003982a0 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.903932" + - "1.588580" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupCancel.yaml b/tests/cassettes/TestPickupCancel.yaml index cb37c4f..c6c75c7 100644 --- a/tests/cassettes/TestPickupCancel.yaml +++ b/tests/cassettes/TestPickupCancel.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9e2ef0bf8fbc11eebf45ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3fa5ec08512711ef9a27ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:16+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:16Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9e3195b08fbc11ee8298ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:48Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3fa805b6512711ef9a28ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:16+00:00","verifications":{},"zip":"90277"},"id":"shp_50f512bbeba84843bf03e26c30d05592","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:16Z","height":4,"id":"prcl_3957ecb9eb1846f4a610b5eb0f517c0d","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:16Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:17Z","date_advance":0,"id":"pl_ce04066a46594c3fae9dced76869c693","integrated_form":"none","label_date":"2023-11-30T20:11:17Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8439a62cfcd704fe9b46eb56241e9c5fe.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:17Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_db2d45b293344e45937c237bdecbdcbf","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_15fc6e75fac04c13a2591881b4de72d8","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_10dbb9f2097849fa95546e31af268293","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7c3cffdc130a488fa387514c39eafeed","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9d14d1ad2b81497ea44ab48d809804e5","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9e3195b08fbc11ee8298ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:48+00:00","verifications":{},"zip":"90277"},"id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:30:48Z","height":4,"id":"prcl_a667b1863a9448608c0cb5de9b53b40f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:30:48Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:49Z","date_advance":0,"id":"pl_6384fa04d33a4003b2191af6053fd1c1","integrated_form":"none","label_date":"2024-08-02T23:30:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8fced8876a57b4d04b7be23b44908bf0f.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:30:49Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_72d7949a7b5d4babaa681c2b515aa97b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8605f27ae69b432eae4704ae88e048aa","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0979dc78516b42309789fbd67f36946d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:48Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3fa805b6512711ef9a28ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:16+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7c3cffdc130a488fa387514c39eafeed","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:17Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9e2ef0bf8fbc11eebf45ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:48+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0979dc78516b42309789fbd67f36946d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3fa5ec08512711ef9a27ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:16+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:17Z","est_delivery_date":null,"fees":[],"id":"trk_9f8a98ca92e6475ab11969683fcf16f3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzlmOGE5OGNhOTJlNjQ3NWFiMTE5Njk2ODNmY2YxNmYz","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383375","tracking_details":[],"updated_at":"2023-11-30T20:11:17Z","weight":null},"tracking_code":"9400100105442287383375","updated_at":"2023-11-30T20:11:17Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:30:49Z","est_delivery_date":null,"fees":[],"id":"trk_9b25755fb70246cc809520533079a252","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzliMjU3NTVmYjcwMjQ2Y2M4MDk1MjA1MzMwNzlhMjUy","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070375018","tracking_details":[],"updated_at":"2024-08-02T23:30:49Z","weight":null},"tracking_code":"9400100110368070375018","updated_at":"2024-08-02T23:30:49Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_50f512bbeba84843bf03e26c30d05592 + - /api/v2/shipments/shp_2b75ca68e9e7443e8374ae96bf8c29fb Pragma: - no-cache Referrer-Policy: @@ -53,20 +53,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec64e7896122001b6a3f + - 4d57346b66ad6c28f42bdac8003989b7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.863239" + - "1.171952" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -75,19 +75,19 @@ interactions: - request: body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2023-12-08T00:00:00Z","min_datetime":"2023-12-08T00:00:00Z","shipment":{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:16Z","email":"REDACTED","id":"adr_9e2ef0bf8fbc11eebf45ac1f6bc539ae","mode":"test","name":"JACK + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2024-08-14T00:00:00Z","min_datetime":"2024-08-14T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:48Z","email":"REDACTED","id":"adr_3fa5ec08512711ef9a27ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:16Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:16Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:16Z","email":"REDACTED","id":"adr_9e3195b08fbc11ee8298ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:48Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:48Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:48Z","email":"REDACTED","id":"adr_3fa805b6512711ef9a28ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:16Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_50f512bbeba84843bf03e26c30d05592","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:11:16Z","height":4,"id":"prcl_3957ecb9eb1846f4a610b5eb0f517c0d","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:11:16Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:17Z","id":"pl_ce04066a46594c3fae9dced76869c693","integrated_form":"none","label_date":"2023-11-30T20:11:17Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8439a62cfcd704fe9b46eb56241e9c5fe.png","object":"PostageLabel","updated_at":"2023-11-30T20:11:17Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","id":"rate_db2d45b293344e45937c237bdecbdcbf","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_15fc6e75fac04c13a2591881b4de72d8","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_10dbb9f2097849fa95546e31af268293","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_7c3cffdc130a488fa387514c39eafeed","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:16Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_9d14d1ad2b81497ea44ab48d809804e5","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:16Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:16Z","email":"REDACTED","id":"adr_9e3195b08fbc11ee8298ac1f6bc539aa","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:30:48Z","verifications":{},"zip":"90277"},"id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:30:48Z","height":4,"id":"prcl_a667b1863a9448608c0cb5de9b53b40f","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:30:48Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:49Z","id":"pl_6384fa04d33a4003b2191af6053fd1c1","integrated_form":"none","label_date":"2024-08-02T23:30:49Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8fced8876a57b4d04b7be23b44908bf0f.png","object":"PostageLabel","updated_at":"2024-08-02T23:30:49Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:48Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_72d7949a7b5d4babaa681c2b515aa97b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:48Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_8605f27ae69b432eae4704ae88e048aa","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:48Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_0979dc78516b42309789fbd67f36946d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:48Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:48Z","email":"REDACTED","id":"adr_3fa805b6512711ef9a28ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:16Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:17Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_7c3cffdc130a488fa387514c39eafeed","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","updated_at":"2023-11-30T20:11:17Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:16Z","email":"REDACTED","id":"adr_9e2ef0bf8fbc11eebf45ac1f6bc539ae","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:30:48Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:49Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_0979dc78516b42309789fbd67f36946d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","updated_at":"2024-08-02T23:30:49Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:48Z","email":"REDACTED","id":"adr_3fa5ec08512711ef9a27ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:16Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:11:17Z","id":"trk_9f8a98ca92e6475ab11969683fcf16f3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzlmOGE5OGNhOTJlNjQ3NWFiMTE5Njk2ODNmY2YxNmYz","shipment_id":"shp_50f512bbeba84843bf03e26c30d05592","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383375","updated_at":"2023-11-30T20:11:17Z"},"tracking_code":"9400100105442287383375","updated_at":"2023-11-30T20:11:17Z","usps_zone":4}}}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:48Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:30:49Z","id":"trk_9b25755fb70246cc809520533079a252","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzliMjU3NTVmYjcwMjQ2Y2M4MDk1MjA1MzMwNzlhMjUy","shipment_id":"shp_2b75ca68e9e7443e8374ae96bf8c29fb","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070375018","updated_at":"2024-08-02T23:30:49Z"},"tracking_code":"9400100110368070375018","updated_at":"2024-08-02T23:30:49Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -99,10 +99,10 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9eea7ae48fbc11eeb45fac1f6bc53342","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40681b02512711ef9a3eac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:17+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:17Z","id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:18Z","currency":"USD","id":"pickuprate_9c8c87ebf3fc4d709872437f1bccdeef","mode":"test","object":"PickupRate","pickup_id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:18Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:17Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:49+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:49Z","id":"pickup_8ff98ceacba6446f8706d192e1c2d609","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:50Z","currency":"USD","id":"pickuprate_1a8ed2d8d2b84351bbb289a4263b90ff","mode":"test","object":"PickupRate","pickup_id":"pickup_8ff98ceacba6446f8706d192e1c2d609","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:50Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:49Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -123,46 +123,42 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec65e7896122001b6b64 + - 4d57346b66ad6c29f42bdac800398acf X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.688274" + - "1.008528" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: carrier=USPS&service=NextDay - form: - carrier: - - USPS - service: - - NextDay + body: '{"carrier":"USPS","service":"NextDay"}' + form: {} headers: Authorization: - REDACTED Content-Type: - - application/x-www-form-urlencoded + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_e24701cdf3dd4d0d85f13f8670e04c7f/buy + url: https://api.easypost.com/v2/pickups/pickup_8ff98ceacba6446f8706d192e1c2d609/buy method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9eea7ae48fbc11eeb45fac1f6bc53342","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40681b02512711ef9a3eac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:17+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC63780364","created_at":"2023-11-30T20:11:17Z","id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:18Z","currency":"USD","id":"pickuprate_9c8c87ebf3fc4d709872437f1bccdeef","mode":"test","object":"PickupRate","pickup_id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:18Z"}],"reference":null,"status":"scheduled","updated_at":"2023-11-30T20:11:19Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:49+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743900","created_at":"2024-08-02T23:30:49Z","id":"pickup_8ff98ceacba6446f8706d192e1c2d609","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:50Z","currency":"USD","id":"pickuprate_1a8ed2d8d2b84351bbb289a4263b90ff","mode":"test","object":"PickupRate","pickup_id":"pickup_8ff98ceacba6446f8706d192e1c2d609","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:50Z"}],"reference":null,"status":"scheduled","updated_at":"2024-08-02T23:30:52Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -183,7 +179,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec66e7896122001b6c20 + - 4d57346b66ad6c2af42bdac800398bf3 X-Frame-Options: - SAMEORIGIN X-Node: @@ -191,32 +187,34 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.849569" + - "1.288790" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_e24701cdf3dd4d0d85f13f8670e04c7f/cancel + url: https://api.easypost.com/v2/pickups/pickup_8ff98ceacba6446f8706d192e1c2d609/cancel method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9eea7ae48fbc11eeb45fac1f6bc53342","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40681b02512711ef9a3eac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:17+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC63780364","created_at":"2023-11-30T20:11:17Z","id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:18Z","currency":"USD","id":"pickuprate_9c8c87ebf3fc4d709872437f1bccdeef","mode":"test","object":"PickupRate","pickup_id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:18Z"}],"reference":null,"status":"canceled","updated_at":"2023-11-30T20:11:20Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:49+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743900","created_at":"2024-08-02T23:30:49Z","id":"pickup_8ff98ceacba6446f8706d192e1c2d609","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:50Z","currency":"USD","id":"pickuprate_1a8ed2d8d2b84351bbb289a4263b90ff","mode":"test","object":"PickupRate","pickup_id":"pickup_8ff98ceacba6446f8706d192e1c2d609","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:50Z"}],"reference":null,"status":"canceled","updated_at":"2024-08-02T23:30:53Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -237,20 +235,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec67e7896122001b6cfb + - 4d57346b66ad6c2cf42bdac800398d3c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.954377" + - "1.017937" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupCreate.yaml b/tests/cassettes/TestPickupCreate.yaml index e54802b..c19541f 100644 --- a/tests/cassettes/TestPickupCreate.yaml +++ b/tests/cassettes/TestPickupCreate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a0b107b28fbc11ee80d5ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_32c76abb512711efb921ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a0b5258c8fbc11eebcaa3cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:26Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_32ca3222512711efa7083cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:20+00:00","verifications":{},"zip":"90277"},"id":"shp_65fe533b11444b528220e7cfd96b3bca","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:20Z","height":4,"id":"prcl_d9c859b497ef4423ad7a234738b415e6","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:21Z","date_advance":0,"id":"pl_d0eedccabafe425e91be63a35417f0e4","integrated_form":"none","label_date":"2023-11-30T20:11:21Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8e38ac998a9ba4123b0a1515d7b0303a5.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_66e8cd25ddd14bb9ab504e5feb47a08a","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4d552fae76594607ba0aabd29de2b9b7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_021c1a81a592421284bfc7c4484ff8a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_49b4afabe80943199771e2cf0395c63c","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_e5db3526f7d34092bbda77b6f75ad815","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a0b5258c8fbc11eebcaa3cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:26+00:00","verifications":{},"zip":"90277"},"id":"shp_b6339d66af694903be58becfdb7be175","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:30:26Z","height":4,"id":"prcl_473f7f3e2d6641c9bc13eee3de09c904","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:30:26Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:27Z","date_advance":0,"id":"pl_490430ce13054cfa81e8276f5efac163","integrated_form":"none","label_date":"2024-08-02T23:30:27Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8386f30a41d474bc6b312fdf3b7bc61b7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:30:27Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3d0a775958f34d25adada5ef1baafad2","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_441a52d803ed4f9d8cf2220a2f20a81d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_27074f7f9c4940b5868d5b304ff3e2a8","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_32ca3222512711efa7083cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_021c1a81a592421284bfc7c4484ff8a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:21Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a0b107b28fbc11ee80d5ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:26+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_441a52d803ed4f9d8cf2220a2f20a81d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_32c76abb512711efb921ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:21Z","est_delivery_date":null,"fees":[],"id":"trk_629244e7f4334731afd5cb670702d279","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYyOTI0NGU3ZjQzMzQ3MzFhZmQ1Y2I2NzA3MDJkMjc5","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383429","tracking_details":[],"updated_at":"2023-11-30T20:11:21Z","weight":null},"tracking_code":"9400100105442287383429","updated_at":"2023-11-30T20:11:21Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:30:27Z","est_delivery_date":null,"fees":[],"id":"trk_5661f9986ccd49709ec9c31cc6219995","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU2NjFmOTk4NmNjZDQ5NzA5ZWM5YzMxY2M2MjE5OTk1","shipment_id":"shp_b6339d66af694903be58becfdb7be175","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070374912","tracking_details":[],"updated_at":"2024-08-02T23:30:27Z","weight":null},"tracking_code":"9400100110368070374912","updated_at":"2024-08-02T23:30:27Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_65fe533b11444b528220e7cfd96b3bca + - /api/v2/shipments/shp_b6339d66af694903be58becfdb7be175 Pragma: - no-cache Referrer-Policy: @@ -48,27 +48,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec68e7896122001b6ded + - 4d57346b66ad6c12f4083a69003973f4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.015258" + - "1.027067" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -77,19 +75,19 @@ interactions: - request: body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2023-12-08T00:00:00Z","min_datetime":"2023-12-08T00:00:00Z","shipment":{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:20Z","email":"REDACTED","id":"adr_a0b107b28fbc11ee80d5ac1f6bc539ae","mode":"test","name":"JACK + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2024-08-14T00:00:00Z","min_datetime":"2024-08-14T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:26Z","email":"REDACTED","id":"adr_32c76abb512711efb921ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:21Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:20Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:20Z","email":"REDACTED","id":"adr_a0b5258c8fbc11eebcaa3cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:27Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:26Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:26Z","email":"REDACTED","id":"adr_32ca3222512711efa7083cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:20Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_65fe533b11444b528220e7cfd96b3bca","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:11:20Z","height":4,"id":"prcl_d9c859b497ef4423ad7a234738b415e6","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:11:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:21Z","id":"pl_d0eedccabafe425e91be63a35417f0e4","integrated_form":"none","label_date":"2023-11-30T20:11:21Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8e38ac998a9ba4123b0a1515d7b0303a5.png","object":"PostageLabel","updated_at":"2023-11-30T20:11:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_66e8cd25ddd14bb9ab504e5feb47a08a","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_4d552fae76594607ba0aabd29de2b9b7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_021c1a81a592421284bfc7c4484ff8a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_49b4afabe80943199771e2cf0395c63c","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:20Z","currency":"USD","id":"rate_e5db3526f7d34092bbda77b6f75ad815","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:20Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:20Z","email":"REDACTED","id":"adr_a0b5258c8fbc11eebcaa3cecef1b359e","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:30:26Z","verifications":{},"zip":"90277"},"id":"shp_b6339d66af694903be58becfdb7be175","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:30:26Z","height":4,"id":"prcl_473f7f3e2d6641c9bc13eee3de09c904","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:30:26Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:27Z","id":"pl_490430ce13054cfa81e8276f5efac163","integrated_form":"none","label_date":"2024-08-02T23:30:27Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8386f30a41d474bc6b312fdf3b7bc61b7.png","object":"PostageLabel","updated_at":"2024-08-02T23:30:27Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_3d0a775958f34d25adada5ef1baafad2","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_441a52d803ed4f9d8cf2220a2f20a81d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_27074f7f9c4940b5868d5b304ff3e2a8","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:26Z","email":"REDACTED","id":"adr_32ca3222512711efa7083cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:20Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:21Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_021c1a81a592421284bfc7c4484ff8a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","updated_at":"2023-11-30T20:11:21Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:20Z","email":"REDACTED","id":"adr_a0b107b28fbc11ee80d5ac1f6bc539ae","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:30:26Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:27Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_441a52d803ed4f9d8cf2220a2f20a81d","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_b6339d66af694903be58becfdb7be175","updated_at":"2024-08-02T23:30:27Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:26Z","email":"REDACTED","id":"adr_32c76abb512711efb921ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:21Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:11:21Z","id":"trk_629244e7f4334731afd5cb670702d279","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYyOTI0NGU3ZjQzMzQ3MzFhZmQ1Y2I2NzA3MDJkMjc5","shipment_id":"shp_65fe533b11444b528220e7cfd96b3bca","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383429","updated_at":"2023-11-30T20:11:21Z"},"tracking_code":"9400100105442287383429","updated_at":"2023-11-30T20:11:21Z","usps_zone":4}}}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:27Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:30:27Z","id":"trk_5661f9986ccd49709ec9c31cc6219995","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU2NjFmOTk4NmNjZDQ5NzA5ZWM5YzMxY2M2MjE5OTk1","shipment_id":"shp_b6339d66af694903be58becfdb7be175","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070374912","updated_at":"2024-08-02T23:30:27Z"},"tracking_code":"9400100110368070374912","updated_at":"2024-08-02T23:30:27Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -101,10 +99,10 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a15ecc7b8fbc11ee849aac1f6bc539aa","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3374334f512711ef977aac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:21+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:21Z","id":"pickup_613706704f2b409ab7fc55e979416443","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:22Z","currency":"USD","id":"pickuprate_e42498ebe8a84c778378bd9a31c477e3","mode":"test","object":"PickupRate","pickup_id":"pickup_613706704f2b409ab7fc55e979416443","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:22Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:21Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:28+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:28Z","id":"pickup_f3d17fa5314a41389300f9d0f7bc9448","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:29Z","currency":"USD","id":"pickuprate_950115db23e647928b49070c78e27e5b","mode":"test","object":"PickupRate","pickup_id":"pickup_f3d17fa5314a41389300f9d0f7bc9448","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:29Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:28Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -125,20 +123,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec69e7896122001b6ef9 + - 4d57346b66ad6c13f4083a69003974ae X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.667971" + - "1.203810" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupLowestRate.yaml b/tests/cassettes/TestPickupLowestRate.yaml index e3ba475..9409aec 100644 --- a/tests/cassettes/TestPickupLowestRate.yaml +++ b/tests/cassettes/TestPickupLowestRate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4598123c512711efab1e3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:22Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:58+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:58Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_459aefb4512711efbd13ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:22+00:00","verifications":{},"zip":"90277"},"id":"shp_87a5ea6c80604051b800e6230d5a6665","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:22Z","height":4,"id":"prcl_963d3953c4264816adb8c30b1a8180af","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:22Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:23Z","date_advance":0,"id":"pl_156b31df5ca6429db31d398fb2af42f1","integrated_form":"none","label_date":"2023-11-30T20:11:23Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8e0d4ce2b1022432fa547b085a309c788.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:23Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f79b9973f1034679abad38b816b78e9d","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eb1149acdea043388c3603ca92f53fe6","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_41326239b0904f10990984aa31ba6d1a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0afa5f0a62174682af1a922d52b7cb3f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:58+00:00","verifications":{},"zip":"90277"},"id":"shp_a7c4d259f35644f28e3679b5a20c6244","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:30:58Z","height":4,"id":"prcl_2af360214b0546d1a5f2cd39a7d90971","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:30:58Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:59Z","date_advance":0,"id":"pl_dc5c35a4bd7f4d1ebfbde1f83d0f0248","integrated_form":"none","label_date":"2024-08-02T23:30:59Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e86c2f97dcaddf476d8d91a636cf87347c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:30:59Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0f0232c2402f45fb87c62826ea790a7a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0d8a758d55584b7aaf7a4e9335d22312","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_85d9122d95c14d7aa86d671a8e3bafec","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:58Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_459aefb4512711efbd13ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:22+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:23Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:58+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0d8a758d55584b7aaf7a4e9335d22312","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:59Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4598123c512711efab1e3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:23Z","est_delivery_date":null,"fees":[],"id":"trk_2a2f276b3bc440e7aaaa10de86a39ba7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJhMmYyNzZiM2JjNDQwZTdhYWFhMTBkZTg2YTM5YmE3","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383443","tracking_details":[],"updated_at":"2023-11-30T20:11:23Z","weight":null},"tracking_code":"9400100105442287383443","updated_at":"2023-11-30T20:11:23Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:58+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:30:59Z","est_delivery_date":null,"fees":[],"id":"trk_2cb9e7a3f95a4f6b8d15f15445842d09","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJjYjllN2EzZjk1YTRmNmI4ZDE1ZjE1NDQ1ODQyZDA5","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070375056","tracking_details":[],"updated_at":"2024-08-02T23:30:59Z","weight":null},"tracking_code":"9400100110368070375056","updated_at":"2024-08-02T23:30:59Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_87a5ea6c80604051b800e6230d5a6665 + - /api/v2/shipments/shp_a7c4d259f35644f28e3679b5a20c6244 Pragma: - no-cache Referrer-Policy: @@ -48,27 +48,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6ae7896122001b6fcd + - 4d57346d66ad6c32f450ba110039940d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.908007" + - "1.063645" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -77,19 +75,19 @@ interactions: - request: body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2023-12-08T00:00:00Z","min_datetime":"2023-12-08T00:00:00Z","shipment":{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:22Z","email":"REDACTED","id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2024-08-14T00:00:00Z","min_datetime":"2024-08-14T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:58Z","email":"REDACTED","id":"adr_4598123c512711efab1e3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:23Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:22Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:22Z","email":"REDACTED","id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:58Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:58Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:58Z","email":"REDACTED","id":"adr_459aefb4512711efbd13ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:22Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_87a5ea6c80604051b800e6230d5a6665","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:11:22Z","height":4,"id":"prcl_963d3953c4264816adb8c30b1a8180af","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:11:22Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:23Z","id":"pl_156b31df5ca6429db31d398fb2af42f1","integrated_form":"none","label_date":"2023-11-30T20:11:23Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8e0d4ce2b1022432fa547b085a309c788.png","object":"PostageLabel","updated_at":"2023-11-30T20:11:23Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","id":"rate_f79b9973f1034679abad38b816b78e9d","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_eb1149acdea043388c3603ca92f53fe6","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_41326239b0904f10990984aa31ba6d1a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_0afa5f0a62174682af1a922d52b7cb3f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:22Z","email":"REDACTED","id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:30:58Z","verifications":{},"zip":"90277"},"id":"shp_a7c4d259f35644f28e3679b5a20c6244","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:30:58Z","height":4,"id":"prcl_2af360214b0546d1a5f2cd39a7d90971","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:30:58Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:59Z","id":"pl_dc5c35a4bd7f4d1ebfbde1f83d0f0248","integrated_form":"none","label_date":"2024-08-02T23:30:59Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e86c2f97dcaddf476d8d91a636cf87347c.png","object":"PostageLabel","updated_at":"2024-08-02T23:30:59Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:58Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_0f0232c2402f45fb87c62826ea790a7a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:58Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_0d8a758d55584b7aaf7a4e9335d22312","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:58Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_85d9122d95c14d7aa86d671a8e3bafec","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:58Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:58Z","email":"REDACTED","id":"adr_459aefb4512711efbd13ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:22Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:23Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:23Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:22Z","email":"REDACTED","id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:30:58Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:59Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_0d8a758d55584b7aaf7a4e9335d22312","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","updated_at":"2024-08-02T23:30:59Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:58Z","email":"REDACTED","id":"adr_4598123c512711efab1e3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:23Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:11:23Z","id":"trk_2a2f276b3bc440e7aaaa10de86a39ba7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJhMmYyNzZiM2JjNDQwZTdhYWFhMTBkZTg2YTM5YmE3","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383443","updated_at":"2023-11-30T20:11:23Z"},"tracking_code":"9400100105442287383443","updated_at":"2023-11-30T20:11:23Z","usps_zone":4}}}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:58Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:30:59Z","id":"trk_2cb9e7a3f95a4f6b8d15f15445842d09","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJjYjllN2EzZjk1YTRmNmI4ZDE1ZjE1NDQ1ODQyZDA5","shipment_id":"shp_a7c4d259f35644f28e3679b5a20c6244","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070375056","updated_at":"2024-08-02T23:30:59Z"},"tracking_code":"9400100110368070375056","updated_at":"2024-08-02T23:30:59Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -101,10 +99,10 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a2ad2af68fbc11eebe133cecef1b359e","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4640d604512711efbd2aac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:24Z","id":"pickup_430b88620d1d4802837a6bf2a042bd92","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:24Z","currency":"USD","id":"pickuprate_73bed49706ea4c47bc68743cd8abf56a","mode":"test","object":"PickupRate","pickup_id":"pickup_430b88620d1d4802837a6bf2a042bd92","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:24Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:24Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:59+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:59Z","id":"pickup_40eee602963642f59da413be2b40b8ee","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:31:00Z","currency":"USD","id":"pickuprate_52f5bd2b542145fe90a6f2dfcca40346","mode":"test","object":"PickupRate","pickup_id":"pickup_40eee602963642f59da413be2b40b8ee","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:31:00Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:59Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -120,25 +118,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6be7896122001b70e1 + - 4d57346d66ad6c33f450ba1100399533 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.850111" + - "0.905505" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupRetrieve.yaml b/tests/cassettes/TestPickupRetrieve.yaml index 4f877c5..0818351 100644 --- a/tests/cassettes/TestPickupRetrieve.yaml +++ b/tests/cassettes/TestPickupRetrieve.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_371e8a03512711efb9cfac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:34Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3720c2fb512711efa7c33cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"90277"},"id":"shp_211059b119904cd29082fdeeb09d64aa","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:25Z","height":4,"id":"prcl_70e7ad23b92646d4b9841181f6acd69b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:25Z","date_advance":0,"id":"pl_10128271f8164b6e80be2163ea5e9a5d","integrated_form":"none","label_date":"2023-11-30T20:11:25Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e873cf3735f14343658f18435c17a20ab0.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a7813e425dd74def9d02270a600f782b","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b49da136deb94fb09f7ecc1d1b0d3525","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dfc51f2799aa4f8db0b12df5d736751c","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_547ff944565d4953b708e888971087e4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:34+00:00","verifications":{},"zip":"90277"},"id":"shp_a17c33bb593f454494d0f5d3112da67c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:30:34Z","height":4,"id":"prcl_3d834c84ffb04569ac452560f56dd456","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:30:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:34Z","date_advance":0,"id":"pl_523e8791ab354ad48e0a5207c3c01771","integrated_form":"none","label_date":"2024-08-02T23:30:34Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e885c194a6f0634b2b9708a81a1efab97d.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:30:34Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_de5ce255a2d14497a863516a89037127","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_da99f0bd03604b5fa63e891990c63ec4","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5edb7d9c037847279c6483efba71566e","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:30:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3720c2fb512711efa7c33cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:30:34+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_da99f0bd03604b5fa63e891990c63ec4","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:30:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_371e8a03512711efb9cfac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:25Z","est_delivery_date":null,"fees":[],"id":"trk_73aca0734e8047cb88b7b70e30ec38c2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzczYWNhMDczNGU4MDQ3Y2I4OGI3YjcwZTMwZWMzOGMy","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383467","tracking_details":[],"updated_at":"2023-11-30T20:11:25Z","weight":null},"tracking_code":"9400100105442287383467","updated_at":"2023-11-30T20:11:25Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:30:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:30:35Z","est_delivery_date":null,"fees":[],"id":"trk_956ef84436a3473b9aac123129f39a25","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzk1NmVmODQ0MzZhMzQ3M2I5YWFjMTIzMTI5ZjM5YTI1","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070374936","tracking_details":[],"updated_at":"2024-08-02T23:30:35Z","weight":null},"tracking_code":"9400100110368070374936","updated_at":"2024-08-02T23:30:35Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_211059b119904cd29082fdeeb09d64aa + - /api/v2/shipments/shp_a17c33bb593f454494d0f5d3112da67c Pragma: - no-cache Referrer-Policy: @@ -48,27 +48,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6ce7896122001b71d7 + - e77710fc66ad6c1af42be7aa003a4e54 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "1.039394" + - "0.957862" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -77,19 +75,19 @@ interactions: - request: body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt - 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2023-12-08T00:00:00Z","min_datetime":"2023-12-08T00:00:00Z","shipment":{"buyer_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:24Z","email":"REDACTED","id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2024-08-14T00:00:00Z","min_datetime":"2024-08-14T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:34Z","email":"REDACTED","id":"adr_371e8a03512711efb9cfac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:25Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:25Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:24Z","email":"REDACTED","id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:34Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:30:34Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:34Z","email":"REDACTED","id":"adr_3720c2fb512711efa7c33cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:24Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_211059b119904cd29082fdeeb09d64aa","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2023-11-30T20:11:25Z","height":4,"id":"prcl_70e7ad23b92646d4b9841181f6acd69b","length":10,"mode":"test","object":"Parcel","updated_at":"2023-11-30T20:11:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:25Z","id":"pl_10128271f8164b6e80be2163ea5e9a5d","integrated_form":"none","label_date":"2023-11-30T20:11:25Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e873cf3735f14343658f18435c17a20ab0.png","object":"PostageLabel","updated_at":"2023-11-30T20:11:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","id":"rate_a7813e425dd74def9d02270a600f782b","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_b49da136deb94fb09f7ecc1d1b0d3525","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_dfc51f2799aa4f8db0b12df5d736751c","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_547ff944565d4953b708e888971087e4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"}],"return_address":{"city":"Redondo - Beach","country":"US","created_at":"2023-11-30T20:11:24Z","email":"REDACTED","id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + Dr","updated_at":"2024-08-02T23:30:34Z","verifications":{},"zip":"90277"},"id":"shp_a17c33bb593f454494d0f5d3112da67c","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2024-08-02T23:30:34Z","height":4,"id":"prcl_3d834c84ffb04569ac452560f56dd456","length":10,"mode":"test","object":"Parcel","updated_at":"2024-08-02T23:30:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:30:34Z","id":"pl_523e8791ab354ad48e0a5207c3c01771","integrated_form":"none","label_date":"2024-08-02T23:30:34Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e885c194a6f0634b2b9708a81a1efab97d.png","object":"PostageLabel","updated_at":"2024-08-02T23:30:34Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_de5ce255a2d14497a863516a89037127","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_da99f0bd03604b5fa63e891990c63ec4","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_5edb7d9c037847279c6483efba71566e","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2024-08-02T23:30:34Z","email":"REDACTED","id":"adr_3720c2fb512711efa7c33cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor - Dr","updated_at":"2023-11-30T20:11:24Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},"status":"unknown","to_address":{"city":"SAN - FRANCISCO","country":"US","created_at":"2023-11-30T20:11:24Z","email":"REDACTED","id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + Dr","updated_at":"2024-08-02T23:30:34Z","verifications":{},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:30:34Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_da99f0bd03604b5fa63e891990c63ec4","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","updated_at":"2024-08-02T23:30:34Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2024-08-02T23:30:34Z","email":"REDACTED","id":"adr_371e8a03512711efb9cfac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 - TOWNSEND ST APT 20","updated_at":"2023-11-30T20:11:25Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2023-11-30T20:11:25Z","id":"trk_73aca0734e8047cb88b7b70e30ec38c2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzczYWNhMDczNGU4MDQ3Y2I4OGI3YjcwZTMwZWMzOGMy","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383467","updated_at":"2023-11-30T20:11:25Z"},"tracking_code":"9400100105442287383467","updated_at":"2023-11-30T20:11:25Z","usps_zone":4}}}' + TOWNSEND ST APT 20","updated_at":"2024-08-02T23:30:34Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"success":true},"zip4":{"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2024-08-02T23:30:35Z","id":"trk_956ef84436a3473b9aac123129f39a25","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzk1NmVmODQ0MzZhMzQ3M2I5YWFjMTIzMTI5ZjM5YTI1","shipment_id":"shp_a17c33bb593f454494d0f5d3112da67c","status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070374936","updated_at":"2024-08-02T23:30:35Z"},"tracking_code":"9400100110368070374936","updated_at":"2024-08-02T23:30:35Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -101,10 +99,10 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a3f0c3588fbc11ee830fac1f6bc539ae","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_37bf31ff512711ef982fac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:26+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:26Z","id":"pickup_dab0a398d2884d46834891e18bd419a5","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:26Z","currency":"USD","id":"pickuprate_72f082d6d7664f528769d1b365889125","mode":"test","object":"PickupRate","pickup_id":"pickup_dab0a398d2884d46834891e18bd419a5","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:26Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:26Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:35+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:35Z","id":"pickup_331173c376d7455894588e1481dbf804","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:36Z","currency":"USD","id":"pickuprate_80721c4f86fb4e7786456b0989e8f163","mode":"test","object":"PickupRate","pickup_id":"pickup_331173c376d7455894588e1481dbf804","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:36Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:35Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -125,20 +123,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6ee7896122001b72fe + - e77710fc66ad6c1bf42be7aa003a4ed2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "0.631701" + - "0.994199" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -152,13 +150,13 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_dab0a398d2884d46834891e18bd419a5 + url: https://api.easypost.com/v2/pickups/pickup_331173c376d7455894588e1481dbf804 method: GET response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a3f0c3588fbc11ee830fac1f6bc539ae","mode":"test","name":"Jack + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_37bf31ff512711ef982fac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:26+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:26Z","id":"pickup_dab0a398d2884d46834891e18bd419a5","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:26Z","currency":"USD","id":"pickuprate_72f082d6d7664f528769d1b365889125","mode":"test","object":"PickupRate","pickup_id":"pickup_dab0a398d2884d46834891e18bd419a5","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:26Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:26Z"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:35+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:35Z","id":"pickup_331173c376d7455894588e1481dbf804","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:36Z","currency":"USD","id":"pickuprate_80721c4f86fb4e7786456b0989e8f163","mode":"test","object":"PickupRate","pickup_id":"pickup_331173c376d7455894588e1481dbf804","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:36Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:35Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -174,25 +172,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6fe7896122001b7401 + - e77710fc66ad6c1cf42be7aa003a4f4b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb1nuq fa152d4755 X-Runtime: - - "0.045927" + - "0.069297" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupsGetNextPage.yaml b/tests/cassettes/TestPickupsGetNextPage.yaml index b7fd8ae..4645696 100644 --- a/tests/cassettes/TestPickupsGetNextPage.yaml +++ b/tests/cassettes/TestPickupsGetNextPage.yaml @@ -2,39 +2,37 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups + url: https://api.easypost.com/v2/pickups?page_size=5 method: GET response: body: '{"has_more":true,"pickups":[{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:26+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a3f0c3588fbc11ee830fac1f6bc539ae","mode":"test","name":"Jack + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4640d604512711efbd2aac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:26+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:26Z","id":"pickup_dab0a398d2884d46834891e18bd419a5","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:26Z","currency":"USD","id":"pickuprate_72f082d6d7664f528769d1b365889125","mode":"test","object":"PickupRate","pickup_id":"pickup_dab0a398d2884d46834891e18bd419a5","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:26Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:26Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a2ad2af68fbc11eebe133cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:59+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:59Z","id":"pickup_40eee602963642f59da413be2b40b8ee","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:31:00Z","currency":"USD","id":"pickuprate_52f5bd2b542145fe90a6f2dfcca40346","mode":"test","object":"PickupRate","pickup_id":"pickup_40eee602963642f59da413be2b40b8ee","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:31:00Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:59Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40681b02512711ef9a3eac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:24Z","id":"pickup_430b88620d1d4802837a6bf2a042bd92","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:24Z","currency":"USD","id":"pickuprate_73bed49706ea4c47bc68743cd8abf56a","mode":"test","object":"PickupRate","pickup_id":"pickup_430b88620d1d4802837a6bf2a042bd92","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:24Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:24Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a15ecc7b8fbc11ee849aac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:49+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743900","created_at":"2024-08-02T23:30:49Z","id":"pickup_8ff98ceacba6446f8706d192e1c2d609","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:50Z","currency":"USD","id":"pickuprate_1a8ed2d8d2b84351bbb289a4263b90ff","mode":"test","object":"PickupRate","pickup_id":"pickup_8ff98ceacba6446f8706d192e1c2d609","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:50Z"}],"reference":null,"status":"canceled","updated_at":"2024-08-02T23:30:53Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3b40ebf0512711efa8993cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:21+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:11:21Z","id":"pickup_613706704f2b409ab7fc55e979416443","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:22Z","currency":"USD","id":"pickuprate_e42498ebe8a84c778378bd9a31c477e3","mode":"test","object":"PickupRate","pickup_id":"pickup_613706704f2b409ab7fc55e979416443","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:22Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:11:21Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9eea7ae48fbc11eeb45fac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:41+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC64743910","created_at":"2024-08-02T23:30:41Z","id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:42Z","currency":"USD","id":"pickuprate_48409b39630a4688a706cddf991c296e","mode":"test","object":"PickupRate","pickup_id":"pickup_119e3f71b96448f6b7f6c4e5bb8e67a6","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:42Z"}],"reference":null,"status":"scheduled","updated_at":"2024-08-02T23:30:43Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_37bf31ff512711ef982fac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:17+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC63780364","created_at":"2023-11-30T20:11:17Z","id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:18Z","currency":"USD","id":"pickuprate_9c8c87ebf3fc4d709872437f1bccdeef","mode":"test","object":"PickupRate","pickup_id":"pickup_e24701cdf3dd4d0d85f13f8670e04c7f","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:18Z"}],"reference":null,"status":"canceled","updated_at":"2023-11-30T20:11:20Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9d0233c68fbc11ee81e2ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:35+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:35Z","id":"pickup_331173c376d7455894588e1481dbf804","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:36Z","currency":"USD","id":"pickuprate_80721c4f86fb4e7786456b0989e8f163","mode":"test","object":"PickupRate","pickup_id":"pickup_331173c376d7455894588e1481dbf804","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:36Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:35Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:30:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3374334f512711ef977aac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:14+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC63780362","created_at":"2023-11-30T20:11:14Z","id":"pickup_e7506a34aabd488e8f825cfb816088ed","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:11:15Z","currency":"USD","id":"pickuprate_28a8a38e530f4b5b85cbc3f62871c284","mode":"test","object":"PickupRate","pickup_id":"pickup_e7506a34aabd488e8f825cfb816088ed","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:11:15Z"}],"reference":null,"status":"scheduled","updated_at":"2023-11-30T20:11:16Z"}]}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:30:28+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:30:28Z","id":"pickup_f3d17fa5314a41389300f9d0f7bc9448","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:30:29Z","currency":"USD","id":"pickuprate_950115db23e647928b49070c78e27e5b","mode":"test","object":"PickupRate","pickup_id":"pickup_f3d17fa5314a41389300f9d0f7bc9448","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:30:29Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:30:28Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -55,59 +53,57 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6fe7896122001b7426 + - 4d57346a66ad6c3ef3f6b1a30039a103 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.078650" + - "0.127290" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=pickup_e7506a34aabd488e8f825cfb816088ed&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups + url: https://api.easypost.com/v2/pickups?before_id=pickup_f3d17fa5314a41389300f9d0f7bc9448&page_size=5 method: GET response: body: '{"has_more":true,"pickups":[{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:10:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_8c6170f48fbc11eeb0383cecef1b359e","mode":"test","name":"Jack + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_13e4f9b5512511ef86adac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:10:46+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-11-30T20:10:46Z","id":"pickup_9414b16274fa4f52ba78736996430609","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-12-08T00:00:00Z","messages":[],"min_datetime":"2023-12-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2023-11-30T20:10:48Z","currency":"USD","id":"pickuprate_b78dc388c6d544b68b536a4260921049","mode":"test","object":"PickupRate","pickup_id":"pickup_9414b16274fa4f52ba78736996430609","rate":"0.00","service":"NextDay","updated_at":"2023-11-30T20:10:48Z"}],"reference":null,"status":"unknown","updated_at":"2023-11-30T20:10:46Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b61372a057e011ee87b73cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:16+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:15:16Z","id":"pickup_5baadc36dc904703b19b4f6a43e4eec3","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:15:16Z","currency":"USD","id":"pickuprate_1836361ef2304dfb94d63482f1b4ba1e","mode":"test","object":"PickupRate","pickup_id":"pickup_5baadc36dc904703b19b4f6a43e4eec3","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:15:16Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:15:16Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_12ac0938512511efb5b43cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:33+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:33Z","id":"pickup_14ad033f4574499293b6d9ff4d3829a6","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:33Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e717ca57e011ee9095ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:14+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:15:14Z","id":"pickup_0d80ba82c8214cbba01e22e6f389af4d","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:15:14Z","currency":"USD","id":"pickuprate_fe2e14704c1a4fc187814c789e7f5e73","mode":"test","object":"PickupRate","pickup_id":"pickup_0d80ba82c8214cbba01e22e6f389af4d","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:15:14Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:15:14Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:11+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11327173512511efb606ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:31+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:31Z","id":"pickup_5fd427765cb24f1499afa78359d5e62c","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:31Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b3f9432357e011ee904aac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:11+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:15:11Z","id":"pickup_42c37d0d787c42ec9dce4c0218f586e6","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:15:12Z","currency":"USD","id":"pickuprate_6fb529fd7081412faa70c9cc6cf7384b","mode":"test","object":"PickupRate","pickup_id":"pickup_42c37d0d787c42ec9dce4c0218f586e6","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:15:12Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:15:11Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0f8d46d5512511ef85bdac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:29+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:29Z","id":"pickup_7a52e1331a994ff9aac6644997d751a2","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:29Z"},{"address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-09-20T18:08:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2e16dad57e011eebf11ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:08+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:15:08Z","id":"pickup_1d138f63d07f45d499e38761bc67ba38","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:15:10Z","currency":"USD","id":"pickuprate_dbeb915b912f43ceafb57fb576d51eb4","mode":"test","object":"PickupRate","pickup_id":"pickup_1d138f63d07f45d499e38761bc67ba38","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:15:10Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:15:08Z"},{"address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0ded8e47512511ef8551ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-09-20T18:08:28+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2023-09-20T18:08:28Z","id":"pickup_c93aecbd50e849afb8b74cb6585f071e","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2023-03-08T00:00:00Z","messages":[],"min_datetime":"2023-03-08T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[],"reference":null,"status":"unknown","updated_at":"2023-09-20T18:08:28Z"}]}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:06+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2024-08-02T23:15:06Z","id":"pickup_aaa342dcd48240418b681c4e06bbe422","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2024-08-14T00:00:00Z","messages":[],"min_datetime":"2024-08-14T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2024-08-02T23:15:07Z","currency":"USD","id":"pickuprate_0d76d553f840419b9ef961dabe0e7e11","mode":"test","object":"PickupRate","pickup_id":"pickup_aaa342dcd48240418b681c4e06bbe422","rate":"0.00","service":"NextDay","updated_at":"2024-08-02T23:15:07Z"}],"reference":null,"status":"unknown","updated_at":"2024-08-02T23:15:06Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -123,25 +119,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6fe7896122001b744d + - 4d57346a66ad6c3ef3f6b1a30039a12f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.103569" + - "0.128059" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRateRetrieve.yaml b/tests/cassettes/TestRateRetrieve.yaml index 888c9eb..a4b05f0 100644 --- a/tests/cassettes/TestRateRetrieve.yaml +++ b/tests/cassettes/TestRateRetrieve.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a4e760738fbc11eebf8a3cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_149bf607512511efb61d3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:27+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:27Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a4eb8cae8fbc11ee86fdac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:17+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:17Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_149e4295512511efb61f3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:27+00:00","verifications":{},"zip":"94107"},"id":"shp_77e363f01a264fbdb91212d903a0f0ab","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:27Z","height":4,"id":"prcl_e252cd91b7be424784d89705f04c7904","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:27Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_daedb08e5e254acea4595f1d5a9d474e","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_77e363f01a264fbdb91212d903a0f0ab","updated_at":"2023-11-30T20:11:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_46ca8ff3e128475e90678f250e7609fc","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_77e363f01a264fbdb91212d903a0f0ab","updated_at":"2023-11-30T20:11:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c0ce467f90b542899aa8e339cf7002b3","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_77e363f01a264fbdb91212d903a0f0ab","updated_at":"2023-11-30T20:11:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_86a43a4a7f3b4d84bec743b24eb9eb70","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_77e363f01a264fbdb91212d903a0f0ab","updated_at":"2023-11-30T20:11:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0f520316a761423c903bcd98bccefdd4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_77e363f01a264fbdb91212d903a0f0ab","updated_at":"2023-11-30T20:11:28Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a4eb8cae8fbc11ee86fdac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:17+00:00","verifications":{},"zip":"94107"},"id":"shp_68c97fdf6d4a4861be3eb165645f17de","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:17Z","height":4,"id":"prcl_dba3e5264ee74c1e9b8f67ac9d39055b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:17Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_6aff2db6888249dcbcd11f78981828f4","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_68c97fdf6d4a4861be3eb165645f17de","updated_at":"2024-08-02T23:15:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_71cacf381f9846d6a3d9dd2dca6d8ea1","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_68c97fdf6d4a4861be3eb165645f17de","updated_at":"2024-08-02T23:15:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_365a3d48462d4ee480fef540215ea9aa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_68c97fdf6d4a4861be3eb165645f17de","updated_at":"2024-08-02T23:15:17Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_149e4295512511efb61f3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:27+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a4e760738fbc11eebf8a3cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:17+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_149bf607512511efb61d3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:27+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:28Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:17+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:17Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_77e363f01a264fbdb91212d903a0f0ab + - /api/v2/shipments/shp_68c97fdf6d4a4861be3eb165645f17de Pragma: - no-cache Referrer-Policy: @@ -54,20 +54,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec6fe7896122001b7480 + - 4d57346d66ad6885f440b8c700376206 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.849220" + - "0.505412" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -81,10 +81,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/rates/rate_daedb08e5e254acea4595f1d5a9d474e + url: https://api.easypost.com/v2/rates/rate_6aff2db6888249dcbcd11f78981828f4 method: GET response: - body: '{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_daedb08e5e254acea4595f1d5a9d474e","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_77e363f01a264fbdb91212d903a0f0ab","updated_at":"2023-11-30T20:11:28Z"}' + body: '{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_6aff2db6888249dcbcd11f78981828f4","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_68c97fdf6d4a4861be3eb165645f17de","updated_at":"2024-08-02T23:15:17Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -105,20 +105,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec70e7896122001b7572 + - 4d57346d66ad6885f440b8c700376291 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.160479" + - "0.162638" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRecommendShipDateForZipPair.yaml b/tests/cassettes/TestRecommendShipDateForZipPair.yaml index 7c09271..4a25350 100644 --- a/tests/cassettes/TestRecommendShipDateForZipPair.yaml +++ b/tests/cassettes/TestRecommendShipDateForZipPair.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"carriers":["USPS"],"desired_delivery_date":"2024-07-17","from_zip":"94107","to_zip":"90277"}' + body: '{"carriers":["USPS"],"desired_delivery_date":"2024-08-14","from_zip":"94107","to_zip":"90277"}' form: {} headers: Authorization: @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/smartrate/deliver_on method: POST response: - body: '{"carriers_without_tint_estimates":null,"desired_delivery_date":"2024-07-17","from_zip":"94107","results":[{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"delivery_date_confidence":0.46,"estimated_transit_days":1,"ship_on_date":"2024-07-16"},"service":"express"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":8},"delivery_date_confidence":0.43,"estimated_transit_days":2,"ship_on_date":"2024-07-15"},"service":"groundadvantage"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.47,"estimated_transit_days":2,"ship_on_date":"2024-07-15"},"service":"librarymail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.4,"estimated_transit_days":2,"ship_on_date":"2024-07-15"},"service":"mediamail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":2,"percentile_75":3,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.49,"estimated_transit_days":2,"ship_on_date":"2024-07-15"},"service":"priority"}],"saturday_delivery":null,"to_zip":"90277"}' + body: '{"carriers_without_tint_estimates":null,"desired_delivery_date":"2024-08-14","from_zip":"94107","results":[{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":4,"percentile_99":7},"delivery_date_confidence":0.48,"estimated_transit_days":1,"ship_on_date":"2024-08-13"},"service":"express"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.38,"estimated_transit_days":2,"ship_on_date":"2024-08-12"},"service":"groundadvantage"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.41,"estimated_transit_days":2,"ship_on_date":"2024-08-12"},"service":"librarymail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.46,"estimated_transit_days":2,"ship_on_date":"2024-08-12"},"service":"mediamail"},{"carrier":"USPS","easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.44,"estimated_transit_days":2,"ship_on_date":"2024-08-12"},"service":"priority"}],"saturday_delivery":null,"to_zip":"90277"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d02331d1669182e9f3f6ba64000fa82b + - 4d57346d66ad6886f440b8c7003762bf X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.075750" + - "0.069606" X-Version-Label: - - easypost-202407121702-a82cfb9ac3-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReferralCustomerAll.yaml b/tests/cassettes/TestReferralCustomerAll.yaml index 2cdbc30..b0d125f 100644 --- a/tests/cassettes/TestReferralCustomerAll.yaml +++ b/tests/cassettes/TestReferralCustomerAll.yaml @@ -2,23 +2,21 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/referral_customers + url: https://api.easypost.com/v2/referral_customers?page_size=5 method: GET response: - body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' headers: Cache-Control: @@ -40,20 +38,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec74e7896122001b78d3 + - 4d57346d66ad6886f440b8c70037636b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.322293" + - "0.228371" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -65,23 +63,21 @@ interactions: headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED url: https://api.easypost.com/v2/referral_customers method: GET response: - body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T19:04:10Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_91b120087ff843349b9a3f0675572bb1","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T23:08:40Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_4ae0d572fbe542deb7efa51935a5b826","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-04T22:05:27Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_71189529eba747ce83aa69303e22c7df","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:54:58Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_c13290f1f6a442d79657b8bfe5daeeba","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:55:59Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_b73fdc6c6a58421ea884a82ad14520a5","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T19:04:10Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_91b120087ff843349b9a3f0675572bb1","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T23:08:40Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_4ae0d572fbe542deb7efa51935a5b826","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-04T22:05:27Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_71189529eba747ce83aa69303e22c7df","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:54:58Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_c13290f1f6a442d79657b8bfe5daeeba","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:55:59Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_b73fdc6c6a58421ea884a82ad14520a5","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' headers: Cache-Control: @@ -103,20 +99,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec74e7896122001b7926 + - 4d57346d66ad6887f440b8c7003763a6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.360399" + - "0.427118" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReferralCustomerCreate.yaml b/tests/cassettes/TestReferralCustomerCreate.yaml index 6530d1f..4415fcf 100644 --- a/tests/cassettes/TestReferralCustomerCreate.yaml +++ b/tests/cassettes/TestReferralCustomerCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/referral_customers method: POST response: - body: '{"api_keys":[{"active":true,"created_at":"2023-11-30T20:11:33Z","id":"ak_89e7388db3d34d0fbf98494aee6a2faf","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:11:33Z","id":"ak_89c16abe451744879b32b0b29c8f6138","key":"REDACTED","mode":"production","object":"ApiKey"}],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2023-11-30T20:11:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fcf48eb939304c0ca77009b9c7b61825","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Test + body: '{"api_keys":[{"active":true,"created_at":"2024-08-02T23:15:19Z","id":"ak_9e6940c3ac8e42869ccdb340df10517a","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-02T23:15:19Z","id":"ak_bd0b73b04f46486e914bbfde241f594c","key":"REDACTED","mode":"production","object":"ApiKey"}],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2024-08-02T23:15:19Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_a97008e9c299427885d68a0331ab0015","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.01","name":"Test Referral","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true}' headers: Cache-Control: @@ -36,20 +36,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec75e7896122001b79a8 + - 4d57346d66ad6887f440b8c70037640d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.064234" + - "0.560305" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReferralCustomerUpdate.yaml b/tests/cassettes/TestReferralCustomerUpdate.yaml index 8a5aa21..e3c03f7 100644 --- a/tests/cassettes/TestReferralCustomerUpdate.yaml +++ b/tests/cassettes/TestReferralCustomerUpdate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/referral_customers method: POST response: - body: '{"api_keys":[{"active":true,"created_at":"2023-11-30T20:11:35Z","id":"ak_7b92c4f25c654a0abc9caf7f0c49c600","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:11:35Z","id":"ak_d9f20b55d84d469ab369bf17e4b124e5","key":"REDACTED","mode":"production","object":"ApiKey"}],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2023-11-30T20:11:34Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_323b91a3fc28409b869fdfca53dcb20b","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Test + body: '{"api_keys":[{"active":true,"created_at":"2024-08-05T16:04:02Z","id":"ak_df63c975347b4513b205faca879a23ae","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-05T16:04:02Z","id":"ak_cabaed976443408a9a1f0911a7219c16","key":"REDACTED","mode":"production","object":"ApiKey"}],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2024-08-05T16:04:02Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_ab78dfd11aa843ecb86c7da8f3c1fd76","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.01","name":"Test Referral","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true}' headers: Cache-Control: @@ -31,27 +31,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec76e7896122001b7acb + - df672db666b0f7f2f01f505900372761 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.260057" + - "0.604976" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -67,7 +65,7 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/referral_customers/user_323b91a3fc28409b869fdfca53dcb20b + url: https://api.easypost.com/v2/referral_customers/user_ab78dfd11aa843ecb86c7da8f3c1fd76 method: PUT response: body: '{"message":"Referral Customer email updated successfully"}' @@ -91,20 +89,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec78e7896122001b7c00 + - df672db666b0f7f3f01f505900372839 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.117336" + - "0.045259" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReferralCustomersGetNextPage.yaml b/tests/cassettes/TestReferralCustomersGetNextPage.yaml index d58bb1c..1526247 100644 --- a/tests/cassettes/TestReferralCustomersGetNextPage.yaml +++ b/tests/cassettes/TestReferralCustomersGetNextPage.yaml @@ -2,23 +2,21 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/referral_customers + url: https://api.easypost.com/v2/referral_customers?page_size=5 method: GET response: - body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' headers: Cache-Control: @@ -40,42 +38,40 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec78e7896122001b7c37 + - 4d57346d66ad6888f440b8c700376521 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.302217" + - "0.238092" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=user_488e391395f4416196a31965fecac409&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/referral_customers + url: https://api.easypost.com/v2/referral_customers?before_id=user_488e391395f4416196a31965fecac409&page_size=5 method: GET response: - body: '{"has_more":false,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + body: '{"has_more":false,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"has_elevate_access":false,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_carbon_offset":false,"default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"has_elevate_access":false,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.50","insurance_fee_rate":"0.005","name":"Firstname Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true}]}' headers: Cache-Control: @@ -92,25 +88,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec78e7896122001b7c97 + - 4d57346d66ad6889f440b8c700376554 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.295404" + - "0.228771" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRefundAll.yaml b/tests/cassettes/TestRefundAll.yaml index 40616ef..58e2fea 100644 --- a/tests/cassettes/TestRefundAll.yaml +++ b/tests/cassettes/TestRefundAll.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/refunds + url: https://api.easypost.com/v2/refunds?page_size=5 method: GET response: - body: '{"has_more":false,"refunds":[]}' + body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T22:13:50Z","id":"rfnd_aeb1bce67ae04df6b93987a73f555589","object":"Refund","shipment_id":"shp_4dba46108a5a4effa139b9e2b35c2fbc","status":"submitted","tracking_code":"9400100110368070361967","updated_at":"2024-08-02T22:13:50Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T22:13:33Z","id":"rfnd_114a3138e5294d659d72ab16460fc64d","object":"Refund","shipment_id":"shp_b282bc18513a44f98308b414c3c9983b","status":"submitted","tracking_code":"9400100110368070361882","updated_at":"2024-08-02T22:13:33Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-07-26T20:01:23Z","id":"rfnd_bb74a8b6b49d4d489725a9a99d482f21","object":"Refund","shipment_id":"shp_d41b394af7e34931b8627f62c373c72d","status":"rejected","tracking_code":"9400100110368067715940","updated_at":"2024-07-27T20:01:23Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-07-26T20:01:05Z","id":"rfnd_4e440cb92cfc4dd483cb7071cacbe602","object":"Refund","shipment_id":"shp_ad733d6f44f340f68b6acd669a75207e","status":"rejected","tracking_code":"9400100110368067715810","updated_at":"2024-07-27T20:01:05Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -30,25 +28,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec79e7896122001b7d0b + - 4d57346d66ad6889f440b8c70037657f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.028034" + - "0.076126" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRefundCreate.yaml b/tests/cassettes/TestRefundCreate.yaml index a64e5a3..a8ceadf 100644 --- a/tests/cassettes/TestRefundCreate.yaml +++ b/tests/cassettes/TestRefundCreate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:37Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:21Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:37Z","height":4,"id":"prcl_57aaf5e6761047b5ab79b1d666dafb6c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:37Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:38Z","date_advance":0,"id":"pl_48d5897267f44a25aeaa6b927750701a","integrated_form":"none","label_date":"2023-11-30T20:11:38Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e86d1f0f24c3d044b295f83946e4dd90c7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:38Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70fa6ec156e14a539c6de611988564d9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7078f211e5b04a838ba737523d3889af","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0ec0538942394125b526cacf2307c834","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_03786a6e7ea24e6fad12f2eb0c81c36c","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"id":"shp_738f79452695447188aacc702c5c79b5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:21Z","height":4,"id":"prcl_4fcef5748d434b86a9b6a81b5e1df497","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:21Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:22Z","date_advance":0,"id":"pl_fbd2cdb1f0bb42828848e74aa985a00f","integrated_form":"none","label_date":"2024-08-02T23:15:22Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e91a7f6ec69e4656a6fcd50eb1557538.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:22Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_273bb69faeb049cdababbbcaa3676768","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d2530b09bfef4856a2d820619c2650f0","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:38Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:22Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:38Z","est_delivery_date":null,"fees":[],"id":"trk_f488843c23bd45d4b3ca6e83278f531f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Y0ODg4NDNjMjNiZDQ1ZDRiM2NhNmU4MzI3OGY1MzFm","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383559","tracking_details":[],"updated_at":"2023-11-30T20:11:38Z","weight":null},"tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:38Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:22Z","est_delivery_date":null,"fees":[],"id":"trk_552573b8b40842e58111525146a56be2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU1MjU3M2I4YjQwODQyZTU4MTExNTI1MTQ2YTU2YmUy","shipment_id":"shp_738f79452695447188aacc702c5c79b5","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372154","tracking_details":[],"updated_at":"2024-08-02T23:15:22Z","weight":null},"tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_f0e3f4f2e9ad40529b3330aa3d9416d8 + - /api/v2/shipments/shp_738f79452695447188aacc702c5c79b5 Pragma: - no-cache Referrer-Policy: @@ -53,20 +53,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec79e7896122001b7d3d + - 4d57346d66ad6889f440b8c70037659b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.983394" + - "0.984912" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -80,27 +80,27 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_f0e3f4f2e9ad40529b3330aa3d9416d8 + url: https://api.easypost.com/v2/shipments/shp_738f79452695447188aacc702c5c79b5 method: GET response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:37Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:21Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:37Z","height":4,"id":"prcl_57aaf5e6761047b5ab79b1d666dafb6c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:37Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:38Z","date_advance":0,"id":"pl_48d5897267f44a25aeaa6b927750701a","integrated_form":"none","label_date":"2023-11-30T20:11:38Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e86d1f0f24c3d044b295f83946e4dd90c7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:38Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70fa6ec156e14a539c6de611988564d9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7078f211e5b04a838ba737523d3889af","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0ec0538942394125b526cacf2307c834","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_03786a6e7ea24e6fad12f2eb0c81c36c","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"id":"shp_738f79452695447188aacc702c5c79b5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:21Z","height":4,"id":"prcl_4fcef5748d434b86a9b6a81b5e1df497","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:21Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:22Z","date_advance":0,"id":"pl_fbd2cdb1f0bb42828848e74aa985a00f","integrated_form":"none","label_date":"2024-08-02T23:15:22Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e91a7f6ec69e4656a6fcd50eb1557538.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:22Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_273bb69faeb049cdababbbcaa3676768","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d2530b09bfef4856a2d820619c2650f0","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:38Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:22Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:38Z","est_delivery_date":"2023-11-30T20:11:38Z","fees":[],"id":"trk_f488843c23bd45d4b3ca6e83278f531f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Y0ODg4NDNjMjNiZDQ1ZDRiM2NhNmU4MzI3OGY1MzFm","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383559","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:38Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:38Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:38Z","weight":null},"tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:38Z","usps_zone":4}' + Package Service"},"created_at":"2024-08-02T23:15:22Z","est_delivery_date":"2024-08-02T23:15:22Z","fees":[],"id":"trk_552573b8b40842e58111525146a56be2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU1MjU3M2I4YjQwODQyZTU4MTExNTI1MTQ2YTU2YmUy","shipment_id":"shp_738f79452695447188aacc702c5c79b5","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372154","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:22Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:22Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:22Z","weight":null},"tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -121,27 +121,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ae7896122001b7e5e + - 4d57346d66ad688af440b8c700376683 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.138489" + - "0.150679" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"refund":{"carrier":"USPS","tracking_codes":["9400100105442287383559"]}}' + body: '{"refund":{"carrier":"USPS","tracking_codes":["9400100110368070372154"]}}' form: {} headers: Authorization: @@ -153,7 +153,7 @@ interactions: url: https://api.easypost.com/v2/refunds method: POST response: - body: '[{"carrier":"USPS","confirmation_number":null,"created_at":"2023-11-30T20:11:39Z","id":"rfnd_ab6ff8e35a634372be843dc71dfc8833","object":"Refund","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","status":"submitted","tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:39Z"}]' + body: '[{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T23:15:22Z","id":"rfnd_be6f0b2595454cedae5c42b6090befd4","object":"Refund","shipment_id":"shp_738f79452695447188aacc702c5c79b5","status":"submitted","tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z"}]' headers: Cache-Control: - private, no-cache, no-store @@ -174,20 +174,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7be7896122001b7e97 + - 4d57346d66ad688af440b8c7003766ab X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.073220" + - "0.074926" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestRefundRetrieve.yaml b/tests/cassettes/TestRefundRetrieve.yaml index 547121a..85ee88d 100644 --- a/tests/cassettes/TestRefundRetrieve.yaml +++ b/tests/cassettes/TestRefundRetrieve.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/refunds + url: https://api.easypost.com/v2/refunds?page_size=5 method: GET response: - body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2023-11-30T20:11:39Z","id":"rfnd_ab6ff8e35a634372be843dc71dfc8833","object":"Refund","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","status":"submitted","tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:39Z"}]}' + body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T23:15:22Z","id":"rfnd_be6f0b2595454cedae5c42b6090befd4","object":"Refund","shipment_id":"shp_738f79452695447188aacc702c5c79b5","status":"submitted","tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T22:13:50Z","id":"rfnd_aeb1bce67ae04df6b93987a73f555589","object":"Refund","shipment_id":"shp_4dba46108a5a4effa139b9e2b35c2fbc","status":"submitted","tracking_code":"9400100110368070361967","updated_at":"2024-08-02T22:13:50Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T22:13:33Z","id":"rfnd_114a3138e5294d659d72ab16460fc64d","object":"Refund","shipment_id":"shp_b282bc18513a44f98308b414c3c9983b","status":"submitted","tracking_code":"9400100110368070361882","updated_at":"2024-08-02T22:13:33Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-07-26T20:01:23Z","id":"rfnd_bb74a8b6b49d4d489725a9a99d482f21","object":"Refund","shipment_id":"shp_d41b394af7e34931b8627f62c373c72d","status":"rejected","tracking_code":"9400100110368067715940","updated_at":"2024-07-27T20:01:23Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-07-26T20:01:05Z","id":"rfnd_4e440cb92cfc4dd483cb7071cacbe602","object":"Refund","shipment_id":"shp_ad733d6f44f340f68b6acd669a75207e","status":"rejected","tracking_code":"9400100110368067715810","updated_at":"2024-07-27T20:01:05Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +33,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7be7896122001b7ecd + - 4d57346d66ad688af440b8c7003766c9 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.049091" + - "0.047037" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -62,10 +60,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/refunds/rfnd_ab6ff8e35a634372be843dc71dfc8833 + url: https://api.easypost.com/v2/refunds/rfnd_be6f0b2595454cedae5c42b6090befd4 method: GET response: - body: '{"carrier":"USPS","confirmation_number":null,"created_at":"2023-11-30T20:11:39Z","id":"rfnd_ab6ff8e35a634372be843dc71dfc8833","object":"Refund","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","status":"submitted","tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:39Z"}' + body: '{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T23:15:22Z","id":"rfnd_be6f0b2595454cedae5c42b6090befd4","object":"Refund","shipment_id":"shp_738f79452695447188aacc702c5c79b5","status":"submitted","tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -86,20 +84,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7be7896122001b7efb + - 4d57346d66ad688af440b8c7003766d5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.041631" + - "0.037940" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRefundsGetNextPage.yaml b/tests/cassettes/TestRefundsGetNextPage.yaml index a42419f..dfad62d 100644 --- a/tests/cassettes/TestRefundsGetNextPage.yaml +++ b/tests/cassettes/TestRefundsGetNextPage.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/refunds + url: https://api.easypost.com/v2/refunds?page_size=5 method: GET response: - body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2023-11-30T20:11:39Z","id":"rfnd_ab6ff8e35a634372be843dc71dfc8833","object":"Refund","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","status":"submitted","tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:39Z"}]}' + body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T23:15:22Z","id":"rfnd_be6f0b2595454cedae5c42b6090befd4","object":"Refund","shipment_id":"shp_738f79452695447188aacc702c5c79b5","status":"submitted","tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T22:13:50Z","id":"rfnd_aeb1bce67ae04df6b93987a73f555589","object":"Refund","shipment_id":"shp_4dba46108a5a4effa139b9e2b35c2fbc","status":"submitted","tracking_code":"9400100110368070361967","updated_at":"2024-08-02T22:13:50Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-08-02T22:13:33Z","id":"rfnd_114a3138e5294d659d72ab16460fc64d","object":"Refund","shipment_id":"shp_b282bc18513a44f98308b414c3c9983b","status":"submitted","tracking_code":"9400100110368070361882","updated_at":"2024-08-02T22:13:33Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-07-26T20:01:23Z","id":"rfnd_bb74a8b6b49d4d489725a9a99d482f21","object":"Refund","shipment_id":"shp_d41b394af7e34931b8627f62c373c72d","status":"rejected","tracking_code":"9400100110368067715940","updated_at":"2024-07-27T20:01:23Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2024-07-26T20:01:05Z","id":"rfnd_4e440cb92cfc4dd483cb7071cacbe602","object":"Refund","shipment_id":"shp_ad733d6f44f340f68b6acd669a75207e","status":"rejected","tracking_code":"9400100110368067715810","updated_at":"2024-07-27T20:01:05Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +33,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7be7896122001b7f1e + - 4d57346d66ad688bf440b8c7003766e4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.037782" + - "0.066360" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReportAll.yaml b/tests/cassettes/TestReportAll.yaml index 4e8de8f..1dd4557 100644 --- a/tests/cassettes/TestReportAll.yaml +++ b/tests/cassettes/TestReportAll.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/reports/shipment + url: https://api.easypost.com/v2/reports/shipment?page_size=5 method: GET response: - body: '{"has_more":true,"reports":[{"created_at":"2023-09-20T18:08:48Z","end_date":"2022-04-11","id":"shprep_9b9bda19aa9c4ac8a184dfa84f181644","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:49Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e8aa49979ec20649db917eb3fa6d812e35.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201139Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=6b03178665004c34b7dae840cd8b4b292c150129876147532e146c17e85056cb","url_expires_at":"2023-11-30T20:12:09Z"},{"created_at":"2023-09-20T18:08:48Z","end_date":"2022-04-11","id":"shprep_8705591cb02844d2a7220145bfa9a6f2","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:48Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e88191888f513a4546afcbb8109b17e7cc.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201139Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=9be19a8faf461389e58b7d0fbadfa89a96183143e7e03377765a6820ed6bbb61","url_expires_at":"2023-11-30T20:12:09Z"},{"created_at":"2023-09-20T18:08:47Z","end_date":"2022-04-11","id":"shprep_117481de9b1048ea8094fc12baaf3723","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:47Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e80b3ee393b19c4387b77b40319fa2cf11.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201139Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=f33c274f990a144744e24c527d657404fbc51c6a2aedb1061080be6b54857412","url_expires_at":"2023-11-30T20:12:09Z"},{"created_at":"2023-09-20T18:08:46Z","end_date":"2022-04-11","id":"shprep_ce1f400372694966b27ebf1007a8c349","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:47Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e8608fa8023c4e451599136ff07e3c7ff0.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201139Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=adf039e4812910727ff167ad8951a45ddaeb0301c7da10fc2d7f781d179ee1d4","url_expires_at":"2023-11-30T20:12:09Z"},{"created_at":"2023-09-20T18:00:47Z","end_date":"2022-04-11","id":"shprep_a4f466e251154ac2aa1366ba388dafe9","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:00:48Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e837daa13de0834d7cb054a0f6628f7a54.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201139Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=938246125754706373c1501da2babf4df9c50a8b9e059639bfa222204621d917","url_expires_at":"2023-11-30T20:12:09Z"}]}' + body: '{"has_more":true,"reports":[{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_2b97683aae5e4808a8e5340c04003033","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e8d79074ddca93451e8fc4c2bdd05f3e22.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c69ec1b3f336fcdecabab5ba6fd6db3dbbccda0bb8dcd6e5229a35a342c06a5c","url_expires_at":"2024-08-02T23:15:53Z"},{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_95d6e4e991f94590b22076e4203cac14","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e8449f0e839b474461ad9d7f52116436a0.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=eeb261f414afeea7ea63556921c60a3442de3413c1452c0a0be1af8b1619b423","url_expires_at":"2024-08-02T23:15:53Z"},{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_043fe8a5d4eb44fda283ca3fba36f91f","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e8ae9793e94cd04b3dbac8dc16fc39802a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=fb7eec60ae284c418d56f6af37e5cee383ca5d8a2139d08c8d6c8177da5be320","url_expires_at":"2024-08-02T23:15:53Z"},{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_eeff7265eadf45cbaa567b46db03a4be","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e898d907f4d09c4feabd0a138e2f5d8b0a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=1c5b531b68f90a7bfe722a2362cf8224437687691263247d0839110672d69822","url_expires_at":"2024-08-02T23:15:53Z"},{"created_at":"2024-07-26T20:01:05Z","end_date":"2022-04-11","id":"shprep_2fe05b3303b544dba2a42e2fca64ef2e","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-07-26T20:01:06Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240726/e8788ed37ca8904b5a80c788df491e7834.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=9349befaaaa5db2dd281234d8953ca9825011e280e20176296f6e3bee3821ce6","url_expires_at":"2024-08-02T23:15:53Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +33,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7be7896122001b7f3e + - 4d57346d66ad688bf440b8c700376702 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.056214" + - "0.049128" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReportCreate.yaml b/tests/cassettes/TestReportCreate.yaml index ac87901..9bf670b 100644 --- a/tests/cassettes/TestReportCreate.yaml +++ b/tests/cassettes/TestReportCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_1988f761cc694faab4a1c0bbdbaae82f","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2023-11-30T20:11:40Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_89dae8087ab84828ba64e682594180cf","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ce7896122001b7f99 + - 4d57346d66ad688bf440b8c700376716 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.046090" + - "0.088707" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml b/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml index bedd4cc..098db6f 100644 --- a/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml +++ b/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_f50994af5eba412bab0b7d6047701da7","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2023-11-30T20:11:40Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_5fe310bd7cd246b28d39fc1fd4dd4e52","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ce7896122001b7fc2 + - 4d57346d66ad688bf440b8c70037673a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.070376" + - "0.072187" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReportCustomColumnsCreate.yaml b/tests/cassettes/TestReportCustomColumnsCreate.yaml index 5f51aec..c0ea0f4 100644 --- a/tests/cassettes/TestReportCustomColumnsCreate.yaml +++ b/tests/cassettes/TestReportCustomColumnsCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_efb309d6ad034a97af49bd42162ff4b8","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2023-11-30T20:11:40Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_f17826a7eae84d4bb4cc1905075a60e9","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ce7896122001b7fec + - 4d57346d66ad688bf440b8c700376756 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.047597" + - "0.088077" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReportRetrieve.yaml b/tests/cassettes/TestReportRetrieve.yaml index 47c2d65..21bd402 100644 --- a/tests/cassettes/TestReportRetrieve.yaml +++ b/tests/cassettes/TestReportRetrieve.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_20e852aff80248709caa58c9d8f0896e","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2023-11-30T20:11:40Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_b73b73da599b48269fc7354a858c1b77","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ce7896122001b801b + - 4d57346d66ad688bf440b8c70037677a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.064065" + - "0.086926" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -62,10 +62,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/reports/shipment/shprep_20e852aff80248709caa58c9d8f0896e + url: https://api.easypost.com/v2/reports/shipment/shprep_b73b73da599b48269fc7354a858c1b77 method: GET response: - body: '{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_20e852aff80248709caa58c9d8f0896e","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2023-11-30T20:11:40Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_b73b73da599b48269fc7354a858c1b77","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store @@ -81,25 +81,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ce7896122001b804f + - 4d57346d66ad688bf440b8c700376798 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.050903" + - "0.051118" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReportsGetNextPage.yaml b/tests/cassettes/TestReportsGetNextPage.yaml index 9252132..cacd072 100644 --- a/tests/cassettes/TestReportsGetNextPage.yaml +++ b/tests/cassettes/TestReportsGetNextPage.yaml @@ -2,19 +2,17 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/reports/shipment + url: https://api.easypost.com/v2/reports/shipment?page_size=5 method: GET response: - body: '{"has_more":true,"reports":[{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_20e852aff80248709caa58c9d8f0896e","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2023-11-30T20:11:40Z","url":null,"url_expires_at":null},{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_efb309d6ad034a97af49bd42162ff4b8","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-11-30T20:11:40Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20231130/e8c5b80694bbad441ba51cef00d0c1e08a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=ee3c09e84013bd44ff790e02590caf4485efc66819b51b5c1d780c5ff1854152","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_f50994af5eba412bab0b7d6047701da7","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-11-30T20:11:40Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20231130/e8df4d5e56506143aa99e7c57aa7b2b07d.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=db5663c350768be43e77d745ef5fb60e52427444774abf547577dd5cb8318edd","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-11-30T20:11:40Z","end_date":"2022-04-11","id":"shprep_1988f761cc694faab4a1c0bbdbaae82f","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-11-30T20:11:40Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20231130/e885c50e7fa37045eba1b3dfa9168c7e8a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=226384e99e18824c80dfbdbe1b34ca4d1b735802dba21a3b98df4c4d76bca14e","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-09-20T18:08:48Z","end_date":"2022-04-11","id":"shprep_9b9bda19aa9c4ac8a184dfa84f181644","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:49Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e8aa49979ec20649db917eb3fa6d812e35.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=aef22f2e883354a254e415e016c0600b2f42a80c323253eae5723b3a2b0afa5e","url_expires_at":"2023-11-30T20:12:11Z"}]}' + body: '{"has_more":true,"reports":[{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_b73b73da599b48269fc7354a858c1b77","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null},{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_f17826a7eae84d4bb4cc1905075a60e9","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null},{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_5fe310bd7cd246b28d39fc1fd4dd4e52","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2024-08-02T23:15:23Z","url":null,"url_expires_at":null},{"created_at":"2024-08-02T23:15:23Z","end_date":"2022-04-11","id":"shprep_89dae8087ab84828ba64e682594180cf","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T23:15:23Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e858e48a05bf2e422ea4b64cb58704d41a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=9530dff38e55cf151f1792203bf774e2d5144c5ec0799a9e2dd0f9fe5b83e5aa","url_expires_at":"2024-08-02T23:15:53Z"},{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_2b97683aae5e4808a8e5340c04003033","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e8d79074ddca93451e8fc4c2bdd05f3e22.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231523Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=c69ec1b3f336fcdecabab5ba6fd6db3dbbccda0bb8dcd6e5229a35a342c06a5c","url_expires_at":"2024-08-02T23:15:53Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -35,39 +33,37 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7de7896122001b8076 + - 4d57346d66ad688bf440b8c7003767ab X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.039752" + - "0.038963" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=shprep_9b9bda19aa9c4ac8a184dfa84f181644&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/reports/shipment + url: https://api.easypost.com/v2/reports/shipment?before_id=shprep_2b97683aae5e4808a8e5340c04003033&page_size=5 method: GET response: - body: '{"has_more":true,"reports":[{"created_at":"2023-09-20T18:08:48Z","end_date":"2022-04-11","id":"shprep_8705591cb02844d2a7220145bfa9a6f2","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:48Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e88191888f513a4546afcbb8109b17e7cc.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=736be0392b9ba64120afbf95ff551802ccc642874f7665082aecbb4a6018c154","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-09-20T18:08:47Z","end_date":"2022-04-11","id":"shprep_117481de9b1048ea8094fc12baaf3723","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:47Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e80b3ee393b19c4387b77b40319fa2cf11.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=cf712fa92dedef0f6a4f6cd230cf9bd40aff7688b49a2f8de2d63fc815370f23","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-09-20T18:08:46Z","end_date":"2022-04-11","id":"shprep_ce1f400372694966b27ebf1007a8c349","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:08:47Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e8608fa8023c4e451599136ff07e3c7ff0.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=6d2225d6752dfd48b29ccb842169c599b1c09b5565ef0cd866a2d0c7440c6032","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-09-20T18:00:47Z","end_date":"2022-04-11","id":"shprep_a4f466e251154ac2aa1366ba388dafe9","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:00:48Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e837daa13de0834d7cb054a0f6628f7a54.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=0fd953e467a54f408d11afb568ad01224d3b6cb9f17e52ca22942abf723ba3f0","url_expires_at":"2023-11-30T20:12:11Z"},{"created_at":"2023-09-20T18:00:47Z","end_date":"2022-04-11","id":"shprep_e933d67d094148f7a14c1d4a974eb485","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2023-09-20T18:00:48Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20230920/e878a301f845b6403591cc50bb4f890f95.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQQSFK3MJI%2F20231130%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20231130T201141Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=34a2bcda7dc946270c788adc77c4cd97cf3a73b33e61a2e819afc11f886f0354","url_expires_at":"2023-11-30T20:12:11Z"}]}' + body: '{"has_more":true,"reports":[{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_95d6e4e991f94590b22076e4203cac14","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e8449f0e839b474461ad9d7f52116436a0.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231524Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=fa31fbe60fd6c29f051a80ae1e5184189df5be4980ffe2ecd4e9fbd0d50492ac","url_expires_at":"2024-08-02T23:15:54Z"},{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_043fe8a5d4eb44fda283ca3fba36f91f","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e8ae9793e94cd04b3dbac8dc16fc39802a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231524Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=47e5c24f6b74272d52f060d434ec7768a5f9f1957c3567b42cf677d15e1cbd6d","url_expires_at":"2024-08-02T23:15:54Z"},{"created_at":"2024-08-02T22:13:33Z","end_date":"2022-04-11","id":"shprep_eeff7265eadf45cbaa567b46db03a4be","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-08-02T22:13:34Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240802/e898d907f4d09c4feabd0a138e2f5d8b0a.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231524Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=0692a07c57954cd90657f58b30dd09d54d293e164d2ea6b0b9cb43c493f1f850","url_expires_at":"2024-08-02T23:15:54Z"},{"created_at":"2024-07-26T20:01:05Z","end_date":"2022-04-11","id":"shprep_2fe05b3303b544dba2a42e2fca64ef2e","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-07-26T20:01:06Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240726/e8788ed37ca8904b5a80c788df491e7834.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231524Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=519415968dabc6b78bf7ea09b164f71130c5781b28ec9bdf610bc43bc12aa3ba","url_expires_at":"2024-08-02T23:15:54Z"},{"created_at":"2024-07-26T20:01:05Z","end_date":"2022-04-11","id":"shprep_a7fc9f16c52d475b84b96a21aa970921","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2024-07-26T20:01:06Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240726/e88f78201b3e484e8bba3c29cdad3d87fd.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240802%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20240802T231524Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=dc27f55e488bc6ee052db371b313e45e562890e75a03516ab1ac50828102b228","url_expires_at":"2024-08-02T23:15:54Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -83,25 +79,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7de7896122001b80a0 + - 4d57346d66ad688bf440b8c7003767b7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.060829" + - "0.042853" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormAll.yaml b/tests/cassettes/TestScanFormAll.yaml index c741048..c4d574b 100644 --- a/tests/cassettes/TestScanFormAll.yaml +++ b/tests/cassettes/TestScanFormAll.yaml @@ -2,22 +2,32 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/scan_forms + url: https://api.easypost.com/v2/scan_forms?page_size=5 method: GET response: body: '{"has_more":false,"scan_forms":[{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e9980198fbc11eea8213cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-07-26T19:59:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2d7c0d4b8911efbd50ac1f6bc539ae","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-07-26T19:59:45+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_37469506f6874d7daa354b28fa17ff47","confirmation":null,"created_at":"2024-07-26T19:59:50Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240726/e8bc5a935c587947beb5693e694718bc8f.pdf","id":"sf_14285f9777db4bbdb9e699e0e1d7d7e1","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368067715322"],"updated_at":"2024-07-26T19:59:51Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-07-26T20:01:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_cb3cdc5b4b8911efba06ac1f6bc539aa","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-07-26T20:01:06+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bdfc1e9b8655465fb41ce276c803f026","confirmation":null,"created_at":"2024-07-26T20:01:07Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240726/e8e46a3a64e3a743c08b6658ddfc522c08.pdf","id":"sf_842e1f04c6a9447c99fb2e643e74e0c7","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368067715827"],"updated_at":"2024-07-26T20:01:07Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-07-26T20:01:07+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_cc2690a34b8911ef913dac1f6bc539ae","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-07-26T20:01:07+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_daa2c519dd424d5692bc1623a03f96d4","confirmation":null,"created_at":"2024-07-26T20:01:09Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240726/e82be25b2f2b274dba896f726682d596f1.pdf","id":"sf_788dd06dd012425098abb50af45e9a27","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368067715841"],"updated_at":"2024-07-26T20:01:09Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7581c8ff511c11ef8ed1ac1f6bc539aa","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:34+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_2a90934d557344889847ef676ce8c64c","confirmation":null,"created_at":"2024-08-02T22:13:35Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e88133764071274c8990f7669e80e1994d.pdf","id":"sf_db55d2c5fa6544ba8dc751d7a7cc176a","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070361905"],"updated_at":"2024-08-02T22:13:35Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_764d1af2511c11efa0d0ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:23+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_0f1512b0b2ab4b59a008ce06e209c6c1","confirmation":null,"created_at":"2023-11-30T20:10:28Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e878f8b1185e1c41098852d50aa6e9fa73.pdf","id":"sf_f39d531b6e7a4ed79e61f90a4ea03608","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287382941"],"updated_at":"2023-11-30T20:10:29Z"}]}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:35+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_29ce79f96fef4fbd8f9a00b1b820e687","confirmation":null,"created_at":"2024-08-02T22:13:36Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e884e3e0907fce4f8198cff348a7fa375b.pdf","id":"sf_f18f5516fe174f64916cb53118d09238","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070361912"],"updated_at":"2024-08-02T22:13:37Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -38,20 +48,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7de7896122001b80c7 + - 4d57346d66ad688cf440b8c7003767c6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.054873" + - "0.098772" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormCreate.yaml b/tests/cassettes/TestScanFormCreate.yaml index 705ca14..140325d 100644 --- a/tests/cassettes/TestScanFormCreate.yaml +++ b/tests/cassettes/TestScanFormCreate.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1c4e5b8fbc11ee8bd2ac1f6bc539aa","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18b85ae6512511efb7ddac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:41Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:24Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"id":"shp_377201d5b6f84999bb41454ecb5e8600","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:41Z","height":4,"id":"prcl_d176cc4dd44b473bb17d7f1086da5470","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:42Z","date_advance":0,"id":"pl_9475c84bf68b490789158a3dce288897","integrated_form":"none","label_date":"2023-11-30T20:11:42Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e83a72f3da8f744224b8b9f7c8e7793b82.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:42Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_71a0501215684647a49cba4fbf6af019","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a0ed6e33ceb1484185559e7a7c4fc433","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a8c2f26a107f4730bf84610f60339d6d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e9a2b44f6f65440a817fc63989ca799a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a13840ec0780456bb9e69dba8782f0a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"id":"shp_2272bfaaafdc483987d9f9e2b67280c4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:24Z","height":4,"id":"prcl_fc2f07c02c214e5994fe7b550dfed38a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:24Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:24Z","date_advance":0,"id":"pl_233e1f5301f54b0aab0def8bc7421e36","integrated_form":"none","label_date":"2024-08-02T23:15:24Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e82dd5f612317d49a8b3519d2bc00367db.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1b4d0ee587b7498a8859ca808b00592c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_957520d85448492695a20a66e5045e39","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_944da1eb5712473dbc054e5c24a49f1f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e9a2b44f6f65440a817fc63989ca799a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:42Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1c4e5b8fbc11ee8bd2ac1f6bc539aa","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_944da1eb5712473dbc054e5c24a49f1f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18b85ae6512511efb7ddac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:42Z","est_delivery_date":null,"fees":[],"id":"trk_d2471e99b56b4e1f821eab0eaff3add1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2QyNDcxZTk5YjU2YjRlMWY4MjFlYWIwZWFmZjNhZGQx","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383573","tracking_details":[],"updated_at":"2023-11-30T20:11:42Z","weight":null},"tracking_code":"9400100105442287383573","updated_at":"2023-11-30T20:11:42Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:25Z","est_delivery_date":null,"fees":[],"id":"trk_3bd329377d794bff9bfecd3f5ee835f6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiZDMyOTM3N2Q3OTRiZmY5YmZlY2QzZjVlZTgzNWY2","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372161","tracking_details":[],"updated_at":"2024-08-02T23:15:25Z","weight":null},"tracking_code":"9400100110368070372161","updated_at":"2024-08-02T23:15:25Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_377201d5b6f84999bb41454ecb5e8600 + - /api/v2/shipments/shp_2272bfaaafdc483987d9f9e2b67280c4 Pragma: - no-cache Referrer-Policy: @@ -53,27 +53,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7de7896122001b80f5 + - 4d57346d66ad688cf440b8c7003767e8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.145750" + - "1.114000" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipments":[{"id":"shp_377201d5b6f84999bb41454ecb5e8600"}]}' + body: '{"shipments":[{"id":"shp_2272bfaaafdc483987d9f9e2b67280c4"}]}' form: {} headers: Authorization: @@ -85,9 +85,9 @@ interactions: url: https://api.easypost.com/v2/scan_forms method: POST response: - body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f37a65a455f04c5cba7bf39be6e0a3d0","confirmation":null,"created_at":"2023-11-30T20:11:42Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e8c9a1edddebd34685b3ee50d9cdcb8889.pdf","id":"sf_49f7df78c416412188a23575c01071a8","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383573"],"updated_at":"2023-11-30T20:11:43Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_81db2fb950d447efb683744dd814152e","confirmation":null,"created_at":"2024-08-02T23:15:25Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e8e01cedb82d814a649b4de865280d304d.pdf","id":"sf_96efbd01c0244c6a91d6783930149667","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372161"],"updated_at":"2024-08-02T23:15:25Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -108,20 +108,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7ee7896122001b8205 + - 4d57346d66ad688df440b8c7003768cc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.222998" + - "0.310371" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormRetrieve.yaml b/tests/cassettes/TestScanFormRetrieve.yaml index 46a6347..37f132f 100644 --- a/tests/cassettes/TestScanFormRetrieve.yaml +++ b/tests/cassettes/TestScanFormRetrieve.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae1c7ed18fbc11eebdc5ac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a03289512511efa756ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:43Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:26+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:43Z","height":4,"id":"prcl_42a7309d27d44901be51c75698c2f481","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:43Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:44Z","date_advance":0,"id":"pl_9dee3488862c49fb9528c1b2fadbbf82","integrated_form":"none","label_date":"2023-11-30T20:11:44Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e81ccb422bff25488f9cc330deb26d90d2.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:44Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_39dc2e0860f6465ea67c3aa2218ab420","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d1db33ab5f394062a85f74ebb709667e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2892f7917134493b96fa011ac2eac140","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a88d93db2662462baf6eef2a92789f19","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_152d2430c09742cd80dd39b7bec82f42","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"id":"shp_32f296472f6c420d9f71de7ad945268b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:25Z","height":4,"id":"prcl_70b2264cf69d454797210f5f7391bdc2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:26Z","date_advance":0,"id":"pl_ae80ca4092884f199d28657f43cac378","integrated_form":"none","label_date":"2024-08-02T23:15:26Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81e90e88e7e85451da909caa28fe3c556.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:26Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2d26e6aef722413fa96eeda0bb7fd753","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1bdf23d99a594210a9e7c482b3cdf211","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_201c61f269c042b69f4b02484382a88a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2892f7917134493b96fa011ac2eac140","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:44Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae1c7ed18fbc11eebdc5ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_201c61f269c042b69f4b02484382a88a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:26Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a03289512511efa756ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:44Z","est_delivery_date":null,"fees":[],"id":"trk_516caec3889e4c3aad7de96a7f969170","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzUxNmNhZWMzODg5ZTRjM2FhZDdkZTk2YTdmOTY5MTcw","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383597","tracking_details":[],"updated_at":"2023-11-30T20:11:44Z","weight":null},"tracking_code":"9400100105442287383597","updated_at":"2023-11-30T20:11:44Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:26+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:26Z","est_delivery_date":null,"fees":[],"id":"trk_c2f70261925c4ccf8d6bc60f1aab3aa9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MyZjcwMjYxOTI1YzRjY2Y4ZDZiYzYwZjFhYWIzYWE5","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372178","tracking_details":[],"updated_at":"2024-08-02T23:15:26Z","weight":null},"tracking_code":"9400100110368070372178","updated_at":"2024-08-02T23:15:26Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5 + - /api/v2/shipments/shp_32f296472f6c420d9f71de7ad945268b Pragma: - no-cache Referrer-Policy: @@ -53,27 +53,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec7fe7896122001b8261 + - 4d57346d66ad688df440b8c700376910 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.167968" + - "1.060192" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipments":[{"id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5"}]}' + body: '{"shipments":[{"id":"shp_32f296472f6c420d9f71de7ad945268b"}]}' form: {} headers: Authorization: @@ -85,9 +85,9 @@ interactions: url: https://api.easypost.com/v2/scan_forms method: POST response: - body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","confirmation":null,"created_at":"2023-11-30T20:11:44Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e87a4b05b24d394f09b89f218dd25fa7de.pdf","id":"sf_c261b07dae4b43f1958c579685168742","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383597"],"updated_at":"2023-11-30T20:11:44Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","confirmation":null,"created_at":"2024-08-02T23:15:26Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e83e59ee3d582140e8b096bf5f4449cd60.pdf","id":"sf_a20319c731a746549807e24b7762eec4","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372178"],"updated_at":"2024-08-02T23:15:27Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -108,20 +108,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec80e7896122001b838f + - 4d57346d66ad688ef440b8c7003769ed X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.368685" + - "0.256221" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -135,12 +135,12 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/scan_forms/sf_c261b07dae4b43f1958c579685168742 + url: https://api.easypost.com/v2/scan_forms/sf_a20319c731a746549807e24b7762eec4 method: GET response: - body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","confirmation":null,"created_at":"2023-11-30T20:11:44Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e87a4b05b24d394f09b89f218dd25fa7de.pdf","id":"sf_c261b07dae4b43f1958c579685168742","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383597"],"updated_at":"2023-11-30T20:11:44Z"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","confirmation":null,"created_at":"2024-08-02T23:15:26Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e83e59ee3d582140e8b096bf5f4449cd60.pdf","id":"sf_a20319c731a746549807e24b7762eec4","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372178"],"updated_at":"2024-08-02T23:15:27Z"}' headers: Cache-Control: - private, no-cache, no-store @@ -161,20 +161,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec81e7896122001b840a + - 4d57346d66ad688ff440b8c700376a36 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.036634" + - "0.034089" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormsGetNextPage.yaml b/tests/cassettes/TestScanFormsGetNextPage.yaml index 1ae6a1a..e664675 100644 --- a/tests/cassettes/TestScanFormsGetNextPage.yaml +++ b/tests/cassettes/TestScanFormsGetNextPage.yaml @@ -2,28 +2,89 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED + User-Agent: + - REDACTED + url: https://api.easypost.com/v2/scan_forms?page_size=5 + method: GET + response: + body: '{"has_more":true,"scan_forms":[{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","confirmation":null,"created_at":"2024-08-02T23:15:26Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e83e59ee3d582140e8b096bf5f4449cd60.pdf","id":"sf_a20319c731a746549807e24b7762eec4","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372178"],"updated_at":"2024-08-02T23:15:27Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_81db2fb950d447efb683744dd814152e","confirmation":null,"created_at":"2024-08-02T23:15:25Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e8e01cedb82d814a649b4de865280d304d.pdf","id":"sf_96efbd01c0244c6a91d6783930149667","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372161"],"updated_at":"2024-08-02T23:15:25Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:35+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_764d1af2511c11efa0d0ac1f6bc53342","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:35+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_29ce79f96fef4fbd8f9a00b1b820e687","confirmation":null,"created_at":"2024-08-02T22:13:36Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e884e3e0907fce4f8198cff348a7fa375b.pdf","id":"sf_f18f5516fe174f64916cb53118d09238","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070361912"],"updated_at":"2024-08-02T22:13:37Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T22:13:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7581c8ff511c11ef8ed1ac1f6bc539aa","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-08-02T22:13:34+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_2a90934d557344889847ef676ce8c64c","confirmation":null,"created_at":"2024-08-02T22:13:35Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e88133764071274c8990f7669e80e1994d.pdf","id":"sf_db55d2c5fa6544ba8dc751d7a7cc176a","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070361905"],"updated_at":"2024-08-02T22:13:35Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-07-26T20:01:07+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_cc2690a34b8911ef913dac1f6bc539ae","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2024-07-26T20:01:07+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_daa2c519dd424d5692bc1623a03f96d4","confirmation":null,"created_at":"2024-07-26T20:01:09Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240726/e82be25b2f2b274dba896f726682d596f1.pdf","id":"sf_788dd06dd012425098abb50af45e9a27","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368067715841"],"updated_at":"2024-07-26T20:01:09Z"}]}' + headers: + Cache-Control: + - private, no-cache, no-store Content-Type: - - application/x-www-form-urlencoded + - application/json; charset=utf-8 + Expires: + - "0" + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Backend: + - easypost + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Ep-Request-Uuid: + - 4d57346d66ad688ff440b8c700376a48 + X-Frame-Options: + - SAMEORIGIN + X-Node: + - bigweb41nuq + X-Permitted-Cross-Domain-Policies: + - none + X-Proxied: + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 + X-Runtime: + - "0.193216" + X-Version-Label: + - easypost-202408021936-66687f8918-master + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Authorization: + - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/scan_forms + url: https://api.easypost.com/v2/scan_forms?before_id=sf_788dd06dd012425098abb50af45e9a27&page_size=5 method: GET response: body: '{"has_more":false,"scan_forms":[{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:10:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7e9980198fbc11eea8213cecef1b359e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:10:23+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_0f1512b0b2ab4b59a008ce06e209c6c1","confirmation":null,"created_at":"2023-11-30T20:10:28Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e878f8b1185e1c41098852d50aa6e9fa73.pdf","id":"sf_f39d531b6e7a4ed79e61f90a4ea03608","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287382941"],"updated_at":"2023-11-30T20:10:29Z"},{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-07-26T19:59:45+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_9b2d7c0d4b8911efbd50ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f37a65a455f04c5cba7bf39be6e0a3d0","confirmation":null,"created_at":"2023-11-30T20:11:42Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e8c9a1edddebd34685b3ee50d9cdcb8889.pdf","id":"sf_49f7df78c416412188a23575c01071a8","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383573"],"updated_at":"2023-11-30T20:11:43Z"},{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-07-26T19:59:45+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_37469506f6874d7daa354b28fa17ff47","confirmation":null,"created_at":"2024-07-26T19:59:50Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240726/e8bc5a935c587947beb5693e694718bc8f.pdf","id":"sf_14285f9777db4bbdb9e699e0e1d7d7e1","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368067715322"],"updated_at":"2024-07-26T19:59:51Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-07-26T20:01:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_cb3cdc5b4b8911efba06ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","confirmation":null,"created_at":"2023-11-30T20:11:44Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e87a4b05b24d394f09b89f218dd25fa7de.pdf","id":"sf_c261b07dae4b43f1958c579685168742","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383597"],"updated_at":"2023-11-30T20:11:44Z"}]}' + N Harbor Dr","street2":null,"updated_at":"2024-07-26T20:01:06+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bdfc1e9b8655465fb41ce276c803f026","confirmation":null,"created_at":"2024-07-26T20:01:07Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240726/e8e46a3a64e3a743c08b6658ddfc522c08.pdf","id":"sf_842e1f04c6a9447c99fb2e643e74e0c7","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368067715827"],"updated_at":"2024-07-26T20:01:07Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -46,7 +107,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec81e7896122001b8432 + - 4d57346d66ad688ff440b8c700376a79 X-Frame-Options: - SAMEORIGIN X-Node: @@ -54,12 +115,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.052447" + - "0.097773" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentAll.yaml b/tests/cassettes/TestShipmentAll.yaml index 0f9c2a2..4b03b30 100644 --- a/tests/cassettes/TestShipmentAll.yaml +++ b/tests/cassettes/TestShipmentAll.yaml @@ -2,110 +2,108 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments + url: https://api.easypost.com/v2/shipments?page_size=5 method: GET response: - body: '{"has_more":true,"shipments":[{"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae1c7ed18fbc11eebdc5ac1f6bc53342","mode":"test","name":"JACK + body: '{"has_more":true,"shipments":[{"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a03289512511efa756ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:43Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:26+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:43Z","height":4,"id":"prcl_42a7309d27d44901be51c75698c2f481","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:43Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:44Z","date_advance":0,"id":"pl_9dee3488862c49fb9528c1b2fadbbf82","integrated_form":"none","label_date":"2023-11-30T20:11:44Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e81ccb422bff25488f9cc330deb26d90d2.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:44Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_39dc2e0860f6465ea67c3aa2218ab420","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d1db33ab5f394062a85f74ebb709667e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2892f7917134493b96fa011ac2eac140","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a88d93db2662462baf6eef2a92789f19","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_152d2430c09742cd80dd39b7bec82f42","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"id":"shp_32f296472f6c420d9f71de7ad945268b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:25Z","height":4,"id":"prcl_70b2264cf69d454797210f5f7391bdc2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:26Z","date_advance":0,"id":"pl_ae80ca4092884f199d28657f43cac378","integrated_form":"none","label_date":"2024-08-02T23:15:26Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81e90e88e7e85451da909caa28fe3c556.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:26Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2d26e6aef722413fa96eeda0bb7fd753","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1bdf23d99a594210a9e7c482b3cdf211","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_201c61f269c042b69f4b02484382a88a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","confirmation":null,"created_at":"2023-11-30T20:11:44Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e87a4b05b24d394f09b89f218dd25fa7de.pdf","id":"sf_c261b07dae4b43f1958c579685168742","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383597"],"updated_at":"2023-11-30T20:11:44Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2892f7917134493b96fa011ac2eac140","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:44Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae1c7ed18fbc11eebdc5ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","confirmation":null,"created_at":"2024-08-02T23:15:26Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e83e59ee3d582140e8b096bf5f4449cd60.pdf","id":"sf_a20319c731a746549807e24b7762eec4","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372178"],"updated_at":"2024-08-02T23:15:27Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_201c61f269c042b69f4b02484382a88a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:26Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a03289512511efa756ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:26+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:44Z","est_delivery_date":"2023-11-30T20:11:44Z","fees":[],"id":"trk_516caec3889e4c3aad7de96a7f969170","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzUxNmNhZWMzODg5ZTRjM2FhZDdkZTk2YTdmOTY5MTcw","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383597","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:44Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:44Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:44Z","weight":null},"tracking_code":"9400100105442287383597","updated_at":"2023-11-30T20:11:44Z","usps_zone":4},{"batch_id":"batch_f37a65a455f04c5cba7bf39be6e0a3d0","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1c4e5b8fbc11ee8bd2ac1f6bc539aa","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:26Z","est_delivery_date":"2024-08-02T23:15:26Z","fees":[],"id":"trk_c2f70261925c4ccf8d6bc60f1aab3aa9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MyZjcwMjYxOTI1YzRjY2Y4ZDZiYzYwZjFhYWIzYWE5","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372178","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:26Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:26Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:26Z","weight":null},"tracking_code":"9400100110368070372178","updated_at":"2024-08-02T23:15:26Z","usps_zone":4},{"batch_id":"batch_81db2fb950d447efb683744dd814152e","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18b85ae6512511efb7ddac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:41Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:24Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"id":"shp_377201d5b6f84999bb41454ecb5e8600","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:41Z","height":4,"id":"prcl_d176cc4dd44b473bb17d7f1086da5470","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:42Z","date_advance":0,"id":"pl_9475c84bf68b490789158a3dce288897","integrated_form":"none","label_date":"2023-11-30T20:11:42Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e83a72f3da8f744224b8b9f7c8e7793b82.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:42Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_71a0501215684647a49cba4fbf6af019","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a0ed6e33ceb1484185559e7a7c4fc433","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a8c2f26a107f4730bf84610f60339d6d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e9a2b44f6f65440a817fc63989ca799a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a13840ec0780456bb9e69dba8782f0a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"id":"shp_2272bfaaafdc483987d9f9e2b67280c4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:24Z","height":4,"id":"prcl_fc2f07c02c214e5994fe7b550dfed38a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:24Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:24Z","date_advance":0,"id":"pl_233e1f5301f54b0aab0def8bc7421e36","integrated_form":"none","label_date":"2024-08-02T23:15:24Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e82dd5f612317d49a8b3519d2bc00367db.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1b4d0ee587b7498a8859ca808b00592c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_957520d85448492695a20a66e5045e39","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_944da1eb5712473dbc054e5c24a49f1f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f37a65a455f04c5cba7bf39be6e0a3d0","confirmation":null,"created_at":"2023-11-30T20:11:42Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e8c9a1edddebd34685b3ee50d9cdcb8889.pdf","id":"sf_49f7df78c416412188a23575c01071a8","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383573"],"updated_at":"2023-11-30T20:11:43Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e9a2b44f6f65440a817fc63989ca799a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:42Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1c4e5b8fbc11ee8bd2ac1f6bc539aa","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_81db2fb950d447efb683744dd814152e","confirmation":null,"created_at":"2024-08-02T23:15:25Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e8e01cedb82d814a649b4de865280d304d.pdf","id":"sf_96efbd01c0244c6a91d6783930149667","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372161"],"updated_at":"2024-08-02T23:15:25Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_944da1eb5712473dbc054e5c24a49f1f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18b85ae6512511efb7ddac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:42Z","est_delivery_date":"2023-11-30T20:11:42Z","fees":[],"id":"trk_d2471e99b56b4e1f821eab0eaff3add1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2QyNDcxZTk5YjU2YjRlMWY4MjFlYWIwZWFmZjNhZGQx","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383573","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:42Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:42Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:42Z","weight":null},"tracking_code":"9400100105442287383573","updated_at":"2023-11-30T20:11:43Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:25Z","est_delivery_date":"2024-08-02T23:15:25Z","fees":[],"id":"trk_3bd329377d794bff9bfecd3f5ee835f6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiZDMyOTM3N2Q3OTRiZmY5YmZlY2QzZjVlZTgzNWY2","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372161","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:25Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:25Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:25Z","weight":null},"tracking_code":"9400100110368070372161","updated_at":"2024-08-02T23:15:25Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:37Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:21Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:37Z","height":4,"id":"prcl_57aaf5e6761047b5ab79b1d666dafb6c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:37Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:38Z","date_advance":0,"id":"pl_48d5897267f44a25aeaa6b927750701a","integrated_form":"none","label_date":"2023-11-30T20:11:38Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e86d1f0f24c3d044b295f83946e4dd90c7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:38Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70fa6ec156e14a539c6de611988564d9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7078f211e5b04a838ba737523d3889af","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0ec0538942394125b526cacf2307c834","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_03786a6e7ea24e6fad12f2eb0c81c36c","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"id":"shp_738f79452695447188aacc702c5c79b5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:21Z","height":4,"id":"prcl_4fcef5748d434b86a9b6a81b5e1df497","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:21Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:22Z","date_advance":0,"id":"pl_fbd2cdb1f0bb42828848e74aa985a00f","integrated_form":"none","label_date":"2024-08-02T23:15:22Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e91a7f6ec69e4656a6fcd50eb1557538.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:22Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_273bb69faeb049cdababbbcaa3676768","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d2530b09bfef4856a2d820619c2650f0","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:38Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:22Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:38Z","est_delivery_date":"2023-11-30T20:11:38Z","fees":[],"id":"trk_f488843c23bd45d4b3ca6e83278f531f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Y0ODg4NDNjMjNiZDQ1ZDRiM2NhNmU4MzI3OGY1MzFm","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383559","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:38Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:38Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:38Z","weight":null},"tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:39Z","usps_zone":4},{"batch_id":"batch_e75048698c23468c8195af813273ea47","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:22Z","est_delivery_date":"2024-08-02T23:15:22Z","fees":[],"id":"trk_552573b8b40842e58111525146a56be2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU1MjU3M2I4YjQwODQyZTU4MTExNTI1MTQ2YTU2YmUy","shipment_id":"shp_738f79452695447188aacc702c5c79b5","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372154","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:22Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:22Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:22Z","weight":null},"tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z","usps_zone":4},{"batch_id":"batch_60ff54b46de440afa1045bf51f19f1b0","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_133e7577512511efb674ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:15Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1341896c512511efb5cd3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"90277"},"id":"shp_211059b119904cd29082fdeeb09d64aa","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:25Z","height":4,"id":"prcl_70e7ad23b92646d4b9841181f6acd69b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:25Z","date_advance":0,"id":"pl_10128271f8164b6e80be2163ea5e9a5d","integrated_form":"none","label_date":"2023-11-30T20:11:25Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e873cf3735f14343658f18435c17a20ab0.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a7813e425dd74def9d02270a600f782b","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b49da136deb94fb09f7ecc1d1b0d3525","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dfc51f2799aa4f8db0b12df5d736751c","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_547ff944565d4953b708e888971087e4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{},"zip":"90277"},"id":"shp_72a94cce76ff481ca6adb7a0725a5352","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:15Z","height":4,"id":"prcl_0da23d1509f14b69bb60cfa234698305","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:15Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:15Z","date_advance":0,"id":"pl_f4777c4fe8bc410caae4cc8ce0a0e5af","integrated_form":"none","label_date":"2024-08-02T23:15:15Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8c28c1d6a6d4849a1983d8846af8236c4.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:15Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2b0409ced9164fd6b5d9f882db170aaa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d9dc3935951744ef8e6e1ff755feaf5b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7cf179a7cef04d0a8b2532baa3297854","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1341896c512511efb5cd3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2b0409ced9164fd6b5d9f882db170aaa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_133e7577512511efb674ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:26Z","est_delivery_date":"2023-11-30T20:11:26Z","fees":[],"id":"trk_73aca0734e8047cb88b7b70e30ec38c2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzczYWNhMDczNGU4MDQ3Y2I4OGI3YjcwZTMwZWMzOGMy","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383467","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:26Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:26Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:26Z","weight":null},"tracking_code":"9400100105442287383467","updated_at":"2023-11-30T20:11:25Z","usps_zone":4},{"batch_id":"batch_f6ceea6097fa4a218c869ed706ef782c","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:16Z","est_delivery_date":"2024-08-02T23:15:16Z","fees":[],"id":"trk_7ebddea5fa194993bd008259af2ac7e6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzdlYmRkZWE1ZmExOTQ5OTNiZDAwODI1OWFmMmFjN2U2","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372147","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:16Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:16Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:16Z","weight":null},"tracking_code":"9400100110368070372147","updated_at":"2024-08-02T23:15:15Z","usps_zone":4},{"batch_id":"batch_646017200f3b411f9bd0c8563729d7c3","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fbfeec512511efb59b3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:22Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:12Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fed40e512511efb59d3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:22+00:00","verifications":{},"zip":"90277"},"id":"shp_87a5ea6c80604051b800e6230d5a6665","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:22Z","height":4,"id":"prcl_963d3953c4264816adb8c30b1a8180af","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:22Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:23Z","date_advance":0,"id":"pl_156b31df5ca6429db31d398fb2af42f1","integrated_form":"none","label_date":"2023-11-30T20:11:23Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8e0d4ce2b1022432fa547b085a309c788.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:23Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f79b9973f1034679abad38b816b78e9d","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eb1149acdea043388c3603ca92f53fe6","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_41326239b0904f10990984aa31ba6d1a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0afa5f0a62174682af1a922d52b7cb3f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:12+00:00","verifications":{},"zip":"90277"},"id":"shp_81a3f1c78b954b7b9fc9d6524cace132","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:12Z","height":4,"id":"prcl_a80f7c6dfc8645a78b20e59b54b43680","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:12Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:13Z","date_advance":0,"id":"pl_53d216395f5143f590454d40ffe8195d","integrated_form":"none","label_date":"2024-08-02T23:15:13Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8ef5f0bd732b04ff58019fb4d8bb12fcf.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:13Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_74c4aa582f544fa3a4ebc1ffb0792371","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2f3ad6fbd331458eb2120f3b916b9762","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_50325e458bcf43e3a1789ce5bedfa6f7","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fed40e512511efb59d3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:22+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:23Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:12+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_50325e458bcf43e3a1789ce5bedfa6f7","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fbfeec512511efb59b3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:23Z","est_delivery_date":"2023-11-30T20:11:23Z","fees":[],"id":"trk_2a2f276b3bc440e7aaaa10de86a39ba7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJhMmYyNzZiM2JjNDQwZTdhYWFhMTBkZTg2YTM5YmE3","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383443","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:23Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:23Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:23Z","weight":null},"tracking_code":"9400100105442287383443","updated_at":"2023-11-30T20:11:23Z","usps_zone":4}]}' + Package Service"},"created_at":"2024-08-02T23:15:13Z","est_delivery_date":"2024-08-02T23:15:13Z","fees":[],"id":"trk_07d04fad7dea485d80665076cab523df","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzA3ZDA0ZmFkN2RlYTQ4NWQ4MDY2NTA3NmNhYjUyM2Rm","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372123","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:13Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:13Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:13Z","weight":null},"tracking_code":"9400100110368070372123","updated_at":"2024-08-02T23:15:13Z","usps_zone":4}]}' headers: Cache-Control: - private, no-cache, no-store @@ -126,20 +124,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec81e7896122001b845f + - 4d57346d66ad688ff440b8c700376aaf X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.533228" + - "0.517993" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentBuy.yaml b/tests/cassettes/TestShipmentBuy.yaml index 34fa1a3..6e13235 100644 --- a/tests/cassettes/TestShipmentBuy.yaml +++ b/tests/cassettes/TestShipmentBuy.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe48af08fbc11ee863e3cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b25188f512511efb7bf3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:46Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:11:46Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:11:46Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_09b13ba2133c4af9a0666abfc18e60cb","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:11:46Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_5f96ac2c0d0c42c091282cd889f67592","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:11:46Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe769ed8fbc11eebed0ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:28Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:28Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:28Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_03bb5a9d1ea648aaae8a1d96819699bc","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:28Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_915556bf6b82407eadc3bd0e1c923d1d","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:28Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b295020512511efb7c03cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"94107"},"id":"shp_fe05ed3554d0486d96be739870fc1490","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:46Z","height":4,"id":"prcl_04fb78c56d40441f87a5e0272c005230","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:46Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b525fe44cf84e80bcd3b7fa34cdc7c3","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_942f964dfa7d45afbc97b51d88254042","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bc66635b93a14ef2bb6afd2e56f00bf7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f4792e33453640b6953ffa6a9eea018b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c96d0f2a504343858a3028e5e9eb01b7","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe769ed8fbc11eebed0ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"94107"},"id":"shp_fe84a2a4c4894499a19699a54767d08b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:28Z","height":4,"id":"prcl_d3dd0a1c015e46efa8e298314b2c2fdb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:28Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b24874174f0419889c93bd3b7cb607b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0b0af4451ba64ff7b86b680b2762dbd5","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b4d3c245023848fb9deb4d6a09348cb8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b295020512511efb7c03cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe48af08fbc11ee863e3cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b25188f512511efb7bf3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:46Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:28Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_fe05ed3554d0486d96be739870fc1490 + - /api/v2/shipments/shp_fe84a2a4c4894499a19699a54767d08b Pragma: - no-cache Referrer-Policy: @@ -53,32 +53,34 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec82e7896122001b851b + - 4d57346d66ad6890f440b8c700376b1f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.339628" + - "0.318228" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_942f964dfa7d45afbc97b51d88254042","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"}}' + body: '{"rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_b4d3c245023848fb9deb4d6a09348cb8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"}}' form: {} headers: Authorization: @@ -87,25 +89,25 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_fe05ed3554d0486d96be739870fc1490/buy + url: https://api.easypost.com/v2/shipments/shp_fe84a2a4c4894499a19699a54767d08b/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe48af08fbc11ee863e3cecef1b359e","mode":"test","name":"ELIZABETH + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b25188f512511efb7bf3cecef1b359e","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2023-11-30T20:11:46+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2023-11-30T20:11:46Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:11:46Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:11:46Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_09b13ba2133c4af9a0666abfc18e60cb","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:11:46Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_5f96ac2c0d0c42c091282cd889f67592","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:11:46Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe769ed8fbc11eebed0ac1f6bc53342","mode":"test","name":"Jack + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:15:28+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:15:28Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:28Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:28Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_03bb5a9d1ea648aaae8a1d96819699bc","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:28Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_915556bf6b82407eadc3bd0e1c923d1d","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:28Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b295020512511efb7c03cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"94107"},"id":"shp_fe05ed3554d0486d96be739870fc1490","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:46Z","height":4,"id":"prcl_04fb78c56d40441f87a5e0272c005230","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:46Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:47Z","date_advance":0,"id":"pl_49b5ce2a3a1143c197bb0ee98cd28241","integrated_form":"none","label_date":"2023-11-30T20:11:47Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e86bbe7858cfd946fb80c3fd694648691b.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:47Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b525fe44cf84e80bcd3b7fa34cdc7c3","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_942f964dfa7d45afbc97b51d88254042","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bc66635b93a14ef2bb6afd2e56f00bf7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f4792e33453640b6953ffa6a9eea018b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c96d0f2a504343858a3028e5e9eb01b7","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe769ed8fbc11eebed0ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"94107"},"id":"shp_fe84a2a4c4894499a19699a54767d08b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:28Z","height":4,"id":"prcl_d3dd0a1c015e46efa8e298314b2c2fdb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:28Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:29Z","date_advance":0,"id":"pl_f41a700b999f42b78d1012a2e4fed651","integrated_form":"none","label_date":"2024-08-02T23:15:29Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81a32f342b3304ec095757ab4a6815fbf.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:29Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b24874174f0419889c93bd3b7cb607b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0b0af4451ba64ff7b86b680b2762dbd5","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b4d3c245023848fb9deb4d6a09348cb8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b295020512511efb7c03cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_942f964dfa7d45afbc97b51d88254042","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:47Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe48af08fbc11ee863e3cecef1b359e","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b4d3c245023848fb9deb4d6a09348cb8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:29Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b25188f512511efb7bf3cecef1b359e","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2023-11-30T20:11:46+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:47Z","est_delivery_date":null,"fees":[],"id":"trk_0df2b7f9def64da9b6010b7001760df7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBkZjJiN2Y5ZGVmNjRkYTliNjAxMGI3MDAxNzYwZGY3","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383610","tracking_details":[],"updated_at":"2023-11-30T20:11:47Z","weight":null},"tracking_code":"9400100105442287383610","updated_at":"2023-11-30T20:11:47Z","usps_zone":4}' + N HARBOR DR","street2":"","updated_at":"2024-08-02T23:15:28+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:29Z","est_delivery_date":null,"fees":[],"id":"trk_da27cbafbd6b482eac96a23b1c9a9dd1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RhMjdjYmFmYmQ2YjQ4MmVhYzk2YTIzYjFjOWE5ZGQx","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372185","tracking_details":[],"updated_at":"2024-08-02T23:15:29Z","weight":null},"tracking_code":"9400100110368070372185","updated_at":"2024-08-02T23:15:29Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -126,20 +128,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec82e7896122001b8599 + - 4d57346d66ad6890f440b8c700376b5f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.971384" + - "0.884425" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentConvertLabel.yaml b/tests/cassettes/TestShipmentConvertLabel.yaml index c40f8e2..545b9ea 100644 --- a/tests/cassettes/TestShipmentConvertLabel.yaml +++ b/tests/cassettes/TestShipmentConvertLabel.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f472768fbc11ee8ad8ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1be9f072512511efb7ea3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:48Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f6fb018fbc11eebf9aac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:29Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1becab1e512511ef88b5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{},"zip":"90277"},"id":"shp_ceb56a3de725422496a7b928874caa2d","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:48Z","height":4,"id":"prcl_d1f2b891c4154a6ea831f8f2126b898e","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:48Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:49Z","date_advance":0,"id":"pl_00bdcb76151340d1b0ddf1aa2ffc99a6","integrated_form":"none","label_date":"2023-11-30T20:11:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e84b09745011b04599abd9535a4239f63c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:49Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_616469809d9f46008938f954bb536861","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_92fd4d7104814bc980bccf66a7609bf4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_152356cc25804d99ae1fe9406e63f051","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3d1de03c90f0474095803d0cd6f427d2","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5250ae8d0771412f9cc6a97f6a2b0d05","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f6fb018fbc11eebf9aac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{},"zip":"90277"},"id":"shp_7fb459c85d274a19a47fe2fadf266228","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:29Z","height":4,"id":"prcl_437bcdba90c348c8a00cfbd51a69ea08","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:29Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:30Z","date_advance":0,"id":"pl_95f314bd63c449c5a2daa29812b1c055","integrated_form":"none","label_date":"2024-08-02T23:15:30Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8943018d667eb4ecd978b03e2e0ec8bb3.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:30Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7de54c4bc5fa4efcba97ba8da0520c1e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b707daa91f5949418c9410ed14ef4b93","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_764b404139a54a53a988bfde3bd2c629","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1becab1e512511ef88b5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_152356cc25804d99ae1fe9406e63f051","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f472768fbc11ee8ad8ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b707daa91f5949418c9410ed14ef4b93","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:30Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1be9f072512511efb7ea3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:49Z","est_delivery_date":null,"fees":[],"id":"trk_60b162215ab34d7ebb268fc114d4b718","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYwYjE2MjIxNWFiMzRkN2ViYjI2OGZjMTE0ZDRiNzE4","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383634","tracking_details":[],"updated_at":"2023-11-30T20:11:49Z","weight":null},"tracking_code":"9400100105442287383634","updated_at":"2023-11-30T20:11:49Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:30Z","est_delivery_date":null,"fees":[],"id":"trk_3bb1c6fde7154b3a9bf337ea39b667dc","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiYjFjNmZkZTcxNTRiM2E5YmYzMzdlYTM5YjY2N2Rj","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372192","tracking_details":[],"updated_at":"2024-08-02T23:15:30Z","weight":null},"tracking_code":"9400100110368070372192","updated_at":"2024-08-02T23:15:30Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_ceb56a3de725422496a7b928874caa2d + - /api/v2/shipments/shp_7fb459c85d274a19a47fe2fadf266228 Pragma: - no-cache Referrer-Policy: @@ -53,56 +53,54 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec84e7896122001b86e6 + - 4d57346d66ad6891f440b8c700376c1c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.383683" + - "1.123730" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: file_format=ZPL + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_ceb56a3de725422496a7b928874caa2d/label + url: https://api.easypost.com/v2/shipments/shp_7fb459c85d274a19a47fe2fadf266228/label?file_format=ZPL method: GET response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f472768fbc11ee8ad8ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1be9f072512511efb7ea3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:48Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f6fb018fbc11eebf9aac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:29Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1becab1e512511ef88b5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{},"zip":"90277"},"id":"shp_ceb56a3de725422496a7b928874caa2d","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:48Z","height":4,"id":"prcl_d1f2b891c4154a6ea831f8f2126b898e","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:48Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:49Z","date_advance":0,"id":"pl_00bdcb76151340d1b0ddf1aa2ffc99a6","integrated_form":"none","label_date":"2023-11-30T20:11:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e84b09745011b04599abd9535a4239f63c.png","label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231130/f54d666bd4f7492d912104f6ca064589.zpl","object":"PostageLabel","updated_at":"2023-11-30T20:11:50Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_616469809d9f46008938f954bb536861","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_92fd4d7104814bc980bccf66a7609bf4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_152356cc25804d99ae1fe9406e63f051","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3d1de03c90f0474095803d0cd6f427d2","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5250ae8d0771412f9cc6a97f6a2b0d05","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f6fb018fbc11eebf9aac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{},"zip":"90277"},"id":"shp_7fb459c85d274a19a47fe2fadf266228","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:29Z","height":4,"id":"prcl_437bcdba90c348c8a00cfbd51a69ea08","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:29Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:30Z","date_advance":0,"id":"pl_95f314bd63c449c5a2daa29812b1c055","integrated_form":"none","label_date":"2024-08-02T23:15:30Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8943018d667eb4ecd978b03e2e0ec8bb3.png","label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20240802/2a0a0f7fcf4140fca1be76f83d277736.zpl","object":"PostageLabel","updated_at":"2024-08-02T23:15:31Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7de54c4bc5fa4efcba97ba8da0520c1e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b707daa91f5949418c9410ed14ef4b93","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_764b404139a54a53a988bfde3bd2c629","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1becab1e512511ef88b5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_152356cc25804d99ae1fe9406e63f051","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f472768fbc11ee8ad8ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b707daa91f5949418c9410ed14ef4b93","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:30Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1be9f072512511efb7ea3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:49Z","est_delivery_date":"2023-11-30T20:11:49Z","fees":[],"id":"trk_60b162215ab34d7ebb268fc114d4b718","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYwYjE2MjIxNWFiMzRkN2ViYjI2OGZjMTE0ZDRiNzE4","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383634","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:49Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:49Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:49Z","weight":null},"tracking_code":"9400100105442287383634","updated_at":"2023-11-30T20:11:49Z","usps_zone":4}' + Package Service"},"created_at":"2024-08-02T23:15:30Z","est_delivery_date":"2024-08-02T23:15:30Z","fees":[],"id":"trk_3bb1c6fde7154b3a9bf337ea39b667dc","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiYjFjNmZkZTcxNTRiM2E5YmYzMzdlYTM5YjY2N2Rj","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372192","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:30Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:30Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:30Z","weight":null},"tracking_code":"9400100110368070372192","updated_at":"2024-08-02T23:15:30Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -123,20 +121,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec85e7896122001b8884 + - 4d57346d66ad6892f440b8c700376cff X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.544757" + - "1.406918" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentCreate.yaml b/tests/cassettes/TestShipmentCreate.yaml index 7f3ee04..06788b8 100644 --- a/tests/cassettes/TestShipmentCreate.yaml +++ b/tests/cassettes/TestShipmentCreate.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2f0a2408fbc11ee8c44ac1f6bc539ae","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1d797ed2512511efa813ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:51Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:11:51Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:11:51Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_c188cd27c92546829c425c817c67970e","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:11:51Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_c9c9c3dd40e64d00af7901a2bc299757","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:11:51Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2f4550d8fbc11ee80ecac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:32Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:32Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:32Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_0a18a9ce51d3479eb8007ce6ecdeee00","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:32Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_53b70d2a2d5c4f4fa08183125a671a09","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:32Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1d7c0903512511efa814ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"94107"},"id":"shp_cd81933054334764a37178664ef570b3","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:51Z","height":4,"id":"prcl_0ff7ad40e2004794ab8a6fdf4482cf20","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:51Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3b2c2a1ccb164020addfaba47888affc","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_cd81933054334764a37178664ef570b3","updated_at":"2023-11-30T20:11:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a110ce0dbbe2458c9895d493bc83e90e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_cd81933054334764a37178664ef570b3","updated_at":"2023-11-30T20:11:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a7526e9cc99048f0930a4922129d3815","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_cd81933054334764a37178664ef570b3","updated_at":"2023-11-30T20:11:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_35a16d93215e41e2981a61afdf635817","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_cd81933054334764a37178664ef570b3","updated_at":"2023-11-30T20:11:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_89c5ac36a063463ab5a7d1b0590f9577","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_cd81933054334764a37178664ef570b3","updated_at":"2023-11-30T20:11:51Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2f4550d8fbc11ee80ecac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"94107"},"id":"shp_d15e2d83644243f88c73130cf90e970c","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:32Z","height":4,"id":"prcl_01dfc07421b54570bafce5664e385e9b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:32Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a339fb2ea70545a1a71123bf47120062","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_d15e2d83644243f88c73130cf90e970c","updated_at":"2024-08-02T23:15:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f7efe501a3784391ab7dce532b38158a","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_d15e2d83644243f88c73130cf90e970c","updated_at":"2024-08-02T23:15:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_80815a16dd7e4726a1c877a0797fee98","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_d15e2d83644243f88c73130cf90e970c","updated_at":"2024-08-02T23:15:32Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1d7c0903512511efa814ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2f0a2408fbc11ee8c44ac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1d797ed2512511efa813ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:51Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:32Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_cd81933054334764a37178664ef570b3 + - /api/v2/shipments/shp_d15e2d83644243f88c73130cf90e970c Pragma: - no-cache Referrer-Policy: @@ -60,7 +60,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec87e7896122001b8a12 + - 4d57346d66ad6894f440b8c700376e1f X-Frame-Options: - SAMEORIGIN X-Node: @@ -68,12 +68,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.318657" + - "0.271530" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateEmptyObjects.yaml b/tests/cassettes/TestShipmentCreateEmptyObjects.yaml index 80dae43..2f0e718 100644 --- a/tests/cassettes/TestShipmentCreateEmptyObjects.yaml +++ b/tests/cassettes/TestShipmentCreateEmptyObjects.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b336eabb8fbc11ee8110ac1f6bc53342","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1da99959512511efb8473cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:51Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b338f8c38fbc11ee8c78ac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:32Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1daccea2512511efb84a3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"94107"},"id":"shp_4d0ae4d5a6954dd5bdb1ae54127a0726","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:51Z","height":4,"id":"prcl_6344ea5d4bc64f7e8766ad2b0b7edcd2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:51Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_276d36dca9a84e2baebeea7d48a86d6f","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_4d0ae4d5a6954dd5bdb1ae54127a0726","updated_at":"2023-11-30T20:11:52Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ec7c27ba87654688a4818383772493a3","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_4d0ae4d5a6954dd5bdb1ae54127a0726","updated_at":"2023-11-30T20:11:52Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5d9382709172432cb6224ff9930bee15","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_4d0ae4d5a6954dd5bdb1ae54127a0726","updated_at":"2023-11-30T20:11:52Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a5dc7ece156b49cfaaa824eb0f989fce","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_4d0ae4d5a6954dd5bdb1ae54127a0726","updated_at":"2023-11-30T20:11:52Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c58dfdfb2dfd4d138db077955d679c01","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_4d0ae4d5a6954dd5bdb1ae54127a0726","updated_at":"2023-11-30T20:11:52Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b338f8c38fbc11ee8c78ac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"94107"},"id":"shp_ed45aed1f53d4e8a944768a7b93a38f9","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:32Z","height":4,"id":"prcl_fe4b2995ebb94b9a85e1375df445e9c8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:32Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fc13c2ede2d945c6a3c829e129d96872","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_ed45aed1f53d4e8a944768a7b93a38f9","updated_at":"2024-08-02T23:15:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06885257d54741659c2747fe886b2049","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ed45aed1f53d4e8a944768a7b93a38f9","updated_at":"2024-08-02T23:15:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_6e002a8e107d4426ae059d8a0b3a51a1","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_ed45aed1f53d4e8a944768a7b93a38f9","updated_at":"2024-08-02T23:15:33Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1daccea2512511efb84a3cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:51+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b336eabb8fbc11ee8110ac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1da99959512511efb8473cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:51+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:52Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:32+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:33Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_4d0ae4d5a6954dd5bdb1ae54127a0726 + - /api/v2/shipments/shp_ed45aed1f53d4e8a944768a7b93a38f9 Pragma: - no-cache Referrer-Policy: @@ -54,7 +54,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec87e7896122001b8a8c + - 4d57346d66ad6894f440b8c700376e54 X-Frame-Options: - SAMEORIGIN X-Node: @@ -62,12 +62,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.609950" + - "0.550831" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml b/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml index 09d89d4..032fed4 100644 --- a/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml +++ b/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b3ae65d98fbc11ee815aac1f6bc53342","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e049392512511efa83aac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:52+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:52Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b3b0f19f8fbc11ee8ffaac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:33Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e06d291512511ef8917ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:52+00:00","verifications":{},"zip":"94107"},"id":"shp_e5f409a54f4f41988ab9be66480a8a0b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:52Z","height":4,"id":"prcl_298a42bb64cd421db4fb4d995864e67a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:52Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bbf0fefdd67149a99354d390a5f54b8d","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_e5f409a54f4f41988ab9be66480a8a0b","updated_at":"2023-11-30T20:11:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1db37a480a554ea08a6fd64cd0b98486","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_e5f409a54f4f41988ab9be66480a8a0b","updated_at":"2023-11-30T20:11:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_537b69f9a3b14f27bb058431dd22774d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_e5f409a54f4f41988ab9be66480a8a0b","updated_at":"2023-11-30T20:11:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e5ce17f77ff94c2aa29e15b7294edc8d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_e5f409a54f4f41988ab9be66480a8a0b","updated_at":"2023-11-30T20:11:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f822012531b948a491bc32605a4e3dd5","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_e5f409a54f4f41988ab9be66480a8a0b","updated_at":"2023-11-30T20:11:53Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b3b0f19f8fbc11ee8ffaac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"94107"},"id":"shp_fced9bbe96e7496db3d551ae9081b1e4","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:33Z","height":4,"id":"prcl_5443174f90434755a5bc010b612c055b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:33Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7d717e8b43024cd5922055aceff37f92","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_fced9bbe96e7496db3d551ae9081b1e4","updated_at":"2024-08-02T23:15:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e31ca089c6294d868da99f6243e7e781","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_fced9bbe96e7496db3d551ae9081b1e4","updated_at":"2024-08-02T23:15:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e94269c032df4cfe87bd4f52de8ad17a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fced9bbe96e7496db3d551ae9081b1e4","updated_at":"2024-08-02T23:15:33Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e06d291512511ef8917ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:52+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","tax_identifiers":[{"entity":"SENDER","issuing_country":"GB","tax_id":"HIDDEN","tax_id_type":"IOSS"}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:52+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b3ae65d98fbc11ee815aac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","tax_identifiers":[{"entity":"SENDER","issuing_country":"GB","tax_id":"HIDDEN","tax_id_type":"IOSS"}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e049392512511efa83aac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:52+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:53Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:33Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_e5f409a54f4f41988ab9be66480a8a0b + - /api/v2/shipments/shp_fced9bbe96e7496db3d551ae9081b1e4 Pragma: - no-cache Referrer-Policy: @@ -54,20 +54,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec88e7896122001b8b3f + - 4d57346d66ad6895f440b8c700376ecc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.585984" + - "0.632423" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateWithIds.yaml b/tests/cassettes/TestShipmentCreateWithIds.yaml index c3ff50a..e93247d 100644 --- a/tests/cassettes/TestShipmentCreateWithIds.yaml +++ b/tests/cassettes/TestShipmentCreateWithIds.yaml @@ -16,9 +16,9 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b42a99c98fbc11ee8d06ac1f6bc539ae","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e6c9565512511efa84aac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:53+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store @@ -27,7 +27,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_b42a99c98fbc11ee8d06ac1f6bc539ae + - /api/v2/addresses/adr_1e6c9565512511efa84aac1f6bc539ae Pragma: - no-cache Referrer-Policy: @@ -41,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec89e7896122001b8c10 + - 4d57346d66ad6895f440b8c700376f58 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.041394" + - "0.035600" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -74,9 +74,9 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b44548368fbc11ee89273cecef1b359e","mode":"test","name":"Elizabeth + body: '{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e799be8512511efb8743cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:53+00:00","verifications":{},"zip":"90277"}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"90277"}' headers: Cache-Control: - private, no-cache, no-store @@ -85,7 +85,7 @@ interactions: Expires: - "0" Location: - - /api/v2/addresses/adr_b44548368fbc11ee89273cecef1b359e + - /api/v2/addresses/adr_1e799be8512511efb8743cecef1b359e Pragma: - no-cache Referrer-Policy: @@ -94,27 +94,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec89e7896122001b8c49 + - 4d57346d66ad6895f440b8c700376f6a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.039947" + - "0.037181" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -133,7 +131,7 @@ interactions: url: https://api.easypost.com/v2/parcels method: POST response: - body: '{"created_at":"2023-11-30T20:11:53Z","height":4,"id":"prcl_5853b3220f1241229634aa4d70fec43a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:53Z","weight":15.4,"width":8}' + body: '{"created_at":"2024-08-02T23:15:33Z","height":4,"id":"prcl_34f76fb0c7d64c16814c9e5fe8cfc902","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:33Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store @@ -142,7 +140,7 @@ interactions: Expires: - "0" Location: - - /api/v2/parcels/prcl_5853b3220f1241229634aa4d70fec43a + - /api/v2/parcels/prcl_34f76fb0c7d64c16814c9e5fe8cfc902 Pragma: - no-cache Referrer-Policy: @@ -156,27 +154,27 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec89e7896122001b8c70 + - 4d57346d66ad6895f440b8c700376f7f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.045335" + - "0.031717" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipment":{"from_address":{"id":"adr_b42a99c98fbc11ee8d06ac1f6bc539ae"},"parcel":{"id":"prcl_5853b3220f1241229634aa4d70fec43a"},"to_address":{"id":"adr_b44548368fbc11ee89273cecef1b359e"}}}' + body: '{"shipment":{"from_address":{"id":"adr_1e6c9565512511efa84aac1f6bc539ae"},"parcel":{"id":"prcl_34f76fb0c7d64c16814c9e5fe8cfc902"},"to_address":{"id":"adr_1e799be8512511efb8743cecef1b359e"}}}' form: {} headers: Authorization: @@ -189,19 +187,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b44548368fbc11ee89273cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e799be8512511efb8743cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:53+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:53Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b42a99c98fbc11ee8d06ac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:34Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e6c9565512511efa84aac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:53+00:00","verifications":{},"zip":"94107"},"id":"shp_1d2cac943b9a41b79300f5751b0c1bbb","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:53Z","height":4,"id":"prcl_5853b3220f1241229634aa4d70fec43a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:53Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_914f5716acb7433d81834090c9de99a2","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_1d2cac943b9a41b79300f5751b0c1bbb","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3e0ce0e0066148efb317d981ffb3abbe","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_1d2cac943b9a41b79300f5751b0c1bbb","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_62ba2789e0424c21b8691fdd6f5cd9cd","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_1d2cac943b9a41b79300f5751b0c1bbb","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_508b7628adaa407dbc9eddd21f6f26a4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_1d2cac943b9a41b79300f5751b0c1bbb","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ffeccf4a2b994f3db08593d3e81eb6b4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_1d2cac943b9a41b79300f5751b0c1bbb","updated_at":"2023-11-30T20:11:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b42a99c98fbc11ee8d06ac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"94107"},"id":"shp_e395770df82b47cb83b4ff030bf46011","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:33Z","height":4,"id":"prcl_34f76fb0c7d64c16814c9e5fe8cfc902","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:33Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4f5699e8e1a14bffbdfc2d4930848a98","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_e395770df82b47cb83b4ff030bf46011","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9e7a1cfb013144a1b0aca942d6270561","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_e395770df82b47cb83b4ff030bf46011","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a81e8e9ab05246689e0f3344ea0c6cf0","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_e395770df82b47cb83b4ff030bf46011","updated_at":"2024-08-02T23:15:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e6c9565512511efa84aac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:53+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b44548368fbc11ee89273cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:33+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1e799be8512511efb8743cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:53+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:54Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:33+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:34Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -210,7 +208,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_1d2cac943b9a41b79300f5751b0c1bbb + - /api/v2/shipments/shp_e395770df82b47cb83b4ff030bf46011 Pragma: - no-cache Referrer-Policy: @@ -219,25 +217,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec89e7896122001b8c8c + - 4d57346d66ad6895f440b8c700376f8f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.551502" + - "0.527954" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentGenerateForm.yaml b/tests/cassettes/TestShipmentGenerateForm.yaml index 0432a47..6876afd 100644 --- a/tests/cassettes/TestShipmentGenerateForm.yaml +++ b/tests/cassettes/TestShipmentGenerateForm.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:54Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:34Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:54Z","height":4,"id":"prcl_8abf52931bc145aa992d7e871af547eb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:54Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:55Z","date_advance":0,"id":"pl_ca2193dfeb41476683ac7ce2eda289bd","integrated_form":"none","label_date":"2023-11-30T20:11:55Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8270f5cfcb8f242ce91a08009b509bab1.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:55Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b689690ac4954391921e2789fec485aa","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1aa05cd416d145589bd63eb7ace812d0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6239f28c3e6a43efbb0975200fb76ebc","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fd31f23e98674aa482b45d82747d5473","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:34Z","height":4,"id":"prcl_d0a62bed75ae438284400a18d0cda117","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:35Z","date_advance":0,"id":"pl_88a0a1873a804c7986c636e16cda4473","integrated_form":"none","label_date":"2024-08-02T23:15:35Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81639462c077546899f4a26faa924b3a7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:35Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_651d84a2d84246978cf06f44414f1dfc","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_455cb83af43b4d538d4b55b637ef5f36","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:55Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:35Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:11:55Z","est_delivery_date":null,"fees":[],"id":"trk_f234e0bfac884ba9b274124a580453b8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YyMzRlMGJmYWM4ODRiYTliMjc0MTI0YTU4MDQ1M2I4","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383672","tracking_details":[],"updated_at":"2023-11-30T20:11:55Z","weight":null},"tracking_code":"9400100105442287383672","updated_at":"2023-11-30T20:11:55Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:35Z","est_delivery_date":null,"fees":[],"id":"trk_5d4c5abf898044e59136394fe0c1f450","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzVkNGM1YWJmODk4MDQ0ZTU5MTM2Mzk0ZmUwYzFmNDUw","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372208","tracking_details":[],"updated_at":"2024-08-02T23:15:35Z","weight":null},"tracking_code":"9400100110368070372208","updated_at":"2024-08-02T23:15:35Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_d24ce11d5b5840bbac2d9aff06d0564f + - /api/v2/shipments/shp_842d83c73e4b46f4a84e26e87fdb0f58 Pragma: - no-cache Referrer-Policy: @@ -48,27 +48,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec8ae7896122001b8d45 + - 4d57346d66ad6896f440b8c700377001 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.020627" + - "0.977788" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -84,27 +82,27 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_d24ce11d5b5840bbac2d9aff06d0564f/forms + url: https://api.easypost.com/v2/shipments/shp_842d83c73e4b46f4a84e26e87fdb0f58/forms method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:54Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2023-11-30T20:11:56Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231130/38d7b888958f410faf251de190d7cd49.pdf","id":"form_58289a8f4fcc4a8c86aeb6f1fe4854fd","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2023-11-30T20:11:56Z"}],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:34Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2024-08-02T23:15:35Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20240802/f563350753bd4da5af1e527c4d79c09c.pdf","id":"form_71b35165d3294cc0bc44ab019b4ee6ce","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2024-08-02T23:15:36Z"}],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:54Z","height":4,"id":"prcl_8abf52931bc145aa992d7e871af547eb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:54Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:55Z","date_advance":0,"id":"pl_ca2193dfeb41476683ac7ce2eda289bd","integrated_form":"none","label_date":"2023-11-30T20:11:55Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8270f5cfcb8f242ce91a08009b509bab1.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:55Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b689690ac4954391921e2789fec485aa","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1aa05cd416d145589bd63eb7ace812d0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6239f28c3e6a43efbb0975200fb76ebc","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fd31f23e98674aa482b45d82747d5473","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:34Z","height":4,"id":"prcl_d0a62bed75ae438284400a18d0cda117","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:35Z","date_advance":0,"id":"pl_88a0a1873a804c7986c636e16cda4473","integrated_form":"none","label_date":"2024-08-02T23:15:35Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81639462c077546899f4a26faa924b3a7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:35Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_651d84a2d84246978cf06f44414f1dfc","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_455cb83af43b4d538d4b55b637ef5f36","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:55Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:35Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:55Z","est_delivery_date":"2023-11-30T20:11:55Z","fees":[],"id":"trk_f234e0bfac884ba9b274124a580453b8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YyMzRlMGJmYWM4ODRiYTliMjc0MTI0YTU4MDQ1M2I4","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383672","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:55Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:55Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:55Z","weight":null},"tracking_code":"9400100105442287383672","updated_at":"2023-11-30T20:11:55Z","usps_zone":4}' + Package Service"},"created_at":"2024-08-02T23:15:35Z","est_delivery_date":"2024-08-02T23:15:35Z","fees":[],"id":"trk_5d4c5abf898044e59136394fe0c1f450","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzVkNGM1YWJmODk4MDQ0ZTU5MTM2Mzk0ZmUwYzFmNDUw","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372208","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:35Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:35Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:35Z","weight":null},"tracking_code":"9400100110368070372208","updated_at":"2024-08-02T23:15:35Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -113,7 +111,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_d24ce11d5b5840bbac2d9aff06d0564f/forms/return_packing_slip + - /api/v2/shipments/shp_842d83c73e4b46f4a84e26e87fdb0f58/forms/return_packing_slip Pragma: - no-cache Referrer-Policy: @@ -122,27 +120,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec8be7896122001b8e81 + - 4d57346d66ad6897f440b8c7003770b5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.720223" + - "0.552571" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -159,27 +155,27 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_d24ce11d5b5840bbac2d9aff06d0564f/forms + url: https://api.easypost.com/v2/shipments/shp_842d83c73e4b46f4a84e26e87fdb0f58/forms method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:54Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2023-11-30T20:11:56Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231130/38d7b888958f410faf251de190d7cd49.pdf","id":"form_58289a8f4fcc4a8c86aeb6f1fe4854fd","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2023-11-30T20:11:56Z"}],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:34Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2024-08-02T23:15:35Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20240802/f563350753bd4da5af1e527c4d79c09c.pdf","id":"form_71b35165d3294cc0bc44ab019b4ee6ce","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2024-08-02T23:15:36Z"}],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:54Z","height":4,"id":"prcl_8abf52931bc145aa992d7e871af547eb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:54Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:55Z","date_advance":0,"id":"pl_ca2193dfeb41476683ac7ce2eda289bd","integrated_form":"none","label_date":"2023-11-30T20:11:55Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8270f5cfcb8f242ce91a08009b509bab1.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:55Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b689690ac4954391921e2789fec485aa","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1aa05cd416d145589bd63eb7ace812d0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6239f28c3e6a43efbb0975200fb76ebc","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fd31f23e98674aa482b45d82747d5473","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:34Z","height":4,"id":"prcl_d0a62bed75ae438284400a18d0cda117","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:35Z","date_advance":0,"id":"pl_88a0a1873a804c7986c636e16cda4473","integrated_form":"none","label_date":"2024-08-02T23:15:35Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81639462c077546899f4a26faa924b3a7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:35Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_651d84a2d84246978cf06f44414f1dfc","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_455cb83af43b4d538d4b55b637ef5f36","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:55Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:35Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:55Z","est_delivery_date":"2023-11-30T20:11:55Z","fees":[],"id":"trk_f234e0bfac884ba9b274124a580453b8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YyMzRlMGJmYWM4ODRiYTliMjc0MTI0YTU4MDQ1M2I4","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383672","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:55Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:55Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:55Z","weight":null},"tracking_code":"9400100105442287383672","updated_at":"2023-11-30T20:11:55Z","usps_zone":4}' + Package Service"},"created_at":"2024-08-02T23:15:35Z","est_delivery_date":"2024-08-02T23:15:35Z","fees":[],"id":"trk_5d4c5abf898044e59136394fe0c1f450","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzVkNGM1YWJmODk4MDQ0ZTU5MTM2Mzk0ZmUwYzFmNDUw","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372208","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:35Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:35Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:35Z","weight":null},"tracking_code":"9400100110368070372208","updated_at":"2024-08-02T23:15:35Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -188,7 +184,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_d24ce11d5b5840bbac2d9aff06d0564f/forms/return_packing_slip + - /api/v2/shipments/shp_842d83c73e4b46f4a84e26e87fdb0f58/forms/return_packing_slip Pragma: - no-cache Referrer-Policy: @@ -202,20 +198,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec8ce7896122001b8f4b + - 4d57346d66ad6898f440b8c70037712a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.261669" + - "0.163547" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentGetShipmentEstimatedDeliveryDate.yaml b/tests/cassettes/TestShipmentGetShipmentEstimatedDeliveryDate.yaml index 8af97d6..8f1539c 100644 --- a/tests/cassettes/TestShipmentGetShipmentEstimatedDeliveryDate.yaml +++ b/tests/cassettes/TestShipmentGetShipmentEstimatedDeliveryDate.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-12T19:41:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_c637342c408611ef87f33cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:31:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_51f56550512711efadf03cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-12T19:41:46+00:00","verifications":{},"zip":"90277"},"created_at":"2024-07-12T19:41:46Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-12T19:41:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_c63a4efb408611efb412ac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:31:19+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:31:19Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:31:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_51f7eef7512711ef9e53ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-12T19:41:46+00:00","verifications":{},"zip":"94107"},"id":"shp_5978035d160544d3983a9835d42a4ced","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-12T19:41:46Z","height":4,"id":"prcl_f0d7044d20d547b0a91a58fbce684a1b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-12T19:41:46Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_db43749a8e114a72b0408297c16d7149","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a21ffd7919c04804b2649c55b81e8cbd","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8149f1a28f424582acfb11b935d15764","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"First","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_db823072aca84a7981bdca2d077ca02b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"ParcelSelect","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ce7738c350fa427aa6f6c12c3ca95eef","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-12T19:41:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_c63a4efb408611efb412ac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:31:19+00:00","verifications":{},"zip":"94107"},"id":"shp_ee31a941203d4914ae485f1390553dc8","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:31:19Z","height":4,"id":"prcl_7404e30d22464b26a39da335912c9948","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:31:19Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_144307dd3c8647e39141c2a615bc6e97","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_ee31a941203d4914ae485f1390553dc8","updated_at":"2024-08-02T23:31:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_44c5fa95b2654ca2aded4345dcbb818c","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_ee31a941203d4914ae485f1390553dc8","updated_at":"2024-08-02T23:31:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c874ed59664d4579a5fcc7cfeaa51ce9","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ee31a941203d4914ae485f1390553dc8","updated_at":"2024-08-02T23:31:19Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:31:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_51f7eef7512711ef9e53ac1f6bc539ae","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-12T19:41:46+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-12T19:41:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_c637342c408611ef87f33cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:31:19+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:31:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_51f56550512711efadf03cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-12T19:41:46+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-07-12T19:41:47Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:31:19+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:31:19Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_5978035d160544d3983a9835d42a4ced + - /api/v2/shipments/shp_ee31a941203d4914ae485f1390553dc8 Pragma: - no-cache Referrer-Policy: @@ -54,39 +54,37 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d02331cd669186faf021797a00135240 + - 4d57346b66ad6c47f43f29f00039a986 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.606831" + - "0.690355" X-Version-Label: - - easypost-202407121702-a82cfb9ac3-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: planned_ship_date=2024-07-17 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_5978035d160544d3983a9835d42a4ced/smartrate/delivery_date + url: https://api.easypost.com/v2/shipments/shp_ee31a941203d4914ae485f1390553dc8/smartrate/delivery_date?planned_ship_date=2024-08-14 method: GET response: - body: '{"rates":[{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":8},"easypost_estimated_delivery_date":"2024-07-19","planned_ship_date":"2024-07-17"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_db43749a8e114a72b0408297c16d7149","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":9},"easypost_estimated_delivery_date":"2024-07-19","planned_ship_date":"2024-07-17"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a21ffd7919c04804b2649c55b81e8cbd","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":9},"easypost_estimated_delivery_date":"2024-07-19","planned_ship_date":"2024-07-17"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8149f1a28f424582acfb11b935d15764","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"First","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":5,"percentile_90":5,"percentile_95":5,"percentile_97":6,"percentile_99":9},"easypost_estimated_delivery_date":"2024-07-19","planned_ship_date":"2024-07-17"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_db823072aca84a7981bdca2d077ca02b","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"ParcelSelect","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-07-18","planned_ship_date":"2024-07-17"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-12T19:41:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ce7738c350fa427aa6f6c12c3ca95eef","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_5978035d160544d3983a9835d42a4ced","updated_at":"2024-07-12T19:41:47Z"}}]}' + body: '{"rates":[{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":5,"percentile_99":6},"easypost_estimated_delivery_date":"2024-08-16","planned_ship_date":"2024-08-14"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_144307dd3c8647e39141c2a615bc6e97","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_ee31a941203d4914ae485f1390553dc8","updated_at":"2024-08-02T23:31:19Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":5,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-08-17","planned_ship_date":"2024-08-14"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_44c5fa95b2654ca2aded4345dcbb818c","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_ee31a941203d4914ae485f1390553dc8","updated_at":"2024-08-02T23:31:19Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":3,"percentile_90":5,"percentile_95":5,"percentile_97":5,"percentile_99":7},"easypost_estimated_delivery_date":"2024-08-17","planned_ship_date":"2024-08-14"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c874ed59664d4579a5fcc7cfeaa51ce9","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_ee31a941203d4914ae485f1390553dc8","updated_at":"2024-08-02T23:31:19Z"}}]}' headers: Cache-Control: - private, no-cache, no-store @@ -109,20 +107,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - d02331cd669186fbf021797a001352c8 + - 4d57346b66ad6c47f43f29f00039aa3c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.126010" + - "0.120516" X-Version-Label: - - easypost-202407121702-a82cfb9ac3-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml b/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml index 03641d2..7411987 100644 --- a/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml +++ b/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b765aa9c8fbc11ee8b043cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_206b7d3d512511efb966ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:58+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:11:58Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b768131e8fbc11ee8effac1f6bc539ae","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:37+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:37Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_206e09ea512511efb967ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:58+00:00","verifications":{},"zip":"94107"},"id":"shp_df96892620e749aca3181da3f8f55ef0","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:58Z","height":4,"id":"prcl_846ff929f22f4d84b3c78f6f9861c22b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:58Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bfb2919c29e940cda6751b61ceaf14b9","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","updated_at":"2023-11-30T20:11:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_c8a67ceab4a742d79486242f4c8f6217","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","updated_at":"2023-11-30T20:11:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_417dfbb6ddf14566bac865347af55323","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","updated_at":"2023-11-30T20:11:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_12de358fa72d42f2a896ae585c763503","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","updated_at":"2023-11-30T20:11:59Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ccd1bc93cee24e018f7eee5f99e722c8","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","updated_at":"2023-11-30T20:11:59Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b768131e8fbc11ee8effac1f6bc539ae","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:37+00:00","verifications":{},"zip":"94107"},"id":"shp_7694431e647f442dbf7b3c424d39dbe6","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:37Z","height":4,"id":"prcl_c91a4fd7aef642ba84c604a0e2361728","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:37Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3c975e1cc11d4039907b4d9d3a3af4c0","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","updated_at":"2024-08-02T23:15:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e70de79fb02d474ba82042ef23c6dc9d","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","updated_at":"2024-08-02T23:15:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0f57cf6e5018418ba07ff78c804b625d","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","updated_at":"2024-08-02T23:15:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_206e09ea512511efb967ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:58+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b765aa9c8fbc11ee8b043cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:37+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_206b7d3d512511efb966ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:58+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:11:59Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:37+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:37Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_df96892620e749aca3181da3f8f55ef0 + - /api/v2/shipments/shp_7694431e647f442dbf7b3c424d39dbe6 Pragma: - no-cache Referrer-Policy: @@ -54,20 +54,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec8ee7896122001b912d + - 4d57346d66ad6899f440b8c7003771e5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.726891" + - "0.541250" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -81,10 +81,63 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_df96892620e749aca3181da3f8f55ef0/smartrate + url: https://api.easypost.com/v2/shipments/shp_7694431e647f442dbf7b3c424d39dbe6/smartrate + method: GET + response: + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3c975e1cc11d4039907b4d9d3a3af4c0","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":2,"percentile_97":3,"percentile_99":4},"updated_at":"2024-08-02T23:15:37Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e70de79fb02d474ba82042ef23c6dc9d","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2024-08-02T23:15:37Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0f57cf6e5018418ba07ff78c804b625d","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":5},"updated_at":"2024-08-02T23:15:37Z"}]}' + headers: + Cache-Control: + - private, no-cache, no-store + Content-Type: + - application/json; charset=utf-8 + Expires: + - "0" + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Backend: + - easypost + X-Canary: + - direct + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Ep-Request-Uuid: + - 4d57346d66ad6899f440b8c70037725f + X-Frame-Options: + - SAMEORIGIN + X-Node: + - bigweb43nuq + X-Permitted-Cross-Domain-Policies: + - none + X-Proxied: + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 + X-Runtime: + - "0.101328" + X-Version-Label: + - easypost-202408021936-66687f8918-master + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Authorization: + - REDACTED + User-Agent: + - REDACTED + url: https://api.easypost.com/v2/shipments/shp_7694431e647f442dbf7b3c424d39dbe6/smartrate method: GET response: - body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bfb2919c29e940cda6751b61ceaf14b9","list_currency":"USD","list_rate":31.25,"mode":"test","object":"Rate","rate":31.25,"retail_currency":"USD","retail_rate":35.8,"service":"Express","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":5},"updated_at":"2023-11-30T20:11:59Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_c8a67ceab4a742d79486242f4c8f6217","list_currency":"USD","list_rate":8.24,"mode":"test","object":"Rate","rate":6.95,"retail_currency":"USD","retail_rate":10.2,"service":"Priority","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2023-11-30T20:11:59Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_417dfbb6ddf14566bac865347af55323","list_currency":"USD","list_rate":6.07,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8,"service":"GroundAdvantage","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":9},"updated_at":"2023-11-30T20:11:59Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_12de358fa72d42f2a896ae585c763503","list_currency":"USD","list_rate":6.07,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8,"service":"First","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":9},"updated_at":"2023-11-30T20:11:59Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ccd1bc93cee24e018f7eee5f99e722c8","list_currency":"USD","list_rate":6.07,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8,"service":"ParcelSelect","shipment_id":"shp_df96892620e749aca3181da3f8f55ef0","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":9},"updated_at":"2023-11-30T20:11:59Z"}]}' + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3c975e1cc11d4039907b4d9d3a3af4c0","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":2,"percentile_97":3,"percentile_99":4},"updated_at":"2024-08-02T23:15:37Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e70de79fb02d474ba82042ef23c6dc9d","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2024-08-02T23:15:37Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0f57cf6e5018418ba07ff78c804b625d","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":5},"updated_at":"2024-08-02T23:15:37Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -105,20 +158,71 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec8fe7896122001b920f + - 4d57346d66ad6899f440b8c70037727c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb38nuq + X-Permitted-Cross-Domain-Policies: + - none + X-Proxied: + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 + X-Runtime: + - "0.133491" + X-Version-Label: + - easypost-202408021936-66687f8918-master + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Authorization: + - REDACTED + User-Agent: + - REDACTED + url: https://api.easypost.com/v2/shipments/shp_7694431e647f442dbf7b3c424d39dbe6/smartrate + method: GET + response: + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3c975e1cc11d4039907b4d9d3a3af4c0","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":2,"percentile_97":3,"percentile_99":4},"updated_at":"2024-08-02T23:15:37Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e70de79fb02d474ba82042ef23c6dc9d","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2024-08-02T23:15:37Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0f57cf6e5018418ba07ff78c804b625d","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_7694431e647f442dbf7b3c424d39dbe6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":5},"updated_at":"2024-08-02T23:15:37Z"}]}' + headers: + Cache-Control: + - private, no-cache, no-store + Content-Type: + - application/json; charset=utf-8 + Expires: + - "0" + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Backend: + - easypost + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Ep-Request-Uuid: + - 4d57346d66ad689af440b8c7003772ac + X-Frame-Options: + - SAMEORIGIN + X-Node: + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.112879" + - "0.088038" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentInsure.yaml b/tests/cassettes/TestShipmentInsure.yaml index 1f48db1..4dde03b 100644 --- a/tests/cassettes/TestShipmentInsure.yaml +++ b/tests/cassettes/TestShipmentInsure.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"insurance":"0","parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"insurance":"0","parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80a0e818fbc11ee8f61ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_527f489d512711ef8045ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:12:00+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:59Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80cc27f8fbc11ee83f8ac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:31:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:31:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52812d4a512711efae293cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:59+00:00","verifications":{},"zip":"90277"},"id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:59Z","height":4,"id":"prcl_b0487063e54c47b3bf66d9684b8b818a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:12:00Z","date_advance":0,"id":"pl_5451c0f8d03549bfb5f347b1127b4d03","integrated_form":"none","label_date":"2023-11-30T20:12:00Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8fcbb7ef85a854a22a82167ab2493f321.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:12:00Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_04b559d310a24cbb96de2c074e0a1dcb","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ad1df9033d144a4bb1c4d60fbd7c3cba","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6401f35a2e8a41f092627b688fe16564","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_246eee933167487ab0a479dc5674bece","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1bf47eb6b89742ad956fb5e52a21deb8","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80cc27f8fbc11ee83f8ac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:31:20+00:00","verifications":{},"zip":"90277"},"id":"shp_dfd395dfe462403b96ad3399dc2c5732","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:31:20Z","height":4,"id":"prcl_9df126b36b774470a2cd00211ea67522","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:31:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:31:20Z","date_advance":0,"id":"pl_48bd8474e1ff426794cda8e6099c0d38","integrated_form":"none","label_date":"2024-08-02T23:31:20Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8d05fdbf02fed4f1385ecdd4bdee7a51d.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:31:20Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b7ccbf05a15440999cf84eaff365ca12","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5bf3c63a5d344a4db4e74171e64b1172","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_84675ec1477a490bbca8bb0d326c19fa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52812d4a512711efae293cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:59+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_246eee933167487ab0a479dc5674bece","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80a0e818fbc11ee8f61ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:31:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_84675ec1477a490bbca8bb0d326c19fa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_527f489d512711ef8045ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:12:00+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:12:00Z","est_delivery_date":null,"fees":[],"id":"trk_b3f35c9fd8fd434491c9ff733ae2db6a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IzZjM1YzlmZDhmZDQzNDQ5MWM5ZmY3MzNhZTJkYjZh","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383757","tracking_details":[],"updated_at":"2023-11-30T20:12:00Z","weight":null},"tracking_code":"9400100105442287383757","updated_at":"2023-11-30T20:12:00Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:31:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:31:21Z","est_delivery_date":null,"fees":[],"id":"trk_bef2cee9cbe94bf095bd86b7285cc8d2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JlZjJjZWU5Y2JlOTRiZjA5NWJkODZiNzI4NWNjOGQy","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070375155","tracking_details":[],"updated_at":"2024-08-02T23:31:21Z","weight":null},"tracking_code":"9400100110368070375155","updated_at":"2024-08-02T23:31:21Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_2868bf41a0fd452bb54dabfa9ddb0752 + - /api/v2/shipments/shp_dfd395dfe462403b96ad3399dc2c5732 Pragma: - no-cache Referrer-Policy: @@ -48,65 +48,61 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec8fe7896122001b9258 + - 4d57346b66ad6c48f43f29f00039aa6d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.077400" + - "1.016454" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: amount=100 - form: - amount: - - "100" + body: '{"amount":"100"}' + form: {} headers: Authorization: - REDACTED Content-Type: - - application/x-www-form-urlencoded + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_2868bf41a0fd452bb54dabfa9ddb0752/insure + url: https://api.easypost.com/v2/shipments/shp_dfd395dfe462403b96ad3399dc2c5732/insure method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80a0e818fbc11ee8f61ac1f6bc539ae","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_527f489d512711ef8045ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:00+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:59Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80cc27f8fbc11ee83f8ac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:31:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:31:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52812d4a512711efae293cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:59+00:00","verifications":{},"zip":"90277"},"id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","insurance":"100.00","is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:59Z","height":4,"id":"prcl_b0487063e54c47b3bf66d9684b8b818a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:12:00Z","date_advance":0,"id":"pl_5451c0f8d03549bfb5f347b1127b4d03","integrated_form":"none","label_date":"2023-11-30T20:12:00Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8fcbb7ef85a854a22a82167ab2493f321.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:12:00Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_04b559d310a24cbb96de2c074e0a1dcb","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ad1df9033d144a4bb1c4d60fbd7c3cba","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6401f35a2e8a41f092627b688fe16564","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_246eee933167487ab0a479dc5674bece","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1bf47eb6b89742ad956fb5e52a21deb8","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80cc27f8fbc11ee83f8ac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:31:20+00:00","verifications":{},"zip":"90277"},"id":"shp_dfd395dfe462403b96ad3399dc2c5732","insurance":"100.00","is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:31:20Z","height":4,"id":"prcl_9df126b36b774470a2cd00211ea67522","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:31:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:31:20Z","date_advance":0,"id":"pl_48bd8474e1ff426794cda8e6099c0d38","integrated_form":"none","label_date":"2024-08-02T23:31:20Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8d05fdbf02fed4f1385ecdd4bdee7a51d.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:31:20Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b7ccbf05a15440999cf84eaff365ca12","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5bf3c63a5d344a4db4e74171e64b1172","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_84675ec1477a490bbca8bb0d326c19fa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52812d4a512711efae293cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:59+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_246eee933167487ab0a479dc5674bece","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80a0e818fbc11ee8f61ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:31:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:31:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_84675ec1477a490bbca8bb0d326c19fa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","updated_at":"2024-08-02T23:31:20Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:31:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_527f489d512711ef8045ac1f6bc53342","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:00+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:31:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:01Z","est_delivery_date":"2023-11-30T20:12:01Z","fees":[],"id":"trk_b3f35c9fd8fd434491c9ff733ae2db6a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IzZjM1YzlmZDhmZDQzNDQ5MWM5ZmY3MzNhZTJkYjZh","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383757","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:01Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:01Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:01Z","weight":null},"tracking_code":"9400100105442287383757","updated_at":"2023-11-30T20:12:00Z","usps_zone":4}' + Package Service"},"created_at":"2024-08-02T23:31:21Z","est_delivery_date":"2024-08-02T23:31:21Z","fees":[],"id":"trk_bef2cee9cbe94bf095bd86b7285cc8d2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JlZjJjZWU5Y2JlOTRiZjA5NWJkODZiNzI4NWNjOGQy","shipment_id":"shp_dfd395dfe462403b96ad3399dc2c5732","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070375155","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:31:21Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T12:08:21Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:31:21Z","weight":null},"tracking_code":"9400100110368070375155","updated_at":"2024-08-02T23:31:21Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -127,20 +123,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec91e7896122001b936b + - 4d57346b66ad6c49f43f29f00039ab7c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.194699" + - "0.255716" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentLowestRate.yaml b/tests/cassettes/TestShipmentLowestRate.yaml index ee9ecee..e9e142e 100644 --- a/tests/cassettes/TestShipmentLowestRate.yaml +++ b/tests/cassettes/TestShipmentLowestRate.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:01+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b8ff53728fbc11ee8bfc3cecef1b359e","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:39+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21cd01ff512511ef89f3ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:01+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:12:01Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:12:01Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:12:01Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_9ab1fcb457a04c199e798ce64e27d93a","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:12:01Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_43f811c379464337b2ada01c6e6f73f9","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:12:01Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:01+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b90212428fbc11ee847bac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:39+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:39Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:39Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:39Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_51fa1a9f3cb5420b8f05c1d7194145be","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:39Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_684fc9c965c642fe90825f9252a21165","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:39Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:39+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21d1456e512511efb9b7ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:01+00:00","verifications":{},"zip":"94107"},"id":"shp_935977a3e3274038b91555f875d78718","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:01Z","height":4,"id":"prcl_a2db0bd84ec842aca7983c9a24d60817","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:01Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:01Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_cdd90ab237b24763aa155df571b2c005","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_935977a3e3274038b91555f875d78718","updated_at":"2023-11-30T20:12:01Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:01Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_16c00fcf0bc4402e82f0478371b033cf","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_935977a3e3274038b91555f875d78718","updated_at":"2023-11-30T20:12:01Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:01Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5b5d4704420a48d8b595325ccecdb29b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_935977a3e3274038b91555f875d78718","updated_at":"2023-11-30T20:12:01Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:01Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dfa4c91696ff437b83daa49b477170a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_935977a3e3274038b91555f875d78718","updated_at":"2023-11-30T20:12:01Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:01Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4353e67d238e40c8b7abb692487fa85a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_935977a3e3274038b91555f875d78718","updated_at":"2023-11-30T20:12:01Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:01+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b90212428fbc11ee847bac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:39+00:00","verifications":{},"zip":"94107"},"id":"shp_c0dafcb339b5457487a8591d2065d720","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:39Z","height":4,"id":"prcl_a85721f8de454549b964390cb8053872","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:39Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4c0e4f68fce74b3c8bc456f141e67305","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_c0dafcb339b5457487a8591d2065d720","updated_at":"2024-08-02T23:15:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_186f2ac42893484cb84b5fdc3b23ee9a","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_c0dafcb339b5457487a8591d2065d720","updated_at":"2024-08-02T23:15:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_def3bdea01304b2d901942137690cacb","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_c0dafcb339b5457487a8591d2065d720","updated_at":"2024-08-02T23:15:39Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:39+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21d1456e512511efb9b7ac1f6bc539aa","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:01+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:01+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b8ff53728fbc11ee8bfc3cecef1b359e","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:39+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:39+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21cd01ff512511ef89f3ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:01+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:12:01Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:39+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:39Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_935977a3e3274038b91555f875d78718 + - /api/v2/shipments/shp_c0dafcb339b5457487a8591d2065d720 Pragma: - no-cache Referrer-Policy: @@ -58,20 +58,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec91e7896122001b93b7 + - 4d57346d66ad689bf440b8c7003773ce X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.310651" + - "0.297920" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentRecommendShipDate.yaml b/tests/cassettes/TestShipmentRecommendShipDate.yaml index d56df77..afd8760 100644 --- a/tests/cassettes/TestShipmentRecommendShipDate.yaml +++ b/tests/cassettes/TestShipmentRecommendShipDate.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-15T23:39:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_78894293430311ef9ec0ac1f6bc539aa","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:19:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b34fc0be512511ef99e9ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-15T23:39:25+00:00","verifications":{},"zip":"90277"},"created_at":"2024-07-15T23:39:25Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-15T23:39:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_788bfce3430311ef9b33ac1f6bc53342","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:19:43+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:19:43Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:19:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b352df48512511ef99743cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-15T23:39:25+00:00","verifications":{},"zip":"94107"},"id":"shp_0921d00a5f254354a9d9d2893962b19c","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid - credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-07-15T23:39:25Z","height":4,"id":"prcl_9f805bea2b1440499633960eecd63fd8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-07-15T23:39:25Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-15T23:39:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b57b0e7c1a304262acf1eada74966061","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_0921d00a5f254354a9d9d2893962b19c","updated_at":"2024-07-15T23:39:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-15T23:39:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_aacbefa7901e4ba48ab0f3c19e80619d","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_0921d00a5f254354a9d9d2893962b19c","updated_at":"2024-07-15T23:39:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-15T23:39:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dce19b666af24c0994e4bfa1156acd09","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_0921d00a5f254354a9d9d2893962b19c","updated_at":"2024-07-15T23:39:26Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2024-07-15T23:39:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_788bfce3430311ef9b33ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:19:43+00:00","verifications":{},"zip":"94107"},"id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:19:43Z","height":4,"id":"prcl_f1118b5d651e493bbfe61a6885c5a1ac","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:19:43Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:19:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fe265ea42f64428985b9a1adb0352231","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","updated_at":"2024-08-02T23:19:44Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:19:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8ed3977647e44be1a07c39fde35fffac","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","updated_at":"2024-08-02T23:19:44Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:19:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_58a47428454d47fcbc92185ab1e360b9","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","updated_at":"2024-08-02T23:19:44Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:19:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b352df48512511ef99743cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2024-07-15T23:39:25+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2024-07-15T23:39:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_78894293430311ef9ec0ac1f6bc539aa","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:19:43+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:19:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b34fc0be512511ef99e9ac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2024-07-15T23:39:25+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-07-15T23:39:26Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:19:43+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:19:44Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_0921d00a5f254354a9d9d2893962b19c + - /api/v2/shipments/shp_ca268be2ed2e4d82a83c621f379f0cb6 Pragma: - no-cache Referrer-Policy: @@ -54,39 +54,37 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 52dadcf36695b32df4084f0b004b67fb + - 4d57346b66ad698ff42cef08003817c7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb53nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb4nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.570346" + - "0.566717" X-Version-Label: - - easypost-202407152305-b86700bd54-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: desired_delivery_date=2024-07-17 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_0921d00a5f254354a9d9d2893962b19c/smartrate/precision_shipping + url: https://api.easypost.com/v2/shipments/shp_ca268be2ed2e4d82a83c621f379f0cb6/smartrate/precision_shipping?desired_delivery_date=2024-08-14 method: GET response: - body: '{"rates":[{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":4,"percentile_99":6},"delivery_date_confidence":0.46,"desired_delivery_date":"2024-07-17","estimated_transit_days":1,"ship_on_date":"2024-07-16"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-15T23:39:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b57b0e7c1a304262acf1eada74966061","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_0921d00a5f254354a9d9d2893962b19c","updated_at":"2024-07-15T23:39:26Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":7,"percentile_99":8},"delivery_date_confidence":0.31,"desired_delivery_date":"2024-07-17","estimated_transit_days":2,"ship_on_date":"2024-07-15"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-15T23:39:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_aacbefa7901e4ba48ab0f3c19e80619d","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_0921d00a5f254354a9d9d2893962b19c","updated_at":"2024-07-15T23:39:26Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":7,"percentile_99":8},"delivery_date_confidence":0.32,"desired_delivery_date":"2024-07-17","estimated_transit_days":2,"ship_on_date":"2024-07-15"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-07-15T23:39:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dce19b666af24c0994e4bfa1156acd09","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_0921d00a5f254354a9d9d2893962b19c","updated_at":"2024-07-15T23:39:26Z"}}]}' + body: '{"rates":[{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":4,"percentile_99":7},"delivery_date_confidence":0.48,"desired_delivery_date":"2024-08-14","estimated_transit_days":1,"ship_on_date":"2024-08-13"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:19:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fe265ea42f64428985b9a1adb0352231","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","updated_at":"2024-08-02T23:19:44Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.44,"desired_delivery_date":"2024-08-14","estimated_transit_days":2,"ship_on_date":"2024-08-12"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:19:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8ed3977647e44be1a07c39fde35fffac","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","updated_at":"2024-08-02T23:19:44Z"}},{"easypost_time_in_transit_data":{"days_in_transit":{"percentile_50":3,"percentile_75":3,"percentile_85":4,"percentile_90":4,"percentile_95":5,"percentile_97":5,"percentile_99":7},"delivery_date_confidence":0.38,"desired_delivery_date":"2024-08-14","estimated_transit_days":2,"ship_on_date":"2024-08-12"},"rate":{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:19:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_58a47428454d47fcbc92185ab1e360b9","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_ca268be2ed2e4d82a83c621f379f0cb6","updated_at":"2024-08-02T23:19:44Z"}}]}' headers: Cache-Control: - private, no-cache, no-store @@ -102,27 +100,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 52dadcf36695b32ef4084f0b004b687a + - 4d57346b66ad6990f42cef080038181d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb3nuq fa152d4755 - - extlb1nuq fa152d4755 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.119930" + - "0.286878" X-Version-Label: - - easypost-202407152305-b86700bd54-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentRefund.yaml b/tests/cassettes/TestShipmentRefund.yaml index 3d884d5..89a111a 100644 --- a/tests/cassettes/TestShipmentRefund.yaml +++ b/tests/cassettes/TestShipmentRefund.yaml @@ -4,7 +4,7 @@ interactions: - request: body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 - N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"GroundAdvantage","to_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} @@ -19,18 +19,18 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94a67c48fbc11ee9374ac1f6bc539aa","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228aab07512511efa941ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:12:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:12:02Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94c68a48fbc11ee849bac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:40Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228cc2e5512511efb9eaac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{},"zip":"90277"},"id":"shp_22f1016c74304713b7d32743425c303e","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:02Z","height":4,"id":"prcl_ce36cca10a8148c5aa0b3068e36c5bd3","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:02Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:12:02Z","date_advance":0,"id":"pl_8e28e1ef58194ac490a28a12805ac786","integrated_form":"none","label_date":"2023-11-30T20:12:02Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e87914bf9a417440a19aeccc299927d286.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:12:03Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5eb08105358d4523a074821521938577","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_49c7ba5efbd849c3a72a0e36acfaf344","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e29e06d37a534f1e8e361fd23c260394","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7430433528b245f9be5612bf17a91b5d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8a30e6fe9bfa45099eae5788f03d1c20","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94c68a48fbc11ee849bac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{},"zip":"90277"},"id":"shp_f048e3550ee941279657f42d2ac1d0ee","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:40Z","height":4,"id":"prcl_33dc54f1d9314299927601bb4101c7ae","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:40Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:41Z","date_advance":0,"id":"pl_d7c77c1afb974b4a8dc681bf422dcf97","integrated_form":"none","label_date":"2024-08-02T23:15:41Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e85ac778b53c7c465a94a7e6587c3a9bfb.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:41Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5e56ce9a623345d1bf8f398324e24731","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e54ffb971f4740a4bcfa7a84d00fe492","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fc9fc85aebb04650b68c3cf1c86ccd81","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228cc2e5512511efb9eaac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e29e06d37a534f1e8e361fd23c260394","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94a67c48fbc11ee9374ac1f6bc539aa","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e54ffb971f4740a4bcfa7a84d00fe492","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:41Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228aab07512511efa941ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2023-11-30T20:12:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2023-11-30T20:12:03Z","est_delivery_date":null,"fees":[],"id":"trk_e6b80a95c11c406296ae85132c60bc6b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U2YjgwYTk1YzExYzQwNjI5NmFlODUxMzJjNjBiYzZi","shipment_id":"shp_22f1016c74304713b7d32743425c303e","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100105442287383788","tracking_details":[],"updated_at":"2023-11-30T20:12:03Z","weight":null},"tracking_code":"9400100105442287383788","updated_at":"2023-11-30T20:12:03Z","usps_zone":4}' + TOWNSEND ST APT 20","street2":"","updated_at":"2024-08-02T23:15:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:41Z","est_delivery_date":null,"fees":[],"id":"trk_33b3b540a47541b9ac25115bc5fef5a3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMzYjNiNTQwYTQ3NTQxYjlhYzI1MTE1YmM1ZmVmNWEz","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100110368070372253","tracking_details":[],"updated_at":"2024-08-02T23:15:41Z","weight":null},"tracking_code":"9400100110368070372253","updated_at":"2024-08-02T23:15:41Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -39,7 +39,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_22f1016c74304713b7d32743425c303e + - /api/v2/shipments/shp_f048e3550ee941279657f42d2ac1d0ee Pragma: - no-cache Referrer-Policy: @@ -53,54 +53,56 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec92e7896122001b943f + - 4d57346d66ad689cf440b8c7003774e8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "1.195230" + - "0.975006" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: "" + body: "null" form: {} headers: Authorization: - REDACTED + Content-Type: + - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_22f1016c74304713b7d32743425c303e/refund + url: https://api.easypost.com/v2/shipments/shp_f048e3550ee941279657f42d2ac1d0ee/refund method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94a67c48fbc11ee9374ac1f6bc539aa","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228aab07512511efa941ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:12:02Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94c68a48fbc11ee849bac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:40Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228cc2e5512511efb9eaac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{},"zip":"90277"},"id":"shp_22f1016c74304713b7d32743425c303e","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:02Z","height":4,"id":"prcl_ce36cca10a8148c5aa0b3068e36c5bd3","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:02Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:12:02Z","date_advance":0,"id":"pl_8e28e1ef58194ac490a28a12805ac786","integrated_form":"none","label_date":"2023-11-30T20:12:02Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e87914bf9a417440a19aeccc299927d286.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:12:03Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5eb08105358d4523a074821521938577","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_49c7ba5efbd849c3a72a0e36acfaf344","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e29e06d37a534f1e8e361fd23c260394","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7430433528b245f9be5612bf17a91b5d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8a30e6fe9bfa45099eae5788f03d1c20","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94c68a48fbc11ee849bac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{},"zip":"90277"},"id":"shp_f048e3550ee941279657f42d2ac1d0ee","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:40Z","height":4,"id":"prcl_33dc54f1d9314299927601bb4101c7ae","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:40Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:41Z","date_advance":0,"id":"pl_d7c77c1afb974b4a8dc681bf422dcf97","integrated_form":"none","label_date":"2024-08-02T23:15:41Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e85ac778b53c7c465a94a7e6587c3a9bfb.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:41Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5e56ce9a623345d1bf8f398324e24731","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e54ffb971f4740a4bcfa7a84d00fe492","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fc9fc85aebb04650b68c3cf1c86ccd81","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228cc2e5512511efb9eaac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e29e06d37a534f1e8e361fd23c260394","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94a67c48fbc11ee9374ac1f6bc539aa","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e54ffb971f4740a4bcfa7a84d00fe492","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:41Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228aab07512511efa941ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:03Z","est_delivery_date":"2023-11-30T20:12:03Z","fees":[],"id":"trk_e6b80a95c11c406296ae85132c60bc6b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U2YjgwYTk1YzExYzQwNjI5NmFlODUxMzJjNjBiYzZi","shipment_id":"shp_22f1016c74304713b7d32743425c303e","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383788","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:03Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:03Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:03Z","weight":null},"tracking_code":"9400100105442287383788","updated_at":"2023-11-30T20:12:03Z","usps_zone":4}' + Package Service"},"created_at":"2024-08-02T23:15:41Z","est_delivery_date":"2024-08-02T23:15:41Z","fees":[],"id":"trk_33b3b540a47541b9ac25115bc5fef5a3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMzYjNiNTQwYTQ3NTQxYjlhYzI1MTE1YmM1ZmVmNWEz","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372253","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:41Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:41Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:41Z","weight":null},"tracking_code":"9400100110368070372253","updated_at":"2024-08-02T23:15:41Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -121,20 +123,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec93e7896122001b95b1 + - 4d57346d66ad689df440b8c7003775c7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.185762" + - "0.228005" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentRegenerateRates.yaml b/tests/cassettes/TestShipmentRegenerateRates.yaml index 3703e38..5300ae6 100644 --- a/tests/cassettes/TestShipmentRegenerateRates.yaml +++ b/tests/cassettes/TestShipmentRegenerateRates.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-12-06T18:18:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_db05228b946311eeaca0ac1f6bc53342","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23505221512511efa967ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-12-06T18:18:29+00:00","verifications":{},"zip":"90277"},"created_at":"2023-12-06T18:18:29Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-12-06T18:18:29Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-12-06T18:18:29Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_851f74fd820240f6a708d542f7cd1569","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-12-06T18:18:29Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_08bcd669784b45f4bf2e55720a15f8d3","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-12-06T18:18:29Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-12-06T18:18:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_db07ccfa946311ee838eac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:41+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:42Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:42Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:42Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_0dde69be6f88493a8960fe42d206b454","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:42Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_2470323bcc0f46728aa2b992c4d997c5","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:42Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23530e46512511efb9823cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-12-06T18:18:29+00:00","verifications":{},"zip":"94107"},"id":"shp_dd88eaf601414b3881dc1858a5510c1f","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-12-06T18:18:29Z","height":4,"id":"prcl_eaa1d40b117e4f129fb09ad3ab6d7295","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-12-06T18:18:29Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_9c98c998e5eb4e148084f304e523c46f","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2509e51de7ba4f10bd9f27ec65a54cd4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3e96a053483149b3896e46caf848f925","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_98dcf566dac84de193bcd59247b0f4e8","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_05de5cde48da4806b6b5326fe3480824","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-12-06T18:18:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_db07ccfa946311ee838eac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"94107"},"id":"shp_eb74df445b1443158d29f1beb0d7a423","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:42Z","height":4,"id":"prcl_e7d932119de849d9b1d11af89fc86faa","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:42Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5e6430bd9a064f8bab27fea761cd4d29","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_eb74df445b1443158d29f1beb0d7a423","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f6327a9075434c65b365eda6bd50627e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_eb74df445b1443158d29f1beb0d7a423","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0ab1a003922a4e11aeddd6e95c70984c","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_eb74df445b1443158d29f1beb0d7a423","updated_at":"2024-08-02T23:15:42Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23530e46512511efb9823cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-12-06T18:18:29+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-12-06T18:18:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_db05228b946311eeaca0ac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23505221512511efa967ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-12-06T18:18:29+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-12-06T18:18:29Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:41+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:42Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_dd88eaf601414b3881dc1858a5510c1f + - /api/v2/shipments/shp_eb74df445b1443158d29f1beb0d7a423 Pragma: - no-cache Referrer-Policy: @@ -58,7 +58,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 5639f0936570baf5e2b8558e0057f772 + - 4d57346d66ad689df440b8c7003775fd X-Frame-Options: - SAMEORIGIN X-Node: @@ -66,19 +66,19 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.303300" + - "0.291243" X-Version-Label: - - easypost-202312060139-bb94309111-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{}' + body: "null" form: {} headers: Authorization: @@ -87,10 +87,10 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_dd88eaf601414b3881dc1858a5510c1f/rerate + url: https://api.easypost.com/v2/shipments/shp_eb74df445b1443158d29f1beb0d7a423/rerate method: POST response: - body: '{"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_9a8aac5f5d0345aea71aeb259fab26fc","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f72b0ede589a484f98ec7bbbeb5706c6","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ed91b1e8911042d6a2c1bd5ebc0e846f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_60bf654e1c19440691762902c0deef80","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-12-06T18:18:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6bfe62262c7d4b30981ec502d04ad352","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_dd88eaf601414b3881dc1858a5510c1f","updated_at":"2023-12-06T18:18:29Z"}]}' + body: '{"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7da72060171148ed9ecf6f7256973e96","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_eb74df445b1443158d29f1beb0d7a423","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b4d7308d90c94487a0363d3a674280f7","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_eb74df445b1443158d29f1beb0d7a423","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d39d580404ef466eac1bbd031451e92b","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_eb74df445b1443158d29f1beb0d7a423","updated_at":"2024-08-02T23:15:42Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -111,20 +111,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 5639f0936570baf5e2b8558e0057f7dc + - 4d57346d66ad689ef440b8c700377638 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.274015" + - "0.218248" X-Version-Label: - - easypost-202312060139-bb94309111-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentRetrieve.yaml b/tests/cassettes/TestShipmentRetrieve.yaml index fb7bbc2..36aed8f 100644 --- a/tests/cassettes/TestShipmentRetrieve.yaml +++ b/tests/cassettes/TestShipmentRetrieve.yaml @@ -21,21 +21,21 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae063ce8fbc11ee90f3ac1f6bc539ae","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23aa85f5512511efb98f3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:12:04Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:12:04Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:12:04Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_5b5f7cc48ec4481fa2c48545db0a694d","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:12:04Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_0e39a375ccf2421e9eba68ad4c237c8b","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:12:04Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae355528fbc11ee8d013cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:42Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:42Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:42Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_677e9434b9f84614b2a48933de8e4348","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:42Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_f6d0d83022084123b538a63c01d162bb","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:42Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23ac9f8a512511efb9903cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"94107"},"id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:04Z","height":4,"id":"prcl_f0f2c85519924d8a8c7336eecd122172","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:04Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_701fc01930cc4578a8782020d99d475e","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_6a53a0e9c9784e8a998d90bdaaa52a48","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fa2a6dcf9f25416b951c1c8e186d362f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f3484f4c0c33492c96a9033ab7896f56","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_69b1eb4564e641888bacd1f482d25c18","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae355528fbc11ee8d013cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"94107"},"id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:42Z","height":4,"id":"prcl_2d339c3158bf49d392281f26ef299a6a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:42Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_acaf5eadb302489d86581546183c44f3","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bafd49821c71400bb64b13a40e720551","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_068c85528fad404585a7977f75d1187c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","updated_at":"2024-08-02T23:15:42Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23ac9f8a512511efb9903cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae063ce8fbc11ee90f3ac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23aa85f5512511efb98f3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:12:04Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:42Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -44,7 +44,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_c0f5b9dc6d484f8f9838b35f052f7db8 + - /api/v2/shipments/shp_f5ee89ea684c4d3f8637b39c98103c8a Pragma: - no-cache Referrer-Policy: @@ -58,20 +58,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec94e7896122001b96d5 + - 4d57346d66ad689ef440b8c700377673 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.343302" + - "0.274951" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -85,25 +85,25 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_c0f5b9dc6d484f8f9838b35f052f7db8 + url: https://api.easypost.com/v2/shipments/shp_f5ee89ea684c4d3f8637b39c98103c8a method: GET response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae063ce8fbc11ee90f3ac1f6bc539ae","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23aa85f5512511efb98f3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:12:04Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:12:04Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:12:04Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_5b5f7cc48ec4481fa2c48545db0a694d","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:12:04Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_0e39a375ccf2421e9eba68ad4c237c8b","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:12:04Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae355528fbc11ee8d013cecef1b359e","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:42Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:42Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:42Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_677e9434b9f84614b2a48933de8e4348","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:42Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_f6d0d83022084123b538a63c01d162bb","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:42Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23ac9f8a512511efb9903cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"94107"},"id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:04Z","height":4,"id":"prcl_f0f2c85519924d8a8c7336eecd122172","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:04Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_701fc01930cc4578a8782020d99d475e","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_6a53a0e9c9784e8a998d90bdaaa52a48","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fa2a6dcf9f25416b951c1c8e186d362f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f3484f4c0c33492c96a9033ab7896f56","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_69b1eb4564e641888bacd1f482d25c18","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_c0f5b9dc6d484f8f9838b35f052f7db8","updated_at":"2023-11-30T20:12:04Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae355528fbc11ee8d013cecef1b359e","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"94107"},"id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:42Z","height":4,"id":"prcl_2d339c3158bf49d392281f26ef299a6a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:42Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_acaf5eadb302489d86581546183c44f3","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bafd49821c71400bb64b13a40e720551","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","updated_at":"2024-08-02T23:15:42Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_068c85528fad404585a7977f75d1187c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f5ee89ea684c4d3f8637b39c98103c8a","updated_at":"2024-08-02T23:15:42Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23ac9f8a512511efb9903cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:04+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bae063ce8fbc11ee90f3ac1f6bc539ae","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23aa85f5512511efb98f3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:04+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:12:04Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:42+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:42Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -124,20 +124,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec95e7896122001b9766 + - 4d57346d66ad689ef440b8c7003776ac X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.104597" + - "0.083073" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentSmartrate.yaml b/tests/cassettes/TestShipmentSmartrate.yaml index b341586..7441fcb 100644 --- a/tests/cassettes/TestShipmentSmartrate.yaml +++ b/tests/cassettes/TestShipmentSmartrate.yaml @@ -19,19 +19,19 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bb53813e8fbc11ee85dbac1f6bc53342","mode":"test","name":"Elizabeth + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23ed6a3c512511efb9a43cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:05+00:00","verifications":{},"zip":"90277"},"created_at":"2023-11-30T20:12:05Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bb567ae08fbc11ee948fac1f6bc539aa","mode":"test","name":"Jack + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:43+00:00","verifications":{},"zip":"90277"},"created_at":"2024-08-02T23:15:43Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23efbee9512511ef8a71ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:05+00:00","verifications":{},"zip":"94107"},"id":"shp_b785bd21626449cf8ce91c37a0256991","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. - Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:05Z","height":4,"id":"prcl_c72e7700138a4f3a96e2b326510315af","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:05Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_c2af2849775b45b18851d673323e7115","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","updated_at":"2023-11-30T20:12:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5c4fc298f95743df99372ac44622a277","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","updated_at":"2023-11-30T20:12:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7721949fb1ee47b4a42567af2b1648b0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","updated_at":"2023-11-30T20:12:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_55c4dbb47f1a47fda4fddda89a496a9d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","updated_at":"2023-11-30T20:12:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_56a94e6156374b988796a02bc0216f1a","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","updated_at":"2023-11-30T20:12:05Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:12:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bb567ae08fbc11ee948fac1f6bc539aa","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:43+00:00","verifications":{},"zip":"94107"},"id":"shp_f04e0ccf2e924851a24c960311f40552","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Invalid + credentials","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:43Z","height":4,"id":"prcl_72eaf3fa228743ffb6ff880707790e98","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:43Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dcb05e1667e44968a1a910ff94f3843e","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f04e0ccf2e924851a24c960311f40552","updated_at":"2024-08-02T23:15:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_380927ce316e4d40b93d471337584bba","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f04e0ccf2e924851a24c960311f40552","updated_at":"2024-08-02T23:15:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_72e9ee8fbe9d45818b18c5125fa404ab","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f04e0ccf2e924851a24c960311f40552","updated_at":"2024-08-02T23:15:43Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23efbee9512511ef8a71ac1f6bc53342","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:12:05+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_bb53813e8fbc11ee85dbac1f6bc53342","mode":"test","name":"Elizabeth + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:43+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_23ed6a3c512511efb9a43cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:05+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2023-11-30T20:12:05Z","usps_zone":4}' + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:43+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2024-08-02T23:15:43Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store @@ -40,7 +40,7 @@ interactions: Expires: - "0" Location: - - /api/v2/shipments/shp_b785bd21626449cf8ce91c37a0256991 + - /api/v2/shipments/shp_f04e0ccf2e924851a24c960311f40552 Pragma: - no-cache Referrer-Policy: @@ -54,20 +54,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec95e7896122001b979d + - 4d57346d66ad689ef440b8c7003776cf X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.550293" + - "0.523611" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -81,10 +81,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_b785bd21626449cf8ce91c37a0256991/smartrate + url: https://api.easypost.com/v2/shipments/shp_f04e0ccf2e924851a24c960311f40552/smartrate method: GET response: - body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_c2af2849775b45b18851d673323e7115","list_currency":"USD","list_rate":8.24,"mode":"test","object":"Rate","rate":6.95,"retail_currency":"USD","retail_rate":10.2,"service":"Priority","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2023-11-30T20:12:05Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5c4fc298f95743df99372ac44622a277","list_currency":"USD","list_rate":6.07,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8,"service":"GroundAdvantage","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":9},"updated_at":"2023-11-30T20:12:05Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7721949fb1ee47b4a42567af2b1648b0","list_currency":"USD","list_rate":6.07,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8,"service":"First","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":9},"updated_at":"2023-11-30T20:12:05Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_55c4dbb47f1a47fda4fddda89a496a9d","list_currency":"USD","list_rate":6.07,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8,"service":"ParcelSelect","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":9},"updated_at":"2023-11-30T20:12:05Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_56a94e6156374b988796a02bc0216f1a","list_currency":"USD","list_rate":31.25,"mode":"test","object":"Rate","rate":31.25,"retail_currency":"USD","retail_rate":35.8,"service":"Express","shipment_id":"shp_b785bd21626449cf8ce91c37a0256991","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":5},"updated_at":"2023-11-30T20:12:05Z"}]}' + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dcb05e1667e44968a1a910ff94f3843e","list_currency":"USD","list_rate":33.1,"mode":"test","object":"Rate","rate":33.1,"retail_currency":"USD","retail_rate":37.9,"service":"Express","shipment_id":"shp_f04e0ccf2e924851a24c960311f40552","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2024-08-02T23:15:43Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_380927ce316e4d40b93d471337584bba","list_currency":"USD","list_rate":8.25,"mode":"test","object":"Rate","rate":6.9,"retail_currency":"USD","retail_rate":9.8,"service":"Priority","shipment_id":"shp_f04e0ccf2e924851a24c960311f40552","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":3,"percentile_97":4,"percentile_99":5},"updated_at":"2024-08-02T23:15:43Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_72e9ee8fbe9d45818b18c5125fa404ab","list_currency":"USD","list_rate":6.4,"mode":"test","object":"Rate","rate":5.93,"retail_currency":"USD","retail_rate":8.45,"service":"GroundAdvantage","shipment_id":"shp_f04e0ccf2e924851a24c960311f40552","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":2,"percentile_97":3,"percentile_99":4},"updated_at":"2024-08-02T23:15:43Z"}]}' headers: Cache-Control: - private, no-cache, no-store @@ -105,20 +105,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec96e7896122001b9847 + - 4d57346d66ad689ff440b8c700377739 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.115506" + - "0.107590" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentsGetNextPage.yaml b/tests/cassettes/TestShipmentsGetNextPage.yaml index 6cf729d..3c04e1f 100644 --- a/tests/cassettes/TestShipmentsGetNextPage.yaml +++ b/tests/cassettes/TestShipmentsGetNextPage.yaml @@ -2,107 +2,105 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments + url: https://api.easypost.com/v2/shipments?page_size=5 method: GET response: body: '{"has_more":true,"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94a67c48fbc11ee9374ac1f6bc539aa","mode":"test","name":"JACK + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228aab07512511efa941ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:12:02Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94c68a48fbc11ee849bac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:40Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228cc2e5512511efb9eaac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{},"zip":"90277"},"id":"shp_22f1016c74304713b7d32743425c303e","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:12:02Z","height":4,"id":"prcl_ce36cca10a8148c5aa0b3068e36c5bd3","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:12:02Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:12:02Z","date_advance":0,"id":"pl_8e28e1ef58194ac490a28a12805ac786","integrated_form":"none","label_date":"2023-11-30T20:12:02Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e87914bf9a417440a19aeccc299927d286.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:12:03Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5eb08105358d4523a074821521938577","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_49c7ba5efbd849c3a72a0e36acfaf344","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e29e06d37a534f1e8e361fd23c260394","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7430433528b245f9be5612bf17a91b5d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8a30e6fe9bfa45099eae5788f03d1c20","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94c68a48fbc11ee849bac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{},"zip":"90277"},"id":"shp_f048e3550ee941279657f42d2ac1d0ee","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:40Z","height":4,"id":"prcl_33dc54f1d9314299927601bb4101c7ae","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:40Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:41Z","date_advance":0,"id":"pl_d7c77c1afb974b4a8dc681bf422dcf97","integrated_form":"none","label_date":"2024-08-02T23:15:41Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e85ac778b53c7c465a94a7e6587c3a9bfb.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:41Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5e56ce9a623345d1bf8f398324e24731","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e54ffb971f4740a4bcfa7a84d00fe492","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fc9fc85aebb04650b68c3cf1c86ccd81","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:40Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228cc2e5512511efb9eaac1f6bc539aa","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e29e06d37a534f1e8e361fd23c260394","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_22f1016c74304713b7d32743425c303e","updated_at":"2023-11-30T20:12:02Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:12:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b94a67c48fbc11ee9374ac1f6bc539aa","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e54ffb971f4740a4bcfa7a84d00fe492","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","updated_at":"2024-08-02T23:15:41Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:40+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_228aab07512511efa941ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:40+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:03Z","est_delivery_date":"2023-11-30T20:12:03Z","fees":[],"id":"trk_e6b80a95c11c406296ae85132c60bc6b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U2YjgwYTk1YzExYzQwNjI5NmFlODUxMzJjNjBiYzZi","shipment_id":"shp_22f1016c74304713b7d32743425c303e","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383788","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:03Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:03Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:03Z","weight":null},"tracking_code":"9400100105442287383788","updated_at":"2023-11-30T20:12:03Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80a0e818fbc11ee8f61ac1f6bc539ae","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:41Z","est_delivery_date":"2024-08-02T23:15:41Z","fees":[],"id":"trk_33b3b540a47541b9ac25115bc5fef5a3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMzYjNiNTQwYTQ3NTQxYjlhYzI1MTE1YmM1ZmVmNWEz","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372253","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:41Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:41Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:41Z","weight":null},"tracking_code":"9400100110368070372253","updated_at":"2024-08-02T23:15:41Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_210e4c26512511efa8d7ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:00+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:59Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80cc27f8fbc11ee83f8ac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:38+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:38Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21114326512511ef89cbac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:59+00:00","verifications":{},"zip":"90277"},"id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","insurance":"100.00","is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:59Z","height":4,"id":"prcl_b0487063e54c47b3bf66d9684b8b818a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:12:00Z","date_advance":0,"id":"pl_5451c0f8d03549bfb5f347b1127b4d03","integrated_form":"none","label_date":"2023-11-30T20:12:00Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8fcbb7ef85a854a22a82167ab2493f321.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:12:00Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_04b559d310a24cbb96de2c074e0a1dcb","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ad1df9033d144a4bb1c4d60fbd7c3cba","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6401f35a2e8a41f092627b688fe16564","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_246eee933167487ab0a479dc5674bece","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1bf47eb6b89742ad956fb5e52a21deb8","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80cc27f8fbc11ee83f8ac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:38+00:00","verifications":{},"zip":"90277"},"id":"shp_cad8ecbace844554bbcf7ad0a6b15009","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:38Z","height":4,"id":"prcl_76fc2728cd3c408ead732adaed3353ff","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:38Z","date_advance":0,"id":"pl_332cf31a5e794dc38f46b46d5fa52d78","integrated_form":"none","label_date":"2024-08-02T23:15:38Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8468882721eb04a8e9c06f61dc89e6dd6.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_494c2a13267844f4a9082f1cf26922f9","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","updated_at":"2024-08-02T23:15:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_cf809f7f48724d5db72a6fb3acd0e1fe","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","updated_at":"2024-08-02T23:15:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f16aea3813f047b8bb15f2f27c581b5c","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","updated_at":"2024-08-02T23:15:38Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21114326512511ef89cbac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:59+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:12:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_246eee933167487ab0a479dc5674bece","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","updated_at":"2023-11-30T20:12:00Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b80a0e818fbc11ee8f61ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:38+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f16aea3813f047b8bb15f2f27c581b5c","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","updated_at":"2024-08-02T23:15:38Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_210e4c26512511efa8d7ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:12:00+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:38+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:01Z","est_delivery_date":"2023-11-30T20:12:01Z","fees":[],"id":"trk_b3f35c9fd8fd434491c9ff733ae2db6a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IzZjM1YzlmZDhmZDQzNDQ5MWM5ZmY3MzNhZTJkYjZh","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383757","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:01Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:01Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:01Z","weight":null},"tracking_code":"9400100105442287383757","updated_at":"2023-11-30T20:12:00Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:39Z","est_delivery_date":"2024-08-02T23:15:39Z","fees":[],"id":"trk_ec400b14a2b24683bb741388dec8bc35","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2VjNDAwYjE0YTJiMjQ2ODNiYjc0MTM4OGRlYzhiYzM1","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372215","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:39Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:39Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:39Z","weight":null},"tracking_code":"9400100110368070372215","updated_at":"2024-08-02T23:15:39Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:54Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2023-11-30T20:11:56Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231130/38d7b888958f410faf251de190d7cd49.pdf","id":"form_58289a8f4fcc4a8c86aeb6f1fe4854fd","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2023-11-30T20:11:56Z"}],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:34Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2024-08-02T23:15:35Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20240802/f563350753bd4da5af1e527c4d79c09c.pdf","id":"form_71b35165d3294cc0bc44ab019b4ee6ce","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2024-08-02T23:15:36Z"}],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:54Z","height":4,"id":"prcl_8abf52931bc145aa992d7e871af547eb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:54Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:55Z","date_advance":0,"id":"pl_ca2193dfeb41476683ac7ce2eda289bd","integrated_form":"none","label_date":"2023-11-30T20:11:55Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8270f5cfcb8f242ce91a08009b509bab1.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:55Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b689690ac4954391921e2789fec485aa","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1aa05cd416d145589bd63eb7ace812d0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6239f28c3e6a43efbb0975200fb76ebc","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_fd31f23e98674aa482b45d82747d5473","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e6b8f48fbc11ee8d83ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:34Z","height":4,"id":"prcl_d0a62bed75ae438284400a18d0cda117","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:35Z","date_advance":0,"id":"pl_88a0a1873a804c7986c636e16cda4473","integrated_form":"none","label_date":"2024-08-02T23:15:35Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81639462c077546899f4a26faa924b3a7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:35Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_651d84a2d84246978cf06f44414f1dfc","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_455cb83af43b4d538d4b55b637ef5f36","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1eeb02a6512511ef8942ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7977893a92284f339e9a9a5b93fee22b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","updated_at":"2023-11-30T20:11:55Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:54+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b4e3db478fbc11ee8216ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cd342ee9670d4c4ea7c42c495f003353","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","updated_at":"2024-08-02T23:15:35Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:34+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1ee81899512511efa864ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:54+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:55Z","est_delivery_date":"2023-11-30T20:11:55Z","fees":[],"id":"trk_f234e0bfac884ba9b274124a580453b8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YyMzRlMGJmYWM4ODRiYTliMjc0MTI0YTU4MDQ1M2I4","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383672","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:55Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:55Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:55Z","weight":null},"tracking_code":"9400100105442287383672","updated_at":"2023-11-30T20:11:55Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f472768fbc11ee8ad8ac1f6bc539ae","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:35Z","est_delivery_date":"2024-08-02T23:15:35Z","fees":[],"id":"trk_5d4c5abf898044e59136394fe0c1f450","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzVkNGM1YWJmODk4MDQ0ZTU5MTM2Mzk0ZmUwYzFmNDUw","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372208","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:35Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:35Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:35Z","weight":null},"tracking_code":"9400100110368070372208","updated_at":"2024-08-02T23:15:35Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1be9f072512511efb7ea3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:48Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f6fb018fbc11eebf9aac1f6bc53342","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:29Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1becab1e512511ef88b5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{},"zip":"90277"},"id":"shp_ceb56a3de725422496a7b928874caa2d","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:48Z","height":4,"id":"prcl_d1f2b891c4154a6ea831f8f2126b898e","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:48Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:49Z","date_advance":0,"id":"pl_00bdcb76151340d1b0ddf1aa2ffc99a6","integrated_form":"none","label_date":"2023-11-30T20:11:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e84b09745011b04599abd9535a4239f63c.png","label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231130/f54d666bd4f7492d912104f6ca064589.zpl","object":"PostageLabel","updated_at":"2023-11-30T20:11:50Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_616469809d9f46008938f954bb536861","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_92fd4d7104814bc980bccf66a7609bf4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_152356cc25804d99ae1fe9406e63f051","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3d1de03c90f0474095803d0cd6f427d2","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5250ae8d0771412f9cc6a97f6a2b0d05","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:48Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f6fb018fbc11eebf9aac1f6bc53342","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{},"zip":"90277"},"id":"shp_7fb459c85d274a19a47fe2fadf266228","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:29Z","height":4,"id":"prcl_437bcdba90c348c8a00cfbd51a69ea08","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:29Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:30Z","date_advance":0,"id":"pl_95f314bd63c449c5a2daa29812b1c055","integrated_form":"none","label_date":"2024-08-02T23:15:30Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8943018d667eb4ecd978b03e2e0ec8bb3.png","label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20240802/2a0a0f7fcf4140fca1be76f83d277736.zpl","object":"PostageLabel","updated_at":"2024-08-02T23:15:31Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7de54c4bc5fa4efcba97ba8da0520c1e","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b707daa91f5949418c9410ed14ef4b93","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_764b404139a54a53a988bfde3bd2c629","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:29Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1becab1e512511ef88b5ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_152356cc25804d99ae1fe9406e63f051","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","updated_at":"2023-11-30T20:11:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b0f472768fbc11ee8ad8ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b707daa91f5949418c9410ed14ef4b93","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","updated_at":"2024-08-02T23:15:30Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1be9f072512511efb7ea3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:29+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:49Z","est_delivery_date":"2023-11-30T20:11:49Z","fees":[],"id":"trk_60b162215ab34d7ebb268fc114d4b718","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYwYjE2MjIxNWFiMzRkN2ViYjI2OGZjMTE0ZDRiNzE4","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383634","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:49Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:49Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:49Z","weight":null},"tracking_code":"9400100105442287383634","updated_at":"2023-11-30T20:11:49Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe48af08fbc11ee863e3cecef1b359e","mode":"test","name":"ELIZABETH + Package Service"},"created_at":"2024-08-02T23:15:30Z","est_delivery_date":"2024-08-02T23:15:30Z","fees":[],"id":"trk_3bb1c6fde7154b3a9bf337ea39b667dc","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiYjFjNmZkZTcxNTRiM2E5YmYzMzdlYTM5YjY2N2Rj","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372192","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:30Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:30Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:30Z","weight":null},"tracking_code":"9400100110368070372192","updated_at":"2024-08-02T23:15:30Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b25188f512511efb7bf3cecef1b359e","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T20:11:46+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2023-11-30T20:11:46Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2023-11-30T20:11:46Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2023-11-30T20:11:46Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_09b13ba2133c4af9a0666abfc18e60cb","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2023-11-30T20:11:46Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_5f96ac2c0d0c42c091282cd889f67592","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2023-11-30T20:11:46Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe769ed8fbc11eebed0ac1f6bc53342","mode":"test","name":"Jack + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:15:28+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2024-08-02T23:15:28Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2024-08-02T23:15:28Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2024-08-02T23:15:28Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_03bb5a9d1ea648aaae8a1d96819699bc","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2024-08-02T23:15:28Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_915556bf6b82407eadc3bd0e1c923d1d","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2024-08-02T23:15:28Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b295020512511efb7c03cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"94107"},"id":"shp_fe05ed3554d0486d96be739870fc1490","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:46Z","height":4,"id":"prcl_04fb78c56d40441f87a5e0272c005230","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:46Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:47Z","date_advance":0,"id":"pl_49b5ce2a3a1143c197bb0ee98cd28241","integrated_form":"none","label_date":"2023-11-30T20:11:47Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e86bbe7858cfd946fb80c3fd694648691b.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:47Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b525fe44cf84e80bcd3b7fa34cdc7c3","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_942f964dfa7d45afbc97b51d88254042","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bc66635b93a14ef2bb6afd2e56f00bf7","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f4792e33453640b6953ffa6a9eea018b","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c96d0f2a504343858a3028e5e9eb01b7","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:46Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe769ed8fbc11eebed0ac1f6bc53342","mode":"test","name":"Jack + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"94107"},"id":"shp_fe84a2a4c4894499a19699a54767d08b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:28Z","height":4,"id":"prcl_d3dd0a1c015e46efa8e298314b2c2fdb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:28Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:29Z","date_advance":0,"id":"pl_f41a700b999f42b78d1012a2e4fed651","integrated_form":"none","label_date":"2024-08-02T23:15:29Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81a32f342b3304ec095757ab4a6815fbf.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:29Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b24874174f0419889c93bd3b7cb607b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0b0af4451ba64ff7b86b680b2762dbd5","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b4d3c245023848fb9deb4d6a09348cb8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:28Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b295020512511efb7c03cecef1b359e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2023-11-30T20:11:46+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:47Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_942f964dfa7d45afbc97b51d88254042","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","updated_at":"2023-11-30T20:11:47Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2023-11-30T20:11:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_afe48af08fbc11ee863e3cecef1b359e","mode":"test","name":"ELIZABETH + Townsend St","street2":"Apt 20","updated_at":"2024-08-02T23:15:28+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b4d3c245023848fb9deb4d6a09348cb8","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","updated_at":"2024-08-02T23:15:29Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2024-08-02T23:15:28+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1b25188f512511efb7bf3cecef1b359e","mode":"test","name":"ELIZABETH SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2023-11-30T20:11:46+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + N HARBOR DR","street2":null,"updated_at":"2024-08-02T23:15:28+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:47Z","est_delivery_date":"2023-11-30T20:11:47Z","fees":[],"id":"trk_0df2b7f9def64da9b6010b7001760df7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBkZjJiN2Y5ZGVmNjRkYTliNjAxMGI3MDAxNzYwZGY3","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383610","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:47Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:47Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:47Z","weight":null},"tracking_code":"9400100105442287383610","updated_at":"2023-11-30T20:11:47Z","usps_zone":4}]}' + Package Service"},"created_at":"2024-08-02T23:15:29Z","est_delivery_date":"2024-08-02T23:15:29Z","fees":[],"id":"trk_da27cbafbd6b482eac96a23b1c9a9dd1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RhMjdjYmFmYmQ2YjQ4MmVhYzk2YTIzYjFjOWE5ZGQx","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372185","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:29Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:29Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:29Z","weight":null},"tracking_code":"9400100110368070372185","updated_at":"2024-08-02T23:15:29Z","usps_zone":4}]}' headers: Cache-Control: - private, no-cache, no-store @@ -123,130 +121,128 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec96e7896122001b988d + - 4d57346d66ad689ff440b8c700377762 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.480343" + - "0.588746" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=shp_fe05ed3554d0486d96be739870fc1490&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments + url: https://api.easypost.com/v2/shipments?before_id=shp_fe84a2a4c4894499a19699a54767d08b&page_size=5 method: GET response: - body: '{"has_more":true,"shipments":[{"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae1c7ed18fbc11eebdc5ac1f6bc53342","mode":"test","name":"JACK + body: '{"has_more":true,"shipments":[{"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a03289512511efa756ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:43Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:26+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:43Z","height":4,"id":"prcl_42a7309d27d44901be51c75698c2f481","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:43Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:44Z","date_advance":0,"id":"pl_9dee3488862c49fb9528c1b2fadbbf82","integrated_form":"none","label_date":"2023-11-30T20:11:44Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e81ccb422bff25488f9cc330deb26d90d2.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:44Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_39dc2e0860f6465ea67c3aa2218ab420","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d1db33ab5f394062a85f74ebb709667e","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2892f7917134493b96fa011ac2eac140","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a88d93db2662462baf6eef2a92789f19","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_152d2430c09742cd80dd39b7bec82f42","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:43Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"id":"shp_32f296472f6c420d9f71de7ad945268b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:25Z","height":4,"id":"prcl_70b2264cf69d454797210f5f7391bdc2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:26Z","date_advance":0,"id":"pl_ae80ca4092884f199d28657f43cac378","integrated_form":"none","label_date":"2024-08-02T23:15:26Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e81e90e88e7e85451da909caa28fe3c556.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:26Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2d26e6aef722413fa96eeda0bb7fd753","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1bdf23d99a594210a9e7c482b3cdf211","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_201c61f269c042b69f4b02484382a88a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae2078098fbc11ee8c65ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a49b89512511efa757ac1f6bc539ae","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_bd1e60e1f516439a86e59a61b17a214f","confirmation":null,"created_at":"2023-11-30T20:11:44Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e87a4b05b24d394f09b89f218dd25fa7de.pdf","id":"sf_c261b07dae4b43f1958c579685168742","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383597"],"updated_at":"2023-11-30T20:11:44Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2892f7917134493b96fa011ac2eac140","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","updated_at":"2023-11-30T20:11:44Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ae1c7ed18fbc11eebdc5ac1f6bc53342","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:25+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f8dbcb2f178a4f129957d977b984e846","confirmation":null,"created_at":"2024-08-02T23:15:26Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e83e59ee3d582140e8b096bf5f4449cd60.pdf","id":"sf_a20319c731a746549807e24b7762eec4","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372178"],"updated_at":"2024-08-02T23:15:27Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_201c61f269c042b69f4b02484382a88a","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","updated_at":"2024-08-02T23:15:26Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_19a03289512511efa756ac1f6bc539ae","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:26+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:44Z","est_delivery_date":"2023-11-30T20:11:44Z","fees":[],"id":"trk_516caec3889e4c3aad7de96a7f969170","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzUxNmNhZWMzODg5ZTRjM2FhZDdkZTk2YTdmOTY5MTcw","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383597","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:44Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:44Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:44Z","weight":null},"tracking_code":"9400100105442287383597","updated_at":"2023-11-30T20:11:44Z","usps_zone":4},{"batch_id":"batch_f37a65a455f04c5cba7bf39be6e0a3d0","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1c4e5b8fbc11ee8bd2ac1f6bc539aa","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:26Z","est_delivery_date":"2024-08-02T23:15:26Z","fees":[],"id":"trk_c2f70261925c4ccf8d6bc60f1aab3aa9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MyZjcwMjYxOTI1YzRjY2Y4ZDZiYzYwZjFhYWIzYWE5","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372178","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:26Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:26Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:26Z","weight":null},"tracking_code":"9400100110368070372178","updated_at":"2024-08-02T23:15:26Z","usps_zone":4},{"batch_id":"batch_81db2fb950d447efb683744dd814152e","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18b85ae6512511efb7ddac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:41Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:24Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"id":"shp_377201d5b6f84999bb41454ecb5e8600","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:41Z","height":4,"id":"prcl_d176cc4dd44b473bb17d7f1086da5470","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:42Z","date_advance":0,"id":"pl_9475c84bf68b490789158a3dce288897","integrated_form":"none","label_date":"2023-11-30T20:11:42Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e83a72f3da8f744224b8b9f7c8e7793b82.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:42Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_71a0501215684647a49cba4fbf6af019","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a0ed6e33ceb1484185559e7a7c4fc433","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a8c2f26a107f4730bf84610f60339d6d","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e9a2b44f6f65440a817fc63989ca799a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a13840ec0780456bb9e69dba8782f0a0","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:41Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"id":"shp_2272bfaaafdc483987d9f9e2b67280c4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:24Z","height":4,"id":"prcl_fc2f07c02c214e5994fe7b550dfed38a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:24Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:24Z","date_advance":0,"id":"pl_233e1f5301f54b0aab0def8bc7421e36","integrated_form":"none","label_date":"2024-08-02T23:15:24Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e82dd5f612317d49a8b3519d2bc00367db.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1b4d0ee587b7498a8859ca808b00592c","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_957520d85448492695a20a66e5045e39","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_944da1eb5712473dbc054e5c24a49f1f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1ef2498fbc11ee84853cecef1b359e","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18baed74512511ef8806ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_f37a65a455f04c5cba7bf39be6e0a3d0","confirmation":null,"created_at":"2023-11-30T20:11:42Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231130/e8c9a1edddebd34685b3ee50d9cdcb8889.pdf","id":"sf_49f7df78c416412188a23575c01071a8","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100105442287383573"],"updated_at":"2023-11-30T20:11:43Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e9a2b44f6f65440a817fc63989ca799a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","updated_at":"2023-11-30T20:11:42Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ad1c4e5b8fbc11ee8bd2ac1f6bc539aa","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_81db2fb950d447efb683744dd814152e","confirmation":null,"created_at":"2024-08-02T23:15:25Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240802/e8e01cedb82d814a649b4de865280d304d.pdf","id":"sf_96efbd01c0244c6a91d6783930149667","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100110368070372161"],"updated_at":"2024-08-02T23:15:25Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_944da1eb5712473dbc054e5c24a49f1f","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","updated_at":"2024-08-02T23:15:24Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_18b85ae6512511efb7ddac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:42Z","est_delivery_date":"2023-11-30T20:11:42Z","fees":[],"id":"trk_d2471e99b56b4e1f821eab0eaff3add1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2QyNDcxZTk5YjU2YjRlMWY4MjFlYWIwZWFmZjNhZGQx","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383573","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:42Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:42Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:42Z","weight":null},"tracking_code":"9400100105442287383573","updated_at":"2023-11-30T20:11:43Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:25Z","est_delivery_date":"2024-08-02T23:15:25Z","fees":[],"id":"trk_3bd329377d794bff9bfecd3f5ee835f6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiZDMyOTM3N2Q3OTRiZmY5YmZlY2QzZjVlZTgzNWY2","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372161","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:25Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:25Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:25Z","weight":null},"tracking_code":"9400100110368070372161","updated_at":"2024-08-02T23:15:25Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:37Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:21Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:37Z","height":4,"id":"prcl_57aaf5e6761047b5ab79b1d666dafb6c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:37Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:38Z","date_advance":0,"id":"pl_48d5897267f44a25aeaa6b927750701a","integrated_form":"none","label_date":"2023-11-30T20:11:38Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e86d1f0f24c3d044b295f83946e4dd90c7.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:38Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_70fa6ec156e14a539c6de611988564d9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7078f211e5b04a838ba737523d3889af","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0ec0538942394125b526cacf2307c834","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_03786a6e7ea24e6fad12f2eb0c81c36c","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:37Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab6f68e8fbc11ee8705ac1f6bc539ae","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"id":"shp_738f79452695447188aacc702c5c79b5","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:21Z","height":4,"id":"prcl_4fcef5748d434b86a9b6a81b5e1df497","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:21Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:22Z","date_advance":0,"id":"pl_fbd2cdb1f0bb42828848e74aa985a00f","integrated_form":"none","label_date":"2024-08-02T23:15:22Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8e91a7f6ec69e4656a6fcd50eb1557538.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:22Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_273bb69faeb049cdababbbcaa3676768","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d2530b09bfef4856a2d820619c2650f0","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:21Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172c93e1512511ef8774ac1f6bc53342","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_06fd50ee5813478d8e2893a4437efeab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","updated_at":"2023-11-30T20:11:38Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_aab4723b8fbc11ee82f23cecef1b359e","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c912208b90a44dbaf76d934f0a16efe","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_738f79452695447188aacc702c5c79b5","updated_at":"2024-08-02T23:15:22Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_172a5ad8512511efb759ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:21+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:38Z","est_delivery_date":"2023-11-30T20:11:38Z","fees":[],"id":"trk_f488843c23bd45d4b3ca6e83278f531f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Y0ODg4NDNjMjNiZDQ1ZDRiM2NhNmU4MzI3OGY1MzFm","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383559","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:38Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:38Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:38Z","weight":null},"tracking_code":"9400100105442287383559","updated_at":"2023-11-30T20:11:39Z","usps_zone":4},{"batch_id":"batch_e75048698c23468c8195af813273ea47","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:22Z","est_delivery_date":"2024-08-02T23:15:22Z","fees":[],"id":"trk_552573b8b40842e58111525146a56be2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU1MjU3M2I4YjQwODQyZTU4MTExNTI1MTQ2YTU2YmUy","shipment_id":"shp_738f79452695447188aacc702c5c79b5","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372154","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:22Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:22Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:22Z","weight":null},"tracking_code":"9400100110368070372154","updated_at":"2024-08-02T23:15:22Z","usps_zone":4},{"batch_id":"batch_60ff54b46de440afa1045bf51f19f1b0","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_133e7577512511efb674ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:15Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1341896c512511efb5cd3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"90277"},"id":"shp_211059b119904cd29082fdeeb09d64aa","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:25Z","height":4,"id":"prcl_70e7ad23b92646d4b9841181f6acd69b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:25Z","date_advance":0,"id":"pl_10128271f8164b6e80be2163ea5e9a5d","integrated_form":"none","label_date":"2023-11-30T20:11:25Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e873cf3735f14343658f18435c17a20ab0.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:25Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a7813e425dd74def9d02270a600f782b","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b49da136deb94fb09f7ecc1d1b0d3525","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_dfc51f2799aa4f8db0b12df5d736751c","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_547ff944565d4953b708e888971087e4","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a336a3cf8fbc11ee85deac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{},"zip":"90277"},"id":"shp_72a94cce76ff481ca6adb7a0725a5352","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:15Z","height":4,"id":"prcl_0da23d1509f14b69bb60cfa234698305","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:15Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:15Z","date_advance":0,"id":"pl_f4777c4fe8bc410caae4cc8ce0a0e5af","integrated_form":"none","label_date":"2024-08-02T23:15:15Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8c28c1d6a6d4849a1983d8846af8236c4.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:15Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2b0409ced9164fd6b5d9f882db170aaa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d9dc3935951744ef8e6e1ff755feaf5b","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7cf179a7cef04d0a8b2532baa3297854","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_1341896c512511efb5cd3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:24+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_18b8ffcdb77c4b6ba779a668926c5ea9","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","updated_at":"2023-11-30T20:11:25Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a334a4da8fbc11ee8292ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2b0409ced9164fd6b5d9f882db170aaa","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","updated_at":"2024-08-02T23:15:15Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_133e7577512511efb674ac1f6bc539aa","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:15+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:26Z","est_delivery_date":"2023-11-30T20:11:26Z","fees":[],"id":"trk_73aca0734e8047cb88b7b70e30ec38c2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzczYWNhMDczNGU4MDQ3Y2I4OGI3YjcwZTMwZWMzOGMy","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383467","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:26Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:26Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:26Z","weight":null},"tracking_code":"9400100105442287383467","updated_at":"2023-11-30T20:11:25Z","usps_zone":4},{"batch_id":"batch_f6ceea6097fa4a218c869ed706ef782c","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + Package Service"},"created_at":"2024-08-02T23:15:16Z","est_delivery_date":"2024-08-02T23:15:16Z","fees":[],"id":"trk_7ebddea5fa194993bd008259af2ac7e6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzdlYmRkZWE1ZmExOTQ5OTNiZDAwODI1OWFmMmFjN2U2","shipment_id":"shp_72a94cce76ff481ca6adb7a0725a5352","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372147","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:16Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:16Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:16Z","weight":null},"tracking_code":"9400100110368070372147","updated_at":"2024-08-02T23:15:15Z","usps_zone":4},{"batch_id":"batch_646017200f3b411f9bd0c8563729d7c3","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fbfeec512511efb59b3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2023-11-30T20:11:22Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2024-08-02T23:15:12Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.93000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fed40e512511efb59d3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:22+00:00","verifications":{},"zip":"90277"},"id":"shp_87a5ea6c80604051b800e6230d5a6665","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2023-11-30T20:11:22Z","height":4,"id":"prcl_963d3953c4264816adb8c30b1a8180af","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2023-11-30T20:11:22Z","weight":15.4,"width":8},"postage_label":{"created_at":"2023-11-30T20:11:23Z","date_advance":0,"id":"pl_156b31df5ca6429db31d398fb2af42f1","integrated_form":"none","label_date":"2023-11-30T20:11:23Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231130/e8e0d4ce2b1022432fa547b085a309c788.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2023-11-30T20:11:23Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f79b9973f1034679abad38b816b78e9d","list_currency":"USD","list_rate":"31.25","mode":"test","object":"Rate","rate":"31.25","retail_currency":"USD","retail_rate":"35.80","service":"Express","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_eb1149acdea043388c3603ca92f53fe6","list_currency":"USD","list_rate":"8.24","mode":"test","object":"Rate","rate":"6.95","retail_currency":"USD","retail_rate":"10.20","service":"Priority","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_41326239b0904f10990984aa31ba6d1a","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"GroundAdvantage","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0afa5f0a62174682af1a922d52b7cb3f","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"ParcelSelect","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:22Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ec27428fbc11ee8505ac1f6bc539aa","mode":"test","name":"Elizabeth + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:12+00:00","verifications":{},"zip":"90277"},"id":"shp_81a3f1c78b954b7b9fc9d6524cace132","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2024-08-02T23:15:12Z","height":4,"id":"prcl_a80f7c6dfc8645a78b20e59b54b43680","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2024-08-02T23:15:12Z","weight":15.4,"width":8},"postage_label":{"created_at":"2024-08-02T23:15:13Z","date_advance":0,"id":"pl_53d216395f5143f590454d40ffe8195d","integrated_form":"none","label_date":"2024-08-02T23:15:13Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240802/e8ef5f0bd732b04ff58019fb4d8bb12fcf.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2024-08-02T23:15:13Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_74c4aa582f544fa3a4ebc1ffb0792371","list_currency":"USD","list_rate":"33.10","mode":"test","object":"Rate","rate":"33.10","retail_currency":"USD","retail_rate":"37.90","service":"Express","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2f3ad6fbd331458eb2120f3b916b9762","list_currency":"USD","list_rate":"8.25","mode":"test","object":"Rate","rate":"6.90","retail_currency":"USD","retail_rate":"9.80","service":"Priority","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_50325e458bcf43e3a1789ce5bedfa6f7","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fed40e512511efb59d3cecef1b359e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2023-11-30T20:11:22+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2023-11-30T20:11:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_af7b650169e84f078224922b785ed0ab","list_currency":"USD","list_rate":"6.07","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.00","service":"First","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","updated_at":"2023-11-30T20:11:23Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2023-11-30T20:11:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_a1ea378d8fbc11ee81b2ac1f6bc539ae","mode":"test","name":"JACK + N Harbor Dr","street2":null,"updated_at":"2024-08-02T23:15:12+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2024-08-02T23:15:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_50325e458bcf43e3a1789ce5bedfa6f7","list_currency":"USD","list_rate":"6.40","mode":"test","object":"Rate","rate":"5.93","retail_currency":"USD","retail_rate":"8.45","service":"GroundAdvantage","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","updated_at":"2024-08-02T23:15:13Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2024-08-02T23:15:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_11fbfeec512511efb59b3cecef1b359e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2023-11-30T20:11:23+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + TOWNSEND ST APT 20","street2":null,"updated_at":"2024-08-02T23:15:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:23Z","est_delivery_date":"2023-11-30T20:11:23Z","fees":[],"id":"trk_2a2f276b3bc440e7aaaa10de86a39ba7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJhMmYyNzZiM2JjNDQwZTdhYWFhMTBkZTg2YTM5YmE3","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383443","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:23Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:23Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:23Z","weight":null},"tracking_code":"9400100105442287383443","updated_at":"2023-11-30T20:11:23Z","usps_zone":4}]}' + Package Service"},"created_at":"2024-08-02T23:15:13Z","est_delivery_date":"2024-08-02T23:15:13Z","fees":[],"id":"trk_07d04fad7dea485d80665076cab523df","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzA3ZDA0ZmFkN2RlYTQ4NWQ4MDY2NTA3NmNhYjUyM2Rm","shipment_id":"shp_81a3f1c78b954b7b9fc9d6524cace132","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372123","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:13Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:13Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:13Z","weight":null},"tracking_code":"9400100110368070372123","updated_at":"2024-08-02T23:15:13Z","usps_zone":4}]}' headers: Cache-Control: - private, no-cache, no-store @@ -267,20 +263,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec96e7896122001b9929 + - 4d57346d66ad68a0f440b8c7003777e2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.514063" + - "0.526182" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerAll.yaml b/tests/cassettes/TestTrackerAll.yaml index dbdf8b6..03c8fc2 100644 --- a/tests/cassettes/TestTrackerAll.yaml +++ b/tests/cassettes/TestTrackerAll.yaml @@ -2,44 +2,42 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/trackers + url: https://api.easypost.com/v2/trackers?page_size=5 method: GET response: body: '{"has_more":true,"trackers":[{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:03Z","est_delivery_date":"2023-11-30T20:12:03Z","fees":[],"id":"trk_e6b80a95c11c406296ae85132c60bc6b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U2YjgwYTk1YzExYzQwNjI5NmFlODUxMzJjNjBiYzZi","shipment_id":"shp_22f1016c74304713b7d32743425c303e","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383788","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:03Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:03Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:03Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:41Z","est_delivery_date":"2024-08-02T23:15:41Z","fees":[],"id":"trk_33b3b540a47541b9ac25115bc5fef5a3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMzYjNiNTQwYTQ3NTQxYjlhYzI1MTE1YmM1ZmVmNWEz","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372253","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:41Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:41Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:41Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:01Z","est_delivery_date":"2023-11-30T20:12:01Z","fees":[],"id":"trk_b3f35c9fd8fd434491c9ff733ae2db6a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IzZjM1YzlmZDhmZDQzNDQ5MWM5ZmY3MzNhZTJkYjZh","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383757","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:01Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:01Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:01Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:39Z","est_delivery_date":"2024-08-02T23:15:39Z","fees":[],"id":"trk_ec400b14a2b24683bb741388dec8bc35","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2VjNDAwYjE0YTJiMjQ2ODNiYjc0MTM4OGRlYzhiYzM1","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372215","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:39Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:39Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:39Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:55Z","est_delivery_date":"2023-11-30T20:11:55Z","fees":[],"id":"trk_f234e0bfac884ba9b274124a580453b8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YyMzRlMGJmYWM4ODRiYTliMjc0MTI0YTU4MDQ1M2I4","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383672","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:55Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:55Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:55Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:35Z","est_delivery_date":"2024-08-02T23:15:35Z","fees":[],"id":"trk_5d4c5abf898044e59136394fe0c1f450","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzVkNGM1YWJmODk4MDQ0ZTU5MTM2Mzk0ZmUwYzFmNDUw","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372208","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:35Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:35Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:35Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:49Z","est_delivery_date":"2023-11-30T20:11:49Z","fees":[],"id":"trk_60b162215ab34d7ebb268fc114d4b718","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYwYjE2MjIxNWFiMzRkN2ViYjI2OGZjMTE0ZDRiNzE4","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383634","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:49Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:49Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:49Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:30Z","est_delivery_date":"2024-08-02T23:15:30Z","fees":[],"id":"trk_3bb1c6fde7154b3a9bf337ea39b667dc","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiYjFjNmZkZTcxNTRiM2E5YmYzMzdlYTM5YjY2N2Rj","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372192","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:30Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:30Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:30Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:47Z","est_delivery_date":"2023-11-30T20:11:47Z","fees":[],"id":"trk_0df2b7f9def64da9b6010b7001760df7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBkZjJiN2Y5ZGVmNjRkYTliNjAxMGI3MDAxNzYwZGY3","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383610","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:47Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:47Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:47Z","weight":null}]}' + Package Service"},"created_at":"2024-08-02T23:15:29Z","est_delivery_date":"2024-08-02T23:15:29Z","fees":[],"id":"trk_da27cbafbd6b482eac96a23b1c9a9dd1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RhMjdjYmFmYmQ2YjQ4MmVhYzk2YTIzYjFjOWE5ZGQx","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372185","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:29Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:29Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:29Z","weight":null}]}' headers: Cache-Control: - private, no-cache, no-store @@ -55,25 +53,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec97e7896122001b99d9 + - 4d57346d66ad68a0f440b8c70037785b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.165571" + - "0.201190" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerCreate.yaml b/tests/cassettes/TestTrackerCreate.yaml index e097265..fe7f3c6 100644 --- a/tests/cassettes/TestTrackerCreate.yaml +++ b/tests/cassettes/TestTrackerCreate.yaml @@ -17,9 +17,9 @@ interactions: body: '{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-09-20T18:01:24Z","est_delivery_date":"2023-09-20T19:38:57Z","finalized":true,"id":"trk_3b570bf807584bd986a1e10bb7323631","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiNTcwYmY4MDc1ODRiZDk4NmExZTEwYmI3MzIzNjMx","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2023-08-20T19:38:57Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-08-21T08:15:57Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-09-20T19:38:57Z","weight":null}' + Package Service"},"created_at":"2024-07-26T19:34:37Z","est_delivery_date":"2024-07-26T19:34:37Z","finalized":true,"id":"trk_c1a64b24670f4004a62838a2c9faff45","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MxYTY0YjI0NjcwZjQwMDRhNjI4MzhhMmM5ZmFmZjQ1","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-06-26T19:34:37Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-06-27T08:11:37Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-07-26T19:34:37Z","weight":null}' headers: Cache-Control: - private, no-cache, no-store @@ -28,7 +28,7 @@ interactions: Expires: - "0" Location: - - /api/v2/trackers/trk_3b570bf807584bd986a1e10bb7323631 + - /api/v2/trackers/trk_c1a64b24670f4004a62838a2c9faff45 Pragma: - no-cache Referrer-Policy: @@ -42,20 +42,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec98e7896122001b9a2b + - 4d57346d66ad68a1f440b8c700377885 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.098445" + - "0.059571" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerCreateList.yaml b/tests/cassettes/TestTrackerCreateList.yaml index 942e0cc..7b9023e 100644 --- a/tests/cassettes/TestTrackerCreateList.yaml +++ b/tests/cassettes/TestTrackerCreateList.yaml @@ -30,25 +30,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec98e7896122001b9a69 + - 4d57346d66ad68a1f440b8c700377899 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.077064" + - "0.060048" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerRetrieve.yaml b/tests/cassettes/TestTrackerRetrieve.yaml index 19ad1fd..0c12898 100644 --- a/tests/cassettes/TestTrackerRetrieve.yaml +++ b/tests/cassettes/TestTrackerRetrieve.yaml @@ -17,9 +17,9 @@ interactions: body: '{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-09-20T18:01:24Z","est_delivery_date":"2023-09-20T19:38:57Z","finalized":true,"id":"trk_3b570bf807584bd986a1e10bb7323631","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiNTcwYmY4MDc1ODRiZDk4NmExZTEwYmI3MzIzNjMx","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2023-08-20T19:38:57Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-08-21T08:15:57Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-09-20T19:38:57Z","weight":null}' + Package Service"},"created_at":"2024-07-26T19:34:37Z","est_delivery_date":"2024-07-26T19:34:37Z","finalized":true,"id":"trk_c1a64b24670f4004a62838a2c9faff45","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MxYTY0YjI0NjcwZjQwMDRhNjI4MzhhMmM5ZmFmZjQ1","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-06-26T19:34:37Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-06-27T08:11:37Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-07-26T19:34:37Z","weight":null}' headers: Cache-Control: - private, no-cache, no-store @@ -28,7 +28,7 @@ interactions: Expires: - "0" Location: - - /api/v2/trackers/trk_3b570bf807584bd986a1e10bb7323631 + - /api/v2/trackers/trk_c1a64b24670f4004a62838a2c9faff45 Pragma: - no-cache Referrer-Policy: @@ -37,25 +37,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec98e7896122001b9a9b + - 4d57346d66ad68a1f440b8c7003778aa X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.075259" + - "0.064917" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -69,15 +71,15 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/trackers/trk_3b570bf807584bd986a1e10bb7323631 + url: https://api.easypost.com/v2/trackers/trk_c1a64b24670f4004a62838a2c9faff45 method: GET response: body: '{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-09-20T18:01:24Z","est_delivery_date":"2023-09-20T19:38:57Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"id":"trk_3b570bf807584bd986a1e10bb7323631","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiNTcwYmY4MDc1ODRiZDk4NmExZTEwYmI3MzIzNjMx","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2023-08-20T19:38:57Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-08-21T08:15:57Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-09-20T19:38:57Z","weight":null}' + Package Service"},"created_at":"2024-07-26T19:34:37Z","est_delivery_date":"2024-07-26T19:34:37Z","fees":[],"id":"trk_c1a64b24670f4004a62838a2c9faff45","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MxYTY0YjI0NjcwZjQwMDRhNjI4MzhhMmM5ZmFmZjQ1","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-06-26T19:34:37Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-06-27T08:11:37Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-07-26T19:34:37Z","weight":null}' headers: Cache-Control: - private, no-cache, no-store @@ -93,27 +95,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec98e7896122001b9ad1 + - 4d57346d66ad68a1f440b8c7003778c3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.059082" + - "0.070318" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackersGetNextPage.yaml b/tests/cassettes/TestTrackersGetNextPage.yaml index 6f3691e..3189579 100644 --- a/tests/cassettes/TestTrackersGetNextPage.yaml +++ b/tests/cassettes/TestTrackersGetNextPage.yaml @@ -2,44 +2,36 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/trackers + url: https://api.easypost.com/v2/trackers?page_size=5 method: GET response: body: '{"has_more":true,"trackers":[{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:03Z","est_delivery_date":"2023-11-30T20:12:03Z","fees":[],"id":"trk_e6b80a95c11c406296ae85132c60bc6b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U2YjgwYTk1YzExYzQwNjI5NmFlODUxMzJjNjBiYzZi","shipment_id":"shp_22f1016c74304713b7d32743425c303e","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383788","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:03Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:03Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:03Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON - SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON - TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:12:01Z","est_delivery_date":"2023-11-30T20:12:01Z","fees":[],"id":"trk_b3f35c9fd8fd434491c9ff733ae2db6a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2IzZjM1YzlmZDhmZDQzNDQ5MWM5ZmY3MzNhZTJkYjZh","shipment_id":"shp_2868bf41a0fd452bb54dabfa9ddb0752","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383757","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:12:01Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:49:01Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:12:01Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:45Z","est_delivery_date":"2024-08-02T23:15:45Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"id":"trk_2ab6174da6424db8a9b0e2ff7adf81db","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJhYjYxNzRkYTY0MjRkYjhhOWIwZTJmZjdhZGY4MWRi","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:45Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:45Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:45Z","weight":null},{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:45Z","est_delivery_date":null,"fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"id":"trk_dce304f9129d46dca6d9d1d136f325e2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RjZTMwNGY5MTI5ZDQ2ZGNhNmQ5ZDFkMTM2ZjMyNWUy","shipment_id":null,"signed_by":null,"status":"error","status_detail":"unknown","tracking_code":"EZ1000000003","tracking_details":[{"carrier_code":"","datetime":"2024-08-02T23:15:45Z","description":"","message":"In + test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, + EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2024-08-02T23:15:45Z","weight":null},{"carrier":"USPS","carrier_detail":null,"created_at":"2024-08-02T23:15:45Z","est_delivery_date":null,"fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"id":"trk_e9f0396079e7466a8a4f0102fa804b1c","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U5ZjAzOTYwNzllNzQ2NmE4YTRmMDEwMmZhODA0YjFj","shipment_id":null,"signed_by":null,"status":"error","status_detail":"unknown","tracking_code":"EZ1000000002","tracking_details":[{"carrier_code":"","datetime":"2024-08-02T23:15:45Z","description":"","message":"In + test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, + EZ2000000002, ... , EZ7000000007","object":"TrackingDetail","source":"ProcessingError","status":"error","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2024-08-02T23:15:45Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:55Z","est_delivery_date":"2023-11-30T20:11:55Z","fees":[],"id":"trk_f234e0bfac884ba9b274124a580453b8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2YyMzRlMGJmYWM4ODRiYTliMjc0MTI0YTU4MDQ1M2I4","shipment_id":"shp_d24ce11d5b5840bbac2d9aff06d0564f","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383672","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:55Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:55Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:55Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:41Z","est_delivery_date":"2024-08-02T23:15:41Z","fees":[],"id":"trk_33b3b540a47541b9ac25115bc5fef5a3","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMzYjNiNTQwYTQ3NTQxYjlhYzI1MTE1YmM1ZmVmNWEz","shipment_id":"shp_f048e3550ee941279657f42d2ac1d0ee","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372253","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:41Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:41Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:41Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:49Z","est_delivery_date":"2023-11-30T20:11:49Z","fees":[],"id":"trk_60b162215ab34d7ebb268fc114d4b718","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYwYjE2MjIxNWFiMzRkN2ViYjI2OGZjMTE0ZDRiNzE4","shipment_id":"shp_ceb56a3de725422496a7b928874caa2d","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383634","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:49Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:49Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:49Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON - SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON - TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:47Z","est_delivery_date":"2023-11-30T20:11:47Z","fees":[],"id":"trk_0df2b7f9def64da9b6010b7001760df7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzBkZjJiN2Y5ZGVmNjRkYTliNjAxMGI3MDAxNzYwZGY3","shipment_id":"shp_fe05ed3554d0486d96be739870fc1490","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383610","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:47Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:47Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:47Z","weight":null}]}' + Package Service"},"created_at":"2024-08-02T23:15:39Z","est_delivery_date":"2024-08-02T23:15:39Z","fees":[],"id":"trk_ec400b14a2b24683bb741388dec8bc35","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2VjNDAwYjE0YTJiMjQ2ODNiYjc0MTM4OGRlYzhiYzM1","shipment_id":"shp_cad8ecbace844554bbcf7ad0a6b15009","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372215","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:39Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:39Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:39Z","weight":null}]}' headers: Cache-Control: - private, no-cache, no-store @@ -60,64 +52,62 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec98e7896122001b9b02 + - 4d57346d66ad68a1f440b8c7003778df X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.144961" + - "0.172870" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: before_id=trk_0df2b7f9def64da9b6010b7001760df7&page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/trackers + url: https://api.easypost.com/v2/trackers?before_id=trk_ec400b14a2b24683bb741388dec8bc35&page_size=5 method: GET response: body: '{"has_more":true,"trackers":[{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:44Z","est_delivery_date":"2023-11-30T20:11:44Z","fees":[],"id":"trk_516caec3889e4c3aad7de96a7f969170","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzUxNmNhZWMzODg5ZTRjM2FhZDdkZTk2YTdmOTY5MTcw","shipment_id":"shp_ed2b9dc52f5845f1a1b1feed3b8a5ba5","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383597","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:44Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:44Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:44Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:35Z","est_delivery_date":"2024-08-02T23:15:35Z","fees":[],"id":"trk_5d4c5abf898044e59136394fe0c1f450","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzVkNGM1YWJmODk4MDQ0ZTU5MTM2Mzk0ZmUwYzFmNDUw","shipment_id":"shp_842d83c73e4b46f4a84e26e87fdb0f58","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372208","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:35Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:35Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:35Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:42Z","est_delivery_date":"2023-11-30T20:11:42Z","fees":[],"id":"trk_d2471e99b56b4e1f821eab0eaff3add1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2QyNDcxZTk5YjU2YjRlMWY4MjFlYWIwZWFmZjNhZGQx","shipment_id":"shp_377201d5b6f84999bb41454ecb5e8600","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383573","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:42Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:42Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:42Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:30Z","est_delivery_date":"2024-08-02T23:15:30Z","fees":[],"id":"trk_3bb1c6fde7154b3a9bf337ea39b667dc","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiYjFjNmZkZTcxNTRiM2E5YmYzMzdlYTM5YjY2N2Rj","shipment_id":"shp_7fb459c85d274a19a47fe2fadf266228","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372192","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:30Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:30Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:30Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:38Z","est_delivery_date":"2023-11-30T20:11:38Z","fees":[],"id":"trk_f488843c23bd45d4b3ca6e83278f531f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Y0ODg4NDNjMjNiZDQ1ZDRiM2NhNmU4MzI3OGY1MzFm","shipment_id":"shp_f0e3f4f2e9ad40529b3330aa3d9416d8","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383559","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:38Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:38Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:38Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:29Z","est_delivery_date":"2024-08-02T23:15:29Z","fees":[],"id":"trk_da27cbafbd6b482eac96a23b1c9a9dd1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RhMjdjYmFmYmQ2YjQ4MmVhYzk2YTIzYjFjOWE5ZGQx","shipment_id":"shp_fe84a2a4c4894499a19699a54767d08b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372185","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:29Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:29Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:29Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:26Z","est_delivery_date":"2023-11-30T20:11:26Z","fees":[],"id":"trk_73aca0734e8047cb88b7b70e30ec38c2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzczYWNhMDczNGU4MDQ3Y2I4OGI3YjcwZTMwZWMzOGMy","shipment_id":"shp_211059b119904cd29082fdeeb09d64aa","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383467","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:26Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:26Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:26Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2024-08-02T23:15:26Z","est_delivery_date":"2024-08-02T23:15:26Z","fees":[],"id":"trk_c2f70261925c4ccf8d6bc60f1aab3aa9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MyZjcwMjYxOTI1YzRjY2Y4ZDZiYzYwZjFhYWIzYWE5","shipment_id":"shp_32f296472f6c420d9f71de7ad945268b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372178","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:26Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:26Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:26Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2023-11-30T20:11:23Z","est_delivery_date":"2023-11-30T20:11:23Z","fees":[],"id":"trk_2a2f276b3bc440e7aaaa10de86a39ba7","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzJhMmYyNzZiM2JjNDQwZTdhYWFhMTBkZTg2YTM5YmE3","shipment_id":"shp_87a5ea6c80604051b800e6230d5a6665","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100105442287383443","tracking_details":[{"carrier_code":"","datetime":"2023-10-30T20:11:23Z","description":"","message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2023-10-31T08:48:23Z","description":"","message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2023-11-30T20:11:23Z","weight":null}]}' + Package Service"},"created_at":"2024-08-02T23:15:25Z","est_delivery_date":"2024-08-02T23:15:25Z","fees":[],"id":"trk_3bd329377d794bff9bfecd3f5ee835f6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzNiZDMyOTM3N2Q3OTRiZmY5YmZlY2QzZjVlZTgzNWY2","shipment_id":"shp_2272bfaaafdc483987d9f9e2b67280c4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100110368070372161","tracking_details":[{"carrier_code":"","datetime":"2024-07-02T23:15:25Z","description":"","message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":"","datetime":"2024-07-03T11:52:25Z","description":"","message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2024-08-02T23:15:25Z","weight":null}]}' headers: Cache-Control: - private, no-cache, no-store @@ -138,20 +128,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec99e7896122001b9b52 + - 4d57346d66ad68a1f440b8c700377904 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.134965" + - "0.195452" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserAllChildUsers.yaml b/tests/cassettes/TestUserAllChildUsers.yaml index 5a952d1..370930b 100644 --- a/tests/cassettes/TestUserAllChildUsers.yaml +++ b/tests/cassettes/TestUserAllChildUsers.yaml @@ -2,22 +2,22 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED - Content-Type: - - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/users/children + url: https://api.easypost.com/v2/users/children?page_size=5 method: GET response: body: '{"children":[{"created_at":"2023-09-20T18:01:26Z","id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2023-09-20T18:09:24Z","id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2023-11-30T20:12:09Z","id":"user_3d8dac28f4ba42729036133637356d40","name":"Test - User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"has_more":false}' + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2024-07-26T19:35:11Z","id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2024-07-26T20:01:28Z","id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -33,25 +33,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 3c78c4076597040af3f7dc71000c4afb + - 4d57346d66ad68a2f440b8c70037793b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 2c48984abf - - extlb2nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.040478" + - "0.027643" X-Version-Label: - - easypost-202401041812-437974c716-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserCreate.yaml b/tests/cassettes/TestUserCreate.yaml index 114d7ac..d87e082 100644 --- a/tests/cassettes/TestUserCreate.yaml +++ b/tests/cassettes/TestUserCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/users method: POST response: - body: '{"api_keys":[{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_c08fe7b8ce10424ab6532f57d10c626a","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:12:09Z","id":"ak_bb67d66d8bd64d71973873b304677f02","key":"REDACTED","mode":"production","object":"ApiKey"}],"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + body: '{"api_keys":[{"active":true,"created_at":"2024-08-02T23:15:46Z","id":"ak_df7b6c397a7b4eb9b158db00864c9a9c","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-02T23:15:46Z","id":"ak_6ae2890e3d50467d834b39a82c685070","key":"REDACTED","mode":"production","object":"ApiKey"}],"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}' headers: Cache-Control: @@ -36,20 +36,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec99e7896122001b9b8a + - 4d57346d66ad68a2f440b8c700377943 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb35nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.671710" + - "0.431769" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestUserDelete.yaml b/tests/cassettes/TestUserDelete.yaml index c99cb98..f1aecec 100644 --- a/tests/cassettes/TestUserDelete.yaml +++ b/tests/cassettes/TestUserDelete.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/users method: POST response: - body: '{"api_keys":[{"active":true,"created_at":"2023-11-30T20:12:10Z","id":"ak_ba13234fc6bd43a4b03ec0a819275c5b","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2023-11-30T20:12:10Z","id":"ak_be10e59e6e564073b3be32cd86e4bcc0","key":"REDACTED","mode":"production","object":"ApiKey"}],"children":[],"created_at":"2023-11-30T20:12:10Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_fea59601143a43538d923e3ff06f4e02","name":"Test + body: '{"api_keys":[{"active":true,"created_at":"2024-08-02T23:15:46Z","id":"ak_19eb7d78330c4b1a9c2aa5b6e42e9451","key":"REDACTED","mode":"test","object":"ApiKey"},{"active":true,"created_at":"2024-08-02T23:15:46Z","id":"ak_dd27af4ea5bb46fb8b8b4f76391f080f","key":"REDACTED","mode":"production","object":"ApiKey"}],"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_963359aa82494a309a90facf65adf5c5","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}' headers: Cache-Control: @@ -36,20 +36,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9ae7896122001b9caf + - 4d57346d66ad68a2f440b8c7003779ae X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.730316" + - "0.467273" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -63,7 +63,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/users/user_fea59601143a43538d923e3ff06f4e02 + url: https://api.easypost.com/v2/users/user_963359aa82494a309a90facf65adf5c5 method: DELETE response: body: "" @@ -85,20 +85,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9be7896122001b9dad + - 4d57346d66ad68a3f440b8c700377a0d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.138216" + - "0.062610" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 204 No Content diff --git a/tests/cassettes/TestUserGetNextChildUserPage.yaml b/tests/cassettes/TestUserGetNextChildUserPage.yaml index 55a2bb0..3ccd480 100644 --- a/tests/cassettes/TestUserGetNextChildUserPage.yaml +++ b/tests/cassettes/TestUserGetNextChildUserPage.yaml @@ -2,22 +2,80 @@ version: 1 interactions: - request: - body: page_size=5 + body: "" form: {} headers: Authorization: - REDACTED + User-Agent: + - REDACTED + url: https://api.easypost.com/v2/users/children?page_size=5 + method: GET + response: + body: '{"children":[{"created_at":"2023-09-20T18:01:26Z","id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2023-09-20T18:09:24Z","id":"user_97f56192c53d490aa7851087b88618a4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2023-11-30T20:12:09Z","id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2024-07-26T19:35:11Z","id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2024-07-26T20:01:28Z","id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"has_more":true}' + headers: + Cache-Control: + - private, no-cache, no-store Content-Type: - - application/x-www-form-urlencoded + - application/json; charset=utf-8 + Expires: + - "0" + Pragma: + - no-cache + Referrer-Policy: + - strict-origin-when-cross-origin + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; preload + X-Backend: + - easypost + X-Canary: + - direct + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Ep-Request-Uuid: + - 4d57346d66ad68a3f440b8c700377a24 + X-Frame-Options: + - SAMEORIGIN + X-Node: + - bigweb43nuq + X-Permitted-Cross-Domain-Policies: + - none + X-Proxied: + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 + X-Runtime: + - "0.035672" + X-Version-Label: + - easypost-202408021936-66687f8918-master + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Authorization: + - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/users/children + url: https://api.easypost.com/v2/users/children?before_id=user_181e86f095d64d028676afb1bfdb9774&page_size=5 method: GET response: body: '{"children":[{"created_at":"2023-09-20T18:01:26Z","id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2023-09-20T18:09:24Z","id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2023-11-30T20:12:09Z","id":"user_3d8dac28f4ba42729036133637356d40","name":"Test - User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"has_more":false}' + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2024-07-26T19:35:11Z","id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"created_at":"2024-07-26T20:01:28Z","id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store @@ -33,25 +91,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 3c78c4076597040bf3f7dc71000c4b20 + - 4d57346d66ad68a3f440b8c700377a33 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 2c48984abf - - extlb2nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.043493" + - "0.027236" X-Version-Label: - - easypost-202401041812-437974c716-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserRetrieve.yaml b/tests/cassettes/TestUserRetrieve.yaml index 1dfd064..bfa02d2 100644 --- a/tests/cassettes/TestUserRetrieve.yaml +++ b/tests/cassettes/TestUserRetrieve.yaml @@ -15,6 +15,10 @@ interactions: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -37,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9be7896122001b9df7 + - 4d57346d66ad68a3f440b8c700377a43 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.075837" + - "0.122229" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -70,6 +74,10 @@ interactions: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -92,20 +100,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9be7896122001b9e3b + - 4d57346d66ad68a3f440b8c700377a68 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.065426" + - "0.128069" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserRetrieveMe.yaml b/tests/cassettes/TestUserRetrieveMe.yaml index 37aa8ee..d4d835a 100644 --- a/tests/cassettes/TestUserRetrieveMe.yaml +++ b/tests/cassettes/TestUserRetrieveMe.yaml @@ -15,6 +15,10 @@ interactions: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -37,20 +41,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9be7896122001b9e80 + - 4d57346d66ad68a3f440b8c700377a8a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb40nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.070169" + - "0.115552" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserUpdate.yaml b/tests/cassettes/TestUserUpdate.yaml index cbdc76a..7cfe234 100644 --- a/tests/cassettes/TestUserUpdate.yaml +++ b/tests/cassettes/TestUserUpdate.yaml @@ -15,6 +15,10 @@ interactions: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -32,25 +36,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9ce7896122001b9eb6 + - 4d57346d66ad68a3f440b8c700377ab0 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb32nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.070489" + - "0.120074" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -72,6 +78,10 @@ interactions: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -94,20 +104,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9ce7896122001b9ef4 + - 4d57346d66ad68a4f440b8c700377add X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb31nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.100671" + - "0.136735" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserUpdateBrand.yaml b/tests/cassettes/TestUserUpdateBrand.yaml index d7d20a6..e49d9f1 100644 --- a/tests/cassettes/TestUserUpdateBrand.yaml +++ b/tests/cassettes/TestUserUpdateBrand.yaml @@ -15,6 +15,10 @@ interactions: body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2023-09-20T18:01:26Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_5f0c48e7a66b42398740b0149b1bb24c","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-09-20T18:09:24Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_97f56192c53d490aa7851087b88618a4","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2023-11-30T20:12:09Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_3d8dac28f4ba42729036133637356d40","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T19:35:11Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_f81b29477fec4243a7de2ecc3c4f4907","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-07-26T20:01:28Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_181e86f095d64d028676afb1bfdb9774","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T22:13:55Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_03b5468f836c4cb09c017668747a9b7f","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2024-08-02T23:15:46Z","default_carbon_offset":false,"has_elevate_access":false,"id":"user_be313b8dbcf040108b045e7a33cd5fba","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_carbon_offset":false,"default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"has_elevate_access":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: @@ -32,27 +36,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9ce7896122001b9f7a + - 4d57346d66ad68a4f440b8c700377af8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb39nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.065802" + - "0.118717" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -92,20 +94,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9ce7896122001b9fc3 + - 4d57346d66ad68a4f440b8c700377b14 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb33nuq + - bigweb41nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.023214" + - "0.111724" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookAll.yaml b/tests/cassettes/TestWebhookAll.yaml index aa72f2f..d78868a 100644 --- a/tests/cassettes/TestWebhookAll.yaml +++ b/tests/cassettes/TestWebhookAll.yaml @@ -28,27 +28,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9de7896122001b9fea + - 4d57346d66ad68a4f440b8c700377b2f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb43nuq + - bigweb35nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.025478" + - "0.032595" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookCreate.yaml b/tests/cassettes/TestWebhookCreate.yaml index b9eac14..396d2b9 100644 --- a/tests/cassettes/TestWebhookCreate.yaml +++ b/tests/cassettes/TestWebhookCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:12:13Z","disabled_at":null,"id":"hook_bffe73008fbc11eeaf9d3789857a1416","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:49Z","disabled_at":null,"id":"hook_274cd900512511efab04033dfe68619d","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,7 +35,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9de7896122001ba013 + - 4d57346d66ad68a4f440b8c700377b3f X-Frame-Options: - SAMEORIGIN X-Node: @@ -43,12 +43,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.137627" + - "0.149234" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -62,7 +62,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_bffe73008fbc11eeaf9d3789857a1416 + url: https://api.easypost.com/v2/webhooks/hook_274cd900512511efab04033dfe68619d method: DELETE response: body: '{}' @@ -86,20 +86,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9de7896122001ba08f + - 4d57346d66ad68a4f440b8c700377b60 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.369377" + - "0.338220" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookCreateWithSecret.yaml b/tests/cassettes/TestWebhookCreateWithSecret.yaml index 61509f7..66f8742 100644 --- a/tests/cassettes/TestWebhookCreateWithSecret.yaml +++ b/tests/cassettes/TestWebhookCreateWithSecret.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:12:14Z","disabled_at":null,"id":"hook_c09ecbd48fbc11ee87be49c69bae4cd0","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:49Z","disabled_at":null,"id":"hook_27a335ca512511efa4445b104642e2a4","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9ee7896122001ba129 + - 4d57346d66ad68a5f440b8c700377ba6 X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,12 +45,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.592698" + - "0.691592" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,7 +64,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c09ecbd48fbc11ee87be49c69bae4cd0 + url: https://api.easypost.com/v2/webhooks/hook_27a335ca512511efa4445b104642e2a4 method: DELETE response: body: '{}' @@ -88,20 +88,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9fe7896122001ba1f6 + - 4d57346d66ad68a5f440b8c700377c1b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb34nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.396508" + - "0.411559" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookDelete.yaml b/tests/cassettes/TestWebhookDelete.yaml index 1bd5276..ffc31b5 100644 --- a/tests/cassettes/TestWebhookDelete.yaml +++ b/tests/cassettes/TestWebhookDelete.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:12:16Z","disabled_at":null,"id":"hook_c17705c68fbc11eeadbe77be192ce5f4","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:50Z","disabled_at":null,"id":"hook_2857966e512511ef889643165883c1ae","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568ec9fe7896122001ba2bd + - 4d57346d66ad68a6f440b8c700377c69 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb42nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.155470" + - "0.178738" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -62,7 +62,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c17705c68fbc11eeadbe77be192ce5f4 + url: https://api.easypost.com/v2/webhooks/hook_2857966e512511ef889643165883c1ae method: DELETE response: body: '{}' @@ -81,27 +81,25 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca0e7896122001ba301 + - 4d57346d66ad68a6f440b8c700377c97 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb32nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.344210" + - "0.361654" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookRetrieve.yaml b/tests/cassettes/TestWebhookRetrieve.yaml index e29c6ed..8341eb3 100644 --- a/tests/cassettes/TestWebhookRetrieve.yaml +++ b/tests/cassettes/TestWebhookRetrieve.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:12:17Z","disabled_at":null,"id":"hook_c1f093468fbc11ee82c8372c09de46b7","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:51Z","disabled_at":null,"id":"hook_28b9d306512511ef94452d3ef768bd1b","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca0e7896122001ba3a7 + - 4d57346d66ad68a7f440b8c700377ce4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.135692" + - "0.172710" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -62,10 +62,10 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c1f093468fbc11ee82c8372c09de46b7 + url: https://api.easypost.com/v2/webhooks/hook_28b9d306512511ef94452d3ef768bd1b method: GET response: - body: '{"created_at":"2023-11-30T20:12:17Z","disabled_at":null,"id":"hook_c1f093468fbc11ee82c8372c09de46b7","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:51Z","disabled_at":null,"id":"hook_28b9d306512511ef94452d3ef768bd1b","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -86,20 +86,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca0e7896122001ba3f7 + - 4d57346d66ad68a7f440b8c700377d10 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb36nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.028216" + - "0.033404" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -113,7 +113,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c1f093468fbc11ee82c8372c09de46b7 + url: https://api.easypost.com/v2/webhooks/hook_28b9d306512511ef94452d3ef768bd1b method: DELETE response: body: '{}' @@ -137,20 +137,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca0e7896122001ba41e + - 4d57346d66ad68a7f440b8c700377d20 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb41nuq + - bigweb40nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.342985" + - "0.352295" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookUpdate.yaml b/tests/cassettes/TestWebhookUpdate.yaml index e5b3264..b6bc657 100644 --- a/tests/cassettes/TestWebhookUpdate.yaml +++ b/tests/cassettes/TestWebhookUpdate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:12:18Z","disabled_at":null,"id":"hook_c28267128fbc11ee91d95f0aec9b2f2b","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:52Z","disabled_at":null,"id":"hook_2925d7ae512511ef8dd2436d9a7b8d05","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -35,20 +35,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca1e7896122001ba4c5 + - 4d57346d66ad68a7f440b8c700377d6e X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb34nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.133717" + - "0.170315" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,10 +64,10 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c28267128fbc11ee91d95f0aec9b2f2b + url: https://api.easypost.com/v2/webhooks/hook_2925d7ae512511ef8dd2436d9a7b8d05 method: PATCH response: - body: '{"created_at":"2023-11-30T20:12:18Z","disabled_at":null,"id":"hook_c28267128fbc11ee91d95f0aec9b2f2b","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:52Z","disabled_at":null,"id":"hook_2925d7ae512511ef8dd2436d9a7b8d05","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -88,20 +88,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca1e7896122001ba50b + - 4d57346d66ad68a7f440b8c700377da2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb36nuq + - bigweb38nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.424509" + - "0.467594" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -115,7 +115,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c28267128fbc11ee91d95f0aec9b2f2b + url: https://api.easypost.com/v2/webhooks/hook_2925d7ae512511ef8dd2436d9a7b8d05 method: DELETE response: body: '{}' @@ -134,25 +134,27 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca2e7896122001ba5d3 + - 4d57346d66ad68a8f440b8c700377df7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb38nuq + - bigweb43nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.348639" + - "0.370893" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookUpdateWithSecret.yaml b/tests/cassettes/TestWebhookUpdateWithSecret.yaml index 736477d..b7c7ad0 100644 --- a/tests/cassettes/TestWebhookUpdateWithSecret.yaml +++ b/tests/cassettes/TestWebhookUpdateWithSecret.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"created_at":"2023-11-30T20:12:19Z","disabled_at":null,"id":"hook_c3578bb88fbc11eebb047d9e7ba759f1","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:53Z","disabled_at":null,"id":"hook_29da3582512511efa2f7638ea7266078","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca2e7896122001ba650 + - 4d57346d66ad68a8f440b8c700377e51 X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,12 +45,12 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb3nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.151523" + - "0.133733" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -66,10 +66,10 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c3578bb88fbc11eebb047d9e7ba759f1 + url: https://api.easypost.com/v2/webhooks/hook_29da3582512511efa2f7638ea7266078 method: PATCH response: - body: '{"created_at":"2023-11-30T20:12:19Z","disabled_at":null,"id":"hook_c3578bb88fbc11eebb047d9e7ba759f1","mode":"test","object":"Webhook","url":"http://example.com"}' + body: '{"created_at":"2024-08-02T23:15:53Z","disabled_at":null,"id":"hook_29da3582512511efa2f7638ea7266078","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store @@ -90,20 +90,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca3e7896122001ba6a8 + - 4d57346d66ad68a9f440b8c700377e76 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb42nuq + - bigweb33nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.484752" + - "0.488297" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -117,7 +117,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_c3578bb88fbc11eebb047d9e7ba759f1 + url: https://api.easypost.com/v2/webhooks/hook_29da3582512511efa2f7638ea7266078 method: DELETE response: body: '{}' @@ -141,20 +141,20 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 32e015fa6568eca3e7896122001ba75b + - 4d57346d66ad68a9f440b8c700377eed X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb39nuq + - bigweb53nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq b3de2c47ef - - extlb1nuq 003ad9bca0 + - intlb4nuq c0f5e722d1 + - extlb2nuq fa152d4755 X-Runtime: - - "0.374569" + - "0.325217" X-Version-Label: - - easypost-202311301748-2efb918c5f-master + - easypost-202408021936-66687f8918-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/client_test.go b/tests/client_test.go index a22857d..aee1698 100644 --- a/tests/client_test.go +++ b/tests/client_test.go @@ -33,7 +33,7 @@ func (c *ClientTests) TestHooks() { easypost.RequestHookEventSubscriber{ Callback: func(ctx context.Context, event easypost.RequestHookEvent) error { assert.Equal("GET", event.Method) - assert.Equal("https://api.easypost.com/v2/addresses", event.Url.String()) + assert.Regexp("^https://api.easypost.com/v2/addresses", event.Url.String()) pairId = event.Id requestHookCalled = true return nil diff --git a/tests/fixture_test.go b/tests/fixture_test.go index 00fc8da..a8a022e 100644 --- a/tests/fixture_test.go +++ b/tests/fixture_test.go @@ -13,25 +13,25 @@ import ( ) type Fixture struct { - Addresses map[string]*easypost.Address `json:"addresses,omitempty"` - CarrierAccounts map[string]*easypost.CarrierAccount `json:"carrier_accounts,omitempty"` - CarrierStrings map[string]string `json:"carrier_strings,omitempty"` - Claims map[string]*easypost.CreateClaimParameters `json:"claims,omitempty"` - CustomsInfos map[string]*easypost.CustomsInfo `json:"customs_infos,omitempty"` - CustomsItems map[string]*easypost.CustomsItem `json:"customs_items,omitempty"` - CreditCards map[string]*easypost.CreditCardOptions `json:"credit_cards,omitempty"` - FormOptions map[string]map[string]interface{} `json:"form_options,omitempty"` - Insurances map[string]*easypost.Insurance `json:"insurances,omitempty"` - Orders map[string]*easypost.Order `json:"orders,omitempty"` - PageSizes map[string]int `json:"page_sizes,omitempty"` - Parcels map[string]*easypost.Parcel `json:"parcels,omitempty"` - Pickups map[string]*easypost.Pickup `json:"pickups,omitempty"` - ReportTypes map[string]string `json:"report_types,omitempty"` - ServiceNames map[string]map[string]string `json:"service_names,omitempty"` - Shipments map[string]*easypost.Shipment `json:"shipments,omitempty"` - TaxIdentifiers map[string]*easypost.TaxIdentifier `json:"tax_identifiers,omitempty"` - Users map[string]*easypost.UserOptions `json:"users,omitempty"` - WebhookURL string `json:"webhook_url,omitempty"` + Addresses map[string]*easypost.Address `json:"addresses,omitempty" url:"addresses,omitempty"` + CarrierAccounts map[string]*easypost.CarrierAccount `json:"carrier_accounts,omitempty" url:"carrier_accounts,omitempty"` + CarrierStrings map[string]string `json:"carrier_strings,omitempty" url:"carrier_strings,omitempty"` + Claims map[string]*easypost.CreateClaimParameters `json:"claims,omitempty" url:"claims,omitempty"` + CustomsInfos map[string]*easypost.CustomsInfo `json:"customs_infos,omitempty" url:"customs_infos,omitempty"` + CustomsItems map[string]*easypost.CustomsItem `json:"customs_items,omitempty" url:"customs_items,omitempty"` + CreditCards map[string]*easypost.CreditCardOptions `json:"credit_cards,omitempty" url:"credit_cards,omitempty"` + FormOptions map[string]map[string]interface{} `json:"form_options,omitempty" url:"form_options,omitempty"` + Insurances map[string]*easypost.Insurance `json:"insurances,omitempty" url:"insurances,omitempty"` + Orders map[string]*easypost.Order `json:"orders,omitempty" url:"orders,omitempty"` + PageSizes map[string]int `json:"page_sizes,omitempty" url:"page_sizes,omitempty"` + Parcels map[string]*easypost.Parcel `json:"parcels,omitempty" url:"parcels,omitempty"` + Pickups map[string]*easypost.Pickup `json:"pickups,omitempty" url:"pickups,omitempty"` + ReportTypes map[string]string `json:"report_types,omitempty" url:"report_types,omitempty"` + ServiceNames map[string]map[string]string `json:"service_names,omitempty" url:"service_names,omitempty"` + Shipments map[string]*easypost.Shipment `json:"shipments,omitempty" url:"shipments,omitempty"` + TaxIdentifiers map[string]*easypost.TaxIdentifier `json:"tax_identifiers,omitempty" url:"tax_identifiers,omitempty"` + Users map[string]*easypost.UserOptions `json:"users,omitempty" url:"users,omitempty"` + WebhookURL string `json:"webhook_url,omitempty" url:"webhook_url,omitempty"` } // Reads fixture data from the fixtures JSON file @@ -160,7 +160,7 @@ func (fixture *Fixture) OneCallBuyShipment() *easypost.Shipment { // If you need to re-record cassettes, increment the date below and ensure it is one day in the future, // USPS only does "next-day" pickups including Saturday but not Sunday or Holidays. func (fixture *Fixture) BasicPickup() *easypost.Pickup { - pickupDate := easypost.NewDateTime(2023, time.December, 8, 0, 0, 0, 0, time.UTC) + pickupDate := easypost.NewDateTime(2024, time.August, 14, 0, 0, 0, 0, time.UTC) pickupData := readFixtureData().Pickups["basic"] pickupData.MinDatetime = &pickupDate @@ -224,9 +224,9 @@ func (fixture *Fixture) TestCreditCard() *easypost.CreditCardOptions { } func (fixture *Fixture) PlannedShipDate() string { - return "2024-07-17" + return "2024-08-14" } func (fixture *Fixture) DesiredDeliveryDate() string { - return "2024-07-17" + return "2024-08-14" } diff --git a/tests/order_test.go b/tests/order_test.go index f45bfab..d722ed5 100644 --- a/tests/order_test.go +++ b/tests/order_test.go @@ -79,14 +79,14 @@ func (c *ClientTests) TestOrderLowestRate() { lowestRate, err := client.LowestOrderRate(order) require.NoError(err) assert.Equal("GroundAdvantage", lowestRate.Service) - assert.Equal("11.33", lowestRate.Rate) + assert.Equal("11.40", lowestRate.Rate) assert.Equal("USPS", lowestRate.Carrier) // Test lowest rate with service filter (this rate is higher than the lowest but should filter) lowestRate, err = client.LowestOrderRateWithCarrierAndService(order, nil, []string{"Priority"}) require.NoError(err) assert.Equal("Priority", lowestRate.Service) - assert.Equal("13.79", lowestRate.Rate) + assert.Equal("14.48", lowestRate.Rate) assert.Equal("USPS", lowestRate.Carrier) // Test lowest rate with carrier filter (should error due to bad carrier) diff --git a/tests/paginated_collection_test.go b/tests/paginated_collection_test.go index 3215599..4cd1e4e 100644 --- a/tests/paginated_collection_test.go +++ b/tests/paginated_collection_test.go @@ -63,7 +63,7 @@ func (c *ClientTests) TestGetNextPageReachEnd() { { MatchRule: easypost.MockRequestMatchRule{ Method: "GET", - UrlRegexPattern: "v2\\/addresses$", + UrlRegexPattern: "v2\\/addresses", }, ResponseInfo: easypost.MockRequestResponseInfo{ StatusCode: 200, diff --git a/tests/shipment_test.go b/tests/shipment_test.go index 346149c..d0b4b48 100644 --- a/tests/shipment_test.go +++ b/tests/shipment_test.go @@ -264,7 +264,7 @@ func (c *ClientTests) TestShipmentLowestRate() { lowestRate, err = client.LowestShipmentRateWithCarrierAndService(shipment, nil, []string{"Priority"}) require.NoError(err) assert.Equal("Priority", lowestRate.Service) - assert.Equal("6.95", lowestRate.Rate) + assert.Equal("6.90", lowestRate.Rate) assert.Equal("USPS", lowestRate.Carrier) // Test lowest rate with carrier filter (should error due to bad carrier) diff --git a/tracker.go b/tracker.go index 20b419b..a352d29 100644 --- a/tracker.go +++ b/tracker.go @@ -8,64 +8,64 @@ import ( // TrackingLocation provides additional information about the location of a // tracking event. type TrackingLocation struct { - Object string `json:"object,omitempty"` - City string `json:"city,omitempty"` - State string `json:"state,omitempty"` - Country string `json:"country,omitempty"` - Zip string `json:"zip,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + City string `json:"city,omitempty" url:"city,omitempty"` + State string `json:"state,omitempty" url:"state,omitempty"` + Country string `json:"country,omitempty" url:"country,omitempty"` + Zip string `json:"zip,omitempty" url:"zip,omitempty"` } // TrackingDetail provides information about a tracking event. type TrackingDetail struct { - Object string `json:"object,omitempty"` - Message string `json:"message,omitempty"` - Description string `json:"description,omitempty"` - Status string `json:"status,omitempty"` - StatusDetail string `json:"status_detail,omitempty"` - DateTime string `json:"datetime,omitempty"` - Source string `json:"source,omitempty"` - CarrierCode string `json:"carrier_code,omitempty"` - TrackingLocation *TrackingLocation `json:"tracking_location,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Message string `json:"message,omitempty" url:"message,omitempty"` + Description string `json:"description,omitempty" url:"description,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + StatusDetail string `json:"status_detail,omitempty" url:"status_detail,omitempty"` + DateTime string `json:"datetime,omitempty" url:"datetime,omitempty"` + Source string `json:"source,omitempty" url:"source,omitempty"` + CarrierCode string `json:"carrier_code,omitempty" url:"carrier_code,omitempty"` + TrackingLocation *TrackingLocation `json:"tracking_location,omitempty" url:"tracking_location,omitempty"` } // TrackingCarrierDetail provides additional tracking information from the // carrier, when available. type TrackingCarrierDetail struct { - Object string `json:"object,omitempty"` - Service string `json:"service,omitempty"` - ContainerType string `json:"container_type,omitempty"` - EstDeliveryDateLocal string `json:"est_delivery_date_local,omitempty"` - EstDeliveryTimeLocal string `json:"est_delivery_time_local,omitempty"` - OriginLocation string `json:"origin_location,omitempty"` - OriginTrackingLocation *TrackingLocation `json:"origin_tracking_location,omitempty"` - DestinationLocation string `json:"destination_location,omitempty"` - DestinationTrackingLocation *TrackingLocation `json:"destination_tracking_location,omitempty"` - GuaranteedDeliveryDate *DateTime `json:"guaranteed_delivery_date,omitempty"` - AlternateIdentifier string `json:"alternate_identifier,omitempty"` - InitialDeliveryAttempt *DateTime `json:"initial_delivery_attempt,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + ContainerType string `json:"container_type,omitempty" url:"container_type,omitempty"` + EstDeliveryDateLocal string `json:"est_delivery_date_local,omitempty" url:"est_delivery_date_local,omitempty"` + EstDeliveryTimeLocal string `json:"est_delivery_time_local,omitempty" url:"est_delivery_time_local,omitempty"` + OriginLocation string `json:"origin_location,omitempty" url:"origin_location,omitempty"` + OriginTrackingLocation *TrackingLocation `json:"origin_tracking_location,omitempty" url:"origin_tracking_location,omitempty"` + DestinationLocation string `json:"destination_location,omitempty" url:"destination_location,omitempty"` + DestinationTrackingLocation *TrackingLocation `json:"destination_tracking_location,omitempty" url:"destination_tracking_location,omitempty"` + GuaranteedDeliveryDate *DateTime `json:"guaranteed_delivery_date,omitempty" url:"guaranteed_delivery_date,omitempty"` + AlternateIdentifier string `json:"alternate_identifier,omitempty" url:"alternate_identifier,omitempty"` + InitialDeliveryAttempt *DateTime `json:"initial_delivery_attempt,omitempty" url:"initial_delivery_attempt,omitempty"` } // A Tracker object contains all the tracking information for a package. type Tracker struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - CreatedAt *DateTime `json:"created_at,omitempty"` - UpdatedAt *DateTime `json:"updated_at,omitempty"` - TrackingCode string `json:"tracking_code,omitempty"` - Status string `json:"status,omitempty"` - StatusDetail string `json:"status_detail,omitempty"` - SignedBy string `json:"signed_by,omitempty"` - Weight float64 `json:"weight,omitempty"` - EstDeliveryDate *DateTime `json:"est_delivery_date,omitempty"` - ShipmentID string `json:"shipment_id,omitempty"` - Carrier string `json:"carrier,omitempty"` - TrackingDetails []*TrackingDetail `json:"tracking_details,omitempty"` - CarrierDetail *TrackingCarrierDetail `json:"carrier_detail,omitempty"` - PublicURL string `json:"public_url,omitempty"` - Fees []*Fee `json:"fees,omitempty"` - Finalized bool `json:"finalized,omitempty"` - IsReturn bool `json:"is_return,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + CreatedAt *DateTime `json:"created_at,omitempty" url:"created_at,omitempty"` + UpdatedAt *DateTime `json:"updated_at,omitempty" url:"updated_at,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + Status string `json:"status,omitempty" url:"status,omitempty"` + StatusDetail string `json:"status_detail,omitempty" url:"status_detail,omitempty"` + SignedBy string `json:"signed_by,omitempty" url:"signed_by,omitempty"` + Weight float64 `json:"weight,omitempty" url:"weight,omitempty"` + EstDeliveryDate *DateTime `json:"est_delivery_date,omitempty" url:"est_delivery_date,omitempty"` + ShipmentID string `json:"shipment_id,omitempty" url:"shipment_id,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + TrackingDetails []*TrackingDetail `json:"tracking_details,omitempty" url:"tracking_details,omitempty"` + CarrierDetail *TrackingCarrierDetail `json:"carrier_detail,omitempty" url:"carrier_detail,omitempty"` + PublicURL string `json:"public_url,omitempty" url:"public_url,omitempty"` + Fees []*Fee `json:"fees,omitempty" url:"fees,omitempty"` + Finalized bool `json:"finalized,omitempty" url:"finalized,omitempty"` + IsReturn bool `json:"is_return,omitempty" url:"is_return,omitempty"` } // CreateTrackerOptions specifies options for creating a new tracker. @@ -80,32 +80,32 @@ type CreateTrackerOptions struct { // ListTrackersOptions is used to specify query parameters for listing Tracker // objects. type ListTrackersOptions struct { - BeforeID string `url:"before_id,omitempty"` - AfterID string `url:"after_id,omitempty"` - StartDateTime *DateTime `url:"start_datetime,omitempty"` - EndDateTime *DateTime `url:"end_datetime,omitempty"` - PageSize int `url:"page_size,omitempty"` - TrackingCode string `url:"tracking_code,omitempty"` - Carrier string `url:"carrier,omitempty"` + BeforeID string `json:"before_id,omitempty" url:"before_id,omitempty"` + AfterID string `json:"after_id,omitempty" url:"after_id,omitempty"` + StartDateTime *DateTime `json:"start_datetime,omitempty" url:"start_datetime,omitempty"` + EndDateTime *DateTime `json:"end_datetime,omitempty" url:"end_datetime,omitempty"` + PageSize int `json:"page_size,omitempty" url:"page_size,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` } // ListTrackersResult holds the results from the list trackers API. type ListTrackersResult struct { - Trackers []*Tracker `json:"trackers,omitempty"` - TrackingCode string `json:"tracking_code,omitempty"` - Carrier string `json:"carrier,omitempty"` + Trackers []*Tracker `json:"trackers,omitempty" url:"trackers,omitempty"` + TrackingCode string `json:"tracking_code,omitempty" url:"tracking_code,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` PaginatedCollection } // ListTrackersUpdatedOptions specifies options for the list trackers updated // API. type ListTrackersUpdatedOptions struct { - Page int `json:"page,omitempty"` - PageSize int `json:"page_size,omitempty"` - StatusStart *DateTime `json:"status_start,omitempty"` - StatusEnd *DateTime `json:"status_end,omitempty"` - TrackingDetailsStart *DateTime `json:"tracking_details_start,omitempty"` - TrackingDetailsEnd *DateTime `json:"tracking_details_end,omitempty"` + Page int `json:"page,omitempty" url:"page,omitempty"` + PageSize int `json:"page_size,omitempty" url:"page_size,omitempty"` + StatusStart *DateTime `json:"status_start,omitempty" url:"status_start,omitempty"` + StatusEnd *DateTime `json:"status_end,omitempty" url:"status_end,omitempty"` + TrackingDetailsStart *DateTime `json:"tracking_details_start,omitempty" url:"tracking_details_start,omitempty"` + TrackingDetailsEnd *DateTime `json:"tracking_details_end,omitempty" url:"tracking_details_end,omitempty"` } func (c *CreateTrackerOptions) toMap() map[string]interface{} { @@ -149,7 +149,7 @@ func (c *Client) CreateTracker(opts *CreateTrackerOptions) (out *Tracker, err er // CreateTrackerWithContext performs the same operation as CreateTracker, but // allows specifying a context that can interrupt the request. func (c *Client) CreateTrackerWithContext(ctx context.Context, opts *CreateTrackerOptions) (out *Tracker, err error) { - err = c.post(ctx, "trackers", opts.toMap(), &out) + err = c.do(ctx, http.MethodPost, "trackers", opts.toMap(), &out) return } @@ -179,7 +179,7 @@ func (c *Client) CreateTrackerList(param map[string]interface{}) (bool, error) { func (c *Client) CreateTrackerListWithContext(ctx context.Context, param map[string]interface{}) (bool, error) { req := map[string]interface{}{"trackers": param} // This endpoint does not return a response, so we return true here - return true, c.post(ctx, "trackers/create_list", req, nil) + return true, c.do(ctx, http.MethodPost, "trackers/create_list", req, nil) } // ListTrackers provides a paginated result of Tracker objects. @@ -190,7 +190,7 @@ func (c *Client) ListTrackers(opts *ListTrackersOptions) (out *ListTrackersResul // ListTrackersWithContext performs the same operation as ListTrackers, but // allows specifying a context that can interrupt the request. func (c *Client) ListTrackersWithContext(ctx context.Context, opts *ListTrackersOptions) (out *ListTrackersResult, err error) { - err = c.do(ctx, http.MethodGet, "trackers", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "trackers", opts, &out) // Store the original query parameters for reuse when getting the next page out.TrackingCode = opts.TrackingCode out.Carrier = opts.Carrier @@ -244,6 +244,6 @@ func (c *Client) GetTracker(trackerID string) (out *Tracker, err error) { // GetTrackerWithContext performs the same operation as GetTracker, but allows // specifying a context that can interrupt the request. func (c *Client) GetTrackerWithContext(ctx context.Context, trackerID string) (out *Tracker, err error) { - err = c.get(ctx, "trackers/"+trackerID, &out) + err = c.do(ctx, http.MethodGet, "trackers/"+trackerID, nil, &out) return } diff --git a/user.go b/user.go index 9576adb..6a180e4 100644 --- a/user.go +++ b/user.go @@ -8,42 +8,42 @@ import ( // A User contains data about an EasyPost account and child accounts. type User struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - ParentID string `json:"parent_id,omitempty"` - Name string `json:"name,omitempty"` - Email string `json:"email,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Balance string `json:"balance,omitempty"` - RechargeAmount string `json:"recharge_amount,omitempty"` - SecondaryRechargeAmount string `json:"secondary_recharge_amount,omitempty"` - RechargeThreshold string `json:"recharge_threshold,omitempty"` - Children []*User `json:"children,omitempty"` - APIKeys []*APIKey `json:"api_keys,omitempty"` - Verified bool `json:"verified,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + ParentID string `json:"parent_id,omitempty" url:"parent_id,omitempty"` + Name string `json:"name,omitempty" url:"name,omitempty"` + Email string `json:"email,omitempty" url:"email,omitempty"` + PhoneNumber string `json:"phone_number,omitempty" url:"phone_number,omitempty"` + Balance string `json:"balance,omitempty" url:"balance,omitempty"` + RechargeAmount string `json:"recharge_amount,omitempty" url:"recharge_amount,omitempty"` + SecondaryRechargeAmount string `json:"secondary_recharge_amount,omitempty" url:"secondary_recharge_amount,omitempty"` + RechargeThreshold string `json:"recharge_threshold,omitempty" url:"recharge_threshold,omitempty"` + Children []*User `json:"children,omitempty" url:"children,omitempty"` + APIKeys []*APIKey `json:"api_keys,omitempty" url:"api_keys,omitempty"` + Verified bool `json:"verified,omitempty" url:"verified,omitempty"` } // UserOptions specifies options for creating or updating a user. type UserOptions struct { - ID string `json:"-"` - Email *string `json:"email,omitempty"` - Password *string `json:"password,omitempty"` - PasswordConfirmation *string `json:"password_confirmation,omitempty"` - CurrentPassword *string `json:"current_password,omitempty"` - Name *string `json:"name,omitempty"` - Phone *string `json:"phone,omitempty"` - PhoneNumber *string `json:"phone_number,omitempty"` - RechargeAmount *string `json:"recharge_amount,omitempty"` - SecondaryRechargeAmount *string `json:"secondary_recharge_amount,omitempty"` - RechargeThreshold *string `json:"recharge_threshold,omitempty"` + ID string `json:"-"` // IGNORE + Email *string `json:"email,omitempty" url:"email,omitempty"` + Password *string `json:"password,omitempty" url:"password,omitempty"` + PasswordConfirmation *string `json:"password_confirmation,omitempty" url:"password_confirmation,omitempty"` + CurrentPassword *string `json:"current_password,omitempty" url:"current_password,omitempty"` + Name *string `json:"name,omitempty" url:"name,omitempty"` + Phone *string `json:"phone,omitempty" url:"phone,omitempty"` + PhoneNumber *string `json:"phone_number,omitempty" url:"phone_number,omitempty"` + RechargeAmount *string `json:"recharge_amount,omitempty" url:"recharge_amount,omitempty"` + SecondaryRechargeAmount *string `json:"secondary_recharge_amount,omitempty" url:"secondary_recharge_amount,omitempty"` + RechargeThreshold *string `json:"recharge_threshold,omitempty" url:"recharge_threshold,omitempty"` } type userRequest struct { - UserOptions *UserOptions `json:"user,omitempty"` + UserOptions *UserOptions `json:"user,omitempty" url:"user,omitempty"` } type ListChildUsersResult struct { - Children []*User `json:"children,omitempty"` + Children []*User `json:"children,omitempty" url:"children,omitempty"` PaginatedCollection } @@ -59,7 +59,7 @@ func (c *Client) CreateUser(in *UserOptions) (out *User, err error) { // CreateUserWithContext performs the same operation as CreateUser, but allows // specifying a context that can interrupt the request. func (c *Client) CreateUserWithContext(ctx context.Context, in *UserOptions) (out *User, err error) { - err = c.post(ctx, "users", &userRequest{UserOptions: in}, &out) + err = c.do(ctx, http.MethodPost, "users", &userRequest{UserOptions: in}, &out) return } @@ -71,7 +71,7 @@ func (c *Client) GetUser(userID string) (out *User, err error) { // GetUserWithContext performs the same operation as GetUser, but allows // specifying a context that can interrupt the request. func (c *Client) GetUserWithContext(ctx context.Context, userID string) (out *User, err error) { - err = c.get(ctx, "users/"+userID, &out) + err = c.do(ctx, http.MethodGet, "users/"+userID, nil, &out) return } @@ -90,7 +90,7 @@ func (c *Client) UpdateUserWithContext(ctx context.Context, in *UserOptions) (ou if in.ID != "" { path += "/" + in.ID } - err = c.patch(ctx, path, req, &out) + err = c.do(ctx, http.MethodPatch, path, req, &out) return } @@ -102,7 +102,7 @@ func (c *Client) DeleteUser(userID string) error { // DeleteUserWithContext performs the same operation as DeleteUser, but allows // specifying a context that can interrupt the request. func (c *Client) DeleteUserWithContext(ctx context.Context, userID string) error { - return c.del(ctx, "users/"+userID) + return c.do(ctx, http.MethodDelete, "users/"+userID, nil, nil) } // RetrieveMe retrieves the current user. @@ -113,7 +113,7 @@ func (c *Client) RetrieveMe() (out *User, err error) { // RetrieveMeWithContext performs the same operation as RetrieveMe, but allows // specifying a context that can interrupt the request. func (c *Client) RetrieveMeWithContext(ctx context.Context) (out *User, err error) { - err = c.get(ctx, "users", &out) + err = c.do(ctx, http.MethodGet, "users", nil, &out) return } @@ -125,7 +125,7 @@ func (c *Client) ListChildUsers(opts *ListOptions) (out *ListChildUsersResult, e // ListChildUsersWithContext performs the same operation as ListChildUsers, but allows // specifying a context that can interrupt the request. func (c *Client) ListChildUsersWithContext(ctx context.Context, opts *ListOptions) (out *ListChildUsersResult, err error) { - err = c.do(ctx, http.MethodGet, "users/children", c.convertOptsToURLValues(opts), &out) + err = c.do(ctx, http.MethodGet, "users/children", opts, &out) return } @@ -170,6 +170,6 @@ func (c *Client) UpdateBrand(params map[string]interface{}, userID string) (out func (c *Client) UpdateBrandWithContext(ctx context.Context, params map[string]interface{}, userID string) (out *Brand, err error) { newParams := map[string]interface{}{"brand": params} updateBrandURL := fmt.Sprintf("users/%s/brand", userID) - err = c.patch(ctx, updateBrandURL, newParams, &out) + err = c.do(ctx, http.MethodPatch, updateBrandURL, newParams, &out) return } diff --git a/util.go b/util.go index 4d360a4..af10457 100644 --- a/util.go +++ b/util.go @@ -7,10 +7,10 @@ import ( ) type MinifiedRate struct { - ID string `json:"id,omitempty"` - Service string `json:"service,omitempty"` - Carrier string `json:"carrier,omitempty"` - Rate string `json:"rate,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Service string `json:"service,omitempty" url:"service,omitempty"` + Carrier string `json:"carrier,omitempty" url:"carrier,omitempty"` + Rate string `json:"rate,omitempty" url:"rate,omitempty"` } // StringPtr returns a pointer to a string with the given value. diff --git a/webhook.go b/webhook.go index 6d10e4e..ddae896 100644 --- a/webhook.go +++ b/webhook.go @@ -7,32 +7,33 @@ import ( "encoding/hex" "encoding/json" "golang.org/x/text/unicode/norm" + "net/http" ) // A Webhook represents an EasyPost webhook callback URL. type Webhook struct { - ID string `json:"id,omitempty"` - Object string `json:"object,omitempty"` - Mode string `json:"mode,omitempty"` - URL string `json:"url,omitempty"` - DisabledAt *DateTime `json:"disabled_at,omitempty"` - WebhookSecret string `json:"webhook_secret,omitempty"` + ID string `json:"id,omitempty" url:"id,omitempty"` + Object string `json:"object,omitempty" url:"object,omitempty"` + Mode string `json:"mode,omitempty" url:"mode,omitempty"` + URL string `json:"url,omitempty" url:"url,omitempty"` + DisabledAt *DateTime `json:"disabled_at,omitempty" url:"disabled_at,omitempty"` + WebhookSecret string `json:"webhook_secret,omitempty" url:"webhook_secret,omitempty"` } // CreateUpdateWebhookOptions is used to specify parameters for creating and updating EasyPost webhooks. type CreateUpdateWebhookOptions struct { - URL string `json:"url,omitempty"` - WebhookSecret string `json:"webhook_secret,omitempty"` + URL string `json:"url,omitempty" url:"url,omitempty"` + WebhookSecret string `json:"webhook_secret,omitempty" url:"webhook_secret,omitempty"` } // createUpdateWebhookRequest is the request struct for creating and updating webhooks (internal) type createUpdateWebhookRequest struct { - Webhook *Webhook `json:"webhook,omitempty"` + Webhook *Webhook `json:"webhook,omitempty" url:"webhook,omitempty"` } // listWebhooksResult is the response struct of listing webhooks (internal) type listWebhooksResult struct { - Webhooks *[]*Webhook `json:"webhooks,omitempty"` + Webhooks *[]*Webhook `json:"webhooks,omitempty" url:"webhooks,omitempty"` } func (c *Client) composeCreateUpdateWebhookRequest(data *CreateUpdateWebhookOptions) *createUpdateWebhookRequest { @@ -54,7 +55,7 @@ func (c *Client) CreateWebhookWithDetails(data *CreateUpdateWebhookOptions) (out func (c *Client) CreateWebhookWithDetailsWithContext(ctx context.Context, data *CreateUpdateWebhookOptions) (out *Webhook, err error) { req := c.composeCreateUpdateWebhookRequest(data) - err = c.post(ctx, "webhooks", req, &out) + err = c.do(ctx, http.MethodPost, "webhooks", req, &out) return } @@ -67,7 +68,7 @@ func (c *Client) ListWebhooks() (out []*Webhook, err error) { // ListWebhooksWithContext, but allows specifying a context that can interrupt // the request. func (c *Client) ListWebhooksWithContext(ctx context.Context) (out []*Webhook, err error) { - err = c.get(ctx, "webhooks", &listWebhooksResult{Webhooks: &out}) + err = c.do(ctx, http.MethodGet, "webhooks", nil, &listWebhooksResult{Webhooks: &out}) return } @@ -79,7 +80,7 @@ func (c *Client) GetWebhook(webhookID string) (out *Webhook, err error) { // GetWebhookWithContext performs the same operation as GetWebhook, but allows // specifying a context that can interrupt the request. func (c *Client) GetWebhookWithContext(ctx context.Context, webhookID string) (out *Webhook, err error) { - err = c.get(ctx, "webhooks/"+webhookID, &out) + err = c.do(ctx, http.MethodGet, "webhooks/"+webhookID, nil, &out) return } @@ -93,7 +94,7 @@ func (c *Client) UpdateWebhook(webhookID string, data *CreateUpdateWebhookOption func (c *Client) UpdateWebhookWithContext(ctx context.Context, webhookID string, data *CreateUpdateWebhookOptions) (out *Webhook, err error) { req := c.composeCreateUpdateWebhookRequest(data) - err = c.patch(ctx, "webhooks/"+webhookID, req, &out) + err = c.do(ctx, http.MethodPatch, "webhooks/"+webhookID, req, &out) return } @@ -105,7 +106,7 @@ func (c *Client) DeleteWebhook(webhookID string) error { // DeleteWebhookWithContext performs the same operation as DeleteWebhook, but // allows specifying a context that can interrupt the request. func (c *Client) DeleteWebhookWithContext(ctx context.Context, webhookID string) error { - return c.del(ctx, "webhooks/"+webhookID) + return c.do(ctx, http.MethodDelete, "webhooks/"+webhookID, nil, nil) } // ValidateWebhook validates a webhook by comparing the HMAC signature header sent from EasyPost to your shared secret.