using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
await sdk.DigitalWallets.Domains.DeleteAsync(
digitalWalletId: "",
digitalWalletDomain: new DigitalWalletDomain() {
DomainName = "example.com",
}
);
// handle response{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}Remove a digital wallet domain (Apple Pay only).
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
await sdk.DigitalWallets.Domains.DeleteAsync(
digitalWalletId: "",
digitalWalletDomain: new DigitalWalletDomain() {
DomainName = "example.com",
}
);
// handle response{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}digital-wallets.write 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"
""
The domain to add or remove.
"example.com"
Successful Response