Register digital wallet
/digital-wallets
curl --request POST \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/digital-wallets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"accept_terms_and_conditions": true,
"domain_names": [
"example.com"
],
"merchant_name": "Gr4vy",
"provider": "apple"
}'
{
"active_certificate_count": "1",
"created_at": "2012-12-12T10:53:43+00:00",
"domain_names": [
"example.com"
],
"expired_certificate_count": "1",
"id": "8d3fe99b-1422-42e6-bbb3-932d95ae5f79",
"merchant_account_id": "default",
"merchant_name": "Gr4vy",
"merchant_url": "https://example.com",
"pending_certificate_count": "1",
"provider": "apple",
"type": "digital-wallet",
"updated_at": "2012-12-12T10:53:43+00:00"
}
This endpoint requires the digital-wallets.write
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The explicit acceptance of the digital wallet provider's terms and
conditions by the merchant. Needs to be true
to register a new digital
wallet.
The list of domain names that a digital wallet can be used on. To use a digital wallet on a website, the domain of the site is required to be in this list.
The name of the merchant. This is used to register the merchant with a digital wallet provider and this name is not displayed to the buyer.
The main URL of the merchant. This is used to register the merchant with a digital wallet provider and this URL is not displayed to the buyer.
The name of the digital wallet provider.
apple
, google
Response
The number of active custom certificates registered for this digital wallet (Apple Pay only).
The date and time when this digital wallet was registered.
The list of domain names that a digital wallet can be used on. To use a digital wallet on a website, the domain of the site is required to be in this list.
The number of expired custom certificates registered for this digital wallet (Apple Pay only).
The ID of the registered digital wallet.
The unique ID for a merchant account.
The name of the merchant the digital wallet is registered to.
The main URL of the merchant.
The number of pending custom certificates registered for this digital wallet (Apple Pay only).
The name of the digital wallet provider.
apple
, google
digital-wallet
.
digital-wallet
The date and time when this digital wallet was last updated.
curl --request POST \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/digital-wallets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"accept_terms_and_conditions": true,
"domain_names": [
"example.com"
],
"merchant_name": "Gr4vy",
"provider": "apple"
}'
{
"active_certificate_count": "1",
"created_at": "2012-12-12T10:53:43+00:00",
"domain_names": [
"example.com"
],
"expired_certificate_count": "1",
"id": "8d3fe99b-1422-42e6-bbb3-932d95ae5f79",
"merchant_account_id": "default",
"merchant_name": "Gr4vy",
"merchant_url": "https://example.com",
"pending_certificate_count": "1",
"provider": "apple",
"type": "digital-wallet",
"updated_at": "2012-12-12T10:53:43+00:00"
}