> ## 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.

# Prepare instant payment (V1 Legacy)

> V1-compatible endpoint to prepare a single pay-now payment for signing. Returns EIP-712 typed data.



## OpenAPI

````yaml openapi/openapi-v1.yaml PUT /v1/payments/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/pay:
    put:
      tags:
        - Payments
      summary: Prepare instant payment (V1 Legacy)
      description: >-
        V1-compatible endpoint to prepare a single pay-now payment for signing.
        Returns EIP-712 typed data.
      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.
                payee:
                  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.
              required:
                - wallet
                - rise_id
                - payee
                - amount
                - salt
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      domain:
                        type: object
                        additionalProperties: {}
                        description: EIP-712 domain separator.
                      types:
                        type: object
                        additionalProperties: {}
                        description: EIP-712 type definitions.
                      message:
                        description: EIP-712 typed-data message to sign.
                      primaryType:
                        type: string
                        description: EIP-712 primary type name.
                      descriptor:
                        type: object
                        additionalProperties: {}
                        description: >-
                          V1 instant-pay sign returned a descriptor object; V2
                          has no equivalent so this is always empty.
                    required:
                      - domain
                      - types
                      - message
                      - primaryType
                      - descriptor
                    additionalProperties: {}
                  duplicates:
                    type: object
                    properties:
                      days_checked:
                        type: number
                      payments:
                        type: array
                        items:
                          type: object
                          properties:
                            to:
                              type: string
                            amount_cents:
                              type: number
                            currency_symbol:
                              type: string
                            invoice_description:
                              type: string
                            payment_details:
                              type: string
                            external_id:
                              type: string
                            created_at:
                              anyOf:
                                - type: string
                                - type: string
                                  format: date-time
                          required:
                            - to
                            - amount_cents
                            - currency_symbol
                            - invoice_description
                            - payment_details
                            - external_id
                            - created_at
                          additionalProperties: false
                    required:
                      - days_checked
                      - payments
                    additionalProperties: false
                    description: >-
                      Present only when potential duplicate payments (same
                      payee/amount within the lookback window) were detected.
                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

````