如何从v1 / catalogs API删除PayPal产品?

问题描述 投票:0回答:1

我想从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"
            }
        ]
    },
   ...

是否有删除产品的实际方法?

paypal paypal-sandbox paypal-rest-sdk paypal-subscriptions
1个回答
0
投票

很有趣,不-我发现了过去的几次讨论(for example),而且似乎从未实现过。我想作为一种解决方法,您可以对其进行打补丁,以添加一些ZZ-Inactive或列表中您不会关注的任何名称前缀。

© www.soinside.com 2019 - 2024. All rights reserved.