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

# Update transaction



## OpenAPI

````yaml patch /{transactionId}
openapi: 3.0.3
info:
  title: API V2
  version: 1.0.0
  contact: {}
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: null
security: []
tags:
  - name: Analytics
  - name: Authentication
  - name: Storefront
  - name: Roles
  - name: Banks
  - name: Products
  - name: Shops
  - name: Roles1
  - name: Bank accounts
  - name: Users
  - name: Payment methods
  - name: Integrations
  - name: Subscriptions
  - name: Currency
  - name: Shipping zones
  - name: Shipping rates
  - name: Policies
  - name: Contact us
  - name: Locations
  - name: Reviews
  - name: Referral
  - name: Stripe
  - name: Campaigns
  - name: Credits
  - name: Product Tags
  - name: Product Attributes
  - name: Product Categories
  - name: Orders
  - name: Discount
  - name: Shipping
  - name: Redeem digital assets
  - name: Coupons
  - name: Currencies
  - name: Shop categories
  - name: Locations1
  - name: Features
  - name: Subscription plan
  - name: Recurring subscription plan
  - name: Shop payments
  - name: QDiscounts
  - name: Order status
  - name: Announcements
  - name: Wishlist
  - name: Transaction status
  - name: Templates
  - name: Config
  - name: Cart management
  - name: Users1
  - name: Profile
  - name: Domains
  - name: Transactions
  - name: Subscriptions1
  - name: Subscription statuses
  - name: Security
  - name: Payments
  - name: Payment methods1
  - name: Payment platforms
  - name: Public
  - name: social
  - name: Shipping1
  - name: Orders1
  - name: Integrations1
  - name: Webhook
  - name: ShopTags
  - name: Themes
