See the Queries page for a presentation of this resource.
Create a payment information
input Data of the payment information
GraphQL
mutation CreatePaymentInformation($input: PaymentInformationInput!) {
CreatePaymentInformation(input: $input) {
id
label
information
default
}
}
Variables (JSON)
{
"input": {
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
JSON
{
"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
GraphQL
mutation UpdatePaymentInformation($id: ID!, $input: PaymentInformationInput!) {
UpdatePaymentInformation(id: $id, input: $input) {
id
label
information
default
}
}
Variables (JSON)
{
"id": 100010,
"input": {
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
JSON
{
"data": {
"UpdatePaymentInformation": {
"id": 100010,
"label": "Bank of America",
"information": "IBAN: 348953409534509",
"default": false
}
}
}
Disable a payment information
id Id of the payment information
GraphQL
mutation DisablePaymentInformation($id: ID!) {
DisablePaymentInformation(id: $id) {
id
active
}
}
JSON
{
"data": {
"DisablePaymentInformation": {
"id": 100010,
"active": false
}
}
}
Enable a payment information
id Id of the payment information
GraphQL
mutation EnablePaymentInformation($id: ID!) {
EnablePaymentInformation(id: $id) {
id
active
}
}
JSON
{
"data": {
"EnablePaymentInformation": {
"id": 100010,
"active": true
}
}
}
Delete a payment information
id Id of the payment information to delete
GraphQL
mutation DeletePaymentInformation($id: ID!) {
DeletePaymentInformation(id: $id)
}
JSON
{
"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.