我们如何使用 API 更新 shopware 6 订单.? [英] How we can update shopware 6 order using API.?

查看:23
本文介绍了我们如何使用 API 更新 shopware 6 订单.?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 API 更新 shopware 6 中的订单,正如我已经检查过的,我们可以使用以下 URL 获取订单

I would like to update the order in shopware 6 using API, As I have checked we can fetch order using the below URL

https://www.test.shop/api/order/54d47cc4d612345678901f7608fbebe2

但是,我想使用 API 更新订单.

But, I would like to update the order using API.

我已经用下面的链接检查过它在 shopware 5 中

As I have checked it was in shopware 5 with the below link

https://developers.shopware.com/developers-guide/rest-api/examples/order/#example-3-update-an-order

应该传递什么细节以及我们如何使用 put 方法.

What the details should be pass and how we can use put method on this.

谢谢.

推荐答案

它与 Shopware 6 的工作方式类似.如果您有测试系统(非生产),您可以在 /api/_info/swagger 中查看 API 概述.html.

It works similar with Shopware 6. If you have a test system (not production) you can see the API overview at /api/_info/swagger.html.

您应该查看 /api/_info/swagger.html#/Order/updateOrder.

PATCH /order/{id}

还有用于订单地址、客户、交付、订单项和交易的 API 端点.

There are also API endpoints for order address, customer, delivery, line item and transaction.

您也可以查看:https://shopware.stoplight.io/docs/store-api/storeapi.json/paths/~1order~1payment/post

这篇关于我们如何使用 API 更新 shopware 6 订单.?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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