Visa Acceptance · API Governance Rules
Visa Acceptance API Rules
Spectral linting rules defining API design standards and conventions for Visa Acceptance.
8 Rules
error 3
warn 4
info 1
Rule Categories
visa
Rules
warn
visa-acceptance-operation-id-case
Operation IDs must use camelCase consistent with Visa Acceptance SDK conventions
$.paths[*][*].operationId
error
visa-acceptance-tags-required
All operations must have tags
$.paths[*][*]
warn
visa-acceptance-amount-as-string
Visa Acceptance represents monetary amounts as decimal strings to avoid floating-point precision issues
$.components.schemas[*].properties.totalAmount
warn
visa-acceptance-payment-id-in-path
Payment-related follow-on operations should use paymentId path parameter
$.paths['/pts/v2/payments/{paymentId}/captures','/pts/v2/payments/{paymentId}/refunds','/pts/v2/payments/{paymentId}/voids']
error
visa-acceptance-https-only
All server URLs must use HTTPS for payment security
$.servers[*].url
error
visa-acceptance-security-defined
All payment operations must require authentication
$.paths[*][post,get,patch,delete]
warn
visa-acceptance-response-codes
Payment endpoints should define error responses
$.paths['/pts/v2/payments'][post]
info
visa-acceptance-currency-iso4217
Currency fields should use ISO 4217 format
$.components.schemas[*].properties.currency