Artha API
  1. Card Operations
  • Introduction
  • Authentication
  • KYC/KYB Requirements
  • API Setup Guide
  • Customers
    • Create Customer
      POST
    • List Customers
      GET
    • Get Customer
      GET
    • Update Customer
      PATCH
  • Cards
    • Submit KYC/KYB Applicant
      POST
    • Issue Card
      POST
    • Cards List
      GET
    • Get Card
      GET
    • Get Sensitive Card Details
      GET
  • Card Operations
    • Activate Card
      POST
    • Freeze Card
      POST
    • Unfreeze Card
      POST
    • Cancel Card
      POST
    • Replace Card
      POST
    • Set / Reset Card PIN
      POST
    • Get Card Limits
      GET
    • Update Card Limits
      POST
  • Funding
    • Top Up Card
      POST
    • Get Card Balance
      GET
    • List Top-Up History
      GET
  • Transactions
    • List All Transactions
      GET
    • List Card Transactions
      GET
    • List Customer Transactions
      GET
    • Get Transaction
      GET
  • Products
    • List Products
    • Get Product
  • Utilities
    • Upload Documents
  • Webhook's
    • Webhooks
  1. Card Operations

Set / Reset Card PIN

POST
{{baseUrl}}/api/v1/cards/{cardId}/pin/set
Sets or resets the card's PIN. The PIN must be 4โ€“6 digits.
โš ๏ธ Security: Transmit PINs only over HTTPS. Never log the PIN value.

๐Ÿ“‹ Request Body Fields#

โš ๏ธ Required Fields
FieldTypeDescriptionConstraints
pinstringNew PIN โ€” must be 4โ€“6 digits. Example: 1234Min length: 4 ยท Max length: 6

๐Ÿ“ค Response Fields#

FieldTypeDescriptionNotes
card_idstring (uuid)--
customer_idstring (uuid)--
product_idstring-nullable
card_typestring-nullable
actionstringThe operation performed: activate, freeze, unfreeze, cancel, replace, set_pin. Example: activate-
statusstringNew card status after the operation. Example: active-
messagestring-nullable
task_idstringAsync task ID for operations processed in the background.nullable
performed_atstring (date-time)--

Request

Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

๐ŸŸข200
application/json
PIN set successfully.
Body

๐ŸŸ 401
๐ŸŸ 404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{baseUrl}}/api/v1/cards/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11/pin/set' \
--header 'X-API-Key;' \
--header 'X-Signature;' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Body-Hash;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pin": "1234"
}'
Response Response Example
200 - Example 1
{}
Modified atย 2026-02-18 13:24:21
Previous
Replace Card
Next
Get Card Limits
Built with