Create a payment information
| input |
|---|
| Data of the payment information |
mutation CreatePaymentInformation($input: PaymentInformationInput!) {
CreatePaymentInformation(input: $input) {
id
label
information
default
}
}
{
"input": {
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
{
"data": {
"CreatePaymentInformation": {
"id": 100010,
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
}
Update a payment information
| id |
|---|
| Id of the payment information |
| input |
|---|
| Data of the payment information |
mutation UpdatePaymentInformation($id: ID!, $input: PaymentInformationInput!) {
UpdatePaymentInformation(id: $id, input: $input) {
id
label
information
default
}
}
{
"id": 100010,
"input": {
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
{
"data": {
"UpdatePaymentInformation": {
"id": 100010,
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
}
Disable a payment information
| id |
|---|
| Id of the payment information |
mutation DisablePaymentInformation($id: ID!) {
DisablePaymentInformation(id: $id) {
id
active
}
}
{
"data": {
"DisablePaymentInformation": {
"id": 100010,
"active": false
}
}
}
Enable a payment information
| id |
|---|
| Id of the payment information |
mutation EnablePaymentInformation($id: ID!) {
EnablePaymentInformation(id: $id) {
id
active
}
}
{
"data": {
"EnablePaymentInformation": {
"id": 100010,
"active": true
}
}
}
Delete a payment information
| id |
|---|
| Id of the payment information to delete |
mutation DeletePaymentInformation($id: ID!) {
DeletePaymentInformation(id: $id)
}
{
"data": {
"DeletePaymentInformation": true
}
}
| label |
|---|
| Name of the payment information |
| information |
|---|
| Payment information content |
| active |
|---|
| If true, the payment information is active and can be used in documents. |
| default |
|---|
| Set the payment information as the default one if true |
| deposit_default |
|---|
| If true, the payment information is the default for deposits. |