For AI agents: visit https://valorapi.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
Provides example success and error responses to help understand the passage API response structure and handling.
Create Page Token
Generate a short-lived client token used to initialize the hosted payment page or tokenization widget. This token must be obtained before rendering the payment form.
Tokenize a card using the client token obtained from the Create Page Token endpoint. Returns a reusable card token that can be used for future transactions without re-entering card details.
Partially masked reusable card token for future transactions
card_brand
string
Card network (e.g. Visa, Mastercard)
card_type
string
Card type — D = Debit, C = Credit
response
string | null
Additional response message; null on success
Response — 200 OK (Card Declined)
Card was presented but declined by the issuer during tokenization validation. The outer error_no indicates the overall status; the switch_response object contains the detailed decline reason.
S00 — the request was processed, but the card was declined
error_code
string
E98 when the card was declined by the issuer
response
string
Short description of the decline reason
switch_response
object
Full switch-level decline details (see below)
switch_response fields
Field
Type
Description
error_no
string
E98 indicates a declined transaction
error_code
string
Issuer decline code (e.g. 54 = card expired)
success_url
boolean
Always false for declined operations
txnid
string | null
Transaction identifier; null when not assigned
batch_no
integer
Settlement batch identifier
switch_error_code
string
Switch-level error code
mesg
string
Error message
desc
string
Detailed error description
msg
string
Error message
isFlexSendOrNot
string
Flex routing indicator; mirrors switch_error_code
Important: A card decline response still returns HTTP 200 with outer error_no: "S00". Always check error_code — if it is E98, the card was declined. Read switch_response for the full decline reason.