Provides example success and error responses to help understand the valor connect API response structure and handling.
Publish API
Push a transaction request to a physical POS device via Valor Connect. The device will prompt the cardholder to present their card and complete the payment.
Response — 200 OK (Approved)
Returned when the transaction is completed and approved by the device.
Card expiry in MMYY format (e.g. 3012 = December 2030)
RRN
string
Retrieval reference number for reconciliation
CODE
string
Issuer-returned authorization code
AUTH_RSP_TEXT
string
Full authorization response text from the issuer
DATE
string
Transaction timestamp in DDMMYYYY HH:MM:SS format
TRAN_NO
string
Sequential transaction number within the batch
BATCH_NO
string
Settlement batch number
ISSUER
string
Card network (e.g. VISA, MASTERCARD)
TOTAL_AMOUNT
string
Total charged amount including taxes in cents
STAN_ID
string
System trace audit number
CUSTOMER_NAME
string
Cardholder name, if captured
MID
string
Merchant ID
TID
string
Terminal ID
TAXES object
Field
Type
Description
STATE_TAX.RATE
string
State tax rate as a percentage
STATE_TAX.AMOUNT
string
State tax amount in cents
STATE_TAX.TAXABLE_AMOUNT
string
Amount subject to state tax in cents
TAX_PROFILE
string
Name of the tax profile applied
TOTAL_TAXES
string
Total tax amount in cents
TOTAL_WITH_TAX
string
Total charged amount including all taxes in cents
response — cancelled / timed out fields
Field
Type
Description
STATE
string
-1 indicates the transaction was cancelled or timed out
EPI
string
Terminal EPI identifier
SERIAL_NO
string
Device serial number
ERROR_MSG
string
Description of the cancellation reason (e.g. Transaction Timeout/Cancelled)
MER_TXN_ID
string
Merchant-supplied transaction reference
Note: Both approved and cancelled outcomes return error_no: "S00" with HTTP 200. Always check response.STATE to determine the actual outcome — "0" = approved, "-1" = cancelled or timed out.
VC03 indicates the device is offline and cannot receive the request
mesg
string
Error message
msg
string
Error message
desc
string
Detailed description of the error cause
Error code reference
error_no
STATE
Meaning
Typical cause
S00
0
Approved
Transaction completed and approved on the device
S00
-1
Cancelled / timed out
Cardholder cancelled or did not present card within the timeout period
VC03
—
Processing error
Device is offline and not reachable via Valor Connect
Status API
Poll the status of a transaction previously published to a POS device via Valor Connect. Use this endpoint to retrieve the result after calling the Publish API.
Note: The response object schema is identical to the Publish API approved response. Refer to the Publish API field reference for full field descriptions.
VC09 indicates the transaction status could not be retrieved
mesg
string
Error message
msg
string
Error message
desc
string
Detailed description of the error cause
Error code reference
error_no
Meaning
Typical cause
S00
Success
Transaction status retrieved
VC09
Processing error
Transaction status is unavailable — the device may not have responded or the MER_TXN_ID is invalid
Cancel API
Send a cancellation request to a POS device to abort a transaction that is currently in progress via Valor Connect.
Response — 200 OK
{
"error_no": "S00",
"response": "Cancel Request has been send to POS."
}
Response fields
Field
Type
Description
error_no
string
S00 indicates the cancel request was sent successfully
response
string
Confirmation message that the cancel request was dispatched to the device
Note: A successful response indicates the cancellation request was transmitted to the device, not that the transaction was necessarily cancelled. Use the Status API to confirm the final transaction state.
Partially masked MQTT topic used for Valor Connect communication with this device
Label
string
Terminal display label
isOnline
string
1 if the device is currently online and reachable; 0 if offline
channel_id
string
Partially masked channel ID for the Valor Connect session
Response — 400 (Authentication Error)
{
"status": "FAILED",
"code": 400,
"message": "Not a valid APP ID or APP Key."
}
Response fields
Field
Type
Description
status
string
FAILED when authentication fails
code
integer
HTTP status code (400)
message
string
Error message
Error code reference
status
Meaning
Typical cause
OK
Success
Device status list returned
FAILED
Authentication error
App ID or App Key is invalid
Valor Connect Device Status — Multi-MID
Retrieve the online/offline status of Valor Connect-enabled terminals for a Multi-MID merchant configuration. Returns the parent device along with its associated child EPIs.
Partially masked channel ID for the Valor Connect session
children
array
Array of child EPI objects associated with this parent terminal (see below)
children — child EPI fields
Field
Type
Description
child_epi
string
Child terminal EPI identifier
child_label
string
Child terminal display label
Note: In a Multi-MID configuration, the parent device handles the physical connection while child EPIs represent the individual MID profiles. The isOnline status reflects the physical device state and applies to all associated child EPIs.
Response — 400 (Authentication Error)
{
"status": "FAILED",
"code": 400,
"message": "Not a valid APP ID or APP Key."
}