Virtual SPEI
How to query the status and details of a virtual SPEI account in Mexico.
Query Virtual Account
https://gateway-test.luxtak.com/virtual-account/spei/query
This endpoint allows you to query the status and details of a virtual SPEI account by its account_id.
Parameters
Header
| Parameter | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| Authorization* | string | Basic Base($app_id:$security_key) |
Body
| Parameter | Type | Description |
|---|---|---|
| app_id* | string | created app's id at dashboard - Max. 32 chars - |
| timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
| account_id* | string | the account_id returned when creating the virtual account |
Responses
| 200 | query successfully |
{
"code": "10000",
"msg": "Success",
"account_id": "DLN**LWG",
"account_number": "72***69",
"buyer_id": "0123",
"provider": "TRANSFER DIRECT",
"status": "ACTIVE",
"beneficiary_name": "PULABE20 SA DE CV",
"notify_url": "https://your-notify-url.com"
}
| 400 | account not found |
{
"code": "40002",
"msg": "Business Failed",
"sub_code": "account-not-exist",
"sub_msg": "account not exist"
}
Example
curl --location --request POST 'https://gateway-test.luxtak.com/virtual-account/spei/query' \
--header 'Authorization: Basic MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "162************38",
"timestamp": "2025-03-20 11:11:11",
"account_id": "DLN**LWG"
}'
Tips
Note: 162********38 is luxtak's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.
Warning
Please use your own app_id and generate your own authorization token when testing.
