Webhooks

FX quote updated

Sent when an FX quote changes status (ACTIVE → COMPLETED, FAILED, EXPIRED, etc.). Set the destination URL using callback_url when creating the quote. The body is identical to the Get FX Quote response.

postWebhookfx_quote.updated

Payload

idstring required

Quote ID

company_idstring required

Company ID

external_idstring

External ID of the quote

source_amountstring required

Amount to transfer from source to target account (in source account currency)

target_amountstring

Amount to receive in the target account currency (in target account currency)

statusstring required

Status of the quote

failure_reasonstring

Reason of the failure, if applicable

source_account_idstring required

Source account ID

target_account_idstring required

Target account ID

ratestring

FX rate

expire_atstring date-time

Expiration date of the rate

created_atstring date-time

Creation date of the quote

updated_atstring date-time

Last update date of the quote

callback_urlstring

URL to send a POST request with the result of the quote. The schema of the POST request is the same as the response of this endpoint

Response

Any 2xx response is treated as a successful acknowledgement. Infinia will retry delivery on non-2xx responses.

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.