Created
October 28, 2018 18:42
-
-
Save sudeeptarlekar/052805e9468137938570fb027c6f8290 to your computer and use it in GitHub Desktop.
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 -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