Configuration

List all payment rules

Returns all payment rules applied to the payment providers configured in your store.

Permissions

Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:

ProductCategoryResource
PCI GatewayPayment-Make PaymentsView Payment Data

There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint. To learn more about machine authentication at VTEX, see Authentication overview.

❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.

get/api/pvt/rules

Headers

Content-Typestring required
Example:application/json

Type of the content being sent.

Acceptstring required
Example:application/json

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Response

OK

idstring

Rule identification.

namestring

Rule name.

isSelfAuthorizedboolean nullable

Indicates whether the payment is automatically authorized.

requiresAuthenticationboolean nullable

Indicates whether it is necessary to log in to make the payment.

enabledboolean

Indicates whether the rule is enabled in the store.

installmentsServiceboolean

Indicates whether any specific type of installment service is used.

isDefaultboolean nullable

Indicates whether this rule should be considered the default for a given payment condition.

beginDatestring nullable

Rule start date in ISO 8601 format (YYYY-MM-DDThh:mm:ss.fff), if applicable.

endDatestring nullable

Rule end date in ISO 8601 format (YYYY-MM-DDThh:mm:ss.fff), if applicable.

multiMerchantListstring[] nullable

Indicates the names of the accounts to which the rule is being applied exclusively.

externalInterestboolean

Indicates whether interest can be calculated externally.

minimumValuenumber nullable

Minimum payment transaction amount for the rule to be applied.

excludedBinsRangesnumber nullable

Range of card bins excluded from application of this rule.

Example response

[
  {
    "paymentSystem": {
      "id": 1
    },
    "deadlines": [
      {
        "paymentOptions": [
          {
            "days": 30
          }
        ]
      }
    ]
  }
]

Changes

Changed in 9 of the 52 revisions of this API.3462

    • the endpoint scheme security VtexIdclientAutCookie was added to the API

      api-security-added

    • the endpoint scheme security appKey AND appToken was added to the API

      api-security-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the items/ response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the items/deadlines/items/ response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the items/salesChannels/items/ response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the response property items/installmentOptions/installments/items/interestTax became nullable for the status 200

      response-property-became-nullable

    • the response property items/dateIntervals became nullable for the status 200

      response-property-became-nullable

    • the response property items/country became nullable for the status 200

      response-property-became-nullable

    • the response property items/condition became nullable for the status 200

      response-property-became-nullable

    • the response property items/connector became nullable for the status 200

      response-property-became-nullable

  • 53d1d43f6fa8196See the full diff
    • removed the required property antifraud from the response with the 200 status

      response-required-property-removed

    • removed the required property beginDate from the response with the 200 status

      response-required-property-removed

    • removed the required property condition from the response with the 200 status

      response-required-property-removed

    • removed the required property connector from the response with the 200 status

      response-required-property-removed

    • removed the required property country from the response with the 200 status

      response-required-property-removed

    • removed the required property dateIntervals from the response with the 200 status

      response-required-property-removed

    • removed the required property enabled from the response with the 200 status

      response-required-property-removed

    • removed the required property endDate from the response with the 200 status

      response-required-property-removed

    • removed the required property id from the response with the 200 status

      response-required-property-removed

    • removed the required property installmentOptions from the response with the 200 status

      response-required-property-removed

    • removed the required property installmentsService from the response with the 200 status

      response-required-property-removed

    • removed the required property isDefault from the response with the 200 status

      response-required-property-removed

    • removed the required property isSelfAuthorized from the response with the 200 status

      response-required-property-removed

    • removed the required property issuer from the response with the 200 status

      response-required-property-removed

    • removed the required property multiMerchantList from the response with the 200 status

      response-required-property-removed

    • removed the required property name from the response with the 200 status

      response-required-property-removed

    • removed the required property paymentSystem from the response with the 200 status

      response-required-property-removed

    • removed the required property requiresAuthentication from the response with the 200 status

      response-required-property-removed

    • removed the required property salesChannels from the response with the 200 status

      response-required-property-removed

    • removed the optional property cardLevel from the response with the 200 status

      response-optional-property-removed

    • removed the optional property cobrand from the response with the 200 status

      response-optional-property-removed

    • removed the optional property deadlines from the response with the 200 status

      response-optional-property-removed

    • removed the optional property excludedBinsRanges from the response with the 200 status

      response-optional-property-removed

    • removed the optional property externalInterest from the response with the 200 status

      response-optional-property-removed

    • removed the optional property minimumValue from the response with the 200 status

      response-optional-property-removed

    • the response's body type/format changed from object/ to array/ for status 200

      response-body-type-changed

    • the response property antifraud became nullable for the status 200

      response-property-became-nullable

    • the response property installmentOptions/installments/items/ruleId became nullable for the status 200

      response-property-became-nullable

    • the paymentSystem/id response's property type/format changed from number/ to string/ for status 200

      response-property-type-changed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response's body type/format changed from array/ to object/ for status 200

      response-body-type-changed

    • the country/isoCode response's property type/format changed from number/ to string/ for status 200

      response-property-type-changed

    • the dateIntervals/items/end response's property type/format changed from number/ to string/ for status 200

      response-property-type-changed