1. Issuing
PIK
  • Start
    • Getting Started
  • Authentication
    • Authentication Token
      POST
  • Global Account
    • Contacts
      • Create Contact
      • List Contacts
      • Get Contact
      • Count Contacts
    • Virtual Accounts
      • Create Virtual Account
      • List Virtual Accounts
      • Get Virtual Account
    • Transactions
      • List Transactions
      • Get Transaction
    • Account Balance
      • List Account Balances
      • Get Balance by Currency
    • Payout
      • Create Payout
  • Payment Links
    • Payment Links
      • Create Payment Link
      • Update Payment Link
      • Get Payment Link Detail
      • Get Payment Link List
    • Transactions
      • Get Transaction List
  • Webhook
    • Global Account
      • Deposit Webhook
      • Payout Webhook
      • Virtual Account Webhook
    • Payment Links
      • Overview
      • Order Collect Out Webhook
      • Customer Payment Webhook
      • Customer Refund Webhook
      • Master Recharge Webhook
      • Web3 Direct Payment Webhook
      • Withdraw Out Webhook
    • Issuing
      • Card Activated
      • Card Failed
      • Transaction Completed
      • Transaction Declined
  • Issuing
    • Card Products
      • List Card Products
    • Cardholders
      • Create Cardholder
      • List Cardholders
      • Get Cardholder
    • Cards
      • Issue Card
      • List Cards
      • Get Card
      • Create Card Secure Session
    • Transactions
      • List Transactions
      • Get Transaction
  1. Issuing

Card Failed

card.failed — delivered when card issuance fails.

When it fires#

The Issue Card endpoint returned status: PENDING, but the card network subsequently rejected
the request. The card will not become usable and no further events are sent for it.
To retry, issue a new card with a fresh externalId.

Payload#

Envelope#

FieldTypeDescription
eventIdstringUnique per event. Deduplicate on this value
eventTypestringAlways card.failed
versionstringPayload schema version. Additive changes do not bump it
occurredAtstringWhen the event happened, not when it was delivered (ISO 8601)
dataobjectThe card, see below

data#

FieldTypeDescription
cardNostringPIK card number
cardholderNostringPIK cardholder number this card belongs to
maskedCardNumberstringEmpty when issuance failed before a card number was assigned
expireMonthYearstringEmpty when issuance failed
statusstringFAILED for this event
cardLimitstringCumulative spending ceiling that was requested
availableLimitstring0.00
currencystringSettlement currency
labelstringYour label for the card
externalIdstringYour own identifier
createTimeUtcstringCreation time (UTC)

Example#

{
  "eventId": "evt_01J9X8ZQ4T2M",
  "eventType": "card.failed",
  "version": "1.0",
  "occurredAt": "2026-08-11T10:16:44+08:00",
  "data": {
    "cardNo": "CD260811X9Y8Z7",
    "cardholderNo": "CH260811A1B2C3",
    "maskedCardNumber": "",
    "expireMonthYear": "",
    "status": "FAILED",
    "cardLimit": "500.00",
    "availableLimit": "0.00",
    "currency": "USD",
    "label": "Ads spend - Q3",
    "externalId": "card-req-4471",
    "createTimeUtc": "2026-08-11T02:16:02Z"
  }
}

Verifying the signature#

Two headers accompany every delivery:
HeaderValue
x-pik-timestampUnix timestamp in seconds
x-pik-signatureHMAC-SHA512 signature, lowercase hex
x-pik-signature = hex_lower( HMAC_SHA512( webhookSecret, rawBody + timestamp ) )
The signed content is the raw body concatenated with the timestamp, no separator.
1.
Sign the raw bytes of the request body, before any JSON parsing.
2.
Compare in constant time.
3.
Reject deliveries whose x-pik-timestamp is more than 300 seconds from your clock.

Delivery#

Return HTTP 200 within 5 seconds to acknowledge.
Failed deliveries are retried with exponential backoff: 10s, 1m, 5m, 30m, 2h, 6h, 24h.
Delivery is at least once — deduplicate on eventId.
Ordering is not guaranteed — use occurredAt to decide which version is newer.
See the Webhooks guide for verification code samples and recommended
handling.
Modified at 2026-08-11 10:12:48
Previous
Card Activated
Next
Transaction Completed
Built with