# Update Submission

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/members/me/receipts/submissions/{submission_id}:
    put:
      summary: Update Submission
      deprecated: false
      description: ''
      tags:
        - API Reference/Public API/Member/Receipts
      parameters:
        - name: submission_id
          in: path
          description: ''
          required: true
          schema:
            type: string
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                receipt_submission:
                  type: object
                  properties:
                    form: &ref_0
                      $ref: '#/components/schemas/Receipt%20Submission%20Form'
                  x-apidog-orders:
                    - form
                  required:
                    - form
                  x-apidog-ignore-properties: []
                timestamp_version:
                  type: string
                  description: >-
                    Time of the last record update. Used to ensure that you edit
                    recent data.
                  format: date-time
                  examples:
                    - '2022-11-15T16:25:58.099512Z'
              x-apidog-orders:
                - receipt_submission
                - timestamp_version
              required:
                - receipt_submission
              x-apidog-ignore-properties: []
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  submission:
                    $ref: '#/components/schemas/Receipt%20Submission'
                x-apidog-orders:
                  - submission
                required:
                  - submission
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BannedMemberResponse'
          headers: {}
          x-apidog-name: Banned member
      security: []
      x-apidog-folder: API Reference/Public API/Member/Receipts
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3577005-run
components:
  schemas:
    Receipt Submission Form:
      type: object
      properties:
        store_id:
          type: integer
          description: ID of store
        transaction_date:
          $ref: '#/components/schemas/date'
        total_amount:
          type: integer
          description: Amount on receipt as string
      x-apidog-orders:
        - store_id
        - transaction_date
        - total_amount
      required:
        - store_id
        - transaction_date
        - total_amount
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    date:
      type: string
      format: date
      examples:
        - '2023-01-15'
      x-apidog-folder: ''
    Receipt Submission:
      type: object
      properties:
        id:
          type: integer
        member_id:
          type: integer
        state:
          type: string
          enum:
            - PENDING
            - ACCEPTED
            - REJECTED
            - MANUAL_VERIFICATION
            - DRAFT
          x-apidog-enum:
            - name: ''
              value: PENDING
              description: ''
            - name: ''
              value: VERIFIED
              description: ''
            - name: ''
              value: FAILED
              description: ''
            - name: ''
              value: MANUAL_VERIFICATION_REQUIRED
              description: ''
        error_messages:
          type: array
          items:
            type: string
        rejection_reasons:
          type: array
          items:
            type: string
        manual_verification_reasons:
          type: array
          items:
            type: string
        file:
          $ref: '#/components/schemas/File'
        form: *ref_0
        prefilled_form: *ref_0
        belongs_to_attendance_challenge:
          type: boolean
          description: >-
            Present only when the [Attendance
            Challenge](https://app.eu.apidog.com/link/project/346351/apis/api-4393862) 
            is enabled for the customer.

            Returns true when the receipt submission is associated with
            Attendance Challenge visit.
        comment:
          type: string
        created_at:
          $ref: '#/components/schemas/date_time.created_at'
        updated_at:
          $ref: '#/components/schemas/date_time.updated_at'
      x-apidog-orders:
        - id
        - member_id
        - state
        - error_messages
        - rejection_reasons
        - manual_verification_reasons
        - file
        - form
        - prefilled_form
        - belongs_to_attendance_challenge
        - comment
        - created_at
        - updated_at
      required:
        - id
        - member_id
        - error_messages
        - rejection_reasons
        - manual_verification_reasons
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    date_time.updated_at:
      type: string
      description: Time of the last record update
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    date_time.created_at:
      type: string
      description: Time of record creation
      format: date-time
      examples:
        - '2022-11-05T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    File:
      type: object
      properties:
        url:
          type: string
          format: uri
          readOnly: true
          examples:
            - https://example.com/image.png
        identifier:
          type: string
          description: Only present when parent record has many files
          examples:
            - '1'
        mime_type:
          type: string
          examples:
            - image/jpeg
          readOnly: true
          description: Only present in certain circumstances
          nullable: true
        created_at:
          type: string
          format: date-time
          examples:
            - '2022-11-09T15:46:00.252860Z'
        updated_at:
          type: string
          format: date-time
          readOnly: true
          examples:
            - '2022-11-09T15:46:00.252860Z'
        image_details:
          type: object
          properties:
            width:
              type: integer
              minimum: 1
            height:
              type: integer
              minimum: 1
          x-apidog-orders:
            - width
            - height
          x-apidog-ignore-properties: []
          nullable: true
      x-apidog-orders:
        - url
        - identifier
        - mime_type
        - created_at
        - updated_at
        - image_details
      required:
        - url
        - created_at
        - updated_at
      readOnly: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    BannedMemberResponse:
      title: ''
      type: object
      properties:
        error:
          type: string
          const: You are banned from using this service
      x-apidog-orders:
        - error
      required:
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```