- create - Register a digital wallet domain
- delete - Remove a digital wallet domain
Register a digital wallet domain (Apple Pay only).
from gr4vy import Gr4vy
import os
with Gr4vy(
merchant_account_id="default",
bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
) as g_client:
res = g_client.digital_wallets.domains.create(digital_wallet_id="1808f5e6-b49c-4db9-94fa-22371ea352f5", domain_name="example.com")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
Example |
digital_wallet_id |
str |
✔️ |
The ID of the digital wallet to remove a domain for. |
1808f5e6-b49c-4db9-94fa-22371ea352f5 |
domain_name |
str |
✔️ |
The domain to add or remove. |
example.com |
merchant_account_id |
Optional[str] |
➖ |
The ID of the merchant account to use for this request. |
default |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
Any
| Error Type |
Status Code |
Content Type |
| errors.Error400 |
400 |
application/json |
| errors.Error401 |
401 |
application/json |
| errors.Error403 |
403 |
application/json |
| errors.Error404 |
404 |
application/json |
| errors.Error405 |
405 |
application/json |
| errors.Error409 |
409 |
application/json |
| errors.HTTPValidationError |
422 |
application/json |
| errors.Error425 |
425 |
application/json |
| errors.Error429 |
429 |
application/json |
| errors.Error500 |
500 |
application/json |
| errors.Error502 |
502 |
application/json |
| errors.Error504 |
504 |
application/json |
| errors.APIError |
4XX, 5XX |
*/* |
Remove a digital wallet domain (Apple Pay only).
from gr4vy import Gr4vy
import os
with Gr4vy(
merchant_account_id="default",
bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
) as g_client:
g_client.digital_wallets.domains.delete(digital_wallet_id="", domain_name="example.com")
# Use the SDK ...
| Parameter |
Type |
Required |
Description |
Example |
digital_wallet_id |
str |
✔️ |
N/A |
|
domain_name |
str |
✔️ |
The domain to add or remove. |
example.com |
merchant_account_id |
Optional[str] |
➖ |
The ID of the merchant account to use for this request. |
default |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
| Error Type |
Status Code |
Content Type |
| errors.Error400 |
400 |
application/json |
| errors.Error401 |
401 |
application/json |
| errors.Error403 |
403 |
application/json |
| errors.Error404 |
404 |
application/json |
| errors.Error405 |
405 |
application/json |
| errors.Error409 |
409 |
application/json |
| errors.HTTPValidationError |
422 |
application/json |
| errors.Error425 |
425 |
application/json |
| errors.Error429 |
429 |
application/json |
| errors.Error500 |
500 |
application/json |
| errors.Error502 |
502 |
application/json |
| errors.Error504 |
504 |
application/json |
| errors.APIError |
4XX, 5XX |
*/* |