Skip to main content

Documentación

Create Hosted Page for PIN Management

Create a hosted page for viewing and resetting a PIN.

In the sandbox, you can set any number other than 1111.

Rapyd sends you Issued Card PIN Set Webhook when the customer sets a PIN.

Nota

  • PINs are relevant to physical cards.

  • Some card programs do not support resetting the PIN. Holders of those cards must reset the PIN at an ATM.

Prerequisites

    • cancel_url

    • URL where the customer is redirected after pressing Back to website.

    • card

    • ID of the card. String starting with card_.

    • complete_url

    • URL where the customer is redirected after completing the hosted page.

    • ewallet_contact

    • ID of the wallet contact that the card is assigned to. Must have a valid phone number. String starting with cont_.

    • language

    • Determines the default language of the hosted page.

    • page_expiration

    • End of the time when the customer can use the hosted page, in Unix time.

      7 days after creation

    • skip_view_pin

    • When true, the customer cannot view the PIN via a hosted page.

      false

  • /v1/hosted/issuing/pin

  • Create Hosted Page for PIN Management

  • curl -X post 'https://sandboxapi.rapyd.net/v1/hosted/issuing/pin' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw '{
        "card": "card_d1c07ed0ce32fe5c2a1f628007b09a58",
        "ewallet_contact": "cont_cb60ec28c2f0bdfc621cfc21270c20ce"   
    }'
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "b4e1d268-dc69-401a-8c7e-eab3e9e4943f"
        },
        "data": {
            "status": "NEW",
            "cancel_url": "https://example1234.net",
            "complete_url": "https://example1234.net",
            "language": "",
            "org_id": "153e08b8-4bf3-4cb9-bb03-79d405eaed2a",
            "merchant_color": "323fff",
            "merchant_logo": "",
            "merchant_website": "https://example1234.net",
            "merchant_customer_support": {
                "url": "https://example1234.net",
                "email": "support@example1234.net",
                "phone_number": "121255551213"
            },
            "merchant_alias": "Doc Team",
            "merchant_terms": "https://example1234.net/terms_and_conditions",
            "merchant_privacy_policy": "https://example1234.net/privacy_policy",
            "page_expiration": 1764502764,
            "redirect_url": "https://sandboxhosted.rapyd.net/otp?token=hp_issuing_pin_4343909b3442d06087b93f71893d2f57",
            "id": "hp_issuing_pin_4343909b3442d06087b93f71893d2f57",
            "ewallet_contact": "cont_cb60ec28c2f0bdfc621cfc21270c20ce",
            "card_token": "card_d1c07ed0ce32fe5c2a1f628007b09a58",
            "card_issuing": "ci_1fe7a25f7bf7092c949d1d6473a8c555",
            "skip_view_pin": false
        }
    }