agents

Connect a Revolut payment method (nothing is charged)

Returns a one-time connect_url, valid for one hour, to open in a browser. The page takes a card or Revolut Pay and saves it for this account with a zero-amount order: nothing is charged to connect. GET /agents/me shows payment.connected once it is saved. Top-ups, auto-refills and bookings are then charged to the connected method. Connecting again replaces the previous method.

post/agents/connect-payment

Request

  • Base URL: https://letsfg.co/developers/api/v1
  • URL: https://letsfg.co/developers/api/v1/agents/connect-payment
  • Auth: API key in header X-API-Key

Request body

return_urlstring uri

Optional. Where the connect page returns the browser afterwards.

Response

A one-time connect link.

statusstring
connect_urlstring uri
expires_in_secondsinteger
paymentobject
messagestring

Example response

{
  "status": "connect_required",
  "expires_in_seconds": 3600
}

Changes

No recorded changes to this operation across all 1 revision of this API.