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
    }
  }
}

CheckChorusPaymentInformation - Reads the IBAN and BIC out of a Chorus Pro payment information text

query {
  CheckChorusPaymentInformation(information: "IBAN FR7612345678901234567890123 BIC BNPAFRPPXXX") {
    valid
    iban
    bic
  }
}
Return TypeDescription
ChorusPaymentInformationCheckWhether the text is valid, with the IBAN and BIC it contains.


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.

Data Types

ChorusPaymentInformationCheck

FieldTypeDescription
validBoolean!Whether payment details could be read from the text.
ibanStringIBAN found in the text.
bicStringBIC found in the text.

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,
        }
      ]
    }
  }
}