Public endpoints
POST/v1/public/approvals/{token}/rule

Create merchant rule by link

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/public/approvals/{token}/rule" \  -H "Content-Type: application/json" \  -d '{"challenge_id":"cha_01jd2x3k4m5n6p7q8r9s0t1v2w","credential":{},"kind":"string"}'

Saves the organization's allow or block rule for this merchant after verifying the passkey assertion. The passkey's owner must hold mandate:edit or approval:decide in the organization.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/public/approvals/{token}/ruleBase URL: https://api.52-28-238-205.sslip.io
Path
  • tokenstringrequired

    One-time approval token from the approval link. It is the only credential for this page.

Body

application/json · required. Fields are listed under Request body below.

Path Parameters

token*Token

One-time approval token from the approval link. It is the only credential for this page.

Request Body

application/json
  1. body
challenge_id*Challenge Id

Id of the passkey challenge returned by the matching options call.

credential*

The passkey assertion (WebAuthn) produced for the challenge.

kind*Kind
max_amount_base_units?string|integer|null

Response Body

Success.

application/json
  1. response
rule*
merchant?|null
[key: string]?any