Skip to content

Instantly share code, notes, and snippets.

@joshubrown
Created April 25, 2018 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshubrown/afeefe8004bbb334115815fc1d4338bb to your computer and use it in GitHub Desktop.
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
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