POST
/
digital-wallets
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/digital-wallets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "apple",
  "merchant_name": "Gr4vy",
  "domain_names": [
    "example.com"
  ],
  "accept_terms_and_conditions": true
}'
{
  "type": "digital-wallet",
  "id": "8d3fe99b-1422-42e6-bbb3-932d95ae5f79",
  "merchant_account_id": "default",
  "provider": "apple",
  "merchant_name": "Gr4vy",
  "merchant_url": "https://example.com",
  "merchant_display_name": "Gr4vy",
  "merchant_country_code": "US",
  "domain_names": [
    "example.com"
  ],
  "fields": {
    "digital_payment_application_id": "<string>",
    "digital_payment_application_name": "<string>"
  },
  "created_at": "2012-12-12T10:53:43+00:00",
  "updated_at": "2012-12-12T10:53:43+00:00",
  "active_certificate_count": 1,
  "pending_certificate_count": 1,
  "expired_certificate_count": 1
}

This endpoint requires the digital-wallets.write scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Merchant details used to register with a digital wallet provider.

Response

201
application/json
Returns the newly registered digital wallet.

A digital wallet (e.g. Apple Pay) that has been registered.