Payment to Platform

Make a Payment to Platform

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

post/v1/payments/paymentToPlatform

Request

  • Base URL
    https://sandbox-api.spinwheel.io
  • URL
    https://sandbox-api.spinwheel.io/v1/payments/paymentToPlatform
  • Auth
    API key in header Authorization

Request body

payerIdstring required

PayerId of payer from whom the payment would go through

settlementAccountIdstring

The ID of the settlement account to direct funds to.

amountnumber required

Amount to be transferred

extRequestIdstring required

ID to identify the request

tagstring

Tag to label different types of payments

scheduleTsnumber

Schedule timestamp for processing payment

requestType'ONE_TIME' required

Type of the payment request. Only ONE_TIME is supported.

settlementSpeed'STANDARD' | 'NEXT_DAY' | 'SAME_DAY'

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

paymentMethod'ACH' | 'WIRE'

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

Example request

{
  "payerId": "12b9d6e8-c87b-415e-94e2-15367975218d",
  "settlementAccountId": "7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
  "amount": 3000,
  "extRequestId": "12c9d6e8-c87b-415e-94e2-15367975218d",
  "tag": "Payment to platform",
  "scheduleTs": 1614602485926,
  "settlementSpeed": "SAME_DAY",
  "paymentMethod": "ACH"
}

Response

Successful response

Example response

{
  "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",
    "scheduleTs": 1614602485926,
    "tag": "Payment to platform",
    "settlementAccountId": "7a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
    "createdOn": 1614602485926,
    "updatedOn": 1614602485926
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.