Make a Payment to Platform
This API will allow you to make a payment to platform.
Authorization
bearerAuth Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.
In: header
Request Body
application/json
PayerId of payer from whom the payment would go through
The ID of the settlement account to direct funds to.
Amount to be transferred
1 <= value <= 100000ID to identify the request
Tag to label different types of payments
Schedule timestamp for processing payment
1 <= valueType of the payment request. Only ONE_TIME is supported.
Value in
- "ONE_TIME"
Settlement speed. If this field is not set, the default configuration will be used.
Value in
- "STANDARD"
- "NEXT_DAY"
- "SAME_DAY"
Payment method. If this field is not set, ACH will be used.
"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 }}
