Invoices

Invoices

You can push invoices to Reflex to monitor and get historical information on these payments. This will help you respond questions such as:

  • How many invoices have I paid last month?
  • To which destinations have I sent money to?
  • To which countries have I sent money to?

Tags

You can add up to 5 tags to every invoice that you push.

A tag consists of a key: value pair.

Key

The key needs to consist of only lowercase letters and can only use - as an additional character.

This is the regex used to validate keys ^[a-z]+(?:-[a-z]+)*$

Value

The value can be a string, number or boolean. Depending on the type you need to pass a different variable name.

  • If the value is a string, use the string_value variable.
  • If the value is a number, use the number_value variable.
  • If the value is a boolean, use the boolean_value variable.

Example

This is an example of three tags being pushed for an invoice.

[
  {
    "key": "product-id",
    "number_value": 534271
  },
  {
    "key": "user-id",
    "string_value": "61274095-7828-45dd-98e8-2daabdb39386"
  },
  {
    "key": "is-withdrawal",
    "boolean_value": true
  }
]

API

You can push and get invoice information through the API.