Title: Wrong formatted REST API Auth callback_url
Last modified: April 6, 2021

---

# Wrong formatted REST API Auth callback_url

 *  Resolved [edsonsantoro](https://wordpress.org/support/users/edsonsantoro/)
 * (@edsonsantoro)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wrong-formatted-rest-api-auth-callback_url/)
 * Hi guys,
 * While authenticating a user with `/wc-auth/v1/authorize` endpoint, the callback_url
   generated by WooCommerce is as follows:
 * Encoded (as is) *changed real domain to my-domain
    `callback_url=https%3A%2F%
   2F<my-domain>%2FWooDash%2Frest%2Fwoodash%2Fauth&scope=read_write&wc_auth_nonce
   =a67e42a34d`
 * Decoded (for understanding) *changed real domain to my-domain
    `callback_url=
   https://<my-domain>/WooDash/rest/woodash/auth&scope=read_write&wc_auth_nonce=
   a67e42a34d`
 * The problem connecting WooCommerce with my platform is the parameters. URL should
   be formatted as : `?scope=read_write&wc_auth_nonce=a67e42a34d` instead of `&scope
   =read_write&wc_auth_nonce=a67e42a34d`.
 * This throws an error on my platform stating that a potentially dangerous argument(&)
   was detected. I’ve made a test using Postman, making a POST request to the same
   URL I got an error too, changing & char to ? char solves the problem.
 * Also, I’m getting Error message from WooCommerce after approving connection with
   message:
    “Error: An error occurred in the request and at the time were unable
   to send the consumer data.”
 * This happens always, even with no other plugin installed.
 * Some background:
    Environment: PHP 7.4.15 WP 5.7 WC 5.1.0
 * Server:
    Running on OpenLiteSpeed
    -  This topic was modified 5 years, 2 months ago by [edsonsantoro](https://wordpress.org/support/users/edsonsantoro/).

Viewing 1 replies (of 1 total)

 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wrong-formatted-rest-api-auth-callback_url/#post-14294593)
 * Hi [@edsonsantoro](https://wordpress.org/support/users/edsonsantoro/),
 * This is a fairly complex development topic. I’m going to leave it open for a 
   bit to see if anyone is able to chime in to help you out.
 * I can also recommend the following places for more development-oriented questions:
    - WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    - Advanced WooCommerce group on Facebook: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)

Viewing 1 replies (of 1 total)

The topic ‘Wrong formatted REST API Auth callback_url’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 1 reply
 * 2 participants
 * Last reply from: [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/wrong-formatted-rest-api-auth-callback_url/#post-14294593)
 * Status: resolved