Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda