validatePaymentLimit

This query allows to validate the payment limit.

General Pattern

query{
  validatePaymentLimit(collectionID:UUID! itemsCount:Int!){
    field_1
    ...
  }
}

Sample query

query{
  validatePaymentLimit(collectionID:"9974c0b8-be71-402d-a5f7-c9de3710b59f" itemsCount:1){
    creditCard{
      remainingTotal
      isLimitExceeded
      remainingTransaction
    }
  }
}

Sample response

{
  "data": {
    "validatePaymentLimit": {
      "creditCard": {
        "remainingTotal": 104,
        "isLimitExceeded": false,
        "remainingTransaction": 34
      }
    }
  }
}

Arguments

NameTypeDescriptionRequired
collectionIDUUIDThe ID of collection.Yes
itemsCountIntegerThe number of items.Yes

Fields

NameTypeDescription
ValidatePaymentLimitOutputObjectContains all information from ValidatePaymentLimitOutput such as CreditCardData.

Example

Validate the payment limit using collection ID and items count: