Skip to main content
POST
/
checkout
/
pay-batch
Pay with transfer batch
curl --request POST \
  --url http://localhost:3156/checkout/pay-batch \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-merchant-id: <api-key>' \
  --data '
{
  "paymentOrders": [
    {
      "externalId": "ORDER-123",
      "customer": {
        "externalId": "CUST-123",
        "firstName": "John",
        "lastName": "Doe",
        "email": "[email protected]",
        "phoneNumber": "+1234567890"
      },
      "amount": 100.5,
      "currency": "USD",
      "description": "Payment for order #123"
    },
    {
      "externalId": "ORDER-124",
      "customer": {
        "externalId": "CUST-124",
        "firstName": "Jane",
        "lastName": "Smith",
        "email": "[email protected]",
        "phoneNumber": "+1987654321"
      },
      "amount": 200.75,
      "currency": "USD",
      "description": "Payment for order #124"
    }
  ],
  "paymentMethod": {
    "type": "spei"
  }
}
'
{
  "paymentOrders": [
    {
      "externalId": "ORDER-123",
      "amount": 100.5,
      "currency": "USD",
      "status": "PENDING",
      "payments": [
        {
          "id": "856b4a29-a7e5-4726-87d4-77e55d5ecfbf",
          "status": "PENDING_CAPTURE",
          "paymentMethodType": "SPEI",
          "amount": "200.99",
          "refundedAmount": "0.00",
          "paymentMethodId": "<string>",
          "createdAt": "2025-05-19T18:14:32.424Z",
          "updatedAt": "2025-05-19T18:14:32.523Z"
        }
      ],
      "orderNumber": "C25123101",
      "description": "Payment for order #123",
      "billingAddressLine": "123 Main St",
      "billingCity": "New York",
      "billingState": "NY",
      "billingPostalCode": "10001",
      "billingCountry": "US",
      "customer": {
        "externalId": "CUST-123",
        "firstName": "John",
        "lastName": "Doe",
        "email": "[email protected]",
        "phoneNumber": "+1234567890",
        "active": true,
        "createdAt": "2024-03-20T10:00:00Z",
        "updatedAt": "2024-03-20T10:00:00Z"
      },
      "createdAt": "2024-03-20T10:00:00Z",
      "updatedAt": "2024-03-20T10:00:00Z",
      "paymentMethod": {
        "type": "card",
        "options": {
          "card": {
            "number": "4111111111111111",
            "expiryMonth": "12",
            "expiryYear": "2025",
            "cvc": "123"
          },
          "spei": {
            "clabe": "123456789012345678"
          }
        }
      }
    }
  ],
  "paymentMethod": {
    "type": "SPEI",
    "options": {
      "clabe": "123456789012345678"
    }
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication (required)

x-merchant-id
string
header
required

Merchant ID for identifying the merchant (required)

Body

application/json
paymentOrders
object[]
required

List of payment orders to process

Minimum array length: 2
paymentMethod
object

Response

Payments processed successfully

paymentOrders
object[]
required
paymentMethod
object