Skip to content

Postman collection to fetch data for price rise

Kelvin Chappell edited this page Mar 17, 2022 · 2 revisions

This collection should give enough data to determine the date and amount of price rise for a single sub:

{
	"info": {
		"_postman_id": "ea123761-da7a-4af4-83be-873f25da81c9",
		"name": "PriceRiseData",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Subscription",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{url}}/v1/subscriptions/{{subName}}",
					"host": [
						"{{url}}"
					],
					"path": [
						"v1",
						"subscriptions",
						"{{subName}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Invoice preview",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"accountId\": \"{{accountId}}\",\n    \"targetDate\": \"{{targetDate}}\",\n    \"assumeRenewal\": \"Autorenew\",\n    \"chargeTypeToExclude\": \"OneTime\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{url}}/v1/operations/billing-preview",
					"host": [
						"{{url}}"
					],
					"path": [
						"v1",
						"operations",
						"billing-preview"
					]
				}
			},
			"response": []
		},
		{
			"name": "Product catalogue",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{url}}/v1/catalog/products?page=1",
					"host": [
						"{{url}}"
					],
					"path": [
						"v1",
						"catalog",
						"products"
					],
					"query": [
						{
							"key": "page",
							"value": "1"
						}
					]
				}
			},
			"response": []
		}
	]
}

URLs

Prod

url
https://rest.zuora.com
accessTokenUrl
https://rest.zuora.com/oauth/token

Code/Dev

url
https://rest.apisandbox.zuora.com
accessTokenUrl
https://rest.apisandbox.zuora.com/oauth/token

Central sandbox

url
https://rest.test.zuora.com
accessTokenUrl
https://rest.test.zuora.com/oauth/token

My menu

Clone this wiki locally