# Upload the receipt by providing the URL

This endpoint can be used to upload a receipt by providing a URL with a PNG, JPEG, or HEIC extension. Once the receipt is submitted, it goes through a verification process, and upon successful verification, points are awarded to the member. Here, in the request body, you need to select 'raw' to provide the user ID and upload the receipt URL.
Note: For all date-time fields in the request and response, if the timestamp contains a timezone offset after the + symbol (for example, 2024-07-21T12:30:45+05:30), the value after + will be ignored during processing. Only the date and time portion before the + sign will be considered.

Endpoint: POST /receipts - upload receipt by URL
Version: 3.0.0
Security: MuseumPlaceholderAuth

## Security:

  - `MuseumPlaceholderAuth` (unknown)

## Request fields (raw):

  - `userId` (string, required)
    Enter the user ID of the member who wishes to upload the receipt.
    Example: {{user_id}}

  - `file_url` (string, required)
    Enter the receipt URL to be uploaded by the member. The receipt URL extension must be in PNG, JPEG, or HEIC format. The file size must be less than 10MB.
    Example: {{receipt_image_url}}

## Response 200:

  - `200` (unknown)
    Successful Operation

## Response 200 fields (application/json):

  - `submissionId` (string)
    Displays the autogenerated submission ID when the receipt URL was uploaded.
    Example: c68d67d1-2006-11f0-8a74

  - `receiptId` (string)
    Displays the unique receipt ID generated once the receipt URL was uploaded.
    Example: 698381745387396

  - `status` (string)
    Displays the status of the receipt verification process. The status can be 'Pending', 'Points Awarded', or 'Rejected'. When a member uploads a receipt, the status will appear as 'Pending'. Once the receipt is verified and points are awarded, the status will change to 'Points Awarded'. If the receipt is rejected, the status will be 'Rejected'.
    Example: Pending

  - `message` (string)
    Displays whether the receipt verification was successful or not. Any errors or issues encountered during the verification process will be clearly communicated through this message.
    Example: The receipt has been successfully verified.

## Response 400:

  - `400` (unknown)
    AC1084 Oops! The file type you uploaded is not supported. Please try again with a different file format | AC1086 We couldn't generate the receipt URL. Please check the details and try again | AC1087 The receipt URL is not valid. Please verify the URL and try again | AC1089 Oops! The file size is greater than 10MB. Please try again with a smaller file.

## Response 404:

  - `404` (unknown)
    AC1005 No data found | AC1085 It seems like the file URL or data is missing. Please ensure that the file is properly linked and try again

