Payment Informations Queries

Access customer payment information and methods.

Available queries

PaymentInformation - Returns a single currency based on the id provided

query {
  PaymentInformation (id: 100012) {
    label
  }
}

PaymentInformations - Returns a list of currencies based on the filter define

query {
  PaymentInformations {
    data {
      label
    }
  }
}


Available fields

FieldTypeDescription
idIntUnique identifier of the payment information.
labelStringName of the payment information.
informationStringContent of the payment information.
defaultBooleanIf true, the payment information is the default for the invoices created.
activeBooleanIf true, the payment information is active and can be used in documents.
deposit_defaultBooleanIf true, the payment information is the default for deposits.

Filters

You can create filters based on following fields

label
Example:{ "column" : "LABEL", "operator" : "EQ", "value" : "EUR" }
default
Example: { "column": "DEFAULT", "operator": "NEQ", "value": true }
active
Example:{ "column": "ACTIVE", "operator": "EQ", "value": true }

Sorting

You can sort data based on following fields : id, label, default, active

query PaymentInformations(
  $where: QueryPaymentInformationsWhereWhereConditions, 
) {
  PaymentInformations(
    orderBy: [{column: LABEL, order: ASC}]
    where: $where
  ) {
    paginatorInfo {
      total
    }
    data {
      id
      label
      default
    }
  }
}
{
  "where": {
    "AND": [
      {
        "column": "ACTIVE",
        "operator": "EQ",
        "value": true
      }
    ]
  }
}

Example of data returned

{
  "data": {
    "PaymentInformations": {
      "paginatorInfo": {
        "total": 1
      },
      "data": [
        {
          "id": 100002,
          "label": "Bank of America",
          "default": true,
        }
      ]
    }
  }
}