Cashier Merchant Platform Integration
This document describes the merchant platform endpoints used by the Cashier, for managing transaction flow.
Overview
Base URL:
- The system reads
integration_urlfrom merchant service data. - Every endpoint below is called as
POST {integration_url}/{path}with JSON payloads.
Endpoint Details
POST /verifyUser
When called:
- During cashier session creation.
- Failure (non-200, invalid JSON, or
success=false) stops the Cashier flow.
Request body:
{
"userId": "string",
"sessionId": "string"
}
Response body:
{
"userId": "string",
"success": true,
"firstName": "string",
"lastName": "string",
"email": "string",
"street": "string",
"city": "string",
"zip": "string",
"country": "string",
"mobile": "string",
"dob": "YYYY-MM-DD",
"kycStatus": "string",
"balance": 100.5,
"balanceCy": "USD",
"locale": "en_US",
"userCategory": "NFTD",
"attributes": {
"customer_state": "NFTD",
"first_time_depositor": false
},
"errCode": "string",
"errMsg": "string"
}
Notes:
success=trueand HTTP 200 are required for continuation.- Missing or empty fields are accepted, but the cashier session uses user profile fields when present.
- FTD/NFTD cashier ordering can be controlled with
userCategory: "FTD" | "NFTD"or with equivalentattributessuch ascustomer_state,userCategory,user_category,ftd,is_ftd,first_time_depositor,nftd, oris_nftd.
POST /authorize
When called:
- During
processTransaction, after routing and before processing. - Only for cashier-backed transactions (cashier session found and integration URL set).
- Failure causes the transaction to be declined.
Request body:
{
"userId": "string",
"txAmount": "string",
"txAmountCy": "string",
"txId": "string",
"txTypeId": "string",
"txName": "string",
"provider": "string",
"originTxId": "string",
"maskedUserAccount": "string",
"accountHolder": "string",
"attributes": {
"key": "value"
}
}
Response body:
{
"userId": "string",
"success": true,
"merchantTxId": "string",
"authCode": "string",
"errCode": "string",
"errMsg": "string",
"updatedUser": {
"kycStatus": "string"
}
}
Notes:
success=trueand HTTP 200 are required for continuation.authCodeis stored and later reused for/cancel.- Unknown fields are ignored.
POST /transfer
When called:
- After a transaction is approved.
- The call is asynchronous and retried on failure.
Request body:
{
"userId": "string",
"txAmount": "string",
"txAmountCy": "string",
"txPspAmount": "string",
"txPspAmountCy": "string",
"fee": "string",
"feeCy": "string",
"txId": "string",
"txTypeId": "string",
"txName": "string",
"provider": "string",
"txRefId": "string",
"originTxId": "string",
"maskedUserAccount": "string",
"accountHolder": "string",
"attributes": {
"key": "value"
}
}
Response body:
{
"userId": "string",
"success": true,
"txId": "string",
"merchantTxId": "string",
"errCode": "string",
"errMsg": "string"
}
Notes:
success=trueand HTTP 200 are required for success.txPspAmount,fee, and related currency fields can be null when not available.- If retries are exhausted, the transaction is finalized as
CONFLICTED.
POST /cancel
When called:
- After a transaction is declined and an
authCodeis present. - The call is asynchronous and retried on failure.
Request body:
{
"userId": "string",
"authCode": "string",
"txAmount": "string",
"txAmountCy": "string",
"txId": "string",
"txTypeId": "string",
"txName": "string",
"provider": "string",
"originTxId": "string",
"attributes": {
"key": "value"
}
}
Response body:
{
"userId": "string",
"success": true,
"errCode": "string",
"errMsg": "string"
}
Notes:
success=trueand HTTP 200 are required for success.- If retries are exhausted, the system logs the failure and continues.
Operational Guidance
- Timeouts: connect 5s, read 10s.
- Retries for
/transferand/cancel: base delay 30s, up to 3 attempts in prod (1 attempt in non-prod). - Endpoints must be idempotent because retries can occur.
- Responses must be valid JSON; empty bodies are treated as failures.