使用欧元货币的交易 API 订单对象



我正在尝试创建一个货币为欧元的购物车,但操作仍然崩溃。 这是我的示例订单对象

"order": {
"merchantOrderId": "rxhc",
"createTime": "2020-07-07T09:11:19.906Z",
"lastUpdateTime": "2020-07-07T09:11:19.906Z",
"userVisibleOrderId": "rxhc",
"contents": {
"lineItems": [
{
"id": "yedf",
"name": "USB cable",
"priceAttributes": [
{
"type": "REGULAR",
"name": "Item Price",
"state": "ACTUAL",
"amount": {
"currencyCode": "EUR",
"amountInMicros": 0
},
"taxIncluded": true
},
{
"type": "TOTAL",
"name": "Total Price",
"state": "ACTUAL",
"amount": {
"currencyCode": "EUR",
"amountInMicros": 0
},
"taxIncluded": true
}
],
"purchase": {
"quantity": 1,
"unitMeasure": {
"measure": 1,
"unit": "EUR"
},
"itemOptions": []
}
}
]
}
}

有人可以帮助我吗? 如果我将货币代码更改为"美元",将单位更改为"英镑",它可以很好地工作。

我解决了删除 unitMeasure 对象并将货币代码更改为"EUR"的问题

最新更新