> ## Documentation Index
> Fetch the complete documentation index at: https://docs.riseworks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute batch payment (V1 Legacy)

> V1-compatible endpoint to broadcast a previously-signed batch of pay-now payments.



## OpenAPI

````yaml openapi/openapi-v1.yaml POST /v1/payments/batch-pay
openapi: 3.0.3
info:
  title: B2B API V1 (Legacy)
  description: >-
    Rise is a blockchain first platform where by all actions are secured and
    executed on-chain. Rise has blockchain smart-contracts on the Arbitrum
    optimistic rollup chain that control the flow of funds. That means that
    executing a change within the Rise platform requires a wallet with
    permissions on the user or company's RiseID.
  version: 1.0.0
servers:
  - url: https://b2b-api.dev-riseworks.io
    description: Development
  - url: https://b2b-api.staging-riseworks.io
    description: Staging
  - url: https://b2b-api.riseworks.io
    description: Production
security: []
paths:
  /v1/payments/batch-pay:
    post:
      tags:
        - Payments
      summary: Execute batch payment (V1 Legacy)
      description: >-
        V1-compatible endpoint to broadcast a previously-signed batch of pay-now
        payments.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                wallet:
                  type: string
                  description: Wallet address of the payer.
                rise_id:
                  anyOf:
                    - type: string
                    - type: number
                  description: RiseID, address, or team nanoid of the paying team.
                total_amount:
                  anyOf:
                    - type: string
                    - type: number
                payments:
                  type: array
                  items:
                    type: object
                    properties:
                      recipient:
                        anyOf:
                          - type: string
                          - type: number
                        description: RiseID, address, or user nanoid of the payee.
                      amount:
                        anyOf:
                          - type: string
                          - type: number
                        description: Payment amount in micro-USD (1,000,000 = $1.00).
                      salt:
                        anyOf:
                          - type: string
                          - type: number
                        description: Unique salt for this payment.
                      title:
                        description: Optional payment title (max 60 chars).
                        type: string
                      description:
                        description: Optional payment description (max 1000 chars).
                        type: string
                      external_id:
                        description: Optional caller-supplied external reference id.
                        type: string
                    required:
                      - recipient
                      - amount
                      - salt
                request:
                  type: object
                  additionalProperties: {}
                  description: The typed-data request object returned by the sign step.
                signature:
                  type: string
                  description: Signature over the typed data returned by the sign step.
              required:
                - wallet
                - rise_id
                - total_amount
                - payments
                - request
                - signature
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      to:
                        type: string
                        nullable: true
                      from:
                        type: string
                        nullable: true
                      contractAddress:
                        type: string
                        nullable: true
                      transactionIndex:
                        type: number
                      gasUsed:
                        type: object
                        properties:
                          type:
                            type: string
                          hex:
                            type: string
                        required:
                          - type
                          - hex
                        additionalProperties: false
                      logsBloom:
                        type: string
                      blockHash:
                        type: string
                      transactionHash:
                        type: string
                      logs:
                        type: array
                        items:
                          type: object
                          properties:
                            transactionIndex:
                              type: number
                            blockNumber:
                              type: number
                            transactionHash:
                              type: string
                            address:
                              type: string
                            topics:
                              type: array
                              items:
                                type: string
                            data:
                              type: string
                            logIndex:
                              type: number
                            blockHash:
                              type: string
                          required:
                            - transactionIndex
                            - blockNumber
                            - transactionHash
                            - address
                            - topics
                            - data
                            - logIndex
                            - blockHash
                          additionalProperties: false
                      blockNumber:
                        type: number
                      confirmations:
                        type: number
                      cumulativeGasUsed:
                        type: object
                        properties:
                          type:
                            type: string
                          hex:
                            type: string
                        required:
                          - type
                          - hex
                        additionalProperties: false
                      effectiveGasPrice:
                        type: object
                        properties:
                          type:
                            type: string
                          hex:
                            type: string
                        required:
                          - type
                          - hex
                        additionalProperties: false
                      status:
                        type: number
                        nullable: true
                      type:
                        type: number
                      byzantium:
                        type: boolean
                        enum:
                          - true
                    required:
                      - to
                      - from
                      - contractAddress
                      - transactionIndex
                      - gasUsed
                      - logsBloom
                      - blockHash
                      - transactionHash
                      - logs
                      - blockNumber
                      - confirmations
                      - cumulativeGasUsed
                      - effectiveGasPrice
                      - status
                      - type
                      - byzantium
                    additionalProperties: false
                    description: ethers-v5-shaped transaction receipt, matching V1.
                required:
                  - data
                additionalProperties: false
        '400':
          description: Bad Request - Invalid parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                      - Bad Request
                  message:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - invalid_parameters
                      errors:
                        type: object
                        additionalProperties:
                          type: array
                          items:
                            type: string
                    required:
                      - type
                      - errors
                    additionalProperties: false
                required:
                  - error
                  - message
                additionalProperties: false
                description: Bad Request - Invalid parameters
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  data:
                    type: string
                  error_code:
                    type: string
                required:
                  - success
                  - data
                additionalProperties: false
                description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  data:
                    type: string
                  error_code:
                    type: string
                required:
                  - success
                  - data
                additionalProperties: false
                description: Forbidden
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  data:
                    type: string
                  error_code:
                    type: string
                required:
                  - success
                  - data
                additionalProperties: false
                description: Not Found
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  data:
                    type: string
                  error_code:
                    type: string
                required:
                  - success
                  - data
                additionalProperties: false
                description: Internal Server Error
        '504':
          description: Gateway Timeout - transaction not confirmed in time
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  data:
                    type: string
                  error_code:
                    type: string
                required:
                  - success
                  - data
                additionalProperties: false
                description: Gateway Timeout - transaction not confirmed in time

````