Payment Requests

Request Payment Rail Details

POST
/v1/users/{userId}/liabilities/paymentRails

Authorization

bearerAuth
AuthorizationBearer <token>

Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.

In: header

Path Parameters

userId*string

Request Body

application/json

creditCardIds?array<string>

List of credit card liability IDs.

autoLoanIds?array<string>

List of auto loan liability IDs.

homeLoanIds?array<string>

List of home loan liability IDs.

personalLoanIds?array<string>

List of personal loan liability IDs.

studentLoanIds?array<string>

List of student loan liability IDs.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/users/e4ce0022-cbee-4b2b-957d-57dd5de213b4/liabilities/paymentRails" \  -H "Content-Type: application/json" \  -d '{    "creditCardIds": [      "a3f5d891-7c2e-4b6a-9d0f-1e8c3b5a7d2f"    ]  }'

The credit card liability is supported via RPPS. The response includes the billerId.

[  {    "creditCardId": "a3f5d891-7c2e-4b6a-9d0f-1e8c3b5a7d2f",    "liabilityType": "CREDIT_CARD",    "status": "SUPPORTED",    "paymentRails": {      "rpps": {        "billerId": "90210334"      }    }  }]