Overview
The static template feature allows the creation of a Transfer template through the API. The response includes standing deposit instructions that can be used multiple times to send funds to the configured destination. This is useful for making recurring transfers payments. How it works: the source deposit instructions will be preserved indefinitely so your customers can continue to use the same deposit message (i.e. memo, reference, etc.) to make payments. Every time that funds match the template, Bridge will create a new Transfer record in the API. The id of the template will never change. Transfer instances created from that template will each have unique ids. Note that in the dashboard, this is referred to as a saved payment route.We recommend using flexible amounts. If no amount is provided, the Transfer will automatically have the
flexible_amount
feature enabled.Creating a static template
Simply add setstatic_template
to true
.
Request
Response
awaiting_funds
state unless canceled. Each time Bridge receives funds and matches them to the template, Bridge will expose a new Transfer instance based on the templated configuration.
Fetching Transfers after funds received
You can query for transfer instances created from the static template using the Get all transfers endpoint.filename
Response
Template Transfers in the API
- The initial template you create will maintain the same id. Use this ID to interact with the Template through our API. Its state will remain
awaiting_source_deposit
as long as it is active.static_template
feature field will always be true for Template Transfers. - Each time we receive funds, we will create a new Transfer. We will send webhooks when the new Transfer is created and any time we update information about each Transfer created from the template. For instances of the template, the
static_template
Transfer feature will not be present in the API response. - You can use the Update Transfer endpoint to make changes to the template. This will not change any existing instances of that template, but funds received after the changes will be processed according to the updated template instructions.
- You can use the
template_id
query parameter to List All Transfer instances created from this template.