Gr4vy Scopes

Gr4vy Scopes

Scopes claimed on the private-key JWT used for server-side Gr4vy API auth (Authorization: Bearer <jwt>).

ScopePurposeUsed for
checkout-sessions.writeCreate checkout sessionsSecure Fields / hosted checkout session create
checkout-sessions.readRead checkout sessionsTokenized payment-method metadata (scheme, BIN, last4, expiry) before charge
transactions.writeCreate and mutate transactionsPayment create; capture, refund, void
transactions.readRead transactionsStatus lookup, sync, and follow-up on existing payments
buyers.writeCreate and update buyersBuyer records and shipping details attached to checkout
buyers.readRead buyersBuyer and shipping-detail lookup
buyers.billing-details.readRead buyer billing-related PIIBilling / shipping detail required for fulfillment and risk
digital-wallets.writeCreate digital-wallet sessionsApple Pay, Google Pay, and Paze merchant / wallet sessions
payment-options.readRead payment optionsEligible methods subject to flow rules (POST /payment-options)
gift-cards.readRead gift cardsGift card balance verification (POST /gift-cards/balances)
payment-services.readRead payment servicesList payment-service / connector UUIDs (GET /payment-services)

There is no method-specific scope (e.g. PayPal). APMs and wallets use the same transactions.*, buyers.*, and related resource scopes; which methods appear is controlled by Gr4vy configuration and flow rules, not JWT scopes.

Scope claim values

From Authentication with JWTs — Scopes: the API supports the following values for the scopes claims.

ScopeDescription
*.readAllows read-access to any resource. This is used by default in the SDKs
*.writeAllows write-access to any resource. This is used by default in the SDKs. This does not also allow read access.
{resource_name}.readAllows read-access to a type or resource. For example, payment-services.read enabled read-access for buyers data.
{resource_name}.writeAllows write-access to a type or resource. For example, payment-services.write enabled write-access for buyers data. This does not also allow read access.
embedA scope that represents all the access needed by Embed.

The following resource names are recognized. Please see the reference documentation for more details as to what scope is required per endpoint.

  • anti-fraud-services
  • api-logs
  • buyers
  • buyers.billing-details
  • card-scheme-definitions
  • checkout-sessions
  • connections
  • digital-wallets
  • flows
  • payment-methods
  • payment-method-definitions
  • payment-options
  • payment-service-definitions
  • payment-services
  • reports
  • transactions