Docs

Cash · API reference

Create Cash-Out

POST /api/v1/cash/cash_out
Try it ▸

Base URL https://dev-api.finco.lat · operationId createCashOut

Creates a new cash-out operation that allows users to withdraw money at physical locations.

  • Amount Limits: 50 - 3000 MXN (may vary by physical location)
  • Expiration: 60 minutes from creation (default)
  • Reference: 20-digit unique reference number
  • Note: Maximum and minimum amount may vary by physical location.

Authorization

ClientAuth API key in header X-Client-Id

Client API key (32-character hex) obtained from client creation process. Must be used with X-Signature and X-Timestamp headers for HMAC authentication.

HMACSignature API key in header X-Signature

HMAC-SHA256 signature generated using your api_secret. Format: HMAC-SHA256(timestamp + "." + requestBody, api_secret)

Timestamp API key in header X-Timestamp

Unix timestamp (seconds since epoch) when the request was created. Used in HMAC signature generation to prevent replay attacks.

Request body application/json · required

amount integer required

Transaction amount in MXN

external_user_id string required

Unique identifier for the end user

document_type string

Type of identification document (optional)

INE CURP RFC
document_id string

Document identification number (optional)

phone string

User's phone number - exactly 10 digits (optional)

Responses

201 Cash-out created successfully application/json
response_code string

Response code ("0" for success)

response_text string

Response message

result object
operation_id result.operation_id integer

Unique identifier for the operation

kind result.kind string

Operation type

cash_in cash_out
reference result.reference string

20-digit unique reference number for payment at physical locations

status result.status string

Current operation status

close paid expired reversed
transaction_id result.transaction_id string

25-character unique transaction identifier

amount result.amount integer

Transaction amount in MXN (0 for open references until paid)

created_at result.created_at string (date-time)

ISO 8601 timestamp of operation creation

expire_at result.expire_at string (date-time)

ISO 8601 timestamp when operation expires

400 Bad Request - Invalid operation parameters application/json
response_code string

Error code identifier

1 60 64
response_text string

Human-readable error message

result object

Additional error context

amount result.amount integer

Requested amount (if applicable)

external_user_id result.external_user_id string

User identifier (if applicable)

reference result.reference string

Reference number (if applicable)

401 Unauthorized - Invalid or missing authentication application/json
error string

Error message

This request is in the Monato · Cash Postman collection.Download collection

Request

# SIGNATURE = HMAC-SHA256(TIMESTAMP + "." + request body, api_secret)
curl -X POST "https://dev-api.finco.lat/api/v1/cash/cash_out" \
  -H "X-Client-Id: $CLIENT_ID" \
  -H "X-Signature: $SIGNATURE" \
  -H "X-Timestamp: $TIMESTAMP" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 250,
  "external_user_id": "USER789012",
  "document_type": "CURP",
  "document_id": "ABCD123456HMNMNL01",
  "phone": "5587654321"
}'

Response

{
  "response_code": "0",
  "response_text": "Operacion creada",
  "result": {
    "operation_id": 124,
    "kind": "cash_out",
    "reference": "20511175512161627449",
    "status": "close",
    "transaction_id": "FMXdbnBuiw2SHqSyfzSkqN72q",
    "amount": 250,
    "created_at": "2025-01-15T10:30:00Z",
    "expire_at": "2025-01-15T11:30:00Z"
  }
}