Cannot Retrieve Entitlement Package Price on HTTP Callout
Yudi Maryanto May 25, 2018 1:07 AMShare This:
Hi,
I tried to buy a package from CLM. It cost around IDR 3.3 million (see image below)
When user click "Submit Request" button above, I create a HTTP pre callout for ServiceOfferingInstance_BULKCREATE. My application is able to receive the JSON sent by the callout, but the JSON does'nt contain the cost for puchased package. Here is the JSON (some values are redacted using xxx).
How to retrieve the cost of puchased packages? I need this value because I must pass the amout to payment gateway application.
Thanks
{ "Callout-Type" : "PRE_CALLOUT", "callout" : { "cloudClass" : "com.bmc.cloud.model.beans.Callout", "accessValues" : [ { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttributeValue", "accessAttribute" : { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "guid" : "8476de1b-70e9-49f8-9977-0befce038e3d", "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false, "modifiedDate" : 1526438857000, "name" : "URL" }, "accessAttributeObject" : { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "description" : "@circular-reference-placeholder@", "guid" : "8476de1b-70e9-49f8-9977-0befce038e3d", "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false }, "attributeValue" : "http://gtsbmc-clmui:28080/mockserver/payment", "guid" : "bbece018-841a-4ef8-a17c-bd61e4290464", "modifiedDate" : 1527153630000 }, { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttributeValue", "accessAttribute" : { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "guid" : "bd09a610-af0f-41b1-80ac-3ecf2a3cec4e", "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false, "modifiedDate" : 1526438857000, "name" : "DATA" }, "accessAttributeObject" : { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "description" : "@circular-reference-placeholder@", "guid" : "bd09a610-af0f-41b1-80ac-3ecf2a3cec4e", "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false }, "guid" : "8b899650-543a-4733-a6e0-4a3d01137713", "modifiedDate" : 1527153630000 } ], "accessValuesObject" : [ { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttributeValue", "description" : "@circular-reference-placeholder@", "guid" : "bbece018-841a-4ef8-a17c-bd61e4290464" }, { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttributeValue", "description" : "@circular-reference-placeholder@", "guid" : "8b899650-543a-4733-a6e0-4a3d01137713" } ], "calloutType" : "/callouttype/7803528e-d9ab-4d94-b545-86ec26d289dc", "calloutTypeObject" : { "cloudClass" : "com.bmc.cloud.model.beans.CalloutType", "accessAttributes" : [ { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "calloutType" : "/callouttype/7803528e-d9ab-4d94-b545-86ec26d289dc", "datatype" : "STRING", "description" : "URL of the HTTP Server", "guid" : "8476de1b-70e9-49f8-9977-0befce038e3d", "hasValue" : [ "/accessattributevalue/6e32f2f4-fcd8-4aa8-93e0-0a84d6de4b05", "/accessattributevalue/bbece018-841a-4ef8-a17c-bd61e4290464" ], "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false, "modifiedDate" : 1526438857000, "name" : "URL" }, { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "calloutType" : "/callouttype/7803528e-d9ab-4d94-b545-86ec26d289dc", "datatype" : "STRING", "description" : "Data", "guid" : "bd09a610-af0f-41b1-80ac-3ecf2a3cec4e", "hasValue" : [ "/accessattributevalue/fd0c20e4-4744-463a-859c-7bbb70251e9c", "/accessattributevalue/8b899650-543a-4733-a6e0-4a3d01137713" ], "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false, "modifiedDate" : 1526438857000, "name" : "DATA" } ], "accessAttributesObject" : [ { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "description" : "@circular-reference-placeholder@", "guid" : "8476de1b-70e9-49f8-9977-0befce038e3d", "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false }, { "cloudClass" : "com.bmc.cloud.model.beans.AccessAttribute", "description" : "@circular-reference-placeholder@", "guid" : "bd09a610-af0f-41b1-80ac-3ecf2a3cec4e", "isOptional" : false, "isPassword" : false, "modifiableWithoutRestart" : false } ], "callouts" : [ "/callout/078e250d-243d-41ac-aa3e-21fd1f3aa753" ], "description" : "HTTP Callout Type", "guid" : "7803528e-d9ab-4d94-b545-86ec26d289dc", "modifiedDate" : 1526438856000, "name" : "HTTP" }, "guid" : "078e250d-243d-41ac-aa3e-21fd1f3aa753", "isNotification" : false, "modifiedDate" : 1527153630000, "name" : "PAYMENT_GATEWAY", "preOperation" : [ "/providedoperation/60fff3da-d974-4075-bcc7-98f6da25d284" ], "weight" : 1 }, "callouttype" : { "cloudClass" : "com.bmc.cloud.model.beans.CalloutType", "description" : "@circular-reference-placeholder@", "guid" : "7803528e-d9ab-4d94-b545-86ec26d289dc" }, "User" : { "cloudClass" : "com.bmc.cloud.model.beans.User", "authToken" : "0f86617e1e3ff5b1d485a9da3cfcf750e0e0fcd6f514678c1bec5c5e99fee895", "email" : "Pangeran.Diponegoro@xxx.xx.id", "firstName" : "Pangeran", "guid" : "AGHAA5V0GVW92APJG3ZUA551MRCNAM", "lastName" : "Diponegoro", "modifiedDate" : 1527094804000, "name" : "pdiponegoro", "organization" : [ "/organization/AGHAA5V0GVW92APJG3ZTA550MDCMWY" ], "primaryOrganization" : "pangeran_diponegoro_xxx_xx_id", "userName" : "pdiponegoro", "userPrivileges" : [ "/privilege/20000", "/privilege/1200000025", "/privilege/20600" ] }, "quantity" : 1, "serviceOfferingID" : { "cloudClass" : "com.bmc.cloud.model.beans.ServiceOffering", "guid" : "OI-e8be38d344e44307b9ba1e34e11fda53", "isOnboarded" : true, "modifiedDate" : 1527216238000, "name" : "MS Win 2012 DC + SQL ENT - L", "reconciliationID" : "F20DC53B-39BE-9637-9C6A-66457F89E41B", "requestableOfferings" : [ "/requestableoffering/OI-84dc57a2283d4f898b66a9d6a5e12f5d" ], "requestableOfferingsObject" : [ { "cloudClass" : "com.bmc.cloud.model.beans.RequestableOffering", "guid" : "OI-84dc57a2283d4f898b66a9d6a5e12f5d", "isDeliveryRO" : true, "isOnboarded" : true, "modifiedDate" : 1527216238000, "name" : "Microsoft Windows Server 2012 DC + SQL Enterprise - L", "reconciliationID" : "REHAA5V0GVW92APISO5GADPBDQDFSE" } ] }, "serviceRequestID" : "REQ000000001403", "userParameters" : [ ], "hostnamePrefix" : "mje", "Task-UUID" : "f02de9d7-df7b-4002-87c3-8655c3ad8fac", "Operation" : "bulkCreate", "selectedOptionID" : [ "22BA7A7F-56D3-586C-E652-616DA5B7B855", "9EAF0094-5D3C-27C1-B149-61716EAD4462" ], "Meta.Invoked-By" : "com.bmc.cloud.model.beans.ServiceRequest.submit", "password" : "ef64753daefa4da2b8d7824b6bd89c0add4333490c4c0c1f", "requestID" : "6a5b8d13-227e-4f10-b33a-e2b388234f4b", "name" : "Remedy Majene", "CloudClass" : "com.bmc.cloud.model.beans.ServiceOfferingInstance", "Callback-URL" : "https://xxx.xxx.xxx.xxx:9443/csm/task/result", "tenant" : "pangeran_diponegoro_xxx_xx_id", "contractLineID" : [ ], "username" : "rmdapp", "customField" : [ { "cloudClass" : "com.bmc.cloud.model.beans.CustomField", "guid" : "ab53b305-3e01-4e9c-92ca-6543c56c9448", "modifiedDate" : 1527221517000, "name" : "costCenter", "stringValue" : "XXX" } ] }