List configured digital wallets.
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.DigitalWallets.ListAsync();
// handle response
{
"items": [
{
"type": "digital-wallet",
"id": "1808f5e6-b49c-4db9-94fa-22371ea352f5",
"merchant_account_id": "default",
"provider": "apple",
"merchant_name": "ACME Inc.",
"merchant_display_name": "ACME",
"merchant_url": "https://example.com",
"merchant_country_code": "US",
"domain_names": "example.com",
"active_certificate_count": 2,
"pending_certificate_count": 1,
"expired_certificate_count": 0,
"fields": {
"digital_payment_application_id": "8faebf73-5b43-4514-b170-cbfb50c99fff",
"digital_payment_application_name": "ACME"
},
"created_at": "2013-07-16T19:23:00.000+00:00",
"updated_at": "2013-07-16T19:23:00.000+00:00"
}
]
}
This endpoint requires the digital-wallets.read
scope.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the merchant account to use for this request.
"default"
Successful Response
The response is of type object
.
Was this page helpful?
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.DigitalWallets.ListAsync();
// handle response
{
"items": [
{
"type": "digital-wallet",
"id": "1808f5e6-b49c-4db9-94fa-22371ea352f5",
"merchant_account_id": "default",
"provider": "apple",
"merchant_name": "ACME Inc.",
"merchant_display_name": "ACME",
"merchant_url": "https://example.com",
"merchant_country_code": "US",
"domain_names": "example.com",
"active_certificate_count": 2,
"pending_certificate_count": 1,
"expired_certificate_count": 0,
"fields": {
"digital_payment_application_id": "8faebf73-5b43-4514-b170-cbfb50c99fff",
"digital_payment_application_name": "ACME"
},
"created_at": "2013-07-16T19:23:00.000+00:00",
"updated_at": "2013-07-16T19:23:00.000+00:00"
}
]
}