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

Name

Type

Description

Required

collectionID

UUID

The ID of collection.

Yes

itemsCount

Integer

The number of items.

Yes

Fields

Name

Type

Description

ValidatePaymentLimitOutput

Object

Contains all information from ValidatePaymentLimitOutput such as CreditCardData.

Example

Validate the payment limit using collection ID and items count: