curl --request PUT \
--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",
"signer": "<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>"
}
]
}
},
"signature": "<string>"
}'
{
"success": true,
"data": {
"transaction": "<string>",
"payments": [
{
"id": "<string>",
"groupID": "<string>",
"payAtTime": "<string>",
"validMinutes": "<string>",
"payType": "<string>",
"token": "<string>",
"recipient": "<string>",
"amount": "<string>",
"data": "<string>"
}
]
}
}
Execute payments by signing the typed data and sending the signature along with the request.
curl --request PUT \
--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",
"signer": "<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>"
}
]
}
},
"signature": "<string>"
}'
{
"success": true,
"data": {
"transaction": "<string>",
"payments": [
{
"id": "<string>",
"groupID": "<string>",
"payAtTime": "<string>",
"validMinutes": "<string>",
"payType": "<string>",
"token": "<string>",
"recipient": "<string>",
"amount": "<string>",
"data": "<string>"
}
]
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.