Introduction
Transactions
Buyers
Checkout Sessions
Payment links
Payment options
Refunds
Instruments
- Card schemes
- Card details
- Digital wallets
- Gift cards
- Payment methods
- Payment method definitions
Vault
- Account updater
- Network tokens
- Payment service tokens
- Vault Forward
- Vault Forward endpoints
- Vault Forward authentication
Connections
- All services
- Payment services
- Digital wallets
- Anti-fraud services
Other
- Flow
- Reports
- Report executions
- Webhook subscriptions
List payment method definitions
GET
/
payment-method-definitions
Copy
Ask AI
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.{gr4vy_id}.gr4vy.app/payment-method-definitions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
Copy
Ask AI
{
"items": [
{
"id": "bank",
"icon_url": "https://api.sandbox.example.gr4vy.app/assets/payment-method-definitions/bank.svg",
"display_name": "Bank",
"long_display_name": "Bank (BACS)",
"method": "BACS"
}
]
}
This endpoint requires the payment-method-definitions.read
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
Returns a list of payment method definitions.
A list of available payment method definitions.
Was this page helpful?
Copy
Ask AI
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.{gr4vy_id}.gr4vy.app/payment-method-definitions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
Copy
Ask AI
{
"items": [
{
"id": "bank",
"icon_url": "https://api.sandbox.example.gr4vy.app/assets/payment-method-definitions/bank.svg",
"display_name": "Bank",
"long_display_name": "Bank (BACS)",
"method": "BACS"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.