Set or Reset Virtual Card PIN
Set or reset the PIN on a Standard virtual card.
type: SET— set the PIN for the first time. Fails if the card already has a PIN; useRESETinstead.type: RESET— change the PIN. The request must carryold_pin, and it must match the card’s current PIN.
No forgot-PIN flow.
RESETalways requires the current PIN viaold_pin. If the current PIN is lost, the PIN cannot be reset through this API — contact UQPAY for assistance.
Standard virtual cards only. This endpoint does not apply to physical cards — use Reset Card PIN to manage physical card PINs.
Asynchronous processing
The synchronous response only confirms the request was accepted and returns the PIN operation order (card_id, card_order_id, create_time). Repeated requests with the same x-idempotency-key return the same result without re-processing. A card can have only one PIN operation in flight at a time — submitting another SET / RESET request while one is still being processed is rejected.
Authorizations
The API token for login provided by UQPay.
Headers
Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts endpoint. If omitted or empty, the request is executed using the master account.
More information at Connected Accounts.
A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.
Body
Unique identifier for the card. Must be a Standard virtual card.
"630be6bd-2652-4faa-9f3d-2c51cee0b820"
The PIN operation to perform.
SET- Set the card's PIN for the first time. Rejected if the card already has a PIN.RESET- Change the card's PIN. Requiresold_pin.
SET, RESET "SET"
The new PIN for the card. Must be exactly 4 numeric digits.
4^\d{4}$"1234"
The card's current PIN. Required when type is RESET and must match the PIN currently set on the card, otherwise the operation fails. Ignored when type is SET.
4^\d{4}$"5678"
Response
PIN operation request accepted.

