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

122
Views
Value Doesn't Change on API Post Request?

SOLVED UPDATE: The fee value is autogenerated by the API based on the location of the delivery, so I can't update or change it manually.


So I am using this api and when I add a custom value for the order_value option it updates automatically. However, when I try to change the fee, it doesn't change the value and shows a fixed number every time.

Is there a reason is shows the fee in a yellow color text? (on nodemon) while the other options are in green? Because even the order value is in yellow, but I am able to update that using my form inputs on my front end. Only the fee of 975 seems to not change and I think it might be a default calculation from the API?

enter image description here

In my express server this is what i put for my code

{
     order_value: req.body.item1,
        fee: req.body.item1,
      },

And my html

<input type="checkbox" name="item1" value="10" onClick="updatePrice()">
    <label for="item1">12 piece wings $10</label>
</div>

So basically you can see it has a value of 10 so hence when I submit my form the order value changes to 10, however, the fee is still 975??

Here's a link to the official API docs

I couldn't see any info regarding how the fee is determined or if I can manually update it

about 4 years ago · Juan Pablo Isaza
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!