{"_id":"56a26a66d15dd70d008d825f","category":{"_id":"56a7a7b03143f31700cb03c7","__v":1,"project":"56a268d395203a17001d67d4","pages":["56a7ccb6cf6d771700baef24"],"version":"56a268d495203a17001d67d7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-01-26T17:06:56.576Z","from_sync":false,"order":4,"slug":"api","title":"API"},"editedParams":true,"__v":2,"user":"56a2689e2029df19002b58d1","version":{"_id":"56a268d495203a17001d67d7","project":"56a268d395203a17001d67d4","__v":9,"createdAt":"2016-01-22T17:37:24.341Z","releaseDate":"2016-01-22T17:37:24.340Z","categories":["56a268d495203a17001d67d8","56a2696e2029df19002b58d4","56a7a7b03143f31700cb03c7","56a7c5c63e2f4d0d005d1279","56a7c642cf6d771700baef19","56a7c8fd97e8b00d0096d231","56a7caf6b5d0920d0051cdb6","5a145498a33f650012aac4d4","5a1454a2f88bd400345b56d0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"editedParams2":true,"githubsync":"","project":"56a268d395203a17001d67d4","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-22T17:44:06.193Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"put","results":{"codes":[{"status":200,"language":"json","code":"{\n\t'properties': {\n  \t'allergies': 'soy, nuts, beans',\n    'location': 'downtown'\n  }\n}","name":""}]},"settings":"","examples":{"codes":[{"language":"curl","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\" } }'"}]},"auth":"required","params":[{"_id":"56a6633a72faef2100747a90","ref":"","in":"path","required":true,"desc":"The unique id of the customer from Shopify","default":"","type":"int","name":"customer_id"},{"_id":"56a6633a72faef2100747a8f","ref":"","in":"body","required":true,"desc":"The unique id of the subscription from Charge Rabbit","default":"","type":"int","name":"subscription_id"},{"_id":"56a26a66d15dd70d008d8260","ref":"","in":"body","required":true,"desc":"The properties to add to the subscription","default":"{}","type":"object","name":"properties"}],"url":"/customers/:customer_id/subscriptions/:id"},"isReference":false,"order":1,"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","excerpt":"","slug":"editing-line-item-properties","type":"endpoint","title":"Editing Line Item Properties"}

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 }}