Skip to content

Instantly share code, notes, and snippets.

@sudeeptarlekar
Created October 28, 2018 18:42
Show Gist options
  • Save sudeeptarlekar/052805e9468137938570fb027c6f8290 to your computer and use it in GitHub Desktop.
Save sudeeptarlekar/052805e9468137938570fb027c6f8290 to your computer and use it in GitHub Desktop.
curl -X PUT \
https://api.rechargeapps.com/orders/XXX \
-H 'Content-Type: application/json' \
-H 'x-recharge-access-token: XXX' \
-d '{
"line_items": [
{
"price": "0.00",
"properties": [
{
"name": "charge_interval_frequency",
"value": "12"
},
{
"name": "charge_interval_unit_type",
"value": "Months"
},
{
"name": "purchased_variant_id",
"value": "XXX"
},
{
"name": "shipping_interval_frequency",
"value": "2"
},
{
"name": "shipping_interval_unit_type",
"value": "Months"
},
{
"name": "subscription_idd",
"value": "XXX"
}
],
"quantity": 1,
"product_id": XXX,
"variant_id": XXX,
"sku": "201-10-02-1",
"title": "Pitcher Bi-Annual",
"variant_title": "Annual Plan"
}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment