Title: REST API Error
Last modified: August 13, 2025

---

# REST API Error

 *  Resolved [Bob](https://wordpress.org/support/users/orionlearn/)
 * (@orionlearn)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/rest-api-error-45/)
 * Hi, I logged into USPS and got my user api and secret. Loaded them into your 
   app and get OK. Then my cart page showed an error and no rates. Broke my site.
   So I deleted the REST API and all was okay again. There was a notice to copy 
   the error. see below
 * Array
   ([apiVersion] => /prices/v3[error] => Array([code] => 400[message] => OASValidation
   OpenAPI-Spec-Validation-Domestic-Prices with resource oas://domestic-prices-v3.
   yaml: failed with reason: [ERROR - Instance failed to match all required schemas(
   matched only 1 out of 2): [/allOf/0: Object has missing required properties ([
   height,length,width])]ERROR - Object has missing required properties ([height,
   length,width]): []][errors] => Array([0] => Array([title] => OASValidation OpenAPI-
   Spec-Validation-Domestic-Prices with resource "oas://domestic-prices-v3.yaml":
   failed with reason: "[ERROR - Instance failed to match all required schemas (
   matched only 1 out of 2): [/allOf/0: Object has missing required properties (["
   height","length","width"])]ERROR - Object has missing required properties (["
   height","length","width"]): []]"[detail] =>)
 *     ```wp-block-code
                   )
   
           )
       ```
   
 * )

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Piotrek Bodera](https://wordpress.org/support/users/nerdontour/)
 * (@nerdontour)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/rest-api-error-45/#post-18602954)
 * Hi [@orionlearn](https://wordpress.org/support/users/orionlearn/), thanks for
   reaching out. I’m sorry to hear you had issues with your site.
 * The error suggests that the request body or object you supplied to the API did
   not include the required properties: `height`, `length`, and `width`.
 * Please double-check if all your products have the specified dimensions and weights.
   Additionally, please know that the REST API requires you to provide the default
   dimensions in [Package Settings](https://octolize.com/docs/article/usps-usps-live-rates-shipping-method-configuration/#h-package-settings):
 * ![](https://i0.wp.com/octolize.com/docs/wp-content/uploads/usps-method-settings-
   package-settings.png?ssl=1)
 * After completing these steps, please verify if the issue has been resolved.
 * Kind regards,
    -  This reply was modified 9 months, 1 week ago by [Piotrek Bodera](https://wordpress.org/support/users/nerdontour/).
 *  Plugin Support [Piotrek Bodera](https://wordpress.org/support/users/nerdontour/)
 * (@nerdontour)
 * [9 months ago](https://wordpress.org/support/topic/rest-api-error-45/#post-18613692)
 * I’m marking this topic as resolved for now. If you’d like to ask about anything
   else – please open a new thread.
 * Kind regards,
   Piotrek

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘REST API Error’ is closed to new replies.

 * ![](https://ps.w.org/flexible-shipping-usps/assets/icon.svg?rev=2737986)
 * [Shipping Live Rates for USPS for WooCommerce](https://wordpress.org/plugins/flexible-shipping-usps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-shipping-usps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-shipping-usps/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-shipping-usps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-shipping-usps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-shipping-usps/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Piotrek Bodera](https://wordpress.org/support/users/nerdontour/)
 * Last activity: [9 months ago](https://wordpress.org/support/topic/rest-api-error-45/#post-18613692)
 * Status: resolved