Send Payment Request
The purpose of this API is to send a payment request to another user.
GRAPHQL
Headers
| Fields | Type | Description | Example | Data Management |
|---|---|---|---|---|
| URL | string | {base_url}/users | ||
| GRAPHQL | string | MUTATION | ||
| content-type | string | JSON | application/json |
Request
mutation {
send_payment_request(email: "sachin@paysack.com", network: "solana", amount: 0.01) {
message
}
}
Request Parameters
| Fields | Type | Description | Required |
|---|---|---|---|
| string | email of the user | ✔ | |
| network | string | the network identifier from wallets' list of profile API | ✔ |
| amount | float | requesting amount | ✔ |
Success
{
"data": {
"send_payment_request": {
"message": "Request sent successfully"
}
}
}
Error
{
"errors": [
{
"message": "Unauthorized",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": ["send_payment_request"]
}
],
"data": {
"send_payment_request": null
}
}