{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/customers/:customer_id/subscriptions/:id","auth":"required","method":"put","params":[{"name":"customer_id","type":"int","default":"","desc":"The unique id of the customer from Shopify","required":true,"in":"path","ref":"","_id":"56a6633a72faef2100747a90"},{"name":"subscription_id","type":"int","default":"","desc":"The unique id of the subscription from Charge Rabbit","required":true,"in":"body","ref":"","_id":"56a6633a72faef2100747a8f"},{"name":"properties","type":"object","default":"{}","desc":"The properties to add to the subscription","required":true,"in":"body","ref":"","_id":"56a26a66d15dd70d008d8260"}],"results":{"codes":[{"name":"","code":"{\n\t'properties': {\n  \t'allergies': 'soy, nuts, beans',\n    'location': 'downtown'\n  }\n}","language":"json","status":200}]},"settings":"","examples":{"codes":[{"code":"curl https://chargerabbit.com/api/v1/customers/:customer_id/subscriptions/:subscription_id  \\\n     -H \"Content-Type: application/json\" \\\n     -X PUT \\\n     -u :api_token: \\\n     -d '{ \"properties\": { \"allergies\": \"soy, nuts, beans\", \"location\": \"downtown\" } }'","language":"curl"}]}},"next":{"description":"","pages":[]},"title":"Editing Line Item Properties","type":"endpoint","slug":"editing-line-item-properties","excerpt":"","body":"This will update line item properties for a subscription.  If a property with the same key already exists the value will be updated otherwise the key and value will be added to the properties","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56a26a66d15dd70d008d825f","category":{"sync":{"isSync":false,"url":""},"pages":["56a7ccb6cf6d771700baef24"],"title":"API","slug":"api","order":4,"from_sync":false,"reference":false,"_id":"56a7a7b03143f31700cb03c7","__v":1,"project":"56a268d395203a17001d67d4","createdAt":"2016-01-26T17:06:56.576Z","version":"56a268d495203a17001d67d7"},"editedParams":true,"__v":2,"user":"56a2689e2029df19002b58d1","version":{"version":"1","version_clean":"1.0.0","codename":"v1","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["56a268d495203a17001d67d8","56a2696e2029df19002b58d4","56a7a7b03143f31700cb03c7","56a7c5c63e2f4d0d005d1279","56a7c642cf6d771700baef19","56a7c8fd97e8b00d0096d231","56a7caf6b5d0920d0051cdb6","5a145498a33f650012aac4d4","5a1454a2f88bd400345b56d0"],"_id":"56a268d495203a17001d67d7","project":"56a268d395203a17001d67d4","__v":9,"createdAt":"2016-01-22T17:37:24.341Z","releaseDate":"2016-01-22T17:37:24.340Z"},"createdAt":"2016-01-22T17:44:06.193Z","editedParams2":true,"githubsync":"","project":"56a268d395203a17001d67d4"}

putEditing Line Item Properties


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

customer_id:
required
integer
The unique id of the customer from Shopify

Body Params

subscription_id:
required
integer
The unique id of the subscription from Charge Rabbit
properties:
required
object{}
The properties to add to the subscription

Examples


Result Format


Documentation

This will update line item properties for a subscription. If a property with the same key already exists the value will be updated otherwise the key and value will be added to the properties

User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}