Recipients
CRUD queries for your payment recipients
We are legally obliged to collect the actual recipient details. Please, do not send us an intermediate organisation details such as exchanges, banks, gateways, etc.
Please, send us the final funds recipient. If sending to self then please provide your own details. See the DOCS in Playground for other recipient details options.
recipientandrecipientsqueries - read your address book.createRecipient- creates a new record in the Flash Payments database.updateRecipient- updates an existing recipient.deleteRecipient- deletes an existing recipient.
Query a single recipient
const bodyJSON = {
variables: {
input: "6b04c62ec0bf606bf216ae21",
},
query: `
query ($input: ID) {
recipient(id: $input) {
accountIdType currency country email
}
}`,
};query($input: ID) {
recipient(id: $input) {
accountIdType
currency
country
email
# there are many other properties
}
}{
"input": "6b04c62ec0bf606bf216ae21"
}{
"data": {
"recipient": {
"accountIdType": "ACC NO",
"currency": "USD",
"country": "AU",
"email": "[email protected]"
}
}
}Query multiple recipients
const bodyJSON = {
variables: {
input: {
currency: "USD",
},
},
query: `
query ($input: RecipientQueryInput!) {
recipients(input: $input) {
accountIdType currency country email
}
}`,
};query($input: RecipientQueryInput!) {
recipients(input: $input) {
accountIdType
currency
country
email
# there are many other properties
}
}{
"input": {
"currency": "USD"
}
} {
"data": {
"recipients": [
{
"accountIdType": "ACC NO",
"currency": "USD",
"country": "AU",
"email": "[email protected]"
}
]
}
}Create a recipient
Create an Individual recipient
const bodyJSON = {
variables: {
input: {
firstName: "John",
lastName: "Malkovich",
dob: "1987-06-05",
accountIdType: "BSB",
currency: "AUD",
bsb: "370370",
accountNo: "12341234",
email: "[email protected]",
address: {
street: "22 Woolooware Rd",
suburb: "Woolooware",
state: "NSW",
country: "AU",
postcode: "2230",
},
},
},
query: `
mutation ($input: RecipientInput!) {
createRecipient(input: $input) {
success code message
recipient {
id nickName accountIdType currency email
}
}
}`,
};mutation($input: RecipientInput!) {
createRecipient(input: $input) {
success code message
recipient {
id nickName accountIdType currency email
# there are many other properties
}
}
} {
"input": {
"firstName": "John",
"lastName": "Malkovich",
"dob": "1987-06-05",
"accountIdType": "BSB",
"currency": "AUD",
"bsb": "370370",
"accountNo": "12341234",
"email": "[email protected]",
"address": {
"street": "22 Woolooware Rd",
"suburb": "Woolooware",
"state": "NSW",
"country": "AU",
"postcode": "2230"
}
}
}{
"data": {
"createRecipient": {
"success": true,
"code": "SUCCESS",
"message": "Recipient created",
"recipient": {
"id": "6859c06eaa36ba8534d974f1",
"nickName": "JohnMalkov",
"accountIdType": "BSB",
"currency": "AUD",
"email": "[email protected]"
}
}
}
}Create a Company recipient
const bodyJSON = {
variables: {
input: {
companyName: "Acme Pty Ltd",
accountIdType: "BSB",
currency: "AUD",
bsb: "370370",
accountNo: "12341234",
email: "[email protected]",
address: {
street: "22 Woolooware Rd",
suburb: "Woolooware",
state: "NSW",
country: "AU",
postcode: "2230",
},
},
},
query: `
mutation ($input: RecipientInput!) {
createRecipient(input: $input) {
success code message
recipient {
id nickName accountIdType currency email
}
}
}`,
};mutation($input: RecipientInput!) {
createRecipient(input: $input) {
success code message
recipient {
id nickName accountIdType currency email
# there are many other properties
}
}
} {
"input": {
"companyName": "Acme Pty Ltd",
"accountIdType": "BSB",
"currency": "AUD",
"bsb": "370370",
"accountNo": "12341234",
"email": "[email protected]",
"address": {
"street": "22 Woolooware Rd",
"suburb": "Woolooware",
"state": "NSW",
"country": "AU",
"postcode": "2230"
}
}
}{
"data": {
"createRecipient": {
"success": true,
"code": "SUCCESS",
"message": "Recipient created",
"recipient": {
"id": "6859ca4baa36ba8534d97da1",
"nickName": "Acme Pty L",
"accountIdType": "BSB",
"currency": "AUD",
"email": "[email protected]"
}
}
}
}Update recipient
const bodyJSON = {
variables: {
id: "5ba89a6b35a2b327b81ffc3b",
input: {
nickName: "JohnM",
firstName: "John",
lastName: "Malkovich",
accountIdType: "BSB",
currency: "AUD",
bsb: "370370",
accountNo: "12341234",
email: "[email protected]",
address: {
street: "22 Woolooware Rd",
suburb: "Woolooware",
state: "NSW",
country: "AU",
postcode: "2230",
},
},
},
query: `
mutation ($id: ID, $input: RecipientInput!) {
updateRecipient(id: $id, input: $input) {
success code message
recipient {
id nickName
}
}
}`,
}; mutation($id: ID, $input: RecipientInput!) {
updateRecipient(id: $id, input: $input) {
success
code
message
recipient {
id
nickName
# there are many other properties
}
}
}{
"id": "5ba89a6b35a2b327b81ffc3b",
"input":{
"nickName": "JohnM",
"firstName": "John",
"lastName": "Malkovich",
"accountIdType": "BSB",
"currency": "AUD",
"bsb": "370370",
"accountNo": "12341234",
"email": "[email protected]",
"address": {
"street": "22 Woolooware Rd",
"suburb" : "Woolooware",
"state": "NSW",
"country": "AU",
"postcode": "2230"
}
}
}{
"data": {
"createRecipient": {
"success": true,
"code": "SUCCESS",
"message": "Recipient updated",
"recipient": {
"id": "5ba89a6b35a2b327b81ffc3b",
"nickName": "JohnM"
}
}
}
}Delete recipient
const bodyJSON = {
variables: {
input: "6b04c62ec0bf606bf216ae21",
},
query: `
mutation ($input: ID) {
deleteRecipient(id: $input) {
success code message
}
}`,
};mutation($input: ID) {
deleteRecipient(id: $input) {
success
code
message
# there are many other properties
}
}{
"input": "6b04c62ec0bf606bf216ae21"
}{
"data": {
"deleteRecipient": {
"success": true,
"code": "SUCCESS",
"message": "Recipient deleted"
}
}
}Last updated
Was this helpful?