Intents (Fixed Settlements)
Define the fixed economics of a transaction before hand.
When initiating a request for payment, for example, it is undesirable to permit modifying certain transaction parameters, such as payout destination, currency and quantity.
An intent
can be created with a fixed set of economics and any other parameters, without reference a quote. This intent
can then be shared with the user for them to fulfil. In the payment example this means passing the intent_id
to the initialization object of the widget.
A default (but still user changeable) currency can be set for either side of the transaction by setting the default_transaction
in the widget initialization.
Create Intent
GET
/api/v1/partner/{public_api_key}/intent
Must contain `funding_settlement` and/or `payout_settlement`. Can only contain a quantity value for one.
Path Parameters
Name | Type | Description |
---|---|---|
public_api_key | string |
Headers
Name | Type | Description |
---|---|---|
X-Quoine-Auth | string |
Request Body
Name | Type | Description |
---|---|---|
funding_settlement | object | Object defining the funding information. |
payout_settlement | object | Object defining the payout information. |
strategy | string | Consumable strategy for this intent. Either `ONE_TO_ONE_ATTEMPTED` or `ONE_TO_MANY` |
expires_at | number | Unix millisecond timestamp for expiring the intent. |
partner_order_id | string | Optional searchable id. Max 40 characters. |
partner_ref | string | Optional long string to be associated with the transaction. |
partner_tags | array | Optional array of tags for items such as campaign id or product sku. |
X-Quoine-Auth
Signed JWT. Please refer to auth token instructions.
Encoded payload must contain:
Strategy
The strategy field is optional, and defaults to ONE_TO_ONE_ATTEMPTED
.
Strategy | Description |
| This causes the intent to be "consumed" the first time a user attempts to fulfil it. (Note: this refers to clicking "Buy now", not simply rendering the widget with the |
| This allows the intent to be reused multiple times. (Note: the |
Example
Note: In this example funding_settlement
is not set to allow the user to choose how to fund the transaction.
Pass the Intent ID to the Widget
See widget configuration.
This will cause the widget to start on the quote screen, but the payout currency and quantity will be locked.
Last updated