Skip to main content
GET
/
card-details
Get card details
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sandbox.{id}.gr4vy.app/card-details"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
"<any>"
Retrieves details about a card using card’s BIN or a stored payment_method_id. This endpoint requires the embed scope.

Authorizations

Authorization
string
header
required

Headers

x-gr4vy-merchant-account-id
string | null
Examples:

Query Parameters

currency
string
required
Examples:
bin
string | null
Required string length: 6 - 8
Examples:
payment_method_id
string<uuid> | null
Examples:
country
string | null
Examples:
amount
integer | null
Examples:
intent
enum<string> | null
default:authorize
Available options:
authorize,
capture
Examples:
is_subsequent_payment
boolean | null
Examples:
merchant_initiated
boolean | null
Examples:
metadata
string | null
Examples:
payment_source
enum<string> | null
Available options:
ecommerce,
moto,
recurring,
installment,
card_on_file
Examples:

Response