Skip to main content

Overview

The ReceiptsAPI provides methods to add detailed receipt information to transactions, including itemized purchases, tax details, and merchant information. This enables rich transaction data for expense tracking and reporting.

Methods

create()

Add detailed receipt information to a transaction.
Parameters:
  • transaction_id: The unique transaction identifier
  • total: Total receipt amount in pounds
  • currency: Currency code (default “GBP”)
  • merchant_name: Name of the merchant
  • merchant_address: Merchant address (optional)
  • merchant_phone: Merchant phone number (optional)
  • merchant_email: Merchant email (optional)
  • items: List of receipt items (optional)
  • taxes: List of tax details (optional)
Returns: Receipt - The created receipt object

Receipt Creation Examples

Basic Receipt

Create a simple receipt with basic information:

Detailed Receipt with Items

Create a comprehensive receipt with itemized purchases:

Advanced Receipt Management

Grocery Receipt Parser

Parse grocery receipts and create detailed receipt records:

Restaurant Receipt Builder

Create detailed restaurant receipts with tip calculations:

Receipt Analytics

Analyze receipt data for insights:

Best Practices

  1. Accurate totals: Ensure receipt totals match transaction amounts
  2. Detailed items: Include as much item detail as possible for better expense tracking
  3. Tax information: Always include VAT/tax details where applicable
  4. Merchant info: Provide complete merchant information for record keeping
  5. Currency consistency: Use consistent currency codes throughout
  6. Validation: Validate calculated totals against actual transaction amounts
The Receipts API enables comprehensive expense tracking and reporting by adding rich, structured data to transaction records. This is particularly valuable for business expense reporting, tax preparation, and detailed financial analysis.