Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda