Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
WooCommerce API: Passing email address in the right way

I try to fetch some data from the WooCommerce API with:

let currentUserEmail = "test+test@my-url.com"
let apiURL = 'https://www.url.com/wc-api/v3/customers/email/' + currentUserEmail;

or

let currentUserEmail = "test+test@my-url.com"
let apiURL = 'https://www.url.com/wc-api/v3/customers/email/' + encodeURIComponent(currentUserEmail);

In both for this email address case I get a 404 error. I think this is because of the + sign. How can I pass the email address correctly to send the get request in the right way?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Email is not it's own endpoint but instead a parameter of customers so you should do this instead

let currentUserEmail = "test+test@my-url.com"
let apiURL = 'https://www.url.com/wc-api/v3/customers?email=' + currentUserEmail;

You can find documentation of all parameters available here: https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-customers

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!