Created
April 25, 2018 23:39
-
-
Save joshubrown/afeefe8004bbb334115815fc1d4338bb to your computer and use it in GitHub Desktop.
Create a zero-dollar recurring app charge with a capped amount using cURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request POST \ | |
--url 'https://yourshop.myshopify.com/admin/recurring_application_charges.json' \ | |
--header 'content-type: application/json' \ | |
--header 'x-shopify-access-token: yourtoken' \ | |
--data '{ | |
"recurring_application_charge": { | |
"name": "Super Duper Plan", | |
"price": 0, | |
"capped_amount" : 10, | |
"terms": "test", | |
"return_url": "http://super-duper.shopifyapps.com" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment