What is Metadata?
Metadata in the Dots API is an object that you can include in the body of your request using themetadata
parameter. It consists of key-value pairs where the key is a string identifier and the value is the data you want to attach.
How to Use Metadata
You can include a metadata object in your API request and the metadata is returned in the response to your request. The following example demonstrates a request to create a user where themetadata
is used to store the user’s internal_id
.
Dots team recommends you avoid storing sensitive information such as bank account numbers, card details, or personal identification numbers in metadata.
Sample Use Cases
You’re completely free to use the metadata feature in the way it best fits your business. Below are described some possible use cases for metadata.- Project ID: Attach a project ID to each payout to track payments associated with specific projects.
- Expense Categories: Tag payments with expense categories for better financial reporting and analysis.
- Service Levels: Tag payouts with service level agreements (SLAs) or priority levels for monitoring and reporting.
metadata
example for a hypothetical payment for a vendor related to a sale.