Loading
Salesforce now sends email only from verified domains. Read More
Communications Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Customize Billing and Usage Assistant Omnistudio Components

          Customize Billing and Usage Assistant Omnistudio Components

          Customize the Billing and Usage Assistant by adding or removing Flexcards or by modifying the Integration Procedures that are used as data sources by the Flexcards.

          Billing and Usage Assistant is built using Flexcards that use various Integration Procedures to fetch and save the required data.

          Important
          Important Billing and Usage Assistant will be deprecating in Summer `26. This feature is replaced by an Agentforce-based version in the Summer '25 release. To use the Agentforce-based version of this feature, see Agentforce for Communications Billing Resolution.

          Here's reference information about the Omnistudio components in Billing and Usage Assistant. Use this information to plan your customizations.

          Data Mappers in Billing and Usage Assistant

          With Data Mappers, you can read, transform, and write Salesforce data.

          Here are the Data Mappers used in Billing and Usage Assistant.

          Data Mapper Description Sample Input Sample Output
          SFIBillingInvoiceDataTransform Used to transform the TM Forum 678 Customer Bill Management API structure to capture only the relevant fields.
          {
            "id": "CB-123",
            "href": "https://server:port/tmf-api/Customer_Bill_Management/v4/customerBill/CB-123",
            "billNo": "780123456",
            "amountDue": {
              "unit": "EUR",
              "value": 0
            },
            "appliedPayment": [
              {
                "appliedAmount": {
                  "unit": "EUR",
                  "value": 50
                },
                "payment": {
                  "id": "PAY-9876",
                  "href": "https://server:port/tmf-api/Payment_Management/v4/payment/PAY-9876",
                  "name": "csp-bill",
                  "@referredtype": "Payment",
                  "@type": "PaymentRef",
                  "@baseType": "PaymentRef",
                  "@schemaLocation": "...some href..."
                },
                "@type": "AppliedPayment",
                "@baseType": "AppliedPayment",
                "@schemaLocation": "...some href..."
              }
            ],
            "billCycle": {
              "id": "BC-1234",
              "href": "http://server:port/tmf-api/Customer_Bill_Management/v4/billcycle/BC-1234",
              "@referredType": "BillCycle",
              "@type": "BillCycleRef",
              "@baseType": "BillCycleRef",
              "@schemaLocation": "...some href..."
            },
            "billDate": "2020-01-05T12:00:56.982Z",
            "billDocument": [
              {
                "id": "DOC_1234",
                "href": "http://server:port/tmf-api/Document_Management/v4/document/DOC_1234",
                "attachmentType": "application/pdf",
                "content": "bill",
                "description": "regular monthly bill",
                "mimeType": "application/pdf",
                "size": 172851,
                "uri": "",
                "validfor": {
                  "startDateTime": "2020-01-05T12:00:56.982Z",
                  "endDateTime": "9999-12-31T23:59:59.999Z"
                },
                "@referredType": "application/pdf",
                "@type": "AttachmentRefOrValue",
                "@baseType": "AttachmentRefOrValue",
                "@schemaLocation": "...some href..."
              }
            ],
            "billingAccount": {
              "id": "A0815",
              "href": "http://host:port/tmf-api/Account_Management/v4/billingAccount/A0815",
              "name": "BA Peter Retep",
              "@referredType": "BillingAccount",
              "@type": "BillingAccountRef",
              "@baseType": "BillingAccountRef",
              "@schemaLocation": "...some href..."
            },
            "financialAccount": {
              "id": "FA12345",
              "href": "http://host:port/tmf-api/Account_Management/v4/financialAccount/FA12345",
              "name": "FA Peter Retep",
              "@referredType": "FinancialAccount",
              "@type": "FinancialAccountRef",
              "@baseType": "FinancialAccountRef",
              "@schemaLocation": "...some href..."
            },
            "billingPeriod": {},
            "category": "normal",
            "lastUpdate": "2020-01-05T12:00:56.982Z",
            "nextBillDate": "2020-02-05T12:00:00.000Z",
            "paymentDueDate": "2020-01-15T00:00:00.000Z",
            "paymentMethod": {},
            "relatedParty": [
              {}
            ],
            "remainingAmount": {
              "unit": "EUR",
              "value": 0
            },
            "runType": "regular bill run",
            "status": "settled",
            "taxExcludedAmount": {
              "unit": "EUR",
              "value": 40
            },
            "taxIncludedAmount": {
              "unit": "EUR",
              "value": 50
            },
            "taxItem": [
              {
                "taxAmount": {
                  "unit": "EUR",
                  "value": 10
                },
                "taxCategory": "VAT",
                "taxRate": 0.25,
                "@type": "TaxItem",
                "@baseType": "TaxItem",
                "@schemalocation": "...some uri..."
              }
            ],
            "@type": "CustomerBill",
            "@baseType": "CustomerBill",
            "@schemalocation": "...some uri..."
          }
          {
           "status": "settled",
           "billNo": "780123456",
           "category": "normal",
           "id": "CB-123",
           "appliedAmountUnit": "EUR",
           "paymentDueDate": "2020-01-15T00:00:00.000Z",
           "nextBillDate": "2020-02-05T12:00:00.000Z",
           "amountDue": {
           "value": 0,
           "unit": "EUR"
           },
           "appliedPayment": [
           {
           "appliedAmount": {
           "value": 50,
           "unit": "EUR"
           }
           }
           ],
           "billDate": "2020-01-05T12:00:56.982Z",
           "amountDueValue": 0,
           "billingPeriod": {},
           "billDocument": [
           {
           "@schemaLocation": "...some href...",
           "href": "http://server:port/tmf-api/Document_Management/v4/document/DOC_1234",
           "id": "DOC_1234",
           "@baseType": "AttachmentRefOrValue",
           "size": 172851,
           "content": "bill",
           "uri": "",
           "mimeType": "application/pdf",
           "description": "regular monthly bill",
           "@type": "AttachmentRefOrValue",
           "attachmentType": "application/pdf",
           "validfor": {
           "endDateTime": "9999-12-31T23:59:59.999Z",
           "startDateTime": "2020-01-05T12:00:56.982Z"
           },
           "@referredType": "application/pdf"
           }
           ],
           "appliedAmountValue": 50
          }
          SFIBillingPaymentDataTransform Used to transform the TM Forum 676 Payment Management API structure to capture only the relevant fields.
          {
          "status": "done",
          "paymentDate": "2023-10-05T12:06:38.230Z",
          "id": "12345",
          "correlatorId": "67890",
          "totalAmountUnit": "EUR",
          "totalAmountValue": 11.6,
          "totalAmount": {
          "value": 11.6,
          "unit": "EUR"
          },
          "statusDate": "2023-01-05T12:06:38.230Z"
          }
          
          SFIBilllingUsageDataTransform Used to transform the TM Forum 635 API structure to capture only the relevant fields.
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 12,
          "destinationNumber": "170123456789",
          "taxExcludedRatingAmountValue": 10,
          "durationUnit": "SEC",
          "destinationCountryCode": "49",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-20T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 20
          }
          
          SFIGetBillingAccountNumber Used to retrieve the billing account number for the provided account ID.

          Integration Procedures in Billing and Usage Assistant

          Integration Procedures can read and write data from Salesforce and from external systems (by using REST calls) and can call Apex code.

          Here are the Integration Procedures used in Billing and Usage Assistant.

          Integration Procedure Description Sample Input Sample Output
          SFIDataAndCallUsageAnalysis For Data Consumption Inquiry or Call Usage Inquiry, this IP analyses usage consumption based on the provided date range with Einstein GPT, and generates context and suggestions.
          
          {
          "BillingUsageConsumptionData": [
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 12,
          "destinationNumber": "170123456789",
          "taxExcludedRatingAmountValue": 10,
          "durationUnit": "SEC",
          "destinationCountryCode": "49",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-20T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 20
          },
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 12,
          "destinationNumber": "170123456789",
          "taxExcludedRatingAmountValue": 10,
          "durationUnit": "SEC",
          "destinationCountryCode": "49",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-10T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 30
          },
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 15,
          "destinationNumber": "990123467789",
          "taxExcludedRatingAmountValue": 15,
          "durationUnit": "SEC",
          "destinationCountryCode": "52",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-13T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 300
          },
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 200,
          "destinationNumber": "1799999999",
          "taxExcludedRatingAmountValue": 100,
          "durationUnit": "SEC",
          "destinationCountryCode": "54",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-29T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 3000
          }
          ],
          "inquiryType": "CallUsageInquiry"
          }
          
          {
            "response": "Based on the provided call usage records, there are a few unusual calling patterns and charges that should be highlighted. \n\nFirstly, there is a call on October 29th to a destination number in country code 54 with a duration of 3000 seconds, resulting in a tax-included rating amount of 200 EUR. This is a significant spike in usage and cost compared to the other calls on the list. It would be worth investigating whether this call was necessary or if there may have been a more cost-effective option for the customer.\n\nAdditionally, there is a call on October 13th to a destination number in country code 52 with a duration of 300 seconds, resulting in a tax-included rating amount of 15 EUR. While this call is not necessarily unusual, it is worth noting that it is the only call on the list to this destination country code. If the customer has a need to make calls to this country regularly, they may want to consider a plan or package that includes discounted rates for calls to that country.\n\nIn terms of summarizing the calling charges, the total tax-included rating amount for the four calls is 239 EUR. The highest individual charge is the aforementioned call to country code 54 on October 29th, which accounts for 83% of the total charges.\n\nAs for recommendations for managing usage and avoiding additional charges, the customer may want to consider reviewing their calling habits and identifying any patterns or destinations that may be driving up costs. They could also explore different plans or packages offered by their service provider that may better suit their usage needs and budget. Finally, it may be beneficial for the customer to set up usage alerts or notifications to keep track of their usage and avoid unexpected charges."
          }
          SFIBillingGetAccountInfo Retrieves basic billing account information. By default, this IP returns stub data. You can configure your custom data source.
          {
          "BillingAccountInfo": {
          "billStructure": {
          "cycleSpecification": {
          "name": "Monthly billing",
          "frequency": "monthly"
          }
          },
          "defaultPaymentMethod": {
          "name": "Family Payment"
          },
          "accountBalance": [
          {
          "validFor": {
          "endDateTime": "2019-01-10T00:00",
          "startDateTime": "2018-06-13T00:00"
          },
          "balanceType": "DepositBalance",
          "amount": 53.29
          },
          {
          "validFor": {
          "endDateTime": "2019-01-10T00:00",
          "startDateTime": "2018-06-14T00:00"
          },
          "balanceType": "ReceivableBalance",
          "amount": 58.97
          }
          ],
          "unit": "USD",
          "state": "Active",
          "accountType": "Business",
          "id": "4458"
          }
          }
          
          SFIBillingGetInvoices Retrieves invoices for a billing account.
          {
           "BillingInvoiceData": [
             {
               "billNo": "780123454",
               "category": "normal",
               "id": "CB-121",
               "state": "paid",
               "appliedAmountUnit": "EUR",
               "paymentDueDate": "2023-08-15T00:00:00.000Z",
               "nextBillDate": "2023-09-05T12:00:00.000Z",
               "amountDue": {
                 "value": 52,
                 "unit": "EUR"
               },
               "appliedPayment": [
                 {
                   "appliedAmount": {
                     "value": 52,
                     "unit": "EUR"
                   }
                 }
               ],
               "billDate": "2023-08-05T12:00:56.982Z",
               "amountDueValue": 52,
               "billingPeriod": "monthly",
               "billDocument": [
                 {
                   "id": "DOC_1233",
                   "href": "http://server:port/tmfapi/Document_Management/v5/document/DOC_1233",
                   "attachmentType": "application/pdf",
                   "content": "bill",
                   "description": "Regular Monthly Bill",
                   "mimeType": "application/pdf",
                   "size": 172851,
                   "url": "https://techdicer.com",
                   "validfor": {
                     "startDateTime": "2023-08-05T12:00:56.982Z"
                   },
                   "@type": "Attachment"
                 }
               ],
               "appliedAmountValue": 52
             },
             {
               "billNo": "780123455",
               "category": "normal",
               "id": "CB-122",
               "state": "paid",
               "appliedAmountUnit": "EUR",
               "paymentDueDate": "2023-09-15T00:00:00.000Z",
               "nextBillDate": "2023-10-05T12:00:00.000Z",
               "amountDue": {
                 "value": 78,
                 "unit": "EUR"
               },
               "appliedPayment": [
                 {
                   "appliedAmount": {
                     "value": 78,
                     "unit": "EUR"
                   }
                 }
               ],
               "billDate": "2023-09-05T12:00:56.982Z",
               "amountDueValue": 78,
               "billingPeriod": "monthly",
               "billDocument": [
                 {
                   "id": "DOC_1234",
                   "href": "http://server:port/tmfapi/Document_Management/v5/document/DOC_1234",
                   "attachmentType": "application/pdf",
                   "content": "bill",
                   "description": "",
                   "mimeType": "application/pdf",
                   "size": 172851,
                   "url": "https://techdicer.com",
                   "validfor": {
                     "startDateTime": "2023-09-05T12:00:56.982Z"
                   },
                   "@type": "Attachment"
                 }
               ],
               "appliedAmountValue": 78
             }
           ]
          }
          
          SFIBillingGetOverviewData Retrieves billing overview information based on the account ID. Combines the responses from multiple IPs to return billing account details, last bill details, and last payment details.
          {
          "OverviewResponse": {
          "RecentInvoiceDetails": {
          "billNo": "780123459",
          "category": "normal",
          "id": "CB-126",
          "state": "new",
          "appliedAmountUnit": "EUR",
          "paymentDueDate": "2024-01-15T00:00:00.000Z",
          "nextBillDate": "2024-02-05T12:00:00.000Z",
          "amountDue": {
          "value": 152,
          "unit": "EUR"
          },
          "appliedPayment": [
          {
          "appliedAmount": {
          "value": 0,
          "unit": "EUR"
          }
          }
          ],
          "billDate": "2024-01-05T12:00:56.982Z",
          "amountDueValue": 152,
          "billingPeriod": "monthly",
          "billDocument": [
          {
          "id": "DOC_1238",
          "href": "http://server:port/tmfapi/Document_Management/v5/document/DOC_1238",
          "attachmentType": "application/pdf",
          "content": "bill",
          "description": "",
          "mimeType": "application/pdf",
          "size": 172851,
          "url": "https://wise.com/imaginary-v2/images/cff3e88f2d560c0df4cc43cb814d120f-invoice-template-PDF-3.pdf",
          "validfor": {
          "startDateTime": "2024-01-05T12:00:56.982Z"
          },
          "@type": "Attachment"
          },
          {
          "id": "DOC_12378",
          "href": "http://server:port/tmfapi/Document_Management/v5/document/DOC_1238",
          "attachmentType": "application/pdf",
          "content": "bill",
          "description": "Monthly Bill",
          "mimeType": "application/pdf",
          "size": 172851,
          "url": "https://wise.com/imaginary-v2/images/cff3e88f2d560c0df4cc43cb814d120f-invoice-template-PDF-3.pdf",
          "validfor": {
          "startDateTime": "2024-01-05T12:00:56.982Z"
          },
          "@type": "Attachment"
          }
          ],
          "appliedAmountValue": 0
          },
          "RecentPaymentDetails": {
          "status": "done",
          "paymentDate": "2023-10-05T12:06:38.230Z",
          "id": "12345",
          "correlatorId": "67890",
          "totalAmountUnit": "EUR",
          "totalAmountValue": 11.6,
          "totalAmount": {
          "value": 11.6,
          "unit": "EUR"
          },
          "statusDate": "2023-01-05T12:06:38.230Z"
          },
          "BillingAccountDetails": {
          "billStructure": {
          "cycleSpecification": {
          "name": "Monthly billing",
          "frequency": "monthly"
          }
          },
          "defaultPaymentMethod": {
          "name": "Family Payment"
          },
          "accountBalance": [
          {
          "validFor": {
          "endDateTime": "2019-01-10T00:00",
          "startDateTime": "2018-06-13T00:00"
          },
          "balanceType": "DepositBalance",
          "amount": 53.29
          },
          {
          "validFor": {
          "endDateTime": "2019-01-10T00:00",
          "startDateTime": "2018-06-14T00:00"
          },
          "balanceType": "ReceivableBalance",
          "amount": 58.97
          }
          ],
          "unit": "USD",
          "state": "Active",
          "accountType": "Business",
          "id": "4458"
          }
          }
          }
          
          SFIBillingGetPaymentAndBalanceData Retrieves billing, payment, and balance information based on the account ID—you can customize the IP to return the number of invoices with numberOfBills. { "numberOfBills": "2"}
          {
          "BillPaymentData": [
          {
          "billNo": "780123454",
          "category": "normal",
          "id": "CB-121",
          "state": "paid",
          "appliedAmountUnit": "EUR",
          "paymentDueDate": "2023-08-15T00:00:00.000Z",
          "nextBillDate": "2023-09-05T12:00:00.000Z",
          "amountDue": {
          "value": 52,
          "unit": "EUR"
          },
          "appliedPayment": [
          {
          "appliedAmount": {
          "value": 52,
          "unit": "EUR"
          }
          }
          ],
          "billDate": "2023-08-05T12:00:56.982Z",
          "amountDueValue": 52,
          "billingPeriod": "monthly",
          "billDocument": [
          {
          "id": "DOC_1233",
          "href": "http://server:port/tmfapi/Document_Management/v5/document/DOC_1233",
          "attachmentType": "application/pdf",
          "content": "bill",
          "description": "Regular Monthly Bill",
          "mimeType": "application/pdf",
          "size": 172851,
          "url": "https://techdicer.com",
          "validfor": {
          "startDateTime": "2023-08-05T12:00:56.982Z"
          },
          "@type": "Attachment"
          }
          ],
          "appliedAmountValue": 52
          },
          {
          "billNo": "780123455",
          "category": "normal",
          "id": "CB-122",
          "state": "paid",
          "appliedAmountUnit": "EUR",
          "paymentDueDate": "2023-09-15T00:00:00.000Z",
          "nextBillDate": "2023-10-05T12:00:00.000Z",
          "amountDue": {
          "value": 78,
          "unit": "EUR"
          },
          "appliedPayment": [
          {
          "appliedAmount": {
          "value": 78,
          "unit": "EUR"
          }
          }
          ],
          "billDate": "2023-09-05T12:00:56.982Z",
          "amountDueValue": 78,
          "billingPeriod": "monthly",
          "billDocument": [
          {
          "id": "DOC_1234",
          "href": "http://server:port/tmfapi/Document_Management/v5/document/DOC_1234",
          "attachmentType": "application/pdf",
          "content": "bill",
          "description": "",
          "mimeType": "application/pdf",
          "size": 172851,
          "url": "https://techdicer.com",
          "validfor": {
          "startDateTime": "2023-09-05T12:00:56.982Z"
          },
          "@type": "Attachment"
          }
          ],
          "appliedAmountValue": 78
          }
          ]
          }
          
          SFIBillingGetPayments Retrieves payments for a billing account.
          {
            "BillingPaymentData": [
              {
                "status": "done",
                "paymentDate": "2023-10-05T12:06:38.230Z",
                "id": "12345",
                "correlatorId": "67890",
                "totalAmountUnit": "EUR",
                "totalAmountValue": 11.6,
                "totalAmount": {
                  "value": 11.6,
                  "unit": "EUR"
                },
                "statusDate": "2023-01-05T12:06:38.230Z"
              },
              {
                "status": "done",
                "paymentDate": "2023-09-05T12:06:38.230Z",
                "id": "12346",
                "correlatorId": "67891",
                "totalAmountUnit": "EUR",
                "totalAmountValue": 15.6,
                "totalAmount": {
                  "value": 15.6,
                  "unit": "EUR"
                },
                "statusDate": "2023-09-05T12:06:38.230Z"
              },
              {
                "status": "done",
                "paymentDate": "2023-08-05T12:06:38.230Z",
                "id": "12347",
                "correlatorId": "67892",
                "totalAmountUnit": "EUR",
                "totalAmountValue": 21.2,
                "totalAmount": {
                  "value": 21.2,
                  "unit": "EUR"
                },
                "statusDate": "2023-08-05T12:06:38.230Z"
              },
              {
                "status": "done",
                "paymentDate": "2023-07-05T12:06:38.230Z",
                "id": "12348",
                "correlatorId": "67893",
                "totalAmountUnit": "EUR",
                "totalAmountValue": 21.65,
                "totalAmount": {
                  "value": 21.65,
                  "unit": "EUR"
                },
                "statusDate": "2023-07-05T12:06:38.230Z"
              },
              {
                "status": "done",
                "paymentDate": "2023-06-05T12:06:38.230Z",
                "id": "12349",
                "correlatorId": "67894",
                "totalAmountUnit": "EUR",
                "totalAmountValue": 42,
                "totalAmount": {
                  "value": 42,
                  "unit": "EUR"
                },
                "statusDate": "2023-06-05T12:06:38.230Z"
              },
              {
                "status": "done",
                "paymentDate": "2023-05-05T12:06:38.230Z",
                "id": "12350",
                "correlatorId": "67895",
                "totalAmountUnit": "EUR",
                "totalAmountValue": 25.5,
                "totalAmount": {
                  "value": 25.5,
                  "unit": "EUR"
                },
                "statusDate": "2023-05-05T12:06:38.230Z"
              }
            ]
          }
          SFIBillingGetUsageData Retrieves billing and usage records for an account ID, invoice number, and usage type.
          {    "inquiryType": "CallUsageInquiry"}
          {
            "BillingUsageData": [
              {
                "usageType": "Voice",
                "taxIncludedRatingAmountValue": 12,
                "destinationNumber": "170123456789",
                "taxExcludedRatingAmountValue": 10,
                "durationUnit": "SEC",
                "destinationCountryCode": "49",
                "originatingNumber": "676123456789",
                "usageDateTime": "2024-02-04T17:00:00.000Z",
                "originatingCountryCode": "43",
                "taxRate": 20,
                "taxAmountUnit": "EUR",
                "duration": 20
              },
              {
                "usageType": "Voice",
                "taxIncludedRatingAmountValue": 12,
                "destinationNumber": "170123456789",
                "taxExcludedRatingAmountValue": 10,
                "durationUnit": "SEC",
                "destinationCountryCode": "49",
                "originatingNumber": "676123456789",
                "usageDateTime": "2024-02-10T17:00:00.000Z",
                "originatingCountryCode": "43",
                "taxRate": 20,
                "taxAmountUnit": "EUR",
                "duration": 30
              },
              {
                "usageType": "Voice",
                "taxIncludedRatingAmountValue": 15,
                "destinationNumber": "990123467789",
                "taxExcludedRatingAmountValue": 15,
                "durationUnit": "SEC",
                "destinationCountryCode": "52",
                "originatingNumber": "676123456789",
                "usageDateTime": "2024-02-13T17:00:00.000Z",
                "originatingCountryCode": "43",
                "taxRate": 20,
                "taxAmountUnit": "EUR",
                "duration": 300
              },
              {
                "usageType": "Voice",
                "taxIncludedRatingAmountValue": 200,
                "destinationNumber": "1799999999",
                "taxExcludedRatingAmountValue": 100,
                "durationUnit": "SEC",
                "destinationCountryCode": "54",
                "originatingNumber": "676123456789",
                "usageDateTime": "2024-02-09T17:00:00.000Z",
                "originatingCountryCode": "43",
                "taxRate": 20,
                "taxAmountUnit": "EUR",
                "duration": 3000
              }
            ]
          }
          SFIBillingGetUsageDataForComparison Retrieves the usage data for two invoices for the Unexpected Bill Amount Inquiry when two invoices are selected.
          {
            "BillingUsageData": {
              "data1": [
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 12,
                  "destinationNumber": "170123456789",
                  "taxExcludedRatingAmountValue": 10,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "49",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-11-20T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 20
                },
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 8,
                  "destinationNumber": "170123456789",
                  "taxExcludedRatingAmountValue": 5,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "49",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-11-22T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 20
                },
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 48,
                  "destinationNumber": "990123467789",
                  "taxExcludedRatingAmountValue": 15,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "52",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-11-30T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 1000
                }
              ],
              "data2": [
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 12,
                  "destinationNumber": "170123456789",
                  "taxExcludedRatingAmountValue": 10,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "49",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-10-20T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 20
                },
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 12,
                  "destinationNumber": "170123456789",
                  "taxExcludedRatingAmountValue": 10,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "49",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-10-10T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 30
                },
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 15,
                  "destinationNumber": "990123467789",
                  "taxExcludedRatingAmountValue": 15,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "52",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-10-13T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 300
                },
                {
                  "usageType": "Voice",
                  "taxIncludedRatingAmountValue": 200,
                  "destinationNumber": "1799999999",
                  "taxExcludedRatingAmountValue": 100,
                  "durationUnit": "SEC",
                  "destinationCountryCode": "54",
                  "originatingNumber": "676123456789",
                  "usageDateTime": "2023-10-29T17:00:00.000Z",
                  "originatingCountryCode": "43",
                  "taxRate": 20,
                  "taxAmountUnit": "EUR",
                  "duration": 3000
                }
              ]
            }
          }
          SFIBillingAnalysisHighBill Analyzes a high bill based on the provided usage data with Einstein GPT and generates context and suggestions.
          {
          "BillingUsageData": [
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 12,
          "destinationNumber": "170123456789",
          "taxExcludedRatingAmountValue": 10,
          "durationUnit": "SEC",
          "destinationCountryCode": "49",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-20T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 20
          },
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 12,
          "destinationNumber": "170123456789",
          "taxExcludedRatingAmountValue": 10,
          "durationUnit": "SEC",
          "destinationCountryCode": "49",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-10T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 30
          },
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 15,
          "destinationNumber": "990123467789",
          "taxExcludedRatingAmountValue": 15,
          "durationUnit": "SEC",
          "destinationCountryCode": "52",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-13T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 300
          },
          {
          "usageType": "Voice",
          "taxIncludedRatingAmountValue": 200,
          "destinationNumber": "1799999999",
          "taxExcludedRatingAmountValue": 100,
          "durationUnit": "SEC",
          "destinationCountryCode": "54",
          "originatingNumber": "676123456789",
          "usageDateTime": "2023-10-29T17:00:00.000Z",
          "originatingCountryCode": "43",
          "taxRate": 20,
          "taxAmountUnit": "EUR",
          "duration": 3000
          }
          ]
          }
          
          {
            "response": "Based on the provided list of charges, the top 5 charges are:\n\n1. A call to destination number 1799999999 in country code 54, with a duration of 50 minutes, resulting in a charge of 200 EUR.\n2. A call to destination number 990123467789 in country code 52, with a duration of 5 minutes, resulting in a charge of 15 EUR.\n3. A call to destination number 170123456789 in country code 49, with a duration of 2 minutes, resulting in a charge of 12 EUR.\n4. A call to destination number 170123456789 in country code 49, with a duration of 30 seconds, resulting in a charge of 12 EUR.\n5. A call to destination number 170123456789 in country code 49, with a duration of 2 minutes, resulting in a charge of 10 EUR.\n\nFrom the analysis, it is clear that the majority of the charges are due to international calls, especially those with longer durations. Therefore, to reduce their bill in the future, the customer could consider using messaging or video calling apps instead of making voice calls, especially for international calls. Additionally, they could consider subscribing to a plan that offers discounted rates for international calls."
          }
          SFIPaymentAndBalanceAnalysis Analyzes payments and balance related invoice data with Einstein GPT, and generates context and suggestions. Retrieves the response in an HTML tabular format.
          {
            "response": "<table>\n  <tr>\n    <th>Invoice Number</th>\n    <th>Total Amount Due</th>\n    <th>Payment due date</th>\n    <th>Payment Amount</th>\n    <th>Payment Status</th>\n    <th>Running Balance</th>\n  </tr>\n  <tr>\n    <td>780123454</td>\n    <td>52 EUR</td>\n    <td>2023-08-15T00:00:00.000Z</td>\n    <td>32 EUR</td>\n    <td>Partial payment</td>\n    <td>20 EUR</td>\n  </tr>\n  <tr>\n    <td>780123455</td>\n    <td>78 EUR</td>\n    <td>2023-09-15T00:00:00.000Z</td>\n    <td>78 EUR</td>\n    <td>paid</td>\n    <td>20 EUR</td>\n  </tr>\n  <tr>\n    <td>780123456</td>\n    <td>50 EUR</td>\n    <td>2023-10-15T00:00:00.000Z</td>\n    <td>50 EUR</td>\n    <td>paid</td>\n    <td>-30 EUR</td>\n  </tr>\n  <tr>\n    <td>780123457</td>\n    <td>239 EUR</td>\n    <td>2023-11-15T00:00:00.000Z</td>\n    <td>239 EUR</td>\n    <td>paid</td>\n    <td>-319 EUR</td>\n  </tr>\n  <tr>\n    <td>780123458</td>\n    <td>68 EUR</td>\n    <td>2023-12-15T00:00:00.000Z</td>\n    <td>68 EUR</td>\n    <td>paid</td>\n    <td>-319 EUR</td>\n  </tr>\n  <tr>\n    <td>780123459</td>\n    <td>152 EUR</td>\n    <td>2024-01-15T00:00:00.000Z</td>\n    <td>0 EUR</td>\n    <td>new</td>\n    <td>-471 EUR</td>\n  </tr>\n</table>"
          }

          FlexCards in Billing and Usage Assistant

          FlexCards contain a combination of information and links to processes within a specific context based on the data source provided.

          Here are the FlexCards used in Billing and Usage Assistant.

          FlexCard Data Source Required Input Sample Input Used In
          SFIBillingInquiryAssistantHeader None None NA The sfi_BillingInquiryAssistant_multiLanguage Omniscript
          SFIBillingInquiryAssistantQueryType Omniscript JSON Inquiry Type
          {"InquiryType" : "Unexpected Bill Amount Inquiry"}
          The sfi_BillingInquiryAssistant_multiLanguage Omniscript
          SFIBillingInquiryAssistantResponse None None NA The sfi_BillingInquiryAssistant_multiLanguage Omniscript
          SFIBillingInquiryDisclaimer None None NA The sfi_BillingInquiryAssistant_multiLanguage Omniscript
          SFIBillingInquiryGPTResponse Omniscript JSON Einstein response
          {"response" : "Sample Einstein response"}
          The sfi_BillingInquiryAssistant_multiLanguage Omniscript
          SFIBillingInquiryViewMore Omniscript JSON Einstein response for Payments and Bills.
          {"response" : "Sample Einstein response"}
          The sfi_BillingInquiryAssistant_multiLanguage Omniscript
          SFIPaymentsBalancesViewMoreModal Omniscript JSON Einstein response for Payments and Bills.
          {"response" : "Sample Einstein response"}
          The sfi_BillingInquiryAssistant_multiLanguage Omniscript

          Omniscripts in Billing and Usage Assistant

          An Omniscript is an omnichannel customer engagement and a business tool built on the Salesforce platform.

          Here's the Omniscript used in Billing and Usage Assistant.

          Omniscript Language
          sfi_BillingInquiryAssistant_multiLanguage multi-language
           
          Loading
          Salesforce Help | Article