Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.

Unbind a device

The Issuer can remove a previously established binding between an e-commerce digital card and a device.

This functionality is available through DigitalCardService and the unbindDevice API.

The following examples show how to use the API.

val digitalCardID = "" // obtained from digital card's device binding list
val bindingReference = "" // deviceIndex from device binding list
val reason: DigitalCardService.UnbindReason? =
    DigitalCardService.UnbindReason.USER_DECISION // optional; null defaults to ISSUER_DECISION

d1Task.digitalCardService().unbindDevice(
    digitalCardID,
    bindingReference,
    reason,
    object : D1Task.Callback<Void> {
        override fun onSuccess(data: Void?) {
            // Handle success.
        }

        override fun onError(e: D1Exception) {
            // Handle error.
        }
    }
)
String digitalCardID = ""; // obtained from digital card's device binding list
String bindingReference = ""; // deviceIndex from device binding list
DigitalCardService.UnbindReason reason =
        DigitalCardService.UnbindReason.USER_DECISION; // optional; null defaults to ISSUER_DECISION

d1Task.digitalCardService().unbindDevice(
        digitalCardID,
        bindingReference,
        reason,
        new D1Task.Callback<Void>() {
            @Override
            public void onSuccess(Void data) {
                // Handle success.
            }

            @Override
            public void onError(@NonNull D1Exception exception) {
                // Handle error.
            }
        });

Last updated

Was this helpful?