我想从catalogs
中删除产品,但找不到任何可以执行此操作的API
方法,here is the documentation。
我知道如何获得所有产品:
https://api.sandbox.paypal.com/v1/catalogs/products?page_size=10&page=1&total_required=true
这返回类似:
{
"products": [
{
"id": "PROD-8DN39312TB525331M",
"name": "Video Streaming Service",
"description": "Video streaming service",
"create_time": "2020-01-07T18:50:01Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/catalogs/products/PROD-8DN39312TB525331M",
"rel": "self",
"method": "GET"
}
]
},
...
是否有删除产品的实际方法?
很有趣,不-我发现了过去的几次讨论(for example),而且似乎从未实现过。我想作为一种解决方法,您可以对其进行打补丁,以添加一些ZZ-Inactive
或列表中您不会关注的任何名称前缀。