Start a free 14-day trial by December 1 on a wide range of WooCommerce Marketplace extensions and themes. Explore products

Adjust the Swiss Post address autocomplete rate limit

Swiss Post 2.4.2 limits checkout address autocomplete and validation by IP address and service. Keep the default of 60 requests per minute unless your store has a confirmed shared-IP issue on an otherwise normal checkout.

Note:

This is a developer-level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customization work. We are unable to provide support for customization under our Support Policy.

Confirm why shoppers share a limit

↑ Back to top

Confirm with your host that WooCommerce receives the correct visitor IP addresses from trusted proxies. If shoppers must still share an IP address, test the smallest increase that resolves the issue and check the API quota with Swiss Post.

Adjust the autocomplete limit

↑ Back to top

Add the example to a site-specific plugin on a test store. It sets autocomplete to 120 requests per minute for each IP address. Address validation keeps its existing limit.

add_filter( 'swisspost_front_rate_limit', function ( $limit, $endpoint ) {
    return 'autocomplete' === $endpoint ? 120 : $limit;
}, 10, 2 );

Check address suggestions at checkout

↑ Back to top

Open the classic checkout and enter a supported Swiss or Liechtenstein address. Check that autocomplete suggests an address and that validation still responds. Observe API usage before applying the change to your live store. Remove the customization to restore the previous limit.

For the checkout requirements, see the Swiss Post address autocomplete guide.

Questions and support

↑ Back to top

Something missing from this documentation? Still have questions and need assistance?

  • If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
  • If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.