adoptai-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/bin/adoptai-mcp.js +2 -0
- package/dist/apps/canva.js +1 -0
- package/dist/apps/figma.js +1 -0
- package/dist/apps/github.js +2 -0
- package/dist/apps/notion.js +1 -0
- package/dist/apps/registry.js +20 -0
- package/dist/apps/salesforce.js +1 -0
- package/dist/cli/add.js +532 -0
- package/dist/cli/index.js +39 -0
- package/dist/cli/list.js +19 -0
- package/dist/cli/remove.js +37 -0
- package/dist/cli/serve.js +27 -0
- package/dist/cli/status.js +24 -0
- package/dist/config/clients.js +118 -0
- package/dist/config/credentials.js +34 -0
- package/dist/core/auth-manager.js +237 -0
- package/dist/core/config-writer.js +161 -0
- package/dist/core/doctor.js +199 -0
- package/dist/core/package.json +3 -0
- package/dist/core/server-base.js +81 -0
- package/dist/integrations/canva/.env +3 -0
- package/dist/integrations/canva/auth.js +287 -0
- package/dist/integrations/canva/env.js +9 -0
- package/dist/integrations/canva/index.js +12 -0
- package/dist/integrations/canva/package.json +31 -0
- package/dist/integrations/canva/publish-to-adoptai.js +365 -0
- package/dist/integrations/canva/setup.js +90 -0
- package/dist/integrations/canva/tools.js +1315 -0
- package/dist/integrations/canva/tools.original.js +1315 -0
- package/dist/integrations/figma/auth.js +48 -0
- package/dist/integrations/figma/index.js +11 -0
- package/dist/integrations/figma/package.json +27 -0
- package/dist/integrations/figma/publish-to-adoptai.js +384 -0
- package/dist/integrations/figma/setup.js +90 -0
- package/dist/integrations/figma/tools.js +1137 -0
- package/dist/integrations/github/auth.js +53 -0
- package/dist/integrations/github/index.js +11 -0
- package/dist/integrations/github/package.json +28 -0
- package/dist/integrations/github/publish-to-adoptai.js +240 -0
- package/dist/integrations/github/setup.js +103 -0
- package/dist/integrations/github/tools.js +78 -0
- package/dist/integrations/github-actions/auth.js +53 -0
- package/dist/integrations/github-actions/index.js +11 -0
- package/dist/integrations/github-actions/package.json +27 -0
- package/dist/integrations/github-actions/setup.js +103 -0
- package/dist/integrations/github-actions/tools.js +5642 -0
- package/dist/integrations/github-activity/auth.js +53 -0
- package/dist/integrations/github-activity/index.js +11 -0
- package/dist/integrations/github-activity/package.json +27 -0
- package/dist/integrations/github-activity/setup.js +103 -0
- package/dist/integrations/github-activity/tools.js +925 -0
- package/dist/integrations/github-apps/auth.js +53 -0
- package/dist/integrations/github-apps/index.js +11 -0
- package/dist/integrations/github-apps/package.json +27 -0
- package/dist/integrations/github-apps/setup.js +103 -0
- package/dist/integrations/github-apps/tools.js +791 -0
- package/dist/integrations/github-billing/auth.js +53 -0
- package/dist/integrations/github-billing/index.js +11 -0
- package/dist/integrations/github-billing/package.json +27 -0
- package/dist/integrations/github-billing/setup.js +103 -0
- package/dist/integrations/github-billing/tools.js +438 -0
- package/dist/integrations/github-checks/auth.js +53 -0
- package/dist/integrations/github-checks/index.js +11 -0
- package/dist/integrations/github-checks/package.json +27 -0
- package/dist/integrations/github-checks/setup.js +103 -0
- package/dist/integrations/github-checks/tools.js +607 -0
- package/dist/integrations/github-code-scanning/auth.js +53 -0
- package/dist/integrations/github-code-scanning/index.js +11 -0
- package/dist/integrations/github-code-scanning/package.json +27 -0
- package/dist/integrations/github-code-scanning/setup.js +103 -0
- package/dist/integrations/github-code-scanning/tools.js +987 -0
- package/dist/integrations/github-dependabot/auth.js +53 -0
- package/dist/integrations/github-dependabot/index.js +11 -0
- package/dist/integrations/github-dependabot/package.json +27 -0
- package/dist/integrations/github-dependabot/setup.js +103 -0
- package/dist/integrations/github-dependabot/tools.js +915 -0
- package/dist/integrations/github-gists/auth.js +53 -0
- package/dist/integrations/github-gists/index.js +11 -0
- package/dist/integrations/github-gists/package.json +27 -0
- package/dist/integrations/github-gists/setup.js +103 -0
- package/dist/integrations/github-gists/tools.js +545 -0
- package/dist/integrations/github-git/auth.js +53 -0
- package/dist/integrations/github-git/index.js +11 -0
- package/dist/integrations/github-git/package.json +27 -0
- package/dist/integrations/github-git/setup.js +103 -0
- package/dist/integrations/github-git/tools.js +513 -0
- package/dist/integrations/github-issues/auth.js +53 -0
- package/dist/integrations/github-issues/index.js +11 -0
- package/dist/integrations/github-issues/package.json +27 -0
- package/dist/integrations/github-issues/setup.js +103 -0
- package/dist/integrations/github-issues/tools.js +2232 -0
- package/dist/integrations/github-orgs/auth.js +53 -0
- package/dist/integrations/github-orgs/index.js +11 -0
- package/dist/integrations/github-orgs/package.json +27 -0
- package/dist/integrations/github-orgs/setup.js +103 -0
- package/dist/integrations/github-orgs/tools.js +3512 -0
- package/dist/integrations/github-packages/auth.js +53 -0
- package/dist/integrations/github-packages/index.js +11 -0
- package/dist/integrations/github-packages/package.json +27 -0
- package/dist/integrations/github-packages/setup.js +103 -0
- package/dist/integrations/github-packages/tools.js +1088 -0
- package/dist/integrations/github-pulls/auth.js +53 -0
- package/dist/integrations/github-pulls/index.js +11 -0
- package/dist/integrations/github-pulls/package.json +27 -0
- package/dist/integrations/github-pulls/setup.js +103 -0
- package/dist/integrations/github-pulls/tools.js +1252 -0
- package/dist/integrations/github-reactions/auth.js +53 -0
- package/dist/integrations/github-reactions/index.js +11 -0
- package/dist/integrations/github-reactions/package.json +27 -0
- package/dist/integrations/github-reactions/setup.js +103 -0
- package/dist/integrations/github-reactions/tools.js +706 -0
- package/dist/integrations/github-repos/auth.js +53 -0
- package/dist/integrations/github-repos/index.js +11 -0
- package/dist/integrations/github-repos/package.json +27 -0
- package/dist/integrations/github-repos/setup.js +103 -0
- package/dist/integrations/github-repos/tools.js +7286 -0
- package/dist/integrations/github-search/auth.js +53 -0
- package/dist/integrations/github-search/index.js +11 -0
- package/dist/integrations/github-search/package.json +27 -0
- package/dist/integrations/github-search/setup.js +103 -0
- package/dist/integrations/github-search/tools.js +370 -0
- package/dist/integrations/github-teams/auth.js +53 -0
- package/dist/integrations/github-teams/index.js +11 -0
- package/dist/integrations/github-teams/package.json +27 -0
- package/dist/integrations/github-teams/setup.js +103 -0
- package/dist/integrations/github-teams/tools.js +633 -0
- package/dist/integrations/github-users/auth.js +53 -0
- package/dist/integrations/github-users/index.js +11 -0
- package/dist/integrations/github-users/package.json +27 -0
- package/dist/integrations/github-users/setup.js +103 -0
- package/dist/integrations/github-users/tools.js +1118 -0
- package/dist/integrations/notion/api.js +108 -0
- package/dist/integrations/notion/auth.js +59 -0
- package/dist/integrations/notion/endpoints.json +630 -0
- package/dist/integrations/notion/index.js +11 -0
- package/dist/integrations/notion/package.json +33 -0
- package/dist/integrations/notion/publish-to-adoptai.js +271 -0
- package/dist/integrations/notion/scripts/generate-endpoints.mjs +306 -0
- package/dist/integrations/notion/setup.js +89 -0
- package/dist/integrations/notion/tools.js +586 -0
- package/dist/integrations/notion/tools.original.js +568 -0
- package/dist/integrations/salesforce/.env +8 -0
- package/dist/integrations/salesforce/.env.example +15 -0
- package/dist/integrations/salesforce/auth.js +311 -0
- package/dist/integrations/salesforce/endpoints.json +1359 -0
- package/dist/integrations/salesforce/env.js +9 -0
- package/dist/integrations/salesforce/index.js +12 -0
- package/dist/integrations/salesforce/package.json +42 -0
- package/dist/integrations/salesforce/publish-smart-specs.js +890 -0
- package/dist/integrations/salesforce/publish-to-adoptai.js +386 -0
- package/dist/integrations/salesforce/scripts/extract-postman.mjs +222 -0
- package/dist/integrations/salesforce/setup.js +112 -0
- package/dist/integrations/salesforce/tools.js +4544 -0
- package/dist/integrations/salesforce/tools.original.js +4487 -0
- package/dist/server/mcp-server.js +50 -0
- package/dist/server/tool-loader.js +47 -0
- package/dist/specs/figma-api.json +13621 -0
- package/dist/specs/split/salesforce-auth.json +3931 -0
- package/dist/specs/split/salesforce-bulk-v1.json +1489 -0
- package/dist/specs/split/salesforce-bulk-v2.json +1951 -0
- package/dist/specs/split/salesforce-composite.json +1246 -0
- package/dist/specs/split/salesforce-connect.json +11639 -0
- package/dist/specs/split/salesforce-einstein-prediction-service.json +576 -0
- package/dist/specs/split/salesforce-event-platform.json +2682 -0
- package/dist/specs/split/salesforce-graphql.json +1754 -0
- package/dist/specs/split/salesforce-industries.json +4115 -0
- package/dist/specs/split/salesforce-metadata.json +555 -0
- package/dist/specs/split/salesforce-rest.json +4798 -0
- package/dist/specs/split/salesforce-soap.json +210 -0
- package/dist/specs/split/salesforce-subscription-management.json +1299 -0
- package/dist/specs/split/salesforce-tooling.json +2026 -0
- package/dist/specs/split/salesforce-ui.json +7426 -0
- package/package.json +47 -0
|
@@ -0,0 +1,1299 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "67cb9baa-e0da-4986-957e-88d8734647e2",
|
|
4
|
+
"name": "Salesforce Platform APIs - subscription-management",
|
|
5
|
+
"description": "The Salesforce Platform APIs collection contains 250+ requests and example responses for the following APIs:\n\n<table><tbody><tr><td><div>Auth<br>Bulk (v1 & v2)<br>Composite<br>Connect<br>CPQ<br>Einstein Prediction Service<br>Event Platform</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div>GraphQL<br>Loyalty Management<br>Metadata<br>REST<br>Subscription Management<br>Tooling<br>UI</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n**⚠️ Disclaimer:** this collection is not covered by Salesforce support and SLAs.\n\n## Get Started\n\nClick the button below and follow the instructions from the following sections: \n[<img src=\"https://run.pstmn.io/button.svg\" alt=\"Run In Postman\">](https://god.gw.postman.com/run-collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D12721794-67cb9baa-e0da-4986-957e-88d8734647e2%26entityType%3Dcollection%26workspaceId%3D34382471-0c97-40e5-a206-f947271665c4)\n\n### New Salesforce Users\n\nIf you are new to Salesforce, start by obtaining a free [Developer Edition Org](https://developer.salesforce.com/signup) then, follow the rest of the instructions from this documentation.\n\nYou can also watch our [Beginner's Mind YouTube series](https://www.youtube.com/playlist?list=PLgIMQe2PKPSKJ33M6CX-VLvgax7Xptcmz) for a tour of the Salesforce Platform (the last episode focuses on APIs).\n\n### New Postman Users\n\n<table><tbody><tr><td><div><p>If you are new to Postman, complete this Trailhead project to setup the collection: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\">Quick Start: Connect Postman to Salesforce</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/projects/quick-start-connect-postman-to-salesforce/d281185a04fbccaf4f1d37e51a3b0049_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div><p>If you want to learn more about Postman in general, you can also complete this optional Trailhead badge: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\">Postman API Client</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/modules/postman-api-client/c4f5ce5df16040d22df5f1cfb77af5a6_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n### Regular Postman Users\n\nIf you are already familiar with Postman, here are the minimal getting started steps:\n\n1. If using Postman Web UI, follow these [steps to set up CORS](https://github.com/forcedotcom/postman-salesforce-apis/blob/master/install-with-web.md#enable-cors-in-salesforce) in your Salesforce Org. This is not required when working with the Postman Desktop app.\n \n2. Assign the following value to the `clientId` collection variable (this is a temporary step due to a Postman bug):\n\n```\n{{vault:salesforce-consumer-key}}\n```\n \n3. Assign a value to the `url` collection variable based on your Salesforce Org type:\n \n | URL | Org Type |\n | --- | --- |\n | `https://test.salesforce.com` | Sandboxes or Scratch orgs. |\n | `https://login.salesforce.com` | Production, Trailhead Playground and Developer Edition orgs. |\n | Custom My Domain base URL | Org with a custom domain. |\n \n4. Click **Get New Access Token** from the collection's **Authorization** tab.\n \n5. When prompted to do so, log in to your Salesforce org and allow access to \"Salesforce APIs Collection for Postman\".\n \n6. Copy the value of the `instance_url` field from the token details view.\n \n7. Click **Use Token**.\n \n8. Save the value that you copied in the `_endpoint` variable.\n \n9. Click **Save** and you're good to go!\n \n\n## Resources\n\nCheck out [the documentation](https://github.com/forcedotcom/postman-salesforce-apis) for videos and extra information on how to install, update and contribute to the collection.\n\nWe also have an [demo video](https://www.youtube.com/watch?v=W-IwW6RM4F0) on how to setup the collection.\n\n<img src=\"https://i3.ytimg.com/vi/W-IwW6RM4F0/maxresdefault.jpg\" width=\"80%\">\n\nReport issues and ask questions [here](https://github.com/forcedotcom/postman-salesforce-apis/issues).\n\n## Variables Reference\n\nThe collection relies on the following variables:\n\n| Variable | Description |\n| --- | --- |\n| `_endpoint` | Your Salesforce Org's instance URL. |\n| `url` | The URL used for logging in. Either: <br>\\- `https://test.salesforce.com` for sandboxes or Scratch orgs <br>\\- `https://login.salesforce.com` for production, Trailhead Playground and Developer Edition orgs <br>\\- your custom My Domain base URL. |\n| `version` | The Salesforce API version (e.g.: 50.0). |\n| `username` | Your username. |\n| `password` | Your password. |\n| `secretToken` | Your personal [security token](https://help.salesforce.com/articleView?id=user_security_token.htm). |\n| `clientId` | Connected App client Id. |\n| `clientSecret` | Connected App client secret. |\n| `redirectUrl` | Connected App redirect URL for OAuth 2.0. |\n| `initAccessToken` | Initial access token for dynamic Connected App registration. |\n| `site` | Community suffix when connecting with an Experience Cloud user. |\n\nOnly a few of these variables are mandatory. The authentication requests will automatically register and set extra \"private\" variables identified with a `_` prefix (e.g.: `_accessToken`, `_orgId`, `_userId`...).",
|
|
6
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
7
|
+
"_exporter_id": "32907289",
|
|
8
|
+
"_collection_link": "https://go.postman.co/collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?source=collection_link"
|
|
9
|
+
},
|
|
10
|
+
"auth": {
|
|
11
|
+
"type": "oauth2",
|
|
12
|
+
"oauth2": [
|
|
13
|
+
{
|
|
14
|
+
"key": "grant_type",
|
|
15
|
+
"value": "implicit",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "scope",
|
|
20
|
+
"value": "api",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "addTokenTo",
|
|
25
|
+
"value": "header",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "client_authentication",
|
|
30
|
+
"value": "body",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "password",
|
|
35
|
+
"value": "{{password}}",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "username",
|
|
40
|
+
"value": "{{username}}",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "challengeAlgorithm",
|
|
45
|
+
"value": "S256",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "clientSecret",
|
|
50
|
+
"value": "{{clientSecret}}",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "clientId",
|
|
55
|
+
"value": "{{clientId}}",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "accessTokenUrl",
|
|
60
|
+
"value": "{{url}}{{site}}/services/oauth2/token",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "authUrl",
|
|
65
|
+
"value": "{{url}}{{site}}/services/oauth2/authorize",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "tokenName",
|
|
70
|
+
"value": "access_token",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "useBrowser",
|
|
75
|
+
"value": true,
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"variable": [
|
|
81
|
+
{
|
|
82
|
+
"key": "url",
|
|
83
|
+
"value": "https://login.salesforce.com"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"key": "version",
|
|
87
|
+
"value": "64.0"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "username",
|
|
91
|
+
"value": ""
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "password",
|
|
95
|
+
"value": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "secretToken",
|
|
99
|
+
"value": ""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "clientId",
|
|
103
|
+
"value": "{{vault:salesforce-consumer-key}}"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "clientSecret",
|
|
107
|
+
"value": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"key": "redirectUrl",
|
|
111
|
+
"value": ""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "initAccessToken",
|
|
115
|
+
"value": ""
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "site",
|
|
119
|
+
"value": ""
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "_accessToken",
|
|
123
|
+
"value": ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"key": "_endpoint",
|
|
127
|
+
"value": ""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "_userId",
|
|
131
|
+
"value": ""
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "_appId",
|
|
135
|
+
"value": ""
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "_consumerId",
|
|
139
|
+
"value": ""
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "_tokenId",
|
|
143
|
+
"value": ""
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "_orgId",
|
|
147
|
+
"value": ""
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"key": "_jobId",
|
|
151
|
+
"value": ""
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"key": "webstoreId",
|
|
155
|
+
"value": ""
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"key": "_deviceCode",
|
|
159
|
+
"value": ""
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"item": [
|
|
163
|
+
{
|
|
164
|
+
"name": "User Info",
|
|
165
|
+
"event": [
|
|
166
|
+
{
|
|
167
|
+
"listen": "test",
|
|
168
|
+
"script": {
|
|
169
|
+
"exec": [
|
|
170
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
171
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
172
|
+
"",
|
|
173
|
+
"context.set(\"_userId\", jsonData.user_id);",
|
|
174
|
+
"context.set(\"_orgId\", jsonData.organization_id);",
|
|
175
|
+
"context.set(\"_userFullName\", jsonData.name);"
|
|
176
|
+
],
|
|
177
|
+
"type": "text/javascript"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"request": {
|
|
182
|
+
"method": "GET",
|
|
183
|
+
"header": [
|
|
184
|
+
{
|
|
185
|
+
"key": "Content-Type",
|
|
186
|
+
"value": "application/json"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"url": {
|
|
190
|
+
"raw": "{{_endpoint}}/services/oauth2/userinfo",
|
|
191
|
+
"host": [
|
|
192
|
+
"{{_endpoint}}"
|
|
193
|
+
],
|
|
194
|
+
"path": [
|
|
195
|
+
"services",
|
|
196
|
+
"oauth2",
|
|
197
|
+
"userinfo"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"response": []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "Get Latest Release Version",
|
|
205
|
+
"event": [
|
|
206
|
+
{
|
|
207
|
+
"listen": "test",
|
|
208
|
+
"script": {
|
|
209
|
+
"exec": [
|
|
210
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
211
|
+
"",
|
|
212
|
+
"const statusCode = responseCode.code;",
|
|
213
|
+
"tests[\"Response code - Expected: 200 & Actual: \" + statusCode] = statusCode == 200;",
|
|
214
|
+
"if(statusCode == 200){",
|
|
215
|
+
" const jsonData = JSON.parse(responseBody);",
|
|
216
|
+
" context.set(\"version\", jsonData[jsonData.length-1].version);",
|
|
217
|
+
"}"
|
|
218
|
+
],
|
|
219
|
+
"type": "text/javascript"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"listen": "prerequest",
|
|
224
|
+
"script": {
|
|
225
|
+
"exec": [
|
|
226
|
+
""
|
|
227
|
+
],
|
|
228
|
+
"type": "text/javascript"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"request": {
|
|
233
|
+
"method": "GET",
|
|
234
|
+
"header": [],
|
|
235
|
+
"url": {
|
|
236
|
+
"raw": "{{_endpoint}}/services/data/",
|
|
237
|
+
"host": [
|
|
238
|
+
"{{_endpoint}}"
|
|
239
|
+
],
|
|
240
|
+
"path": [
|
|
241
|
+
"services",
|
|
242
|
+
"data",
|
|
243
|
+
""
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"response": []
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "Get Default Account",
|
|
251
|
+
"event": [
|
|
252
|
+
{
|
|
253
|
+
"listen": "test",
|
|
254
|
+
"script": {
|
|
255
|
+
"exec": [
|
|
256
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
257
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
258
|
+
"",
|
|
259
|
+
"context.set(\"defaultAccount\", jsonData.records[0].Id);"
|
|
260
|
+
],
|
|
261
|
+
"type": "text/javascript"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"protocolProfileBehavior": {
|
|
266
|
+
"disableBodyPruning": true
|
|
267
|
+
},
|
|
268
|
+
"request": {
|
|
269
|
+
"method": "GET",
|
|
270
|
+
"header": [],
|
|
271
|
+
"body": {
|
|
272
|
+
"mode": "raw",
|
|
273
|
+
"raw": "",
|
|
274
|
+
"options": {
|
|
275
|
+
"raw": {
|
|
276
|
+
"language": "json"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"url": {
|
|
281
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Id, Name from Account Where name='SmartBytes'",
|
|
282
|
+
"host": [
|
|
283
|
+
"{{_endpoint}}"
|
|
284
|
+
],
|
|
285
|
+
"path": [
|
|
286
|
+
"services",
|
|
287
|
+
"data",
|
|
288
|
+
"v{{version}}",
|
|
289
|
+
"query"
|
|
290
|
+
],
|
|
291
|
+
"query": [
|
|
292
|
+
{
|
|
293
|
+
"key": "q",
|
|
294
|
+
"value": "Select Id, Name from Account Where name='SmartBytes'"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"response": []
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "Get Default Billing Contact",
|
|
303
|
+
"event": [
|
|
304
|
+
{
|
|
305
|
+
"listen": "test",
|
|
306
|
+
"script": {
|
|
307
|
+
"exec": [
|
|
308
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
309
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
310
|
+
"",
|
|
311
|
+
"context.set(\"defaultBillToContact\", jsonData.records[0].Id);"
|
|
312
|
+
],
|
|
313
|
+
"type": "text/javascript"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"protocolProfileBehavior": {
|
|
318
|
+
"disableBodyPruning": true
|
|
319
|
+
},
|
|
320
|
+
"request": {
|
|
321
|
+
"method": "GET",
|
|
322
|
+
"header": [],
|
|
323
|
+
"body": {
|
|
324
|
+
"mode": "raw",
|
|
325
|
+
"raw": "",
|
|
326
|
+
"options": {
|
|
327
|
+
"raw": {
|
|
328
|
+
"language": "json"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"url": {
|
|
333
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Id, Name from Contact Where AccountId='{{defaultAccount}}' LIMIT 1",
|
|
334
|
+
"host": [
|
|
335
|
+
"{{_endpoint}}"
|
|
336
|
+
],
|
|
337
|
+
"path": [
|
|
338
|
+
"services",
|
|
339
|
+
"data",
|
|
340
|
+
"v{{version}}",
|
|
341
|
+
"query"
|
|
342
|
+
],
|
|
343
|
+
"query": [
|
|
344
|
+
{
|
|
345
|
+
"key": "q",
|
|
346
|
+
"value": "Select Id, Name from Contact Where AccountId='{{defaultAccount}}' LIMIT 1"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"response": []
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "Get Standard Pricebook",
|
|
355
|
+
"event": [
|
|
356
|
+
{
|
|
357
|
+
"listen": "test",
|
|
358
|
+
"script": {
|
|
359
|
+
"exec": [
|
|
360
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
361
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
362
|
+
"",
|
|
363
|
+
"context.set(\"standardPricebook\", jsonData.records[0].Id);"
|
|
364
|
+
],
|
|
365
|
+
"type": "text/javascript"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"protocolProfileBehavior": {
|
|
370
|
+
"disableBodyPruning": true
|
|
371
|
+
},
|
|
372
|
+
"request": {
|
|
373
|
+
"method": "GET",
|
|
374
|
+
"header": [],
|
|
375
|
+
"body": {
|
|
376
|
+
"mode": "raw",
|
|
377
|
+
"raw": "",
|
|
378
|
+
"options": {
|
|
379
|
+
"raw": {
|
|
380
|
+
"language": "json"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"url": {
|
|
385
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Id, Name from Pricebook2 Where name='Standard Price Book' and IsActive = true",
|
|
386
|
+
"host": [
|
|
387
|
+
"{{_endpoint}}"
|
|
388
|
+
],
|
|
389
|
+
"path": [
|
|
390
|
+
"services",
|
|
391
|
+
"data",
|
|
392
|
+
"v{{version}}",
|
|
393
|
+
"query"
|
|
394
|
+
],
|
|
395
|
+
"query": [
|
|
396
|
+
{
|
|
397
|
+
"key": "q",
|
|
398
|
+
"value": "Select Id, Name from Pricebook2 Where name='Standard Price Book' and IsActive = true"
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"response": []
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "Get Default Tax Treatment",
|
|
407
|
+
"event": [
|
|
408
|
+
{
|
|
409
|
+
"listen": "test",
|
|
410
|
+
"script": {
|
|
411
|
+
"exec": [
|
|
412
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
413
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
414
|
+
"",
|
|
415
|
+
"context.set(\"defaultTaxTreatment\", jsonData.records[0].Id);"
|
|
416
|
+
],
|
|
417
|
+
"type": "text/javascript"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"protocolProfileBehavior": {
|
|
422
|
+
"disableBodyPruning": true
|
|
423
|
+
},
|
|
424
|
+
"request": {
|
|
425
|
+
"method": "GET",
|
|
426
|
+
"header": [],
|
|
427
|
+
"body": {
|
|
428
|
+
"mode": "raw",
|
|
429
|
+
"raw": "",
|
|
430
|
+
"options": {
|
|
431
|
+
"raw": {
|
|
432
|
+
"language": "json"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"url": {
|
|
437
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Id, Name from TaxTreatment Where name='No Tax Treatment'",
|
|
438
|
+
"host": [
|
|
439
|
+
"{{_endpoint}}"
|
|
440
|
+
],
|
|
441
|
+
"path": [
|
|
442
|
+
"services",
|
|
443
|
+
"data",
|
|
444
|
+
"v{{version}}",
|
|
445
|
+
"query"
|
|
446
|
+
],
|
|
447
|
+
"query": [
|
|
448
|
+
{
|
|
449
|
+
"key": "q",
|
|
450
|
+
"value": "Select Id, Name from TaxTreatment Where name='No Tax Treatment'"
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"response": []
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "Get Products",
|
|
459
|
+
"event": [
|
|
460
|
+
{
|
|
461
|
+
"listen": "test",
|
|
462
|
+
"script": {
|
|
463
|
+
"exec": [
|
|
464
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
465
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
466
|
+
"",
|
|
467
|
+
"context.set(\"ClassTrainingProduct\", jsonData.records[0].Id);",
|
|
468
|
+
"context.set(\"SLA_BronzeProduct\", jsonData.records[1].Id);",
|
|
469
|
+
"context.set(\"VirtualRouterProduct\", jsonData.records[2].Id);",
|
|
470
|
+
"context.set(\"WorkAnywhereBundleProduct\", jsonData.records[3].Id);",
|
|
471
|
+
""
|
|
472
|
+
],
|
|
473
|
+
"type": "text/javascript"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"protocolProfileBehavior": {
|
|
478
|
+
"disableBodyPruning": true
|
|
479
|
+
},
|
|
480
|
+
"request": {
|
|
481
|
+
"method": "GET",
|
|
482
|
+
"header": [],
|
|
483
|
+
"body": {
|
|
484
|
+
"mode": "raw",
|
|
485
|
+
"raw": "",
|
|
486
|
+
"options": {
|
|
487
|
+
"raw": {
|
|
488
|
+
"language": "json"
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"url": {
|
|
493
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Name, Id from Product2 Where NAME IN ('SLA_Bronze', 'Classroom Training', 'Virtual Router', 'Work Anywhere Software Bundle') order by Name ASC",
|
|
494
|
+
"host": [
|
|
495
|
+
"{{_endpoint}}"
|
|
496
|
+
],
|
|
497
|
+
"path": [
|
|
498
|
+
"services",
|
|
499
|
+
"data",
|
|
500
|
+
"v{{version}}",
|
|
501
|
+
"query"
|
|
502
|
+
],
|
|
503
|
+
"query": [
|
|
504
|
+
{
|
|
505
|
+
"key": "q",
|
|
506
|
+
"value": "Select Name, Id from Product2 Where NAME IN ('SLA_Bronze', 'Classroom Training', 'Virtual Router', 'Work Anywhere Software Bundle') order by Name ASC"
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"response": []
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "GetProductSellingModels",
|
|
515
|
+
"event": [
|
|
516
|
+
{
|
|
517
|
+
"listen": "test",
|
|
518
|
+
"script": {
|
|
519
|
+
"exec": [
|
|
520
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
521
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
522
|
+
"",
|
|
523
|
+
"context.set(\"EvergreenMonthlyPSM\", jsonData.records[0].Id);",
|
|
524
|
+
"context.set(\"OneTimePSM\", jsonData.records[1].Id);",
|
|
525
|
+
"context.set(\"TermMonthlyPSM\", jsonData.records[2].Id);",
|
|
526
|
+
""
|
|
527
|
+
],
|
|
528
|
+
"type": "text/javascript"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"protocolProfileBehavior": {
|
|
533
|
+
"disableBodyPruning": true
|
|
534
|
+
},
|
|
535
|
+
"request": {
|
|
536
|
+
"method": "GET",
|
|
537
|
+
"header": [],
|
|
538
|
+
"body": {
|
|
539
|
+
"mode": "raw",
|
|
540
|
+
"raw": "",
|
|
541
|
+
"options": {
|
|
542
|
+
"raw": {
|
|
543
|
+
"language": "json"
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"url": {
|
|
548
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Id, name from ProductSellingModel Where NAME IN ('Evergreen Monthly', 'One-Time', 'Term Monthly') order by Name ASC",
|
|
549
|
+
"host": [
|
|
550
|
+
"{{_endpoint}}"
|
|
551
|
+
],
|
|
552
|
+
"path": [
|
|
553
|
+
"services",
|
|
554
|
+
"data",
|
|
555
|
+
"v{{version}}",
|
|
556
|
+
"query"
|
|
557
|
+
],
|
|
558
|
+
"query": [
|
|
559
|
+
{
|
|
560
|
+
"key": "q",
|
|
561
|
+
"value": "Select Id, name from ProductSellingModel Where NAME IN ('Evergreen Monthly', 'One-Time', 'Term Monthly') order by Name ASC"
|
|
562
|
+
}
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"response": []
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "GetPBE (Single Selling Model)",
|
|
570
|
+
"event": [
|
|
571
|
+
{
|
|
572
|
+
"listen": "test",
|
|
573
|
+
"script": {
|
|
574
|
+
"exec": [
|
|
575
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
576
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
577
|
+
"",
|
|
578
|
+
"context.set(\"ClassTrainingOneTimePBE\", jsonData.records[0].Id);",
|
|
579
|
+
"context.set(\"SLABronzeEvergrnMonthPBE\", jsonData.records[1].Id);",
|
|
580
|
+
"context.set(\"WorkAnywhereBundlePBE\", jsonData.records[2].Id);",
|
|
581
|
+
""
|
|
582
|
+
],
|
|
583
|
+
"type": "text/javascript"
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"protocolProfileBehavior": {
|
|
588
|
+
"disableBodyPruning": true
|
|
589
|
+
},
|
|
590
|
+
"request": {
|
|
591
|
+
"method": "GET",
|
|
592
|
+
"header": [],
|
|
593
|
+
"body": {
|
|
594
|
+
"mode": "raw",
|
|
595
|
+
"raw": "",
|
|
596
|
+
"options": {
|
|
597
|
+
"raw": {
|
|
598
|
+
"language": "json"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"url": {
|
|
603
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select ID, Name, ProductSellingModel.Name from pricebookentry where Product2.Name IN ('Classroom Training', 'SLA_Bronze','Work Anywhere Software Bundle') order by name ASC",
|
|
604
|
+
"host": [
|
|
605
|
+
"{{_endpoint}}"
|
|
606
|
+
],
|
|
607
|
+
"path": [
|
|
608
|
+
"services",
|
|
609
|
+
"data",
|
|
610
|
+
"v{{version}}",
|
|
611
|
+
"query"
|
|
612
|
+
],
|
|
613
|
+
"query": [
|
|
614
|
+
{
|
|
615
|
+
"key": "q",
|
|
616
|
+
"value": "Select ID, Name, ProductSellingModel.Name from pricebookentry where Product2.Name IN ('Classroom Training', 'SLA_Bronze','Work Anywhere Software Bundle') order by name ASC"
|
|
617
|
+
}
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"response": []
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "GetPBEs(VirtualRouter)",
|
|
625
|
+
"event": [
|
|
626
|
+
{
|
|
627
|
+
"listen": "test",
|
|
628
|
+
"script": {
|
|
629
|
+
"exec": [
|
|
630
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
631
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
632
|
+
"",
|
|
633
|
+
"context.set(\"VirtualRouterEvergrnPBE\", jsonData.records[0].Id);",
|
|
634
|
+
"context.set(\"VirtualRouterTermedPBE\", jsonData.records[1].Id);",
|
|
635
|
+
""
|
|
636
|
+
],
|
|
637
|
+
"type": "text/javascript"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"protocolProfileBehavior": {
|
|
642
|
+
"disableBodyPruning": true
|
|
643
|
+
},
|
|
644
|
+
"request": {
|
|
645
|
+
"method": "GET",
|
|
646
|
+
"header": [],
|
|
647
|
+
"body": {
|
|
648
|
+
"mode": "raw",
|
|
649
|
+
"raw": "",
|
|
650
|
+
"options": {
|
|
651
|
+
"raw": {
|
|
652
|
+
"language": "json"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"url": {
|
|
657
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select ID, Name, ProductSellingModel.Name from pricebookentry where Product2.Name IN ('Virtual Router') order by ProductSellingModel.Name ASC",
|
|
658
|
+
"host": [
|
|
659
|
+
"{{_endpoint}}"
|
|
660
|
+
],
|
|
661
|
+
"path": [
|
|
662
|
+
"services",
|
|
663
|
+
"data",
|
|
664
|
+
"v{{version}}",
|
|
665
|
+
"query"
|
|
666
|
+
],
|
|
667
|
+
"query": [
|
|
668
|
+
{
|
|
669
|
+
"key": "q",
|
|
670
|
+
"value": "Select ID, Name, ProductSellingModel.Name from pricebookentry where Product2.Name IN ('Virtual Router') order by ProductSellingModel.Name ASC"
|
|
671
|
+
}
|
|
672
|
+
]
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"response": []
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "Get Product Relationship Type",
|
|
679
|
+
"event": [
|
|
680
|
+
{
|
|
681
|
+
"listen": "test",
|
|
682
|
+
"script": {
|
|
683
|
+
"exec": [
|
|
684
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
685
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
686
|
+
"",
|
|
687
|
+
"context.set(\"BundleProductRelationshipType\", jsonData.records[0].Id);",
|
|
688
|
+
""
|
|
689
|
+
],
|
|
690
|
+
"type": "text/javascript"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"protocolProfileBehavior": {
|
|
695
|
+
"disableBodyPruning": true
|
|
696
|
+
},
|
|
697
|
+
"request": {
|
|
698
|
+
"method": "GET",
|
|
699
|
+
"header": [],
|
|
700
|
+
"body": {
|
|
701
|
+
"mode": "raw",
|
|
702
|
+
"raw": "",
|
|
703
|
+
"options": {
|
|
704
|
+
"raw": {
|
|
705
|
+
"language": "json"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"url": {
|
|
710
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select ID, Name from productrelationshiptype where Name IN ('Bundle PRT') ",
|
|
711
|
+
"host": [
|
|
712
|
+
"{{_endpoint}}"
|
|
713
|
+
],
|
|
714
|
+
"path": [
|
|
715
|
+
"services",
|
|
716
|
+
"data",
|
|
717
|
+
"v{{version}}",
|
|
718
|
+
"query"
|
|
719
|
+
],
|
|
720
|
+
"query": [
|
|
721
|
+
{
|
|
722
|
+
"key": "q",
|
|
723
|
+
"value": "Select ID, Name from productrelationshiptype where Name IN ('Bundle PRT') "
|
|
724
|
+
}
|
|
725
|
+
]
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"response": []
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "Create Payment Method",
|
|
732
|
+
"request": {
|
|
733
|
+
"method": "POST",
|
|
734
|
+
"header": [],
|
|
735
|
+
"body": {
|
|
736
|
+
"mode": "raw",
|
|
737
|
+
"raw": "{\n \"paymentGatewayId\" : \"{{defaultPaymentGatewayId}}\",\n \"cardPaymentMethod\": {\n \"cardHolderName\": \"{{_userFullName}}\",\n \"expiryMonth\": \"11\",\n \"expiryYear\": \"2222\",\n \"cardNumber\": \"4111111111111111\",\n \"cvv\": \"111\", \n \"cardCategory\": \"CreditCard\",\n \"cardType\": \"VISA\",\n \"startYear\": \"2013\",\n \"startMonth\": \"7\",\n \"nickName\": \"Default Payment Method\",\n \"accountId\": \"{{defaultAccountId}}\"\n },\n \"phone\": \"4155551212\",\n \"email\": \"{{_userEmail}}\",\n \"additionalData\":{\n \"key1\":\"value1\",\n \"key2\":\"value2\"\n }\n}",
|
|
738
|
+
"options": {
|
|
739
|
+
"raw": {
|
|
740
|
+
"language": "json"
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"url": {
|
|
745
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/payments/payment-methods",
|
|
746
|
+
"host": [
|
|
747
|
+
"{{_endpoint}}"
|
|
748
|
+
],
|
|
749
|
+
"path": [
|
|
750
|
+
"services",
|
|
751
|
+
"data",
|
|
752
|
+
"v{{version}}",
|
|
753
|
+
"commerce",
|
|
754
|
+
"payments",
|
|
755
|
+
"payment-methods"
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"response": []
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "Get Default Payment Method",
|
|
763
|
+
"event": [
|
|
764
|
+
{
|
|
765
|
+
"listen": "test",
|
|
766
|
+
"script": {
|
|
767
|
+
"exec": [
|
|
768
|
+
"const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
|
|
769
|
+
"const jsonData = JSON.parse(responseBody);",
|
|
770
|
+
"",
|
|
771
|
+
"context.set(\"defaultPaymentMethodId\", jsonData.records[0].Id);"
|
|
772
|
+
],
|
|
773
|
+
"type": "text/javascript"
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"protocolProfileBehavior": {
|
|
778
|
+
"disableBodyPruning": true
|
|
779
|
+
},
|
|
780
|
+
"request": {
|
|
781
|
+
"method": "GET",
|
|
782
|
+
"header": [],
|
|
783
|
+
"body": {
|
|
784
|
+
"mode": "raw",
|
|
785
|
+
"raw": "",
|
|
786
|
+
"options": {
|
|
787
|
+
"raw": {
|
|
788
|
+
"language": "json"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"url": {
|
|
793
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query?q=Select Id, Nickname from CardPaymentMethod Where Nickname='Default Payment Method' and Status='Active' LIMIT 1",
|
|
794
|
+
"host": [
|
|
795
|
+
"{{_endpoint}}"
|
|
796
|
+
],
|
|
797
|
+
"path": [
|
|
798
|
+
"services",
|
|
799
|
+
"data",
|
|
800
|
+
"v{{version}}",
|
|
801
|
+
"query"
|
|
802
|
+
],
|
|
803
|
+
"query": [
|
|
804
|
+
{
|
|
805
|
+
"key": "q",
|
|
806
|
+
"value": "Select Id, Nickname from CardPaymentMethod Where Nickname='Default Payment Method' and Status='Active' LIMIT 1"
|
|
807
|
+
}
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
},
|
|
811
|
+
"response": []
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "Query Eligible Products",
|
|
815
|
+
"request": {
|
|
816
|
+
"method": "GET",
|
|
817
|
+
"header": [
|
|
818
|
+
{
|
|
819
|
+
"key": "Content-Type",
|
|
820
|
+
"value": "application/json"
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"url": {
|
|
824
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/query/?q=SELECT Product2.Name, ProductSellingModelId, Product2.Id FROM ProductSellingModelOption Group By Product2.Name, Product2.Id, ProductSellingModelId ",
|
|
825
|
+
"host": [
|
|
826
|
+
"{{_endpoint}}"
|
|
827
|
+
],
|
|
828
|
+
"path": [
|
|
829
|
+
"services",
|
|
830
|
+
"data",
|
|
831
|
+
"v{{version}}",
|
|
832
|
+
"query",
|
|
833
|
+
""
|
|
834
|
+
],
|
|
835
|
+
"query": [
|
|
836
|
+
{
|
|
837
|
+
"key": "q",
|
|
838
|
+
"value": "SELECT Product2.Name, ProductSellingModelId, Product2.Id FROM ProductSellingModelOption Group By Product2.Name, Product2.Id, ProductSellingModelId "
|
|
839
|
+
}
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
"description": "This query returns all the products that have a related Product Selling Model Option. To price a product with Subscription Management, the product must have a related Product Selling Model Option.\n\nFor more information, see [Set Up Products and Pricing in Subscription Management](https://help.salesforce.com/s/articleView?id=sf.subscription_mgmt_products_and_pricing_setup.htm)."
|
|
843
|
+
},
|
|
844
|
+
"response": []
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "Request Product Information (No Bundles)",
|
|
848
|
+
"request": {
|
|
849
|
+
"method": "POST",
|
|
850
|
+
"header": [
|
|
851
|
+
{
|
|
852
|
+
"key": "Content-Type",
|
|
853
|
+
"value": "application/json"
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"body": {
|
|
857
|
+
"mode": "raw",
|
|
858
|
+
"raw": "{\n \"productContexts\": [\n {\n \"product2Id\": \"{{ClassTrainingProduct}}\",\n \"productSellingModelId\": \"{{OneTimePSM}}\"\n },\n {\n \"product2Id\": \"{{VirtualRouterProduct}}\" \n }\n ],\n \"fields\": [\n \"id\",\n \"name\",\n \"IsActive\",\n \"ProductCode\"\n ],\n \"retrievalType\": \"ExcludeChildComponents\"\n}"
|
|
859
|
+
},
|
|
860
|
+
"url": {
|
|
861
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/catalog-products/actions/get-products",
|
|
862
|
+
"host": [
|
|
863
|
+
"{{_endpoint}}"
|
|
864
|
+
],
|
|
865
|
+
"path": [
|
|
866
|
+
"services",
|
|
867
|
+
"data",
|
|
868
|
+
"v{{version}}",
|
|
869
|
+
"commerce",
|
|
870
|
+
"catalog-products",
|
|
871
|
+
"actions",
|
|
872
|
+
"get-products"
|
|
873
|
+
]
|
|
874
|
+
},
|
|
875
|
+
"description": "Request information for two products that aren't bundles. For the first product, request only the information about the specified product selling model. For the second product, request information about all related product selling models.\n\nSee [Request Product Information](https://desktop.postman.com/?desktopVersion=10.13.6&webVersion=10.13.7-ui-230522-1730&userId=10709048&teamId=0)."
|
|
876
|
+
},
|
|
877
|
+
"response": []
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "Request Product Information (Bundled Components)",
|
|
881
|
+
"request": {
|
|
882
|
+
"method": "POST",
|
|
883
|
+
"header": [
|
|
884
|
+
{
|
|
885
|
+
"key": "Content-Type",
|
|
886
|
+
"value": "application/json"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"body": {
|
|
890
|
+
"mode": "raw",
|
|
891
|
+
"raw": "{\n \"productContexts\": [\n {\n \"product2Id\": \"{{WorkAnywhereBundleProduct}}\"\n }\n ],\n \"retrievalType\": \"IncludeChildComponents\"\n}"
|
|
892
|
+
},
|
|
893
|
+
"url": {
|
|
894
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/catalog-products/actions/get-products",
|
|
895
|
+
"host": [
|
|
896
|
+
"{{_endpoint}}"
|
|
897
|
+
],
|
|
898
|
+
"path": [
|
|
899
|
+
"services",
|
|
900
|
+
"data",
|
|
901
|
+
"v{{version}}",
|
|
902
|
+
"commerce",
|
|
903
|
+
"catalog-products",
|
|
904
|
+
"actions",
|
|
905
|
+
"get-products"
|
|
906
|
+
]
|
|
907
|
+
},
|
|
908
|
+
"description": "Request information for a single bundle product and all it's bundle components. See [Request Product Information](https://developer.salesforce.com/docs/revenue/subscription-management/references/products?meta=Request+Product+Information)."
|
|
909
|
+
},
|
|
910
|
+
"response": []
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "Calculate Price (New Sale)",
|
|
914
|
+
"request": {
|
|
915
|
+
"method": "POST",
|
|
916
|
+
"header": [
|
|
917
|
+
{
|
|
918
|
+
"key": "Content-Type",
|
|
919
|
+
"value": "application/json"
|
|
920
|
+
}
|
|
921
|
+
],
|
|
922
|
+
"body": {
|
|
923
|
+
"mode": "raw",
|
|
924
|
+
"raw": "{\n \"listPricebookId\": \"{{standardPricebook}}\",\n \"pricingFlow\": \"GET_PRICE_USING_CONTEXT\",\n \"graph\": {\n \"graphId\": \"1\",\n \"records\": [\n {\n \"referenceId\": \"ref_sales_txn\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionShape\"\n },\n \"CurrencyIsoCode\": \"USD\"\n }\n },\n {\n \"referenceId\": \"Item_1_Evergreen\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"ProductId\": \"{{SLA_BronzeProduct}}\",\n \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n \"Quantity\": 3.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\"\n }\n },\n {\n \"referenceId\": \"Item_2_Termed\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"EndDate\": \"2023-12-31\",\n \"ProductId\": \"{{VirtualRouterProduct}}\",\n \"ProductSellingModelId\": \"{{TermMonthlyPSM}}\",\n \"Quantity\": 100.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\"\n }\n }\n ]\n }\n}"
|
|
925
|
+
},
|
|
926
|
+
"url": {
|
|
927
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/pricing/salestransaction/actions/calculate-price",
|
|
928
|
+
"host": [
|
|
929
|
+
"{{_endpoint}}"
|
|
930
|
+
],
|
|
931
|
+
"path": [
|
|
932
|
+
"services",
|
|
933
|
+
"data",
|
|
934
|
+
"v{{version}}",
|
|
935
|
+
"commerce",
|
|
936
|
+
"pricing",
|
|
937
|
+
"salestransaction",
|
|
938
|
+
"actions",
|
|
939
|
+
"calculate-price"
|
|
940
|
+
]
|
|
941
|
+
},
|
|
942
|
+
"description": "Calculate the price of a new sale that contains two order items: a term-defined subscription order for a bronze-level SLA, and an evergreen subscription order for a virtual router. The payload for the term-defined order contains both a start date and an end date. Instead of an end date, you can also include a start date and a subscription term.\n\nSee [Calculate Price](https://developer.salesforce.com/docs/revenue/subscription-management/references/prices?meta=Summary)."
|
|
943
|
+
},
|
|
944
|
+
"response": []
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "Calculate Price (New Sale Bundles)",
|
|
948
|
+
"request": {
|
|
949
|
+
"method": "POST",
|
|
950
|
+
"header": [
|
|
951
|
+
{
|
|
952
|
+
"key": "Content-Type",
|
|
953
|
+
"value": "application/json"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"body": {
|
|
957
|
+
"mode": "raw",
|
|
958
|
+
"raw": "{\n \"listPricebookId\": \"{{standardPricebook}}\",\n \"candidatePricebookIds\": [\n \"{{standardPricebook}}\"\n ],\n \"pricingFlow\": \"GET_PRICE_USING_CONTEXT\",\n \"graph\": {\n \"graphId\": \"1\",\n \"records\": [\n {\n \"referenceId\": \"ref_sales_txn\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionShape\"\n },\n \"CurrencyIsoCode\": \"USD\" \n }\n },\n {\n \"referenceId\": \"ref_sales_txn_item1\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2022-01-01\",\n \"ProductId\": \"{{WorkAnywhereBundleProduct}}\",\n \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n \"Quantity\": 10.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\" \n }\n },\n {\n \"referenceId\": \"ref_sales_txn_item2\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"ProductId\": \"{{VirtualRouterProduct}}\",\n \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n \"Quantity\": 10.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\" \n }\n }, \n {\n \"referenceId\": \"ref_sales_txn_item3\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"ProductId\": \"{{SLA_BronzeProduct}}\",\n \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n \"Quantity\": 10.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\" \n }\n },\n {\n \"referenceId\": \"ref_sales_txn_item4\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"ProductId\": \"{{ClassTrainingProduct}}\",\n \"ProductSellingModelId\": \"{{OneTimePSM}}\",\n \"Quantity\": 50.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\" \n }\n }, \n {\n \"referenceId\": \"ref_rel1\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTrxnItemRelationShape\"\n },\n \"MainSalesTrxnItemShapeId\": \"@{ref_sales_txn_item1.Id}\",\n \"AssocSalesTrxnItemShapeId\": \"@{ref_sales_txn_item2.Id}\",\n \"MainSalesTrxnItemShapeRole\": \"Bundle\",\n \"AssocSalesTrxnItemShapeRole\": \"BundleComponent\",\n \"AssociatedItemShapePricing\": \"IncludedInBundlePrice\"\n }\n },\n {\n \"referenceId\": \"ref_rel2\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTrxnItemRelationShape\"\n },\n \"MainSalesTrxnItemShapeId\": \"@{ref_sales_txn_item1.Id}\",\n \"AssocSalesTrxnItemShapeId\": \"@{ref_sales_txn_item3.Id}\",\n \"MainSalesTrxnItemShapeRole\": \"Bundle\",\n \"AssocSalesTrxnItemShapeRole\": \"BundleComponent\",\n \"AssociatedItemShapePricing\": \"IncludedInBundlePrice\"\n }\n },\n {\n \"referenceId\": \"ref_rel3\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTrxnItemRelationShape\"\n },\n \"MainSalesTrxnItemShapeId\": \"@{ref_sales_txn_item1.Id}\",\n \"AssocSalesTrxnItemShapeId\": \"@{ref_sales_txn_item4.Id}\",\n \"MainSalesTrxnItemShapeRole\": \"Bundle\",\n \"AssocSalesTrxnItemShapeRole\": \"BundleComponent\",\n \"AssociatedItemShapePricing\": \"NotIncludedInBundlePrice\"\n }\n } \n ]\n }\n}"
|
|
959
|
+
},
|
|
960
|
+
"url": {
|
|
961
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/pricing/salestransaction/actions/calculate-price",
|
|
962
|
+
"host": [
|
|
963
|
+
"{{_endpoint}}"
|
|
964
|
+
],
|
|
965
|
+
"path": [
|
|
966
|
+
"services",
|
|
967
|
+
"data",
|
|
968
|
+
"v{{version}}",
|
|
969
|
+
"commerce",
|
|
970
|
+
"pricing",
|
|
971
|
+
"salestransaction",
|
|
972
|
+
"actions",
|
|
973
|
+
"calculate-price"
|
|
974
|
+
]
|
|
975
|
+
},
|
|
976
|
+
"description": "Calculate the price of the Work Anywhere software bundle plus all it's bundle components for the pricing period of 1 month. Because this bundle is sold on an evergreen subscription rather than a termed subscription, the price is calculated per month rather than for the length of the subscription.\n\nAdd one RelationShape for each bundle component. Note that the classroom training product is not included in the bundle price, while the other two bundle components are.\n\nSee [Calculate Price](https://desktop.postman.com/?desktopVersion=10.13.6&webVersion=10.13.7-ui-230522-1730&userId=10709048&teamId=0)."
|
|
977
|
+
},
|
|
978
|
+
"response": []
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"name": "Calculate Price (New Sale with Discounts)",
|
|
982
|
+
"request": {
|
|
983
|
+
"method": "POST",
|
|
984
|
+
"header": [
|
|
985
|
+
{
|
|
986
|
+
"key": "Content-Type",
|
|
987
|
+
"value": "application/json"
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"body": {
|
|
991
|
+
"mode": "raw",
|
|
992
|
+
"raw": "{\n \"listPricebookId\": \"{{standardPricebook}}\",\n \"pricingFlow\": \"GET_PRICE_USING_CONTEXT\",\n \"graph\": {\n \"graphId\": \"1\",\n \"records\": [\n {\n \"referenceId\": \"ref_sales_txn\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionShape\"\n },\n \"CurrencyIsoCode\": \"USD\"\n }\n },\n {\n \"referenceId\": \"Item_1_Evergreen\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"ProductId\": \"{{SLA_BronzeProduct}}\",\n \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n \"Quantity\": 3.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\"\n }\n },\n {\n \"referenceId\": \"Item_2_Termed\",\n \"record\": {\n \"attributes\": {\n \"type\": \"SalesTransactionItemShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"StartDate\": \"2023-01-01\",\n \"EndDate\": \"2024-01-01\",\n \"ProductId\": \"{{VirtualRouterProduct}}\",\n \"ProductSellingModelId\": \"{{TermMonthlyPSM}}\",\n \"Quantity\": 100.0,\n \"PricingTransactionType\": \"NewSale\",\n \"CurrencyIsoCode\": \"USD\"\n }\n },\n {\n \"referenceId\": \"Order_Level_Discount\",\n \"record\": {\n \"attributes\": {\n \"type\": \"PriceAdjustmentGroupShape\"\n },\n \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n \"AdjustmentType\": \"AdjustmentPercentage\",\n \"AdjustmentValue\": -20,\n \"AdjustmentSource\": \"Discretionary\"\n }\n },\n {\n \"referenceId\": \"Line_Level_Discount\",\n \"record\": {\n \"attributes\": {\n \"type\": \"PriceAdjustmentItemShape\"\n },\n \"SalesTransactionItemShapeId\": \"@{Item_1_Evergreen.Id}\",\n \"AdjustmentType\": \"AdjustmentAmount\",\n \"AdjustmentValue\": -10,\n \"AdjustmentSource\": \"Discretionary\",\n \"AdjustmentAmountScope\": \"Unit\"\n }\n } \n ]\n }\n}"
|
|
993
|
+
},
|
|
994
|
+
"url": {
|
|
995
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/pricing/salestransaction/actions/calculate-price",
|
|
996
|
+
"host": [
|
|
997
|
+
"{{_endpoint}}"
|
|
998
|
+
],
|
|
999
|
+
"path": [
|
|
1000
|
+
"services",
|
|
1001
|
+
"data",
|
|
1002
|
+
"v{{version}}",
|
|
1003
|
+
"commerce",
|
|
1004
|
+
"pricing",
|
|
1005
|
+
"salestransaction",
|
|
1006
|
+
"actions",
|
|
1007
|
+
"calculate-price"
|
|
1008
|
+
]
|
|
1009
|
+
},
|
|
1010
|
+
"description": "Calculate the price of a sales transaction, including a top-level and a line-level discount. The top-level discount specifies 20% off the entire sales transaction, while the line-level discount specifies $10 off the sales transaction item.\n\nIn this example, the sales transaction is an order and the sales transaction item is an order item."
|
|
1011
|
+
},
|
|
1012
|
+
"response": []
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "Create or Update Quote",
|
|
1016
|
+
"request": {
|
|
1017
|
+
"method": "POST",
|
|
1018
|
+
"header": [
|
|
1019
|
+
{
|
|
1020
|
+
"key": "Content-Type",
|
|
1021
|
+
"value": "application/json"
|
|
1022
|
+
}
|
|
1023
|
+
],
|
|
1024
|
+
"body": {
|
|
1025
|
+
"mode": "raw",
|
|
1026
|
+
"raw": "{\n \"pricingPref\": \"skip\",\n \"graph\": {\n \"graphId\": \"refQuoteGraph\",\n \"records\": [\n {\n \"referenceId\": \"refQuote\",\n \"record\": {\n \"attributes\": {\n \"type\": \"Quote\",\n \"method\": \"POST\"\n },\n \"Name\": \"Quote_{{$randomCompanyName}}\",\n \"Pricebook2Id\": \"{{standardPricebook}}\" \n }\n },\n {\n \"referenceId\": \"refQuoteLineItem1\",\n \"record\": {\n \"attributes\": {\n \"type\": \"QuoteLineItem\",\n \"method\": \"POST\"\n },\n \"QuoteId\": \"@{refQuote.id}\",\n \"PricebookEntryId\": \"{{VirtualRouterTermedPBE}}\",\n \"Product2Id\": \"{{VirtualRouterProduct}}\",\n \"Quantity\": 5.0,\n \"UnitPrice\": 35.0,\n \"PeriodBoundary\": \"Anniversary\",\n \"BillingFrequency\": \"Monthly\",\n \"StartDate\": \"2023-01-01\",\n \"EndDate\": \"2024-01-01\" \n }\n },\n {\n \"referenceId\": \"refQuoteLineItem2\",\n \"record\": {\n \"attributes\": {\n \"type\": \"QuoteLineItem\",\n \"method\": \"POST\"\n },\n \"QuoteId\": \"@{refQuote.id}\",\n \"PricebookEntryId\": \"{{SLABronzeEvergrnMonthPBE}}\",\n \"Product2Id\": \"{{SLA_BronzeProduct}}\",\n \"Quantity\": 1.0,\n \"UnitPrice\": 10.0,\n \"PeriodBoundary\": \"DayOfPeriod\",\n \"PeriodBoundaryDay\": 4,\n \"BillingFrequency\": \"Monthly\",\n \"StartDate\": \"2023-01-01\"\n }\n }\n\n ]\n }\n}"
|
|
1027
|
+
},
|
|
1028
|
+
"url": {
|
|
1029
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/commerce/quotes/actions/place",
|
|
1030
|
+
"host": [
|
|
1031
|
+
"{{_endpoint}}"
|
|
1032
|
+
],
|
|
1033
|
+
"path": [
|
|
1034
|
+
"services",
|
|
1035
|
+
"data",
|
|
1036
|
+
"v{{version}}",
|
|
1037
|
+
"commerce",
|
|
1038
|
+
"quotes",
|
|
1039
|
+
"actions",
|
|
1040
|
+
"place"
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
"description": "This example creates a quote for the following products.\n\n- 5 Virtual Routers sold on a 1-year termed subscription at $35/item\n- 1 Bronze Service Level Agreement sold on an evergreen subscription at $10/month\n \n\nSee [place quote](https://developer.salesforce.com/docs/revenue/subscription-management/references/quotes?meta=Create+or+update+a+quote+with+place+quote)."
|
|
1044
|
+
},
|
|
1045
|
+
"response": []
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "Create Order (One-Time)",
|
|
1049
|
+
"request": {
|
|
1050
|
+
"method": "POST",
|
|
1051
|
+
"header": [],
|
|
1052
|
+
"body": {
|
|
1053
|
+
"mode": "raw",
|
|
1054
|
+
"raw": "{\n \"allOrNone\": true,\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Order\",\n \"referenceId\": \"refOrder\",\n \"body\": {\n \"AccountId\": \"{{defaultAccount}}\",\n \"EffectiveDate\": \"2022-01-01\",\n \"Pricebook2Id\": \"{{standardPricebook}}\",\n \"BillToContactId\": \"{{defaultBillToContact}}\",\n \"Status\": \"Draft\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/AppUsageAssignment\",\n \"referenceId\": \"refAppTag\",\n \"body\": {\n \"AppUsageType\": \"SubscriptionManagement\",\n \"RecordId\": \"@{refOrder.id}\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/OrderAction\",\n \"referenceId\": \"refOrderAction\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"Type\": \"New Sale\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/OrderItem\",\n \"referenceId\": \"refOrderItem\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"OrderActionId\": \"@{refOrderAction.id}\",\n \"PricebookEntryId\": \"{{ClassTrainingOneTimePBE}}\",\n \"Quantity\": 2.0,\n \"UnitPrice\": 25.0,\n \"NetUnitPrice\": 25.0,\n \"TotalLineAmount\": 50.0,\n \"TaxTreatmentId\": \"{{defaultTaxTreatment}}\"\n }\n }\n ]\n}",
|
|
1055
|
+
"options": {
|
|
1056
|
+
"raw": {
|
|
1057
|
+
"language": "json"
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"url": {
|
|
1062
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite",
|
|
1063
|
+
"host": [
|
|
1064
|
+
"{{_endpoint}}"
|
|
1065
|
+
],
|
|
1066
|
+
"path": [
|
|
1067
|
+
"services",
|
|
1068
|
+
"data",
|
|
1069
|
+
"v{{version}}",
|
|
1070
|
+
"composite"
|
|
1071
|
+
]
|
|
1072
|
+
},
|
|
1073
|
+
"description": "Creates a Subscription Management order with a single order item (label: Order Product). The order item has a one-time product selling model."
|
|
1074
|
+
},
|
|
1075
|
+
"response": []
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "Create Order With Bundle",
|
|
1079
|
+
"request": {
|
|
1080
|
+
"method": "POST",
|
|
1081
|
+
"header": [],
|
|
1082
|
+
"body": {
|
|
1083
|
+
"mode": "raw",
|
|
1084
|
+
"raw": "{\n \"allOrNone\": true,\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/Order\",\n \"referenceId\": \"refOrder\",\n \"body\": {\n \"AccountId\": \"{{defaultAccount}}\",\n \"EffectiveDate\": \"2023-01-01\",\n \"Pricebook2Id\": \"{{standardPricebook}}\",\n \"BillToContactId\": \"{{defaultBillToContact}}\",\n \"Status\": \"Draft\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/AppUsageAssignment\",\n \"referenceId\": \"refAppTag\",\n \"body\": {\n \"AppUsageType\": \"SubscriptionManagement\",\n \"RecordId\": \"@{refOrder.id}\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/OrderAction\",\n \"referenceId\": \"refOrderAction\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"Type\": \"New Sale\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/OrderItem\",\n \"referenceId\": \"refWorkAnywhereBundle\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"OrderActionId\": \"@{refOrderAction.id}\",\n \"PricebookEntryId\": \"{{WorkAnywhereBundlePBE}}\",\n \"ServiceDate\": \"2023-01-01\",\n \"Quantity\": 1,\n \"UnitPrice\": 10000,\n \"NetUnitPrice\": 10000,\n \"TotalLineAmount\": 10000,\n \"PeriodBoundary\": \"AlignToCalendar\",\n \"BillingFrequency2\": \"Monthly\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/OrderItem\",\n \"referenceId\": \"refVirtualRouter\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"OrderActionId\": \"@{refOrderAction.id}\",\n \"PricebookEntryId\": \"{{VirtualRouterEvergrnPBE}}\",\n \"ServiceDate\": \"2023-01-01\",\n \"Quantity\": 100,\n \"UnitPrice\": 0,\n \"NetUnitPrice\": 0,\n \"TotalLineAmount\": 0,\n \"PeriodBoundary\": \"AlignToCalendar\",\n \"BillingFrequency2\": \"Monthly\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/OrderItem\",\n \"referenceId\": \"refBronzeSLA\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"OrderActionId\": \"@{refOrderAction.id}\",\n \"PricebookEntryId\": \"{{SLABronzeEvergrnMonthPBE}}\",\n \"ServiceDate\": \"2023-01-01\",\n \"Quantity\": 3,\n \"UnitPrice\": 0,\n \"NetUnitPrice\": 0,\n \"TotalLineAmount\": 0,\n \"PeriodBoundary\": \"AlignToCalendar\",\n \"BillingFrequency2\": \"Monthly\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/OrderItemRelationship\",\n \"referenceId\": \"refOrderItemRelationship1\",\n \"body\": {\n \"ProductRelationshipTypeId\": \"{{BundleProductRelationshipType}}\",\n \"MainOrderItemId\": \"@{refWorkAnywhereBundle.id}\",\n \"AssociatedOrderItemId\": \"@{refVirtualRouter.id}\",\n \"AssociatedOrderItemPricing\": \"IncludedInBundlePrice\",\n \"AssociatedQuantScaleMethod\": \"Proportional\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v57.0/sobjects/OrderItemRelationship\",\n \"referenceId\": \"refOrderItemRelationship2\",\n \"body\": {\n \"ProductRelationshipTypeId\": \"{{BundleProductRelationshipType}}\",\n \"MainOrderItemId\": \"@{refWorkAnywhereBundle.id}\",\n \"AssociatedOrderItemId\": \"@{refBronzeSLA.id}\",\n \"AssociatedOrderItemPricing\": \"IncludedInBundlePrice\",\n \"AssociatedQuantScaleMethod\": \"Constant\"\n }\n }\n ]\n}\n",
|
|
1085
|
+
"options": {
|
|
1086
|
+
"raw": {
|
|
1087
|
+
"language": "json"
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"url": {
|
|
1092
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite",
|
|
1093
|
+
"host": [
|
|
1094
|
+
"{{_endpoint}}"
|
|
1095
|
+
],
|
|
1096
|
+
"path": [
|
|
1097
|
+
"services",
|
|
1098
|
+
"data",
|
|
1099
|
+
"v{{version}}",
|
|
1100
|
+
"composite"
|
|
1101
|
+
]
|
|
1102
|
+
},
|
|
1103
|
+
"description": "Creates a Subscription Management order for a product bundle."
|
|
1104
|
+
},
|
|
1105
|
+
"response": []
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"name": "Create Order (Evergreen & Termed)",
|
|
1109
|
+
"request": {
|
|
1110
|
+
"method": "POST",
|
|
1111
|
+
"header": [],
|
|
1112
|
+
"body": {
|
|
1113
|
+
"mode": "raw",
|
|
1114
|
+
"raw": "{\n \"allOrNone\": true,\n \"compositeRequest\": [\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/Order\",\n \"referenceId\": \"refOrder\",\n \"body\": {\n \"AccountId\": \"{{defaultAccount}}\",\n \"EffectiveDate\": \"2022-01-01\",\n \"Pricebook2Id\": \"{{standardPricebook}}\",\n \"BillToContactId\": \"{{defaultBillToContact}}\",\n \"Status\": \"Draft\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/AppUsageAssignment\",\n \"referenceId\": \"refAppTag\",\n \"body\": {\n \"AppUsageType\": \"SubscriptionManagement\",\n \"RecordId\": \"@{refOrder.id}\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/OrderAction\",\n \"referenceId\": \"refOrderAction\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"Type\": \"New Sale\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/OrderItem\",\n \"referenceId\": \"Item_1_Evergreen\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"OrderActionId\": \"@{refOrderAction.id}\",\n \"PricebookEntryId\": \"{{VirtualRouterEvergrnPBE}}\",\n \"Quantity\": 2.0,\n \"UnitPrice\": 25.0,\n \"NetUnitPrice\": 25.0,\n \"TotalLineAmount\": 50.0,\n \"PeriodBoundary\": \"Anniversary\",\n \"BillingFrequency2\": \"Monthly\", \n \"ServiceDate\": \"2022-02-01\",\n \"TaxTreatmentId\": \"{{defaultTaxTreatment}}\"\n }\n },\n {\n \"method\": \"POST\",\n \"url\": \"/services/data/v{{version}}/sobjects/OrderItem\",\n \"referenceId\": \"Item_2_termed\",\n \"body\": {\n \"OrderId\": \"@{refOrder.id}\",\n \"OrderActionId\": \"@{refOrderAction.id}\",\n \"PricebookEntryId\": \"{{VirtualRouterTermedPBE}}\",\n \"Quantity\": 10.0,\n \"UnitPrice\": 50.0,\n \"NetUnitPrice\": 50.0,\n \"TotalLineAmount\": 500.0,\n \"PeriodBoundary\": \"Anniversary\",\n \"BillingFrequency2\": \"Monthly\",\n \"PricingTermCount\": 12.0, \n \"ServiceDate\": \"2022-02-01\",\n \"EndDate\": \"2023-01-01\",\n \"TaxTreatmentId\": \"{{defaultTaxTreatment}}\"\n }\n } \n ]\n}",
|
|
1115
|
+
"options": {
|
|
1116
|
+
"raw": {
|
|
1117
|
+
"language": "json"
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"url": {
|
|
1122
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/composite",
|
|
1123
|
+
"host": [
|
|
1124
|
+
"{{_endpoint}}"
|
|
1125
|
+
],
|
|
1126
|
+
"path": [
|
|
1127
|
+
"services",
|
|
1128
|
+
"data",
|
|
1129
|
+
"v{{version}}",
|
|
1130
|
+
"composite"
|
|
1131
|
+
]
|
|
1132
|
+
},
|
|
1133
|
+
"description": "Creates a Subscription Management order with two order items. One order item is sold on a monthly termed subscription, and the other order item is sold as an evergreen subscription."
|
|
1134
|
+
},
|
|
1135
|
+
"response": []
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"name": "Create Order From Quote",
|
|
1139
|
+
"request": {
|
|
1140
|
+
"method": "POST",
|
|
1141
|
+
"header": [
|
|
1142
|
+
{
|
|
1143
|
+
"key": "Content-Type",
|
|
1144
|
+
"value": "application/json"
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"body": {
|
|
1148
|
+
"mode": "raw",
|
|
1149
|
+
"raw": "{\n \"inputs\": [\n {\n \"quoteRecordId\": \"{{currentQuote}}\"\n }\n ]\n}"
|
|
1150
|
+
},
|
|
1151
|
+
"url": {
|
|
1152
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/actions/standard/createOrderFromQuote",
|
|
1153
|
+
"host": [
|
|
1154
|
+
"{{_endpoint}}"
|
|
1155
|
+
],
|
|
1156
|
+
"path": [
|
|
1157
|
+
"services",
|
|
1158
|
+
"data",
|
|
1159
|
+
"v{{version}}",
|
|
1160
|
+
"actions",
|
|
1161
|
+
"standard",
|
|
1162
|
+
"createOrderFromQuote"
|
|
1163
|
+
]
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"response": []
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"name": "CreateAssetFromOrder",
|
|
1170
|
+
"request": {
|
|
1171
|
+
"method": "POST",
|
|
1172
|
+
"header": [
|
|
1173
|
+
{
|
|
1174
|
+
"key": "Content-Type",
|
|
1175
|
+
"value": "application/json"
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
"body": {
|
|
1179
|
+
"mode": "raw",
|
|
1180
|
+
"raw": "{\n \"inputs\": [\n {\n \"orderId\": \"{{currentOrder}}\"\n }\n ]\n}"
|
|
1181
|
+
},
|
|
1182
|
+
"url": {
|
|
1183
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/actions/standard/createOrUpdateAssetFromOrder",
|
|
1184
|
+
"host": [
|
|
1185
|
+
"{{_endpoint}}"
|
|
1186
|
+
],
|
|
1187
|
+
"path": [
|
|
1188
|
+
"services",
|
|
1189
|
+
"data",
|
|
1190
|
+
"v{{version}}",
|
|
1191
|
+
"actions",
|
|
1192
|
+
"standard",
|
|
1193
|
+
"createOrUpdateAssetFromOrder"
|
|
1194
|
+
]
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
"response": []
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"name": "Initiate Cancellation",
|
|
1201
|
+
"request": {
|
|
1202
|
+
"method": "POST",
|
|
1203
|
+
"header": [
|
|
1204
|
+
{
|
|
1205
|
+
"key": "Content-Type",
|
|
1206
|
+
"value": "application/json"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"body": {
|
|
1210
|
+
"mode": "raw",
|
|
1211
|
+
"raw": "{\n \"assetIds\": {\n \"assetIdArray\": [\n \"{{assetID}}\"\n ]\n },\n \"cancellationDate\": \"2023-08-21T00:00:00\",\n \"cancellationOutputType\": \"order\"\n}"
|
|
1212
|
+
},
|
|
1213
|
+
"url": {
|
|
1214
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/asset-management/assets/collection/actions/initiate-cancellation",
|
|
1215
|
+
"host": [
|
|
1216
|
+
"{{_endpoint}}"
|
|
1217
|
+
],
|
|
1218
|
+
"path": [
|
|
1219
|
+
"services",
|
|
1220
|
+
"data",
|
|
1221
|
+
"v{{version}}",
|
|
1222
|
+
"asset-management",
|
|
1223
|
+
"assets",
|
|
1224
|
+
"collection",
|
|
1225
|
+
"actions",
|
|
1226
|
+
"initiate-cancellation"
|
|
1227
|
+
]
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
"response": []
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"name": "Initiate Renewal",
|
|
1234
|
+
"request": {
|
|
1235
|
+
"method": "POST",
|
|
1236
|
+
"header": [
|
|
1237
|
+
{
|
|
1238
|
+
"key": "Content-Type",
|
|
1239
|
+
"value": "application/json"
|
|
1240
|
+
}
|
|
1241
|
+
],
|
|
1242
|
+
"body": {
|
|
1243
|
+
"mode": "raw",
|
|
1244
|
+
"raw": "{\n \"assetIds\": {\n \"assetIdArray\": [\n \"{{assetID}}\"\n ]\n }\n}"
|
|
1245
|
+
},
|
|
1246
|
+
"url": {
|
|
1247
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/asset-management/assets/collection/actions/initiate-renewal",
|
|
1248
|
+
"host": [
|
|
1249
|
+
"{{_endpoint}}"
|
|
1250
|
+
],
|
|
1251
|
+
"path": [
|
|
1252
|
+
"services",
|
|
1253
|
+
"data",
|
|
1254
|
+
"v{{version}}",
|
|
1255
|
+
"asset-management",
|
|
1256
|
+
"assets",
|
|
1257
|
+
"collection",
|
|
1258
|
+
"actions",
|
|
1259
|
+
"initiate-renewal"
|
|
1260
|
+
]
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"response": []
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "Initiate Amend Quantity",
|
|
1267
|
+
"request": {
|
|
1268
|
+
"method": "POST",
|
|
1269
|
+
"header": [
|
|
1270
|
+
{
|
|
1271
|
+
"key": "Content-Type",
|
|
1272
|
+
"value": "application/json"
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
"body": {
|
|
1276
|
+
"mode": "raw",
|
|
1277
|
+
"raw": "{\n \"assetIds\": {\n \"assetIdArray\": [\n \"{{assetID}}\"\n ]\n },\n \"startDate\": \"2023-08-18T00:00:00\",\n \"quantityChange\": 5,\n \"amendmentOutputType\": \"order\"\n}"
|
|
1278
|
+
},
|
|
1279
|
+
"url": {
|
|
1280
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/asset-management/assets/collection/actions/initiate-amend-quantity",
|
|
1281
|
+
"host": [
|
|
1282
|
+
"{{_endpoint}}"
|
|
1283
|
+
],
|
|
1284
|
+
"path": [
|
|
1285
|
+
"services",
|
|
1286
|
+
"data",
|
|
1287
|
+
"v{{version}}",
|
|
1288
|
+
"asset-management",
|
|
1289
|
+
"assets",
|
|
1290
|
+
"collection",
|
|
1291
|
+
"actions",
|
|
1292
|
+
"initiate-amend-quantity"
|
|
1293
|
+
]
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
"response": []
|
|
1297
|
+
}
|
|
1298
|
+
]
|
|
1299
|
+
}
|