Returns a link that opens finmid's signature screen for one Offer. Use it when your platform shows the Offers in its own UI.
The Business always accepts an Offer in finmid's iframe. With this link the iframe skips the offer overview and opens a single screen to accept the Offer you pass in offer_id. The screen does not repeat the terms of the Offer, so show them in your UI. It asks for the use of funds when you do not send them.
The flow
- When you show the Offers to the Business, fetch them with Get Active Offer Group without
suppress_offer_opened_event=true. With your own UI, that call is what records that the Business opened the Offers: the first such call for an Offer Group triggerscapital_offer.opened. - When the Business picks an Offer in your UI, call this endpoint with the
offer_group_idand theoffer_idof that Offer. - Open the returned
urlin an iframe or in a mobile webview beforevalid_until. - When the Business accepts the Offer, the iframe sends the message
{ "type": "OFFER_ACCEPTED" }. finmid sends it withwindow.parent.postMessageto the origin configured for your platform (contact finmid to configure it), and in mobile webviews throughwindow.finmidBridge(Android) andwindow.webkit.messageHandlers.finmidBridge(iOS). finmid then sendscapital_offer.accepted.
Neither calling this endpoint nor opening the returned url counts as the Business opening the Offers: neither triggers capital_offer.opened.
Every call returns a new link. A link can stop working before its valid_until, for example when finmid replaces the Offer Group: fetch the current Offer Group with Get Active Offer Group and call this endpoint again.
Errors
| Status | code | When | What to do |
|---|---|---|---|
400 | validation_error | offer_id is missing, a value of use_of_funds is not one of the listed ones, use_of_funds contains OTHER without use_of_funds_comment, use_of_funds_comment is longer than 500 characters, or offer_group_id is not a UUID. | Fix the request. |
401 | The API key is missing or invalid. | Check the X-API-Key header. | |
404 | business_not_found | No Business with this business_id exists on your platform. | Check the business_id. |
404 | offer_group_not_found | The Business has no Offer Group with this offer_group_id. | Use the id of the Offer Group returned by Get Active Offer Group. |
404 | offer_not_found | The Offer Group has no Offer with this offer_id. | Use an id from flexible_offers or fixed_offers of the same Offer Group. |
409 | business_details_incomplete | The Business has no valid bank account number or phone number. In the same case Get current Offer returns no embedding_link URL. | Complete the bank account and the phone number of the Business. |
409 | offer_group_not_active | The Offer Group has expired, was replaced by a new Offer Group, was withdrawn, or the Business already accepted one of its Offers. | Fetch the current Offer Group with Get Active Offer Group. |
500 | server_error | An unexpected error occurred. | Retry later. |
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Missing or invalid API key. Could not authenticate API request.
