错误值:order_tax_amount [英] BAD VALUE: order_tax_amount

查看:83
本文介绍了错误值:order_tax_amount的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Postman 发送请求来测试 Klarna 付款,根据此 API DOC,我们使用 POST/checkout/v3/orders 发送请求,以便我们可以创建订单(对于测试环境,他们使用 https://api.playground.klarna.com/ + url 的其余部分),但是当我尝试发送上面给出的示例时链接(在右侧),它说

I'm trying to send request using Postman to test Klarna payment, According to this API DOC, We use POST /checkout/v3/orders to send a request so that we can create order (For the testing environment they use https://api.playground.klarna.com/ + rest of url), But when i'm trying to send the given example in the above link(on the right side), It says that

{ "error_code" : "BAD_VALUE", "error_messages" : [ "Bad value: order_tax_amount" ], "correlation_id" : "12255531-ffcb-4a91-a375-04577fca78e5" }

当我阅读文档中的要求时

When i read what does it require in the documentation, It says that the value should be formatted in some formula ±1 of total_amount - total_amount * 10000 / (10000 + tax_rate), When i calculate that the result 4545.4545 when i change the value in the request and try again, It gives the same error. Can anybody help me with that? Thanks

推荐答案

我发现问题了,我要把total_tax_amountorder_tax_amount都改成4545,真是个错误,我认为他们应该在他们的文档中更新它,以便人们更熟悉它.

I found the problem, I should change both total_tax_amount and order_tax_amount to be 4545, What a mistake, I think they should update this in their documentation so people be more familiar with it.

这篇关于错误值:order_tax_amount的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