Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Update capped amount of recurring charge using REST API

Update capped amount of recurring charge using REST API

user072319
Shopify Partner
131 0 17

Hi there, 

 

I am trying to update the capped amount of recurring charge using Shopify REST API. I'm using the below PHP code to update the charge.

 

$recurringChargeShopifyAPIURL = "https://xxxxxxxxxx.myshopify.com/admin/api/2022-01/recurring_application_charges/xxxxxxxxxx/customize.json?recurring_application_charge[capped_amount]=49.99";

$recurringChargeArray = array();
$recurringChargeArray["recurring_application_charge"] = array("capped_amount" => 49.99);

.......

// curl to update the capped amount

.........

 

The cURL response is NULL. 

Can anyone help what I am doing wrong?

 

Thanks in advance.

Replies 0 (0)