Sending POSTs
You use a request tool, such as Postman, to ensure POSTs are well-formed and to review the structure of the response payloads. For more information, see Requests and responses.
Send a POST using Postman
Procedure
Tutorial: Create a new note that specifies required fields only
This tutorial assumes you have set up your environment with Postman and the correct sample data set. For more information, see Tutorial: Set up your Postman environment.
In this tutorial, you will create a note whose subject is "API tutorial note 1" for an existing activity (an existing account in BillingCenter). The other fields will not be specified and will be assigned default values by the application (such as not being confidential and having a subject of "General").
If you're using BillingCenter, you must also specify the subject as "Test note" and the
language code as en_US.
Tutorial steps
- In Postman, start a new request by clicking the + to the right of the
Launchpad tab.
- On the Authorization tab, select Basic Auth using user aapplegate and password gw.
- Enter the following call for your respective InsuranceSuite application and click
Send:
- ClaimCenter: GET
http://localhost:8080/cc/rest/common/v1/activities - PolicyCenter: GET
http://localhost:8080/pc/rest/common/v1/activities?filter=subject:eq:Review%20submissionIn the PolicyCenter example, Alice Applegate has two "Review submission" activities that you're retrieving.
- BillingCenter: GET
http://localhost:8080/bc/rest/billing/v1/accounts
- ClaimCenter: GET
- For your respective InsuranceSuite application, do the following:
- ClaimCenter and PolicyCenter: Identify the
idof the first activity in the payload. This value is referenced below as <activityId>. - BillingCenter: Identify the
idof the first account in the payload. This value is referenced below as <accountId>.
- ClaimCenter and PolicyCenter: Identify the
- Open a second request tab. Right-click the first tab and select Duplicate Tab.
- Change the operation to POST and enter the following URL for your respective
InsuranceSuite application, but don't click Send yet:
- ClaimCenter: POST
http://localhost:8080/cc/rest/common/v1/activities/<activityId>/notes - PolicyCenter: POST
http://localhost:8180/pc/rest/common/v1/activities/<activityId>/notes - BillingCenter: POST
http://localhost:8180/bc/rest/billing/v1/accounts/<accountId>/notes
- ClaimCenter: POST
- Specify the request payload.
- In the first row of tabs (the one that starts with Params), click Body.
- In the row of radio buttons, select raw.
- At the end of the row of radio buttons, change the drop-down list value from Text to JSON.
- Paste the following into the text field for your respective InsuranceSuite
application underneath the radio buttons.
ClaimCenter, PolicyCenter:
{ "data": { "attributes": { "body": "API tutorial note 1" } } }BillingCenter:
{ "data": { "attributes": { "language": { "code": "en_US" }, "subject": "Test note", "body": "API tutorial note 1" } } }
- Click Send. The response payload appears below the request payload.
Checking your work
- ClaimCenter:
- In the response payload, note the claim number of the claim this note is related
to. (It is the value of the
relatedTo.displayNamefield.) - Log on to ClaimCenter as
aapplegate. - On the Claim tab, click the drop-down arrow. Enter the claim number in the Claim # field and press Enter.
- In the left-hand sidebar, click Notes.
- The API tutorial note is listed as one of the notes.
- In the response payload, note the claim number of the claim this note is related
to. (It is the value of the
- PolicyCenter:
- Log on to PolicyCenter as
aapplegateand click My Activities. - Click the Subject header to sort the activities by subject.
- Find the first activity with the "Review submission", and click the subject. PolicyCenter opens an Activity Detail worksheet in the bottom pane.
- Click View Notes.
- The API tutorial note is listed as one of the notes. If the note is not present, check the second "Review submission" activity.
- Log on to PolicyCenter as
- BillingCenter:
- In the response payload, note the
idof the account the note is related to. - Log on to BillingCenter as
su - On the account tab, click the drop-down error. Enter the account number in the Acct # field and press Enter.
- The API tutorial note is listed as one of the notes in the Notes section.
- In the response payload, note the
Tutorial: Create a new note that specifies optional fields
This tutorial assumes you have set up your environment with Postman and the correct sample data set. For more information, see Tutorial: Set up your Postman environment.
In this tutorial, you will create a note whose subject is "API tutorial note 2" for an existing activity (an existing account in BillingCenter). You will also specify values for two optional fields for your respective InsuranceSuite application:
- ClaimCenter:
confidential(set to true) andtopic(set to "Litigation") - PolicyCenter:
confidential(set to true) andtopic(set to "Legal") - BillingCenter:
confidential(set to true) andtopic(set to "Delinquency")
Tutorial steps
- In Postman, start a new request by clicking the + to the right of the Launchpad tab.
- On the Authorization tab, select Basic Auth using user aapplegate and password gw.
- Enter the following call for your respective InsuranceSuite application and click
Send:
- ClaimCenter: GET
http://localhost:8080/cc/rest/common/v1/activities - PolicyCenter: GET
http://localhost:8080/pc/rest/common/v1/activities?filter=subject:eq:Review%20submissionIn the PolicyCenter example, Alice Applegate has two "Review submission" activities that you're retrieving.
- BillingCenter: GET
http://localhost:8080/bc/rest/billing/v1/accounts
- ClaimCenter: GET
- For your respective InsuranceSuite application, do the following:
- ClaimCenter and PolicyCenter: Identify the
idof the first activity in the payload. This value is referenced below as <activityId>. - BillingCenter: Identify the
idof the first account in the payload. This value is referenced below as <accountId>.
- ClaimCenter and PolicyCenter: Identify the
- Open a second request tab. Right-click the first tab and select Duplicate Tab.
- Change the operation to POST and enter the following URL for your respective
InsuranceSuite application, but don't click Send yet:
- ClaimCenter: POST
http://localhost:8080/cc/rest/common/v1/activities/<activityId>/notes - PolicyCenter: POST
http://localhost:8180/pc/rest/common/v1/activities/<activityId>/notes - BillingCenter: POST
http://localhost:8180/bc/rest/billing/v1/accounts/<accountId>/notes
- ClaimCenter: POST
- Specify the request payload.
- In the first row of tabs (the one that starts with Params), click Body.
- In the row of radio buttons, select raw.
- At the end of the row of radio buttons, change the drop-down list value from Text to JSON.
- For your respective InsuranceSuite application, paste the following into the text
field underneath the radio
buttons:
ClaimCenter:
{ "data": { "attributes": { "body": "API tutorial note 2", "confidential": true, "topic": { "code": "litigation" } } } }PolicyCenter:
{ "data": { "attributes": { "body": "API tutorial note 2", "confidential": true, "topic": { "code": "legal" } } } }BillingCenter:
{ "data": { "attributes": { "language": { "code": "en_US" }, "subject": "Note 2 subject", "body": "API tutorial note 2", "confidential": true, "topic": { "code": "delinquency" } } } }
- Click Send. The response payload appears below the request payload.
Checking your work
- ClaimCenter:
- In the response payload, note the claim number of the claim this
note is related to. (It is the value of the
relatedTo.displayNamefield.) - Log on to ClaimCenter as
aapplegate. - On the Claim tab, click the drop-down arrow. Enter the claim number in the Claim # field and press Enter.
- In the left-hand sidebar, click Notes.
- The API tutorial note is listed as one of the notes. This note is confidential and it has the category specified in the request payload.
- In the response payload, note the claim number of the claim this
note is related to. (It is the value of the
- PolicyCenter:
- Log on to PolicyCenter as
aapplegateand click My Activities. - Click the Subject header to sort the activities by subject.
- Find the first activity with the "Review submission", and click the subject. PolicyCenter opens an Activity Detail worksheet in the bottom pane.
- Click View Notes.
- The API tutorial note is listed as one of the notes. This note is confidential and it has the category specified in the request payload. If the note is not present, check the second "Review submission" activity.
- Log on to PolicyCenter as
-
The API tutorial note is listed as one of the notes. If the note is not present, check the second "Review submission" activity.
- BillingCenter:
- In the response payload, note the
idof the account the note is related to. - Log on to BillingCenter as
su - On the account tab, click the drop-down error. Enter the account number in the Acct # field and press Enter.
- The API tutorial note is listed as one of the notes in the Notes section. This note is confidential and it has the category specified in the request payload.
- In the response payload, note the