{"info":{"_postman_id":"3e829c01-f96a-4102-8adc-2969a5f873cb","name":"Payment API Documentation v2.0","description":"<html><head></head><body><h1 id=\"security\">Security</h1>\n<p>The payment API is a server2server API. Authentication is provided via <a href=\"http://en.wikipedia.org/wiki/Basic_access_authentication\">HTTP Basic Auth</a>. \nCredentials <strong>MUST</strong> never be leaked, which means, these credentials can't be used in apps, Javascript, client-side etc.</p>\n<p>The consuming service is responsible, for properly authenticating users.</p>\n<h1 id=\"expanding-child-objects\">Expanding child objects</h1>\n<p>Objects might have complex child-objects. Per default, these child objects are referenced by their ID. However, in certain cases it makes sense, to fully resolve (expand) the child object in order to prevent additional API calls. </p>\n<p>Expansion of objects is expensive and can be slow if heavily being used. Only expand objects, if you really need the data.</p>\n<p>Expansion uses the \"dot syntax\" e.g. <strong>order.items.product.plan</strong> will expand all objects on the path. Collection properties are called \"items\". If you want to expand a specific sub-property of all items, specify the path like <strong>items.product</strong>.</p>\n<p>You can specify multiple properties to be expanded. It's not required to specify the top-level element in the path.</p>\n<p><strong>Example</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /api/order/1?expand[]=items.product.plan&amp;expand[]=payment_method\n</code></pre><h1 id=\"schemas\">Schemas</h1>\n<h2 id=\"subscription-schema\">Subscription Schema</h2>\n<hr>\n<h2 id=\"id-stringunique-id-of-the-subscription\"><strong>id</strong> <em>string</em><br>Unique ID of the subscription</h2>\n<h2 id=\"current_interval_start-datetimestart-of-the-current-billing-interval\"><strong>current_interval_start</strong> <em>datetime</em><br>Start of the current billing interval</h2>\n<h2 id=\"current_interval_end-datetime--end-of-the-current-billing-interval-next-payment-will-happen-for-items-which-have-auto-renewal-enabled\"><strong>current_interval_end</strong> <em>datetime</em> \nEnd of the current billing interval, next payment will happen for items, which have auto-renewal enabled</h2>\n<p><strong>items</strong> <em>expandable</em><br>Subscription items in this order. Items follow the following schema:</p>\n<h2 id=\"subscription-item-schema\">Subscription Item Schema</h2>\n<h2 id=\"id-stringunique-id-of-the-item\"><strong>id</strong> <em>string</em><br>Unique ID of the item  </h2>\n<h2 id=\"status-string--payment-status-of-that-item\"><strong>status</strong> <em>string</em> \nPayment status of that item</h2>\n<h2 id=\"autorenewal_enabled-bool--if-true-a-payment-will-be-attempted-upon-reaching-the-end-of-the-current-billing-interval\"><strong>autorenewal_enabled</strong> <em>bool</em> \nIf true, a payment will be attempted upon reaching the end of the current billing interval.</h2>\n<p><strong>product</strong> <em>expandable</em><br>Product accociated with that item.</p>\n<h2 id=\"order-schema\">Order Schema</h2>\n<hr>\n<h2 id=\"id-stringunique-id-of-the-order\"><strong>id</strong> <em>string</em><br>Unique ID of the order</h2>\n<p><strong>items</strong> <em>expandable</em><br>Order items in this order. Items follow the following schema:</p>\n<blockquote>\n<p><strong>id</strong> <em>string</em><br>Unique ID of the item<br><strong>product_id</strong> <em>int</em><br>ID of the product accociated with that item</p>\n</blockquote>\n<h2 id=\"response-schema\">Response Schema</h2>\n<hr>\n<h2 id=\"code-inthttp-code-of-the-response\"><strong>code</strong> <em>int</em><br>HTTP Code of the response</h2>\n<h2 id=\"message-stringresult-message-or-error-message\"><strong>message</strong> <em>string</em><br>Result message or error message</h2>\n<h2 id=\"payload_type-optionalif-the-response-contains-additional-payload-information-this-describes-the-type-of-the-payload-object\"><strong>payload_type</strong> <em>optional</em><br>If the response contains additional payload information, this describes the type of the payload object</h2>\n<h2 id=\"payload-optionaldepends-on-the-payload-type\"><strong>payload</strong> <em>optional</em><br>Depends on the payload type</h2>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Security","slug":"security"},{"content":"Expanding child objects","slug":"expanding-child-objects"},{"content":"Schemas","slug":"schemas"}],"owner":"23264","collectionId":"3e829c01-f96a-4102-8adc-2969a5f873cb","publishedId":"TVKA3JCw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-22T08:41:12.000Z"},"item":[{"name":"Orders","item":[{"name":"Invoices","item":[{"name":"Receive invoice","id":"38dc92fe-64fc-4fbf-90c8-f8469231b38a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/invoice/:id?format=pdf","urlObject":{"path":["invoice",":id"],"query":[{"description":{"content":"<p>Valid value \"pdf\", \"email\", \"html\"</p>\n","type":"text/plain"},"key":"format","value":"pdf"}],"variable":[{"description":{"content":"<p>ID of the invoice</p>\n","type":"text/plain"},"type":"string","value":"1337","key":"id"}]}},"response":[],"_postman_id":"38dc92fe-64fc-4fbf-90c8-f8469231b38a"},{"name":"List all invoices for an order","id":"3fd15fbf-2f96-4697-bd5e-509694e69e27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/orders/:order_id/invoices","urlObject":{"path":["orders",":order_id","invoices"],"query":[],"variable":[{"description":{"content":"<p>ID of the order</p>\n","type":"text/plain"},"type":"string","value":"WsRfhdQs13","key":"order_id"}]}},"response":[],"_postman_id":"3fd15fbf-2f96-4697-bd5e-509694e69e27"}],"id":"47b28359-c77e-4f22-97d3-932673aad21a","_postman_id":"47b28359-c77e-4f22-97d3-932673aad21a","description":""},{"name":"Create Order with additional \"Addon\" Products","id":"c7cc6edb-d5b6-4e0f-bb09-5b4ad06e7fb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"click_id\" : \"xyz12345\",\n    \"currency\": \"usd\",\n    \"country_code\": \"us\",\n    \"email\": \"jon@doe.com\",\n     \"items\": [\n        {\n            \"product_id\": 101\n        },\n        {\n            \"product_id\" : 100\n        }\n    ],\n    \"language\" : \"en\",\n    \"meta_data\" :{ \n        \"affiliate\":\"demo\"\n    },\n    \"name\": \"Jon Doe\",\n    \"partners_id\": 1,\n    \"payment_method_id\": 1,\n    \"region\" : \"us\",\n    \"zip_code\": \"12345\"\n   \n}"},"url":"{{baseURL}}/orders/","description":"<p>Creates an order with one or multiple items. Depending on the payment provider, additional actions need to be performed, in order to fullfill the order, like redirecting the user to a specific url or executing additional Javascript functions provided by the payment provider's SDK.</p>\n<h4 id=\"request-body-json\">Request Body (JSON)</h4>\n<hr />\n<h2 id=\"click_id-optionalunique-click-id-which-should-be-accociated-with-the-order\"><strong>click_id</strong> <em>optional</em><br />Unique Click ID, which should be accociated with the order.</h2>\n<h2 id=\"currency-requirediso-currency-code-to-be-used-for-the-charge-if-supported-default-is-usd\"><strong>currency</strong> <em>required</em><br /><a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO currency code</a> to be used for the charge, if supported. Default is \"usd\".</h2>\n<h2 id=\"country_code-requirediso-country-code-most-times-required-to-authorize-a-payment-and-calculate-vat-for-invoices\"><strong>country_code</strong> <em>required</em><br /><a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\">ISO country code</a>. Most times required, to authorize a payment and calculate VAT for invoices.</h2>\n<h2 id=\"user_id-required-if-no-e-mail-providedif-that-order-should-be-accociated-with-an-existing-user-the-user_id-is-provided\"><strong>user_id</strong> <em>required if no e-mail provided</em><br />If that order should be accociated with an existing user, the user_id is provided.</h2>\n<h2 id=\"email-required-if-no-user_id-presente-mail-adress-of-the-user-to-accociate-the-order-with-if-multiple-account-with-that-e-mail-already-exists-the-latest-created-account-is-being-used-if-no-account-does-exist-a-new-account-is-being-created\"><strong>email</strong> <em>required if no user_id present</em><br />E-Mail adress of the user to accociate the order with. If multiple account with that e-mail already exists, the latest created account is being used. If no account does exist, a new account is being created.</h2>\n<h2 id=\"items-required-if-no-license_key-providedlist-of-items-which-should-be-part-of-the-order--product_id-requiredinternal-product-id-of-the-item\"><strong>items</strong> <em>required if no license_key provided</em><br />List of items, which should be part of the order. \n&gt;<strong>product_id</strong> <em>required</em><br />Internal Product ID of the item</h2>\n<h2 id=\"language-optionallanguage-of-the-user-used-for-localising-e-mail-messages-like-invoices-etc\"><strong>language</strong> <em>optional</em><br />Language of the user. Used for localising e-mail messages, like invoices etc.</h2>\n<h2 id=\"license_key-required-if-payment-method-is-license-keythe-license-key-will-automatically-activate-an-associated-product-name-optionalname-of-the-customer-to-be-provided-in-the-invoice\"><strong>license_key</strong> <em>required if payment method is \"License Key\"</em><br />The license key will automatically activate an associated product.\n<strong>name</strong> <em>optional</em><br />Name of the customer to be provided in the invoice.</h2>\n<h2 id=\"region-optionalregion-of-the-user-used-for-localising-e-mail-messages-like-invoicesetc\"><strong>region</strong> <em>optional</em><br />Region of the user. Used for localising e-mail messages, like invoicesetc.</h2>\n<h2 id=\"partners_id-optionalinternal-partner-id-should-be-always-1-for-cyberghost\"><strong>partners_id</strong> <em>optional</em><br />Internal Partner ID. Should be always 1 for CyberGhost</h2>\n<h2 id=\"payment_method_id-requiredid-of-the-payment-method-to-use-in-order-to-perform-the-payment\"><strong>payment_method_id</strong> <em>required</em><br />ID of the payment method to use, in order to perform the payment. </h2>\n<h2 id=\"zip_code-optionalzip-code-if-provided-payments-are-less-likely-to-fail\"><strong>zip_code</strong> <em>optional</em><br />ZIP Code, if provided payments are less likely to fail.</h2>\n<h4 id=\"response-body-json\">Response Body (JSON)</h4>\n<p>If the order requires additional actions to collect the payment, an additional payload  of type <strong>requiresOrderActionPayload</strong> is present and has the following format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"jwt\": \"jwtToken\",\n\"actionType\": \"STRIPE_CONFIRM_SETUP_INTENT\",\n\"actionPayload\": \"setup_intent_secret\",\n\"order_id\": 1\n</code></pre><h2 id=\"jwt-optionalif-a-user-account-was-automatically-created-during-the-order-creation-this-field-contains-a-temporary-login-token\"><strong>jwt</strong> <em>optional</em><br />If a user account was automatically created during the order creation, this field contains a temporary login token.</h2>\n<p><strong>actionType</strong> <em>required</em><br />Depending on the payment provider, it can contain the following values  </p>\n<h2 id=\"stripe_confirm_setup_intent--stripe-javascript-function-confirmcardpayment-needs-to-be-called-with-the-actionpayloadopen_url-the-user-needs-to-visit-an-external-checkout-url-payload-contains-the-url\"><em>STRIPE_CONFIRM_SETUP_INTENT</em> : Stripe Javascript function confirmCardPayment needs to be called with the actionPayload.<br /><em>OPEN_URL</em>: The user needs to visit an external checkout URL. Payload contains the URL</h2>\n<p><strong>actionPayload</strong> <em>required</em><br />Depending on actionType</p>\n","urlObject":{"path":["orders",""],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"01e29c79-edb8-4953-9611-86c4a1de002f","name":"Create Order for Cleverbridge","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"click_id\" : \"xyz12345\",\n    \"currency\": \"usd\",\n    \"country_code\": \"us\",\n    \"email\": \"jon@doe.com\",\n     \"items\": [\n        {\n            \"product_id\": 101\n        },\n        {\n            \"product_id\" : 100\n        }\n    ],\n    \"language\" : \"en\",\n    \"meta_data\" :{ \n        \"affiliate\":\"demo\"\n    },\n    \"name\": \"Jon Doe\",\n    \"partners_id\": 1,\n    \"payment_method_id\": 1,\n    \"region\" : \"us\",\n    \"zip_code\": \"12345\"\n   \n}"},"url":"{{baseURL}}/orders/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Mon, 21-Sep-2020 15:55:17 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"max-age=0"},{"key":"Date","value":"Mon, 21 Sep 2020 14:55:18 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Expires","value":"Mon, 21 Sep 2020 14:55:18 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"OK\",\n    \"payload_type\": \"requiresOrderActionPayload\",\n    \"payload\": {\n        \"jwt\": \"aJWT\",\n        \"actionType\": \"OPEN_URL\",\n        \"actionPayload\": \"https://store.cyberghostvpn.com/848/purl-10-2017?paymentTypes=CCA_VIS%2CCCA_MAS%2CCCA_AMX%2CCCA_DIS%2CCCA_JCB%2CCCA_AUR%2CCCA_ELO%2CCCA_HIP%2CCCA_VID&paymentTypeId=CCA&x-affiliate=demo&deliveryEmail=jon%40doe.com&x-orderid=22&language=en&scope=checkout&deliveryCountryId=US&currency=USD&affiliatetracking=false&cart=227806%2C227804\",\n        \"order_id\": 22\n    }\n}"},{"id":"fcef19ba-e5ed-465f-9b3c-be9a01e606f6","name":"Create Order for Stripe","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"click_id\" : \"xyz12345\",\n    \"currency\": \"usd\",\n    \"country_code\": \"us\",\n    \"email\": \"jon@doe.com\",\n     \"items\": [\n        {\n            \"product_id\": 101\n        },\n        {\n            \"product_id\" : 100\n        }\n    ],\n    \"language\" : \"en\",\n    \"meta_data\" :{ \n        \"affiliate\":\"demo\"\n    },\n    \"name\": \"Jon Doe\",\n    \"partners_id\": 1,\n    \"payment_method_id\": 2,\n    \"region\" : \"us\",\n    \"zip_code\": \"12345\"\n   \n}"},"url":"{{baseURL}}/orders/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0"},{"key":"Date","value":"Mon, 21 Sep 2020 14:26:48 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Expires","value":"Mon, 21 Sep 2020 14:26:48 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"OK\",\n    \"payload_type\": \"requiresOrderActionPayload\",\n    \"payload\": {\n        \"jwt\": \"aJWT\",\n        \"actionType\": \"STRIPE_CONFIRM_SETUP_INTENT\",\n        \"actionPayload\": \"seti_1HTpyeIPuSwjvuwtcaCcEgn7_secret_I3xuV7Ztcm9axERpLdPXvjfj6H2yaqC\",\n        \"order_id\": 8\n    }\n}"}],"_postman_id":"c7cc6edb-d5b6-4e0f-bb09-5b4ad06e7fb1"},{"name":"Fetch specific order","id":"5d2ff75a-3297-4766-a1c1-9ff4d4ea447a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/orders/:id","urlObject":{"path":["orders",":id"],"host":["{{baseURL}}"],"query":[],"variable":[{"type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"5d2ff75a-3297-4766-a1c1-9ff4d4ea447a"}],"id":"27460ba9-e27f-465d-a8f5-27abc4944944","description":"<p>Orders are being created, once the user decides to start a purchase. The API will always try to immediately collect the payment for the order. Depending on the payment provider, additional steps are required to collect the payment, like redirecting the user to a checkout page or performing SCA (3D Secure) authentication. </p>\n<p>If an order was successfully paid, a subscription is created. Renewals of orders will result in invoices to be generated and sent to the customer.</p>\n","event":[{"listen":"prerequest","script":{"id":"a7418d1f-6944-4fb7-b4c0-92ccf61c9e7c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a74751a9-703d-4662-a784-f4a2e30ab3b1","type":"text/javascript","exec":[""]}}],"_postman_id":"27460ba9-e27f-465d-a8f5-27abc4944944"},{"name":"Subscriptions","item":[{"name":"Fetch all subscriptions of a user","id":"161ff5a3-e615-40fe-82d8-2f167b9da9cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/subscriptions/?user_id=krn::iam::xvpn:user:e376e2ee-b407-408b-8179-2f6e9ee7b637","description":"<p>Fetches all subscription of a user</p>\n<p><strong>Response</strong>: Array of <a href=\"https://documenter.getpostman.com/view/23264/TVKA3JCw#schemas\">Subscription Schema</a></p>\n","urlObject":{"path":["subscriptions",""],"host":["{{baseURL}}"],"query":[{"description":{"content":"<p>User-ID of the user, which subscriptions should be fetched</p>\n","type":"text/plain"},"key":"user_id","value":"krn::iam::xvpn:user:e376e2ee-b407-408b-8179-2f6e9ee7b637"}],"variable":[]}},"response":[{"id":"fec6a818-5616-452e-9d00-61b9c56fb8bd","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseURL}}/subscriptions/?user_id=1","host":["{{baseURL}}"],"path":["subscriptions",""],"query":[{"key":"user_id","value":"1","description":"User-ID of the user, which subscriptions should be fetched"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0"},{"key":"Date","value":"Thu, 17 Sep 2020 19:39:00 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Expires","value":"Thu, 17 Sep 2020 19:39:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"object\": \"list\",\n    \"data\": [\n        {\n            \"object\": \"subscription\",\n            \"id\": 1,\n            \"created_at\": \"2020-09-04T13:18:34.000000Z\",\n            \"updated_at\": \"2020-09-04T13:18:34.000000Z\",\n            \"current_interval_start\": \"2020-01-01T15:18:22.000000Z\",\n            \"current_interval_end\": \"2020-01-04T15:18:29.000000Z\",\n            \"items\": {\n                \"object\": \"list\",\n                \"data\": [\n                    {\n                        \"object\": \"subscription_item\",\n                        \"id\": 1,\n                        \"status\": \"PAID\",\n                        \"autorenewal_enabled\": true,\n                        \"created_at\": \"2020-09-04T13:31:41.000000Z\",\n                        \"updated_at\": \"2020-09-17T10:49:08.000000Z\",\n                        \"product\": 100\n                    },\n                    {\n                        \"object\": \"subscription_item\",\n                        \"id\": 2,\n                        \"status\": \"PAID\",\n                        \"autorenewal_enabled\": true,\n                        \"created_at\": \"2020-09-04T13:31:45.000000Z\",\n                        \"updated_at\": \"2020-09-17T10:49:08.000000Z\",\n                        \"product\": 101\n                    }\n                ]\n            }\n        }\n    ]\n}"}],"_postman_id":"161ff5a3-e615-40fe-82d8-2f167b9da9cd"},{"name":"Fetch specific subscription","id":"7d4a6008-5b97-4511-810f-5767ca2f1eb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/subscriptions/:id?expand[]=items.product.name","description":"<p>Fetches a subscription by ID.</p>\n<p><strong>Response</strong>: See <a href=\"https://documenter.getpostman.com/view/23264/TVKA3JCw#schemas\">Subscription Schema</a></p>\n","urlObject":{"path":["subscriptions",":id"],"host":["{{baseURL}}"],"query":[{"key":"expand[]","value":"items.product.name"}],"variable":[{"description":{"content":"<p>ID of the subscription</p>\n","type":"text/plain"},"type":"string","value":"1","key":"id"}]}},"response":[{"id":"58e683a1-2382-48f2-a5fb-5f8dc63dd548","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseURL}}/subscriptions/:id","host":["{{baseURL}}"],"path":["subscriptions",":id"],"variable":[{"key":"id","value":"1","description":"ID of the subscription"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"max-age=0"},{"key":"Date","value":"Thu, 17 Sep 2020 18:55:36 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Expires","value":"Thu, 17 Sep 2020 18:55:36 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"object\": \"subscription\",\n        \"id\": 1,\n        \"created_at\": \"2020-09-04T13:18:34.000000Z\",\n        \"updated_at\": \"2020-09-04T13:18:34.000000Z\",\n        \"current_interval_start\": \"2020-01-01T15:18:22.000000Z\",\n        \"current_interval_end\": \"2020-01-04T15:18:29.000000Z\",\n        \"items\": {\n            \"object\": \"list\",\n            \"data\": [\n                {\n                    \"object\": \"subscription_item\",\n                    \"id\": 1,\n                    \"status\": \"PAID\",\n                    \"autorenewal_enabled\": true,\n                    \"created_at\": \"2020-09-04T13:31:41.000000Z\",\n                    \"updated_at\": \"2020-09-17T10:49:08.000000Z\",\n                    \"product\": 100\n                },\n                {\n                    \"object\": \"subscription_item\",\n                    \"id\": 2,\n                    \"status\": \"PAID\",\n                    \"autorenewal_enabled\": true,\n                    \"created_at\": \"2020-09-04T13:31:45.000000Z\",\n                    \"updated_at\": \"2020-09-17T10:49:08.000000Z\",\n                    \"product\": 101\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"7d4a6008-5b97-4511-810f-5767ca2f1eb8"},{"name":"Change the auto-renewal for a specific subscription item","id":"858b84f7-fbd3-4be4-92fd-0b0c1cfff746","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"autorenewal_enabled\": false\n}"},"url":"{{baseURL}}/subscriptions/:subscription_id/items/:item_id?expand[]=product","urlObject":{"path":["subscriptions",":subscription_id","items",":item_id"],"host":["{{baseURL}}"],"query":[{"key":"expand[]","value":"product"}],"variable":[{"description":{"content":"<p>ID of the subscription</p>\n","type":"text/plain"},"type":"string","value":"1","key":"subscription_id"},{"description":{"content":"<p>ID of the item in the subscription</p>\n","type":"text/plain"},"type":"string","value":"1","key":"item_id"}]}},"response":[],"_postman_id":"858b84f7-fbd3-4be4-92fd-0b0c1cfff746"}],"id":"98bc9735-22d9-488c-9eb5-91e7c2282e47","description":"<p>Upon succesful payment of an order, a subscription is being created. Subscriptions can contain multiple items, which all share the same interval. These items can be auto-renewing, which means, they will automatically trigger an additional payment, if the current subscription period has expired. </p>\n","event":[{"listen":"prerequest","script":{"id":"0d4a23ab-81f0-4536-8c41-3f4b448784bc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fd3ee6ba-3c9e-4f55-b79f-12a145309fd4","type":"text/javascript","exec":[""]}}],"_postman_id":"98bc9735-22d9-488c-9eb5-91e7c2282e47"}],"event":[{"listen":"prerequest","script":{"id":"9f9df754-1323-46b9-a0b6-cbc6cd8aa243","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dc644dfc-d675-40ec-8f42-d10da4e07ec7","type":"text/javascript","exec":[""]}}]}