PlatformIntegrations
API ReferenceV1.2 (Current)

Payment Methods

List payment methods for a beneficiary

GET
/beneficiaries/{beneficiaryId}/payment-methods
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

beneficiaryIdstring
Formatuuid

Query Parameters

limit?integer

Maximum number of items to return

Rangevalue <= 200

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/beneficiaries/497f6eca-6276-4993-bfeb-53cbbbba6f08/payment-methods?limit=200" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
[
  {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "title": "string",
    "type": "BankAccount",
    "bankAccount": {
      "type": "Checking",
      "lastFour": "string",
      "holderName": "string",
      "routingNumber": "string"
    },
    "metadata": {},
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
]
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Create a payment method

POST
/beneficiaries/{beneficiaryId}/payment-methods
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

beneficiaryIdstring
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
titlestring
typestring
Value in"BankAccount"
bankAccount
metadata?

Response Body

application/json

application/json

application/json

curl -X POST "https://api.obligo.com/beneficiaries/497f6eca-6276-4993-bfeb-53cbbbba6f08/payment-methods?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "type": "BankAccount",    "bankAccount": {      "type": "Checking",      "holderName": "string",      "accountNumber": "string",      "routingNumber": "string"    }  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Get a payment method

GET
/payment-methods/{paymentMethodId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

paymentMethodIdstring
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/payment-methods/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "title": "string",
  "type": "BankAccount",
  "bankAccount": {
    "type": "Checking",
    "lastFour": "string",
    "holderName": "string",
    "routingNumber": "string"
  },
  "metadata": {},
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Delete a payment method

DELETE
/payment-methods/{paymentMethodId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

paymentMethodIdstring
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 DELETE "https://api.obligo.com/payment-methods/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Update a payment method

PUT
/payment-methods/{paymentMethodId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

paymentMethodIdstring
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
title?string
metadata?

Response Body

application/json

application/json

curl -X PUT "https://api.obligo.com/payment-methods/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"
}