Payment to Platform

Make a Payment to Platform

POST
/v1/payments/paymentToPlatform

This API will allow you to make a payment to platform.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

payerId*string

PayerId of payer from whom the payment would go through

settlementAccountId?string

The ID of the settlement account to direct funds to.

amount*number

Amount to be transferred

Range1 <= value <= 100000
extRequestId*string

ID to identify the request

tag?string

Tag to label different types of payments

scheduleTs?number

Schedule timestamp for processing payment

Range1 <= value
requestType*"ONE_TIME"

Type of the payment request. Only ONE_TIME is supported.

Value in

  • "ONE_TIME"
settlementSpeed?string

Settlement speed. If this field is not set, the default configuration will be used.

Value in

  • "STANDARD"
  • "NEXT_DAY"
  • "SAME_DAY"
paymentMethod?string

Payment method. If this field is not set, ACH will be used.

Default"ACH"

Value in

  • "ACH"
  • "WIRE"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/payments/paymentToPlatform" \  -H "Content-Type: application/json" \  -d '{    "payerId": "12b9d6e8-c87b-415e-94e2-15367975218d",    "amount": 3000,    "extRequestId": "12c9d6e8-c87b-415e-94e2-15367975218d",    "tag": "Payment to platform",    "scheduleTs": 1614602485926,    "requestType": "ONE_TIME",    "settlementSpeed": "SAME_DAY",    "paymentMethod": "ACH"  }'

Payment to Platform with ACH

{  "status": {    "code": 200,    "desc": "success",    "messages": [      {        "desc": "Example description"      }    ]  },  "data": {    "requestId": "fd97c6e8-c87b-415e-94e2-15367975218d",    "extRequestId": "12c9d6e8-c87b-415e-94e2-15367975218d",    "amount": 3000,    "payerId": "92becc07-ee08-44b3-bc7b-1ff2f98ed92a",    "requestType": "ONE_TIME",    "settlementSpeed": "SAME_DAY",    "paymentMethod": "ACH",    "settlementAccountId": "7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",    "scheduleTs": 1614602485926,    "tag": "Payment to platform",    "createdOn": 1614602485926,    "updatedOn": 1614602485926  }}