Created
November 8, 2016 16:49
-
-
Save braidn/f63e34dc95d017a5ae9656febd12e0d2 to your computer and use it in GitHub Desktop.
Post Subscriptions
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
# POST /api/subscriptions.json | |
+ Request (application/json; charset=utf-8) | |
{ | |
"order_number": "R758060012", | |
"order_token": "c3hVyiLjOhlJAg1YAgFdBw", | |
"subscription": { | |
"frequency": 2, | |
"is_recurring": true | |
} | |
} | |
+ Response 201 (application/json; charset=utf-8) | |
+ Headers | |
X-Content-Type-Options: nosniff | |
Etag: W/"36dbe392a73123b3fec30fe78d452760" | |
X-Frame-Options: SAMEORIGIN | |
X-XSS-Protection: 1; mode=block | |
X-Request-Id: d720cc6c-cbf7-4910-9559-085f427ba002 | |
X-Runtime: 1.545107 | |
Cache-Control: max-age=0, private, must-revalidate | |
Transfer-Encoding: chunked | |
+ Body | |
{"order":{"id":2,"number":"R758060012","guest_token":"c3hVyiLjOhlJAg1YAgFdBw","state":"payment","item_count":7,"total":"63.0","line_items":[{"id":1,"quantity":3,"name":"Rabbit, Run","price":"9.0"},{"id":3,"quantity":3,"name":"Wake Up","price":"9.0"},{"id":4,"quantity":1,"name":"Deep Roots","price":"9.0"}]}} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment