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.
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
ID of the lease the funds router is for.
uuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidThe router's routes. At most one, and only Credit.
items <= 1Response 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
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidHeader Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidResponse 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.
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidHeader Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidKeys 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 '{}'{
"requestId": "string",
"message": "string",
"errorCode": "string"
}{
"requestId": "string",
"message": "string",
"errorCode": "string"
}Add a route to a funds router
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidThe route type. Only Credit is supported.
"Credit"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.
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuiduuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidThe 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" } }'{
"requestId": "string",
"message": "string",
"errorCode": "string"
}{
"requestId": "string",
"message": "string",
"errorCode": "string"
}