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>"
}
}
Create typed data for payments. The typed data can be signed and then executed to create the payments on-chain.
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>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.