paths:
  /{transactionId}:
    parameters:
      - name: transactionId
        in: path
        required: true
        schema:
          type: string
          example: 62ea571509bd2e9be7de9edd
    patch:
      tags:
        - Transactions
      summary: Update transaction
      description: Update transaction
      operationId: updateTransaction
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                breakdown:
                  type: object
                  properties:
                    aggregate:
                      type: number
                      example: 816.875
                    amount:
                      type: number
                      example: 18500
                    bankCharge:
                      type: number
                      example: 76.875
                    payout:
                      type: number
                      example: 17683.125
                    qshopCharge:
                      type: number
                      example: 740
            example:
              breakdown:
                aggregate: 816.875
                amount: 18500
                bankCharge: 76.875
                payout: 17683.125
                qshopCharge: 740
      responses:
        '200':
          description: Update transaction
          headers:
            Access-Control-Allow-Headers:
              schema:
                type: string
                example: >-
                  Content-Type, Authorization, Content-Length, X-Requested-With,
                  Token
            Access-Control-Allow-Methods:
              schema:
                type: string
                example: GET,PUT,POST,DELETE,OPTIONS,PATCH
            Access-Control-Allow-Origin:
              schema:
                type: string
                example: '*'
            Connection:
              schema:
                type: string
                example: keep-alive
            Content-Length:
              schema:
                type: string
                example: '1611'
            Date:
              schema:
                type: string
                example: Thu, 12 Jan 2023 15:29:26 GMT
            ETag:
              schema:
                type: string
                example: W/"64b-Ac3V2DDEltIWm3LdImidJcvhiyo"
            Keep-Alive:
              schema:
                type: string
                example: timeout=5
            X-Powered-By:
              schema:
                type: string
                example: Express
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      __v:
                        type: number
                        example: 0
                      _id:
                        type: string
                        example: 62ea571509bd2e9be7de9edd
                      amount:
                        type: number
                        example: 18500
                      breakdown:
                        type: object
                        properties:
                          aggregate:
                            type: number
                            example: 816.875
                          amount:
                            type: number
                            example: 18500
                          bankCharge:
                            type: number
                            example: 76.875
                          payout:
                            type: number
                            example: 17683.125
                          qshopCharge:
                            type: number
                            example: 740
                      createdAt:
                        type: string
                        example: '2022-08-03T11:08:05.921Z'
                      meta:
                        type: object
                        properties:
                          accountNumber:
                            type: string
                            example: '9978770274'
                          channelId:
                            type: string
                            example: '1'
                          currency:
                            type: string
                            example: NGN
                          feeAmount:
                            type: string
                            example: '500'
                          initiationTranRef:
                            type: string
                            example: ''
                          sessionId:
                            type: string
                            example: '0000042103011805345648005069266636442358859209'
                          settledAmount:
                            type: string
                            example: '18500'
                          settlementId:
                            type: string
                            example: '202210301006807500001631'
                          sourceAccountName:
                            type: string
                            example: CASAFINA CREDIT-EASY LOAN
                          sourceAccountNumber:
                            type: string
                            example: '2093566866'
                          sourceBankName:
                            type: string
                            example: UNITED BANK FOR AFRICA
                          tranDateTime:
                            type: string
                            example: '2021-03-01 18:06:20.000'
                          tranRemarks:
                            type: string
                            example: >-
                              FROM UBA/ CASAFINA CREDIT-EASY LOAN-NIP/SEYI
                              OLUFEMI/CASAFINA
                              CAP/0000042103015656180548005069266636
                          transactionAmount:
                            type: string
                            example: '19000'
                          vatAmount:
                            type: string
                            example: '0'
                          virtualBankAccount:
                            type: object
                            properties:
                              __v:
                                type: number
                                example: 0
                              _id:
                                type: string
                                example: 62ea499b1908431f9caf727b
                              accountName:
                                type: string
                                example: MERCHANT(Qshop/Egoli)
                              accountNumber:
                                type: string
                                example: '9978770274'
                              created:
                                type: string
                                example: '2022-08-03T10:10:35.667Z'
                              isUsed:
                                type: boolean
                                example: true
                              meta:
                                type: object
                                properties:
                                  account_name:
                                    type: string
                                    example: MERCHANT(Qshop/Egoli)
                                  account_number:
                                    type: string
                                    example: '9978770274'
                                  bvn:
                                    type: string
                                    example: ''
                                  requestSuccessful:
                                    type: boolean
                                    example: true
                                  responseCode:
                                    type: string
                                    example: '00'
                                  responseMessage:
                                    type: string
                                    example: Reserved Account Generated Successfully
                              order:
                                type: string
                                example: 62ea498e1908431f9caf7276
                              orderTotal:
                                type: number
                                example: 22000
                              platformKey:
                                type: string
                                example: providus
                              platformName:
                                type: string
                                example: Providus
                              shop:
                                type: string
                                example: 61a956d91a113f7e13c45c15
                      paymentPlatform:
                        type: string
                        example: 61a6406c18ae008099246a8d
                      shop:
                        type: string
                        example: 61a956d91a113f7e13c45c15
                      status:
                        type: string
                        example: 62597ba57b912008a11e1206
                      statusLogs:
                        type: array
                        items:
                          type: string
                          example: 62597ba57b912008a11e1206
                        example:
                          - 62597ba57b912008a11e1206
                      transactionReference:
                        type: string
                        example: '202210301006807500001631'
                      type:
                        type: string
                        example: order-payment
                      virtualBankAccount:
                        type: string
                        example: 62ea499b1908431f9caf727b
                  msg:
                    type: string
                    example: Transaction updated
                  success:
                    type: boolean
                    example: true
              examples:
                Update transaction:
                  value:
                    data:
                      __v: 0
                      _id: 62ea571509bd2e9be7de9edd
                      amount: 18500
                      breakdown:
                        aggregate: 816.875
                        amount: 18500
                        bankCharge: 76.875
                        payout: 17683.125
                        qshopCharge: 740
                      createdAt: '2022-08-03T11:08:05.921Z'
                      meta:
                        accountNumber: '9978770274'
                        channelId: '1'
                        currency: NGN
                        feeAmount: '500'
                        initiationTranRef: ''
                        sessionId: '0000042103011805345648005069266636442358859209'
                        settledAmount: '18500'
                        settlementId: '202210301006807500001631'
                        sourceAccountName: CASAFINA CREDIT-EASY LOAN
                        sourceAccountNumber: '2093566866'
                        sourceBankName: UNITED BANK FOR AFRICA
                        tranDateTime: '2021-03-01 18:06:20.000'
                        tranRemarks: >-
                          FROM UBA/ CASAFINA CREDIT-EASY LOAN-NIP/SEYI
                          OLUFEMI/CASAFINA
                          CAP/0000042103015656180548005069266636
                        transactionAmount: '19000'
                        vatAmount: '0'
                        virtualBankAccount:
                          __v: 0
                          _id: 62ea499b1908431f9caf727b
                          accountName: MERCHANT(Qshop/Egoli)
                          accountNumber: '9978770274'
                          created: '2022-08-03T10:10:35.667Z'
                          isUsed: true
                          meta:
                            account_name: MERCHANT(Qshop/Egoli)
                            account_number: '9978770274'
                            bvn: ''
                            requestSuccessful: true
                            responseCode: '00'
                            responseMessage: Reserved Account Generated Successfully
                          order: 62ea498e1908431f9caf7276
                          orderTotal: 22000
                          platformKey: providus
                          platformName: Providus
                          shop: 61a956d91a113f7e13c45c15
                      paymentPlatform: 61a6406c18ae008099246a8d
                      shop: 61a956d91a113f7e13c45c15
                      status: 62597ba57b912008a11e1206
                      statusLogs:
                        - 62597ba57b912008a11e1206
                      transactionReference: '202210301006807500001631'
                      type: order-payment
                      virtualBankAccount: 62ea499b1908431f9caf727b
                    msg: Transaction updated
                    success: true

````