PlatformIntegrations
API ReferenceV1.2 (Current)

Funds Routers

Create a funds router

Creates a funds router for a lease. Funds routers are per lease: the router routes the lease's funds to the destinations in its routes. Routes you add through the API target a bank account (PaymentMethod); routes Obligo sets up can target a Beneficiary.

POST
/leases/{leaseId}/funds-routers
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring

ID of the lease the funds router is for.

Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
routes?

The router's routes. At most one, and only Credit.

Itemsitems <= 1
metadata?

Response Body

application/json

application/json

application/json

curl -X POST "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/funds-routers?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Get a funds router

GET
/funds-routers/{fundsRouterId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fundsRouterIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

curl -X GET "https://api.obligo.com/funds-routers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "routes": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "type": "Credit",
      "resource": {
        "type": "PaymentMethod",
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      }
    }
  ],
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "metadata": {}
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Update a funds router

Updates the funds router's metadata. The keys you send are merged into the existing metadata; keys you leave out keep their values.

PUT
/funds-routers/{fundsRouterId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fundsRouterIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
metadata?

Keys to merge into the funds router's metadata. Omitting it, or sending an empty object, changes nothing.

Response Body

application/json

application/json

curl -X PUT "https://api.obligo.com/funds-routers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Add a route to a funds router

POST
/funds-routers/{fundsRouterId}/routes
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fundsRouterIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
typestring

The route type. Only Credit is supported.

Value in"Credit"
resource

Where the route sends funds.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.obligo.com/funds-routers/497f6eca-6276-4993-bfeb-53cbbbba6f08/routes?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "type": "Credit",    "resource": {      "type": "PaymentMethod",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Update a route

Points the route at another resource.

PUT
/funds-routers/{fundsRouterId}/routes/{routeId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

fundsRouterIdstring
Formatuuid
routeIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
resource

The resource the route sends funds to from now on.

Response Body

application/json

application/json

curl -X PUT "https://api.obligo.com/funds-routers/497f6eca-6276-4993-bfeb-53cbbbba6f08/routes/497f6eca-6276-4993-bfeb-53cbbbba6f08?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "resource": {      "type": "PaymentMethod",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  }'
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}