Magento2 Google Express-订单发票:createchargeinvoice
我正在将Google Express与Magento集成,但创建费用发票API对我来说失败了。我试图从Google merchant的“尝试此API”选项创建发票,但它抛出以下错误:Magento2 Google Express-订单发票:createchargeinvoice,magento2,google-apis-explorer,google-shopping-api,Magento2,Google Apis Explorer,Google Shopping Api,我正在将Google Express与Magento集成,但创建费用发票API对我来说失败了。我试图从Google merchant的“尝试此API”选项创建发票,但它抛出以下错误: { "error": { "errors": [ { "domain": "content.ContentErrorDomain", "reason": "invalid_transition", "message": "The requested order is not su
{
"error": {
"errors": [
{
"domain": "content.ContentErrorDomain",
"reason": "invalid_transition",
"message": "The requested order is not supported by orderinvoices service"
}
],
"code": 400,
"message": "The requested order is not supported by orderinvoices service"
}
}
createchargeinvoice API文档:
我的请求机构:
{
"invoiceId": "invoice1",
"operationId": "charge1",
"shipmentGroupId": "shipmentgroup1",
"lineItemInvoices": [
{
"productId": "online:en:US:d3k3245",
"shipmentUnitIds": [
"2"
],
"unitInvoice": {
"unitPricePretax": {
"value": "140",
"currency": "USD"
},
"unitPriceTaxes": [
{
"taxType": "sales",
"taxAmount": {
"value": "14",
"currency": "USD"
}
}
],
"promotions": [
{
"promotionId": "111",
"promotionAmount": {
"tax": {
"currency": "USD",
"value": "0"
},
"pretax": {
"currency": "USD",
"value": "0"
}
}
}
],
"additionalCharges": [
{
"additionalChargeAmount": {
"pretax": {
"currency": "USD",
"value": "0"
},
"tax": {
"currency": "USD",
"value": "0"
}
},
"additionalChargePromotions": [
{
"promotionAmount": {
"pretax": {
"currency": "USD",
"value": "0"
},
"tax": {
"currency": "USD",
"value": "0"
}
},
"promotionId": "111"
}
],
"type": "shipping"
}
]
}
}
],
"invoiceSummary": {
"productTotal": {
"pretax": {
"value": "561.20",
"currency": "USD"
},
"tax": {
"value": "55.98",
"currency": "USD"
}
},
"additionalChargeSummaries": [
{
"totalAmount": {
"pretax": {
"value": "561.20",
"currency": "USD"
},
"tax": {
"value": "55.98",
"currency": "USD"
}
},
"type": "shipping"
}
],
"promotionSummaries": [
{
"promotionAmount": {
"pretax": {
"value": "561.20",
"currency": "USD"
},
"tax": {
"value": "55.98",
"currency": "USD"
}
},
"promotionId": "111"
}
],
"merchantBalance": {
"pretax": {
"value": "561.20",
"currency": "USD"
},
"tax": {
"value": "55.98",
"currency": "USD"
}
},
"customerBalance": {
"pretax": {
"value": "561.20",
"currency": "USD"
},
"tax": {
"value": "55.98",
"currency": "USD"
}
}
}
}
有人遇到过这个问题吗?根据谷歌文档(您已经分享过),请求主体大约有40个“必填”字段。在当前的共享请求正文中,您只有不到一半的必填字段 必填字段:
根据google文档(您已共享),请求主体大约有40个“必填”字段。在当前的共享请求正文中,您只有不到一半的必填字段 必填字段:
错误指向格式错误的请求正文。请同时共享请求正文。@KamranFeroz:我已经用请求正文更新了我的问题。错误指向格式不正确的请求正文。请同时共享请求正文。@KamranFeroz:我已用请求正文更新了我的问题。我已用所有必填字段更新了请求正文,但仍然得到相同的错误。这与GE订单状态有关吗?我的订单现在处于“已发货”状态。我已更新了re