Title: API error
Last modified: August 16, 2022

---

# API error

 *  Resolved [gheldin](https://wordpress.org/support/users/gheldin/)
 * (@gheldin)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/)
 * Hi guys, i have error like this:
    “You cannot use `line_items.amount`, `line_items.
   currency`, `line_items.name`, `line_items.description`, or `line_items.images`
   in this API version. Please use `line_items.price` or `line_items.price_data`.
   Please see [https://stripe.com/docs/payments/checkout/migrating-prices](https://stripe.com/docs/payments/checkout/migrating-prices)
   for more information.”
 * My stripe account use the new api version: API version 2022-08-01
    Any solution?
   Thanks!

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

 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/#post-15920575)
 * Hi [@gheldin](https://wordpress.org/support/users/gheldin/),
 * Greetings from WebToffee! Thanks for reaching out to us on this forum.
 * As our plugin is not yet compatible with the recently released Stripe API version,
   please roll back to the previous version.
 * We will release a new version compatible with the latest Stripe API version soon.
   Thank you for understanding. Let us know if you need any further assistance.
 *  Thread Starter [gheldin](https://wordpress.org/support/users/gheldin/)
 * (@gheldin)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/#post-15920580)
 * Hi webtoffee,
    Thanks for the answer, how can i roll back the API version?
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/#post-15922774)
 * Hi [@gheldin](https://wordpress.org/support/users/gheldin/),
 * You can roll back the API version from your Stripe dashboard. Please go to Stripe
   dashboard > developers. From here, you can see the option to roll back near the**
   API version**. The roll back option will be visible for up to 72 hours from the
   time you updated. Please complete the process before it disappears. Let us know
   if you need any further information.
 *  Thread Starter [gheldin](https://wordpress.org/support/users/gheldin/)
 * (@gheldin)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/#post-15922923)
 * Sadly i cant roll back, cause its a new account, i didnt upgraded, now this is
   the default API version for new accounts, i think.
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/#post-15926723)
 * Hi [@gheldin](https://wordpress.org/support/users/gheldin/),
 * We are sorry to hear that. We have made a code snippet to override the new Stripe
   API version for the time being. You may use this fix until we release a compatible
   version. Please copy the code snippet from [here](https://gist.github.com/webtoffee-git/0809a21f0f4cf96dfae8c0edfe5b3353)
   and paste it into your child theme’s function.php file.
    (WordPress Dashboard
   > Appearance > Theme Editor > functions.php)
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/api-error-67/#post-15956208)
 * Hi [@gheldin](https://wordpress.org/support/users/gheldin/),
 * We’ll mark this thread as resolved for the time being because it has been inactive
   for a bit. Please feel free to open a new thread or follow up on this thread 
   if you have any further questions or require assistance.
 *  [angstack77](https://wordpress.org/support/users/angstack77/)
 * (@angstack77)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/api-error-67/#post-16086588)
 * I also have this problem and would love some help if possible.

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

The topic ‘API error’ is closed to new replies.

 * ![](https://ps.w.org/payment-gateway-stripe-and-woocommerce-integration/assets/
   icon-256x256.gif?rev=3361775)
 * [Payment Gateway of Stripe for WooCommerce](https://wordpress.org/plugins/payment-gateway-stripe-and-woocommerce-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/payment-gateway-stripe-and-woocommerce-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [angstack77](https://wordpress.org/support/users/angstack77/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/api-error-67/#post-16086588)
 * Status: resolved