# US 2021/0264420 A1 · Automatically storing metrics relating to payments in a blockchain

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0264420 A1
- Document ID: US20210264420A1
- Status: Published application
- Kind: A1
- Application number: 16/802,516
- Filed: 2020-02-26
- Published: 2021-08-26
- Earliest claimed: 2020-02-26
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Sowmya Tammana; Manoj Kumar Pendyala; Venkata Naga Manikanta Yakkala
- Web page: https://patentgrep.com/patent/US20210264420A1

## CPC

- G06Q 20/401: {Transaction verification}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06Q 20/02: involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- H04L 9/3297: {involving time stamps, e.g. generation of time stamps}
- G06Q 2220/00: Business processing using cryptography
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Implementations are described for automatically storing, in a blockchain, metrics that relate to payments. In one implementation, permissions that identify a set of metrics are retrieved from a database. The permissions are stored by a tenant of a multi-tenant system to grant permission to the multi-tenant system to store the metrics for a second tenant. A metric is selected from the set of metrics, based on a determination that a value of the metric is to be updated responsive to a payment in a transaction between the first and second tenants where the payment has been successfully processed. The value of the metric is determined for the second tenant based on data relating to the payment. The value of the metric is stored, in the blockchain, with an identifier that uniquely identifies the second tenant in the blockchain.

## Claims

### Claim 1

A method comprising:
retrieving, from a database, a first set of permissions that identify a first set of metrics, wherein the first set of permissions are stored by a first tenant of a multi-tenant system to grant permission to the multi-tenant system to store the first set of metrics for a second tenant of the multi-tenant system;
selecting a metric from the first set of metrics based on a determination that a value of the metric is to be updated responsive to a payment in a transaction between the first tenant and the second tenant where the payment has been successfully processed;
determining the value of the metric for the second tenant based on data relating to the payment; and
storing, in a blockchain, the value of the metric with an identifier that uniquely identifies the second tenant in the blockchain.

### Claim 2 (depends on 1)

The method of claim 1, the method further comprising:
verifying that the second tenant granted the permission for the first set of metrics to be stored for the second tenant.

### Claim 3 (depends on 2)

The method of claim 2, wherein the database is reserved to the first tenant, and wherein the verifying includes:
retrieving, from a database that is reserved to the second tenant, a second set of permissions that identify a second set of metrics for which the second tenant granted permission to be stored for the second tenant, and
determining that the second set of metrics includes the first set of metrics.

### Claim 4 (depends on 1)

The method of claim 1, wherein a response from a payment gateway that processed the payment indicates that the payment has been successfully processed.

### Claim 5 (depends on 1)

The method of claim 1, wherein a record in the database stores an indication that the payment has been successfully processed and the data relating to the payment.

### Claim 6 (depends on 5)

The method of claim 5, wherein the method further comprises:
retrieving, from an event published to a source of events, an indication that the payment has been successfully processed, wherein the event was published to the source of events responsive to inserting or updating the record.

### Claim 7 (depends on 1)

The method of claim 1, wherein the determination that the value of the metric is to be updated is based on an attribute of an object that represents the metric, wherein the attribute indicates that the metric is to be updated based on successful processing of payments.

### Claim 8 (depends on 1)

The method of claim 1, wherein the metric represents current balance owed, and wherein the determining the value of the metric for the second tenant is further based on a value of a current balance that the second tenant owes the first tenant and that is stored in the database.

### Claim 9 (depends on 1)

The method of claim 1, wherein the metric represents number of payments that are currently overdue, wherein the payment was overdue, and wherein the determining the value of the metric is further based on a last value of the metric that is stored, in the blockchain, for the second tenant.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
selecting another metric from the first set of metrics based on another determination that a value of the another metric is to be updated responsive to another payment between the first tenant and the second tenant where the another payment has been unsuccessfully processed;
determining the value of the another metric for the second tenant based on data relating to the another payment; and
storing, in the blockchain, the value of the another metric with the identifier that uniquely identifies the second tenant in the blockchain.

### Claim 11

A non-transitory machine-readable storage medium that stores instructions that, when executed by a processor, are capable of causing the processor to perform operations comprising:
retrieving, from a database, a first set of permissions that identify a first set of metrics, wherein the first set of permissions are stored by a first tenant of a multi-tenant system to grant permission to the multi-tenant system to store the first set of metrics for a second tenant of the multi-tenant system;
selecting a metric from the first set of metrics based on a determination that a value of the metric is to be updated responsive to a payment in a transaction between the first tenant and the second tenant where the payment has been successfully processed;
determining the value of the metric for the second tenant based on data relating to the payment; and
storing, in a blockchain, the value of the metric with an identifier that uniquely identifies the second tenant in the blockchain.

### Claim 12 (depends on 11)

The non-transitory machine-readable storage medium of claim 11, wherein the non-transitory machine-readable storage medium further provides instructions that, when executed by the processor, are capable of causing the processor to perform further operations comprising:
verifying that the second tenant granted the permission for the first set of metrics to be stored for the second tenant.

### Claim 13 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the database is reserved to the first tenant, and wherein the verifying includes:
retrieving, from a database that is reserved to the second tenant, a second set of permissions that identify a second set of metrics for which the second tenant granted permission to be stored for the second tenant, and
determining that the second set of metrics includes the first set of metrics.

### Claim 14 (depends on 11)

The non-transitory machine-readable storage medium of claim 11, wherein a response from a payment gateway that processed the payment indicates that the payment has been successfully processed.

### Claim 15 (depends on 11)

The non-transitory machine-readable storage medium of claim 11, wherein a record in the database stores an indication that the payment has been successfully processed and the data relating to the payment.

### Claim 16 (depends on 11)

The non-transitory machine-readable storage medium of claim 11, wherein the determination that the value of the metric is to be updated is based on an attribute of an object that represents the metric, wherein the attribute indicates that the metric is to be updated based on successful processing of payments.

### Claim 17 (depends on 11)

The non-transitory machine-readable storage medium of claim 11, wherein the metric represents number of payments that are currently overdue, wherein the payment was overdue, and wherein the determining the value of the metric is further based on a last value of the metric that is stored, in the blockchain, for the second tenant.

### Claim 18

A system, comprising:
a non-transitory machine-readable storage medium that stores a blockchain storage service; and
a processor coupled to the non-transitory machine-readable storage medium, the processor to execute the blockchain storage service, the blockchain storage service to: retrieve, from a database, a first set of permissions that identify a first set of metrics, wherein the first set of permissions are stored by a first tenant of a multi-tenant system to grant permission to the multi-tenant system to store the first set of metrics for a second tenant of the multi-tenant system, to select a metric from the first set of metrics based on a determination that a value of the metric is to be updated responsive to a payment in a transaction between the first tenant and the second tenant where the payment has been successfully processed, to determine the value of the metric for the second tenant based on data relating to the payment, and to store, in a blockchain, the value of the metric with an identifier that uniquely identifies the second tenant in the blockchain.

### Claim 19 (depends on 18)

The system of claim 18, wherein the blockchain storage service is further to verify that the second tenant granted the permission for the first set of metrics to be stored for the second tenant.

### Claim 20 (depends on 18)

The system of claim 18, wherein a response from a payment gateway that processed the payment indicates that the payment has been successfully processed.
