通过api或代码更新Chargify产品价格


Chargify Product Price update via api or code

我使用Chargify API付款。我在那里创建了一些产品供订阅。现在我想通过我的网站管理面板来管理这些产品的价格和其他设置。但我在Chargify API中找不到任何函数或任何方式。如果有人知道任何通过api或代码更新的方法,请告诉我。

提前感谢所有人,

您似乎无法更改现有产品的价格(这似乎很奇怪),只能创建新产品。来源

但是,您可以对现有订阅进行调整。

很抱歉把这个问题带回来,但我遇到了同样的问题,在我的测试中(目前)我能够更新发出PUT请求的产品。

PUT请求必须发送到以下url:

http://<site>.chargify.com/products/<product_id>

并在正文中只发送需要更新的字段。

示例:

PUT https://mysite.chargify.com/products/7358179 HTTP/1.1
User-Agent: Fiddler
Authorization: <your authorization token>
Accept: application/xml
Content-Type: application/xml
Host: mysite.chargify.com
Content-Length: 106
<?xml version="1.0" encoding="utf-8"?>
<product>
    <price_in_cents>2100</price_in_cents>
</product>

希望这能帮助其他像我一样使用搜索引擎找到这个页面的用户。