API M2Square
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳中文
Home
Official WebsiteContract
Home
Official WebsiteContract
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳中文
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳中文
  1. Mexico
  • Development Guide
    • Development Integration Guidelines
    • API Request Structure Definition
    • APIs Signature
    • Postman And SDK
    • APIs WebHook
    • Order Status
    • APIs Error Code List
    • PCI Compliance
    • Payment Process Explanation
  • Transaction APIs
    • North America
      • USA
        • Payment
        • Payout
      • Mexico
        • Payment
          POST
        • Payout
          POST
    • South America
      • Brazil
        • Payment
        • Payout
      • Colombia
        • Payment
        • Payout
      • Ecuador
        • Payment
        • Payout
      • Argentina
        • Payment
        • Payout
      • Peru
        • Payment
        • Payout
      • Chile
        • Payment
        • Payout
      • Venezuela
        • Payment
        • Payout
    • Asia
      • Indonesia
        • Payment
        • Payout
      • Philippines
        • Payment
        • Payout
      • Thailand
        • Payment
        • Payout
      • Malaysia
        • 收款
        • 出款
      • Bengal
        • Payment
        • Payout
      • India
        • Payment
        • Payout
      • Pakistan
        • Payment
        • Payout
    • Europe
      • Russia
        • Payment
        • Payout
    • Mid East
      • United Arab Emirates
        • Payment
        • Payout
      • Turkey
        • Payment
        • Payout
    • Africa
      • Kenya
        • Payment
        • Payout
      • Nigeria
        • Payment
        • Payout
      • South Africa
        • Payment
        • Payout
      • Tanzania
        • Payment
        • Payout
    • Global universal payment
      • Payment
      • Payout
  • Common APIs
    • Payout Voucher Query
      POST
    • Account Balance Query
      POST
    • Order Status Query
      POST
  • Payment of Video Case
    • Video Case
    • Payment method Logo
  • Dashboard Guide
    • Bind Google Authenticator 2FA
  • Schemas
    • Payment Common Request Body
    • Payment Common Response Body
    • Payout Common Request Body
    • Payout Common Response Body
Home
Official WebsiteContract
Home
Official WebsiteContract
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳中文
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳中文
  1. Mexico

Payment

Developing
POST
/gateway/base/biz
When the user saves the clabe account and makes multiple successful payments, the callback parameter notification includes the realAmount that distinguishes each actual payment, the initial merchant order number mchOrderId, and the bankId of each payment order is unique and can be used as a prevention of duplicate and a prevention of generating new orders for duplicate purposes. The merchant must perform duplicate prevention checks on the bankId. An example of the actual callback is as follows
{
    "realAmount": "15.0",
    "orderType": "PAYMENT",
    "bankId": "CUS_375a18092921:ACC_4ef39ec5c22_1",
    "amount": "15.0",
    "createTime": "20240226031455",
    "orderId": "202402251761952537422222222F",
    "transIds": "TRX",
    "orderStatus": "SUCCESS",
    "mchOrderId": "M0023",
    "failMessage": "Create F-pay order for the real amount. "
}
{
    "realAmount": "10.0",
    "orderType": "PAYMENT",
    "bankId": "CUS_375a18092921:ACC_4ef39ec5c22_2",
    "amount": "10.0",
    "createTime": "20240226031954",
    "orderId": "2024022517619525374222233232F",
    "transIds": "TRX",
    "orderStatus": "SUCCESS",
    "mchOrderId": "M0023",
    "failMessage": "Create F-pay order for the real amount. "
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200PAYMENT-BANKTRNSFER-成功
application/json
Body

🟢200PAYMENT-OXXO_PAY
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/gateway/base/biz' \
--header 'method: pay' \
--header 'signType: SHA512' \
--header 'serviceName: api.pay' \
--header 'mchId: 1416010331032883200' \
--header 'timestamp: 1631671670' \
--header 'sign: 32554324534545432543' \
--header 'Content-Type: application/json' \
--data-raw '{
    "mchOrderId": "string",
    "amount": "string",
    "firstname": "string",
    "currency": "string",
    "lastname": "string",
    "productinfo": "string",
    "email": "string",
    "phone": "string",
    "callbackUrl": "string",
    "redirectUrl": "string",
    "noPayPage": "string",
    "dynamic": "string",
    "paymentType": "SPEI"
}'
Response Response Example
200 - PAYMENT-BANKTRNSFER-成功 - Example 1
{
    "data": [
        {
            "beneficiaryAccountNumber": "string",
            "orderId": "string",
            "refNumber": "string",
            "expirationTime": "string",
            "beneficiaryName": "string",
            "beneficiaryAccountType": "string",
            "beneficiaryBankName": "string",
            "beneficiaryBankBranchId": null,
            "document": null,
            "beneficiaryBankCode": "string",
            "ispb": null,
            "checkoutUrl": "string"
        }
    ],
    "resultCode": "string",
    "errorCode": "string",
    "errorMsg": "string"
}
Modified at 2025-10-26 23:40:47
Previous
Payout
Next
Payout
Built with