POST
/
v2
/
payments
Create typed data for payments
curl --request POST \
  --url https://b2b-api.dev-riseworks.io/v2/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "<string>",
  "to": [
    {
      "to": "<string>",
      "amount_cents": 5000000050,
      "currency_symbol": "USD",
      "invoice_description": "<string>"
    }
  ],
  "pay_now": true,
  "network": "arbitrum"
}'
{
  "success": true,
  "data": {
    "domain": {
      "name": "<string>",
      "version": "<string>",
      "chainId": 123,
      "verifyingContract": "<string>"
    },
    "types": {
      "CreatePaymentsForwardRequest": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "RisePaymentsRequest": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "RisePayment": [
        {
          "name": "<string>",
          "type": "<string>"
        }
      ]
    },
    "typed_data": {
      "from": "<string>",
      "to": "<string>",
      "salt": "<string>",
      "expires": "<string>",
      "data": {
        "payments": [
          {
            "id": "<string>",
            "groupID": "<string>",
            "payAtTime": "<string>",
            "validMinutes": "<string>",
            "payType": "<string>",
            "token": "<string>",
            "recipient": "<string>",
            "amount": "<string>",
            "data": "<string>"
          }
        ]
      }
    },
    "primary_type": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Default Response

The response is of type object.