invoices
, charges
, plans
, subscriptions
, and products
.
However, not every merchant utilizes these primitives in the same way. In order to have the best experience with our platform, the merchant can choose to enrich their Stripe data with their own backend data in order the customize how the data shows up within SourceMedium.
charges
as the foundational building blocks for generating reports from Stripe. Charges
don’t initially contain context around the transaction, so in order to provide rich insights we have a metadata format customers can use to pass us order and product-level data through their charges.
If the merchant chooses to enrich their charge
object with their own data, it will override the Stripe data on a line items level.
A caveat here is that incorrect metadata in Stripe could produce incorrect reporting, therefore quality assurance is key to having correct Stripe reporting in SourceMedium.
Example of complete metadata (in JSON form) for a given charge with refunds
Charge
metadata will not be incorporated IF the following conditions occur:
required
in the example JSON above.charge
amount.
charge
is $100, but the metadata contains line items with a combined revenue amount of $200.