Expense Receipt Files

Retrieve an expense receipt file

Returns file metadata and a fresh signed download URL for an account-scoped receipt.

get/v1/expense_receipt_files/{id}

Request

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

Path parameters

idstring required

Receipt file ID

Query parameters

account_idstring

Receipt owner account ID; defaults to the authenticated organization

expirationinteger

Signed URL expiration in minutes

Response

Receipt retrieved

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.