Expense Receipt Files

Upload an expense receipt file

Uploads a receipt image or document for later attachment to an expense.

post/v1/expense_receipt_files

Request

  • Base URL
    https://api.paymongo.com
  • URL
    https://api.paymongo.com/v1/expense_receipt_files
  • Auth
    HTTP basic

Request body multipart/form-data

filestring binary required

Receipt file

expirationinteger

Signed URL expiration in minutes

Example request

{
  "expiration": 360
}

Response

Receipt uploaded

approved_countinteger
approved_total_amountinteger
has_moreboolean
pending_countinteger
rejected_countinteger
total_amountinteger

Example response

{
  "approved_count": 1,
  "approved_total_amount": 125000,
  "data": {
    "id": "file_abc123",
    "name": "receipt.pdf",
    "type": "expense_receipt_file",
    "url": "https://files.paymongo.com/expense-receipts/file_abc123"
  },
  "has_more": true,
  "pending_count": 1,
  "total_amount": 250000
}

Changes

No recorded changes to this operation across all 1 revision of this API.