CRUD queries for your payment senders
We are legally obliged to collect the actual sender details. Please, do not send us an intermediate organisation details such as exchanges, banks, gateways, etc.
If you want to receive funds from yourself then please provide your own details. See the DOCS in Playground for other sender details options.
sender
and senders
queries - read your address book.
createSender
- creates a new record in the Flash Payments database.
updateSender
- updates an existing sender.
deleteSender
- deletes an existing sender.
const bodyJSON = {
variables: {
input: "59f2733f2519e236edab0efe",
},
query: `
query ($input: ID) {
sender(id: $input) {
email firstName lastName companyName
address {
country
}
}
}`,
};
query($input: ID) {
sender(id: $input) {
email
firstName
lastName
companyName
address {
country
}
# there are many other properties
}
}
{
"input": "59f2733f2519e236edab0efe"
}
{
"data": {
"sender": {
"email": "john@example.com",
"firstName": "John",
"lastName": "Smith",
"companyName": null,
"address": {
"country": "GB"
}
}
}
}
const bodyJSON = {
variables: {
input: {
email: "john@example.com",
},
},
query: `
query ($input: RecipientQueryInput!) {
senders(input: $input) {
email firstName lastName companyName
address {
country
}
}
}`,
};
query($input: SenderQueryInput!) {
senders(input: $input) {
email
firstName
lastName
companyName
address {
country
}
# there are many other properties
}
}
{
"input": {
"email": "john@example.com"
}
}
{
"data": {
"senders": [
{
"email": "john@example.com",
"firstName": "John",
"lastName": "Smith",
"companyName": null,
"address": {
"country": "GB"
}
},
{
"email": "john@example.com",
"firstName": null,
"lastName": null,
"companyName": "Acme Inc",
"address": {
"country": "US"
}
},
]
}
}
const bodyJSON = {
variables: {
input: {
firstName: "Malcolm",
lastName: "Jez",
dob: "2000-01-01",
email: "malcolm@example.com",
mobile: "+61 4123456789",
address: {
street: "1 Test St",
suburb: "London",
state: "TST",
country: "GB",
postcode: "2000",
},
idDoc: {
type: "passport",
docNumber: "GB1234321",
issuer: "His Majesty’s Passport Office (HMPO)",
issueDate: "1990-01-01",
expiryDate: "2045-01-01",
country: "GB",
},
},
},
query: `
mutation ($input: SenderInput!) {
createSender(input: $input) {
success code message
sender {
id nickName
}
}
}`,
};
mutation($input: SenderInput!) {
createSender(input: $input) {
success code message
sender {
id
nickName
# there are many other properties
}
}
}
{
"input": {
"firstName": "Malcolm",
"lastName": "Jez",
"dob": "2000-01-01",
"email": "malcolm@example.com",
"mobile": "+61 4123456789",
"address": {
"street": "1 Test St",
"suburb": "London",
"state": "TST",
"country": "GB",
"postcode": "2000"
},
"idDoc": {
"type": "passport",
"docNumber": "GB1234321",
"issuer": "His Majesty’s Passport Office (HMPO)",
"issueDate": "1990-01-01",
"expiryDate": "2045-01-01",
"country": "GB"
}
}
}
{
"data": {
"createSender": {
"success": true,
"code": "CREATED",
"message": "New sender created",
"sender": {
"id": "686393e689c1fb1b255cac5c",
"nickName": "MalcolmJez"
}
}
}
}
const bodyJSON = {
variables: {
input: {
companyName: "Acme Pte Ltd",
businessNumber: "12345678912",
email: "acme@example.com",
mobile: "+61 4123456789",
address: {
street: "1 Test St",
suburb: "London",
state: "TST",
country: "GB",
postcode: "2000",
},
idDoc: {
type: "certificateOfRegistration",
docNumber: "GB-REG-987654321",
issuer: "Companies House",
issueDate: "1990-01-01",
expiryDate: "2100-01-01",
country: "GB",
},
},
},
query: `
mutation ($input: SenderInput!) {
createSender(input: $input) {
success code message
sender {
id nickName
}
}
}`,
};
mutation($input: SenderInput!) {
createSender(input: $input) {
success code message
sender {
id
nickName
# there are many other properties
}
}
}
{
"input": {
"companyName": "Acme Pte Ltd",
"businessNumber": "12345678912",
"email": "acme@example.com",
"mobile": "+61 4123456789",
"address": {
"street": "1 Test St",
"suburb": "London",
"state": "TST",
"country": "GB",
"postcode": "2000"
},
"idDoc": {
"type": "certificateOfRegistration",
"docNumber": "GB-REG-987654321",
"issuer": "Companies House",
"issueDate": "1990-01-01",
"expiryDate": "2100-01-01",
"country": "GB"
}
}
}
{
"data": {
"createSender": {
"success": true,
"code": "CREATED",
"message": "New sender created",
"sender": {
"id": "68638e6989c1fb1b255ca9c3",
"nickName": "Acme Pte L"
}
}
}
}
const bodyJSON = {
variables: {
input: {
firstName: "Malcolm",
lastName: "Jez The Second",
dob: "2000-01-01",
email: "malcolm@example.com",
mobile: "+61 4123456789",
address: {
street: "1 Test St",
suburb: "London",
state: "TST",
country: "GB",
postcode: "2000",
},
},
},
query: `
mutation ($input: SenderInput!) {
updateSender(input: $input) {
success code message
sender {
id lastName
}
}
}`,
};
mutation($id: ID, $input: SenderInput!) {
updateSender(id: $id, input: $input) {
success code message
sender {
id
lastName
# there are many other properties
}
}
}
{
"id": "686393e689c1fb1b255cac5c",
"input": {
"firstName": "Malcolm",
"lastName": "Jez The Second",
"dob": "2000-01-01",
"email": "malcolm@example.com",
"mobile": "+61 4123456789",
"address": {
"street": "1 Test St",
"suburb": "London",
"state": "TST",
"country": "GB",
"postcode": "2000"
}
}
}
{
"data": {
"updateSender": {
"success": true,
"code": "UPDATED",
"message": "Sender 686393e689c1fb1b255cac5c updated.",
"sender": {
"id": "686393e689c1fb1b255cac5c",
"lastName": "Jez The Second"
}
}
}
}
const bodyJSON = {
variables: {
input: "686393e689c1fb1b255cac5c",
},
query: `
mutation ($input: ID) {
deleteSender(id: $input) {
success code message
}
}`,
};
mutation($input: ID) {
deleteSender(id: $input) {
success
code
message
# there are many other properties
}
}
{
"input": "686393e689c1fb1b255cac5c"
}
{
"data": {
"deleteSender": {
"success": true,
"code": "SUCCESS",
"message": "Sender deleted"
}
}
}