Upload a provider statement CSV.

POST /api/v1/provider-statement/upload

Headers

  • X-PLANNR-ACCOUNT-UUID string
application/json

Body Required

  • statement_uuid string Required

    Payment period statement UUID, must be unlocked.

  • provider_uuid string Required

    Provider UUID

  • date date Required

    Provider statement date

  • reference string

    Statement reference given by provider

  • statement_transactions array[string] Required

    An array of statement_transactions. Required data are policy_number, gross_amount, and category. If expected payments date is not provided it will use the provider statement date. All amounts must be in pennies. Valid category values are: adhoc, administration, adjustment, bond_renewal, clawback, dss_rebate, fund, indemnity, initial_fee, level, non_indemnity, one_off, ongoing_fee, other_fee, procuration_fee, protected_rights, renewal, switch and unknown. Can also provide extra metadata which can be the rest of the columns of the provider statement.

  • category_mapper array[string]

    Array to convert statement transactions category in to a valid category for Plannr. Array key is original category value and array element is valid category. Valid categories are: adhoc, administration, adjustment, bond_renewal, clawback, dss_rebate, fund, indemnity, initial_fee, level, non_indemnity, one_off, ongoing_fee, other_fee, procuration_fee, protected_rights, renewal, switch and unknown

  • filename string

    Filename of the CSV import statement_transactions.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • created_at string

      The timestamp of when the resource was created.

    • updated_at string

      The timestamp of when the resource was updated.

    • client_name string

      Client name

    • transaction_reference string

      Unique statement transactions reference assigned by the provider

    • policy_number string

      Provider reference of the plan the statement transactions belongs to

    • date string

      Date of when the provider received the statement transactions

    • gross_amount object

      Gross amount

      Hide gross_amount attributes Show gross_amount attributes object
      • amount object
        Hide amount attributes Show amount attributes object
        • example string
        • description string
      • formatted object
        Hide formatted attributes Show formatted attributes object
        • example string
        • description string
      • currency object
        Hide currency attributes Show currency attributes object
        • example string
        • description string
    • net_amount object

      Net amount

      Hide net_amount attributes Show net_amount attributes object
      • amount object
        Hide amount attributes Show amount attributes object
        • example string
        • description string
      • formatted object
        Hide formatted attributes Show formatted attributes object
        • example string
        • description string
      • currency object
        Hide currency attributes Show currency attributes object
        • example string
        • description string
    • category string

      Expected payment category for accurate reporting

    • payment_origin string

      Who is expected to pay this statement transactions

    • agency_number string

      Agency number

    • product_reference string

      Product reference

    • adviser_name string

      Adviser name

    • sender_id_sib_number string

      Sender id sib number

    • reason string

      Reason

    • scheme_name string

      Scheme name

    • scheme_number string

      Scheme number

    • customer_number string

      Customer number

    • policy_market_value string

      Policy market value

    • provider string

      Provider this statement transaction belongs to if provided

    • provider_statement object

      Provider statement this statement transaction belongs to

      Hide provider_statement attributes Show provider_statement attributes object
      • uuid string
      • created_at string
      • updated_at string
      • number integer
      • name string
      • date string
      • reference string
      • filename string
      • origin string
      • provider string
      • statement string
      • statement_transactions_count integer
      • statement_transactions string
      • total_amount object
        Hide total_amount attributes Show total_amount attributes object
        • amount string
        • currency string
        • formatted string
      • reconciled_expectations_amount object
        Hide reconciled_expectations_amount attributes Show reconciled_expectations_amount attributes object
        • amount string
        • currency string
        • formatted string
      • reconciled_expectations_percentage number
      • reconciled_bank_transactions_amount object
        Hide reconciled_bank_transactions_amount attributes Show reconciled_bank_transactions_amount attributes object
        • amount string
        • currency string
        • formatted string
      • reconciled_bank_transactions_percentage number
      • is_fully_reconciled_to_expectations boolean
    • metadata object

      Any metadata that was saved during a CSV import for statement transactions

      Hide metadata attribute Show metadata attribute object
      • client_name string
    • expectation object

      The expectation that the statement transaction has been reconciled against

      Hide expectation attributes Show expectation attributes object
      • uuid string
      • created_at string
      • updated_at string
      • payment_origin string
      • type string
      • category string
      • expected_payment_date string
      • tax_exempt boolean
      • tax integer
      • recurring boolean
      • is_balanced boolean
      • unbalanced_expected_amount object
        Hide unbalanced_expected_amount attributes Show unbalanced_expected_amount attributes object
        • amount object
          Hide amount attributes Show amount attributes object
          • example string
          • description string
        • formatted object
          Hide formatted attributes Show formatted attributes object
          • example string
          • description string
        • currency object
          Hide currency attributes Show currency attributes object
          • example string
          • description string
      • expected_amount object
        Hide expected_amount attributes Show expected_amount attributes object
        • amount object
          Hide amount attributes Show amount attributes object
          • example string
          • description string
        • formatted object
          Hide formatted attributes Show formatted attributes object
          • example string
          • description string
        • currency object
          Hide currency attributes Show currency attributes object
          • example string
          • description string
      • gross_amount object
        Hide gross_amount attributes Show gross_amount attributes object
        • amount object
          Hide amount attributes Show amount attributes object
          • example string
          • description string
        • formatted object
          Hide formatted attributes Show formatted attributes object
          • example string
          • description string
        • currency object
          Hide currency attributes Show currency attributes object
          • example string
          • description string
      • net_amount object
        Hide net_amount attributes Show net_amount attributes object
        • amount object
          Hide amount attributes Show amount attributes object
          • example string
          • description string
        • formatted object
          Hide formatted attributes Show formatted attributes object
          • example string
          • description string
        • currency object
          Hide currency attributes Show currency attributes object
          • example string
          • description string
      • amount object
        Hide amount attributes Show amount attributes object
        • amount object
          Hide amount attributes Show amount attributes object
          • example string
          • description string
        • formatted object
          Hide formatted attributes Show formatted attributes object
          • example string
          • description string
        • currency object
          Hide currency attributes Show currency attributes object
          • example string
          • description string
      • percentage number
      • exclude_from_rmar boolean
      • rmar_type string
      • advice_type string
      • service_type string
      • advice_area_gross object
        Hide advice_area_gross attributes Show advice_area_gross attributes object
        • deposit integer
        • non_regulated integer
        • non_rmar integer
        • non_investment_insurance integer
        • regulated_mortgage integer
        • retail_investment integer
        • other_fca_regulated integer
        • unknown integer
      • advice_area_net object
        Hide advice_area_net attributes Show advice_area_net attributes object
        • deposit integer
        • non_regulated integer
        • non_rmar integer
        • non_investment_insurance integer
        • regulated_mortgage integer
        • retail_investment integer
        • other_fca_regulated integer
        • unknown integer
      • account string
      • seller string
      • author string
      • charge_schedule string
      • chargeable_type string
      • chargeable string
      • statement_transactions string
      • statement string
      • income_splits string
      • firm string
      • notes_count integer
    • bank_transactions array[object]

      The bank payments used to reconcile this statement transaction

      Hide bank_transactions attributes Show bank_transactions attributes object
      • uuid string
      • created_at string
      • updated_at string
      • date string
      • amount object
        Hide amount attributes Show amount attributes object
        • amount string
        • currency string
        • formatted string
      • reference string
      • metadata object
        Hide metadata attribute Show metadata attribute object
        • client_name string
      • filename string
      • bank_statement string
      • statement string
      • account string
      • firm string
    • statement object

      The statement period this statement transaction belongs to

      Hide statement attributes Show statement attributes object
      • uuid string
      • created_at string
      • updated_at string
      • name string
      • start_date string
      • end_date string
      • locked boolean
      • locked_at string
      • locked_by string
      • total_expectations object
        Hide total_expectations attributes Show total_expectations attributes object
        • amount string
        • currency string
        • formatted string
      • total_statement_transactions object
        Hide total_statement_transactions attributes Show total_statement_transactions attributes object
        • amount string
        • currency string
        • formatted string
      • total_bank_transactions object
        Hide total_bank_transactions attributes Show total_bank_transactions attributes object
        • amount string
        • currency string
        • formatted string
      • total_expectation_amount_reconciled_to_bank object
        Hide total_expectation_amount_reconciled_to_bank attributes Show total_expectation_amount_reconciled_to_bank attributes object
        • amount string
        • currency string
        • formatted string
      • total_expectation_percentage_reconciled_to_bank object
        Hide total_expectation_percentage_reconciled_to_bank attributes Show total_expectation_percentage_reconciled_to_bank attributes object
        • amount string
        • currency string
        • formatted string
      • expectations_count integer
      • statement_transactions_count integer
      • statement_transactions string
    • account object

      Account that created this statement transaction

      Hide account attributes Show account attributes object
      • uuid string
      • created_at string
      • updated_at string
      • type string
      • role string
      • first_name string
      • last_name string
      • name string
      • email string
      • firm string
      • primary_phone_number string
      • primary_email string
      • current_time_entry string
      • assigned_adviser string
      • assigned_administrator string
      • assigned_paraplanner string
      • introduced_by string
      • groups string
      • tags string
      • owners string
      • first_contact_date string
      • next_review_date string
      • previous_review_date string
      • anniversary_review_date string
      • with_login boolean
      • has_joint_account boolean
      • can_be_deleted string
      • joint_account_circle string
      • ownership_percentage integer
      • inactive_at string
      • custom_fields string
      • external_references string
    • firm object

      Firm this statement transaction belongs to

      Hide firm attributes Show firm attributes object
      • uuid string
      • created_at string
      • updated_at string
      • name string
      • slug string
      • address_1 string
      • address_2 string
      • town_city string
      • county string
      • postcode string
      • country string
      • regulatory_text string
      • logo_icon string
      • brand_colours object
        Hide brand_colours attributes Show brand_colours attributes object
        • sidebar_background string
        • sidebar_accent string
        • sidebar_text string
        • sidebar_hover string
        • sidebar_active string
        • sidebar_title_background string
        • sidebar_title_primary string
        • sidebar_title_secondary string
        • sidebar_title_secondary_hover string
        • email_background string
        • email_logo_background_panel string
        • email_sub_text string
        • email_button_background string
        • email_button_text string
        • portal_sidebar_button_background string
        • portal_sidebar_button_hover string
        • portal_sidebar_button_active string
        • portal_brand_title string
        • portal_brand_sub_title string
        • portal_sidebar_title string
        • portal_sidebar_text string
        • portal_sidebar_text_hover string
        • portal_sidebar_text_active string
        • portal_sidebar_icon string
        • portal_sidebar_icon_hover string
        • portal_sidebar_icon_active string
        • portal_background string
        • portal_sidebar_account_title string
        • portal_account_email string
        • portal_sidebar_divider string
        • portal_dashboard_bg_one string
        • portal_dashboard_bg_two string
      • is_subscribed boolean
      • addon_subscriptions string
      • keep_deleted_files_for integer
      • tax number
      • month_end integer
      • statement_frequency string
      • billing object
        Hide billing attributes Show billing attributes object
        • invoice_address_1 string
        • invoice_address_2 string
        • invoice_town_city string
        • invoice_county string
        • invoice_postcode string
        • invoice_country string
        • invoice_email string
      • task_board_template string
      • ip_whitelist array[string]
      • welcome_paragraph_html string
      • email_welcome_paragraph_html string
      • show_fact_find_illustrations boolean
POST /api/v1/provider-statement/upload
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/provider-statement/upload' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 --data '{"statement_uuid":"952f9f74-07a5-43d5-a308-023ea4d763ca","provider_uuid":"b6f2643e-dd0b-4ea2-aae5-258858e69ee1","date":"2025-06-25","reference":"SW#8434","statement_transactions":[{"date":"2025-06-23","reason":"Provider Reason","category":"ongoing_fee","metadata":{"postcode":"SW1A 2AA","sub_reference":"8zUvU"},"net_amont":15000,"client_name":"Gareth Thompson","scheme_name":"Scheme name","adviser_name":"Bill Gates","gross_amount":15000,"agency_number":"9oDpG8e7","policy_number":"AVIVA_0001","scheme_number":"Scheme number","customer_number":"Customer number","product_reference":"DUiD3YDK","policy_market_value":"Policy market value","sender_id_sib_number":"Sender ID/SIB number","transaction_reference":"7cs7uLij"},{"category":"renewal","gross_amount":8999,"policy_number":"AVIVA_0002","client_last_name":"Allen","adviser_last_name":"Wayne","client_first_name":"Barry","adviser_first_name":"Bruce"}],"category_mapper":[{"PAYMENT":"initial","ADVISERFEE":"adhoc"}],"filename":"provider-statement_transactions-2022-04-05.csv"}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "statement_uuid": "952f9f74-07a5-43d5-a308-023ea4d763ca",
  "provider_uuid": "b6f2643e-dd0b-4ea2-aae5-258858e69ee1",
  "date": "2025-06-25",
  "reference": "SW#8434",
  "statement_transactions": [
    {
      "date": "2025-06-23",
      "reason": "Provider Reason",
      "category": "ongoing_fee",
      "metadata": {
        "postcode": "SW1A 2AA",
        "sub_reference": "8zUvU"
      },
      "net_amont": 15000,
      "client_name": "Gareth Thompson",
      "scheme_name": "Scheme name",
      "adviser_name": "Bill Gates",
      "gross_amount": 15000,
      "agency_number": "9oDpG8e7",
      "policy_number": "AVIVA_0001",
      "scheme_number": "Scheme number",
      "customer_number": "Customer number",
      "product_reference": "DUiD3YDK",
      "policy_market_value": "Policy market value",
      "sender_id_sib_number": "Sender ID/SIB number",
      "transaction_reference": "7cs7uLij"
    },
    {
      "category": "renewal",
      "gross_amount": 8999,
      "policy_number": "AVIVA_0002",
      "client_last_name": "Allen",
      "adviser_last_name": "Wayne",
      "client_first_name": "Barry",
      "adviser_first_name": "Bruce"
    }
  ],
  "category_mapper": [
    {
      "PAYMENT": "initial",
      "ADVISERFEE": "adhoc"
    }
  ],
  "filename": "provider-statement_transactions-2022-04-05.csv"
}
Response examples (200)
{
  "date": "2025-06-25",
  "firm": {
    "tax": 17.5,
    "logo": "https://api.plannrcrm.com/images/plannr.jpg",
    "name": "Codepotato",
    "slug": "codepotato",
    "uuid": "31d6eded-8424-4814-bea1-3b0f0633f290",
    "county": "Hampshire",
    "billing": {
      "invoice_email": "gareth@codepotato.co.uk",
      "invoice_county": "Hampshire",
      "invoice_country": "United Kingdom",
      "invoice_postcode": "PO7 7YH",
      "invoice_address_1": "Suite E, 5 The Briars",
      "invoice_address_2": "Waterberry Drive",
      "invoice_town_city": "Waterlooville"
    },
    "country": "United Kingdom",
    "postcode": "PO7 7YH",
    "address_1": "Suite E, 5 The Briars",
    "address_2": "Waterberry Drive",
    "logo_icon": "https://api.plannrcrm.com/images/plannr-icon.jpg",
    "month_end": 25,
    "town_city": "Waterlooville",
    "created_at": "2025-06-25T15:10:47+01:00",
    "updated_at": "2025-06-25T15:10:47+01:00",
    "ip_whitelist": [
      "192.168.0.1",
      "127.0.0.1"
    ],
    "brand_colours": {
      "sidebar_text": "#ffffff",
      "sidebar_hover": "#0A0A42",
      "email_sub_text": "#ffffff",
      "sidebar_accent": "#36367E",
      "sidebar_active": "#53DBB8",
      "email_background": "#0E0E56",
      "email_button_text": "#ffffff",
      "portal_background": "#f6f6f6",
      "portal_brand_title": "#323b4b",
      "sidebar_background": "#0E0E56",
      "portal_sidebar_icon": "#828994",
      "portal_sidebar_text": "#323b4b",
      "portal_account_email": "#828994",
      "portal_sidebar_title": "#11151d",
      "sidebar_title_primary": "#FFC634",
      "portal_brand_sub_title": "#828994",
      "portal_sidebar_divider": "#e3e5e9",
      "email_button_background": "#36367E",
      "portal_dashboard_bg_one": "#EF4583",
      "portal_dashboard_bg_two": "#FFC634",
      "sidebar_title_secondary": "#ffffff",
      "sidebar_title_background": "#36367E",
      "portal_sidebar_icon_hover": "#828994",
      "portal_sidebar_text_hover": "#323b4b",
      "portal_sidebar_icon_active": "#828994",
      "portal_sidebar_text_active": "#323b4b",
      "email_logo_background_panel": "#36367E",
      "portal_sidebar_button_hover": "#ffffff",
      "portal_sidebar_account_title": "#11151d",
      "portal_sidebar_button_active": "#ffffff",
      "sidebar_title_secondary_hover": "#ffffff",
      "portal_sidebar_button_background": "#f6f6f6"
    },
    "is_subscribed": true,
    "regulatory_text": "Regulatory text",
    "addon_subscriptions": "App\\Http\\Resources\\Addons\\AddonSubscriptionResource",
    "statement_frequency": "monthly",
    "task_board_template": "App\\Http\\Resources\\Board\\BoardResource",
    "keep_deleted_files_for": 30,
    "welcome_paragraph_html": "<h1>Welcome.</h1>",
    "email_welcome_paragraph_html": "Welcome to Plannr!",
    "show_fact_find_illustrations": true
  },
  "uuid": "60502911-cbb3-4312-81d4-9daa87e3a412",
  "reason": "Reason",
  "account": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "name": "Gareth Thompson",
    "role": "client",
    "tags": "App\\Http\\Resources\\TagResource",
    "type": "client",
    "uuid": "2f1b9939-a76a-4eb6-9bac-15ebbc1a4c54",
    "email": "gareth@codepotato.co.uk",
    "groups": "App\\Http\\Resources\\GroupResource",
    "owners": "App\\Http\\Resources\\AccountResource",
    "last_name": "Thompson",
    "created_at": "2025-06-25T15:10:47+01:00",
    "first_name": "Gareth",
    "updated_at": "2025-06-25T15:10:47+01:00",
    "with_login": true,
    "inactive_at": "2025-06-25",
    "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
    "introduced_by": "App\\Http\\Resources\\AccountResource",
    "primary_email": "App\\Http\\Resources\\ContactDetailResource",
    "can_be_deleted": "false",
    "assigned_adviser": "App\\Http\\Resources\\AccountResource",
    "next_review_date": "2025-06-25T15:10:47+01:00",
    "has_joint_account": true,
    "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
    "first_contact_date": "2025-06-25T15:10:47+01:00",
    "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
    "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
    "joint_account_circle": "App\\Http\\Resources\\CircleResource",
    "ownership_percentage": 100,
    "previous_review_date": "2025-06-25T15:10:47+01:00",
    "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
    "assigned_administrator": "App\\Http\\Resources\\AccountResource",
    "anniversary_review_date": "2025-06-25T15:10:47+01:00"
  },
  "category": "initial_fee",
  "metadata": {
    "client_name": "Gareth Thompson"
  },
  "provider": "Aviva",
  "statement": {
    "name": "01/06/2022 - 30/06/2022",
    "uuid": "f02d88f7-1d41-431d-b364-216d5ac2bf9b",
    "locked": false,
    "end_date": "2022-06-01",
    "locked_at": "2025-06-25T15:10:47+01:00",
    "locked_by": "App\\Http\\Resources\\AccountResource",
    "created_at": "2025-06-25T15:10:47+01:00",
    "start_date": "2022-06-30",
    "updated_at": "2025-06-25T15:10:47+01:00",
    "expectations_count": 6,
    "total_expectations": {
      "amount": "124585",
      "currency": "GBP",
      "formatted": "£1,245.85"
    },
    "statement_transactions": "App\\Http\\Resources\\StatementTransactionResource",
    "total_bank_transactions": {
      "amount": "125599",
      "currency": "GBP",
      "formatted": "£1,255.99"
    },
    "statement_transactions_count": 6,
    "total_statement_transactions": {
      "amount": "125599",
      "currency": "GBP",
      "formatted": "£1,255.99"
    },
    "total_expectation_amount_reconciled_to_bank": {
      "amount": "125599",
      "currency": "GBP",
      "formatted": "£1,255.99"
    },
    "total_expectation_percentage_reconciled_to_bank": {
      "amount": "8570",
      "currency": "GBP",
      "formatted": "£85.70"
    }
  },
  "created_at": "2025-06-25T15:10:47+01:00",
  "net_amount": {
    "amount": {
      "example": "4000",
      "description": "Money amount at their lowest denominator (for example: pennies)"
    },
    "currency": {
      "example": "GBP",
      "description": "Currency of the money"
    },
    "formatted": {
      "example": "£40.00",
      "description": "Money amount formatted with currency"
    }
  },
  "updated_at": "2025-06-25T15:10:47+01:00",
  "client_name": "Gareth Thompson",
  "expectation": {
    "tax": 20,
    "firm": "App\\Http\\Resources\\FirmResource",
    "type": "fee",
    "uuid": "35e22937-24e3-4150-bcad-4b5165da5573",
    "amount": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    },
    "author": "App\\Http\\Resources\\AccountResource",
    "seller": "App\\Http\\Resources\\AccountResource",
    "account": "App\\Http\\Resources\\AccountResource",
    "category": "ongoing_fee",
    "recurring": true,
    "rmar_type": "adviser_charge",
    "statement": "App\\Http\\Resources\\StatementResource",
    "chargeable": "App\\Http\\Resources\\Plans\\PlanResource",
    "created_at": "2025-06-25T15:10:47+01:00",
    "net_amount": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    },
    "percentage": 0.75,
    "tax_exempt": true,
    "updated_at": "2025-06-25T15:10:47+01:00",
    "advice_type": "independent",
    "is_balanced": false,
    "notes_count": 5,
    "gross_amount": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    },
    "service_type": "initial",
    "income_splits": "App\\Http\\Resources\\IncomeSplitResource",
    "payment_origin": "provider",
    "advice_area_net": {
      "deposit": 7500,
      "unknown": 0,
      "non_rmar": 0,
      "non_regulated": 0,
      "retail_investment": 0,
      "regulated_mortgage": 2500,
      "other_fca_regulated": 0,
      "non_investment_insurance": 0
    },
    "charge_schedule": "App\\Http\\Resources\\ChargeResource",
    "chargeable_type": "plan",
    "expected_amount": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    },
    "advice_area_gross": {
      "deposit": 7500,
      "unknown": 0,
      "non_rmar": 0,
      "non_regulated": 0,
      "retail_investment": 0,
      "regulated_mortgage": 2500,
      "other_fca_regulated": 0,
      "non_investment_insurance": 0
    },
    "exclude_from_rmar": true,
    "expected_payment_date": "2025-06-25T15:10:47+01:00",
    "statement_transactions": "App\\Http\\Resources\\StatementTransactionResource",
    "unbalanced_expected_amount": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    }
  },
  "scheme_name": "Scheme name",
  "adviser_name": "Adviser name",
  "gross_amount": {
    "amount": {
      "example": "4000",
      "description": "Money amount at their lowest denominator (for example: pennies)"
    },
    "currency": {
      "example": "GBP",
      "description": "Currency of the money"
    },
    "formatted": {
      "example": "£40.00",
      "description": "Money amount formatted with currency"
    }
  },
  "agency_number": "Agency number",
  "policy_number": "AVIVA_00001",
  "scheme_number": "Scheme number",
  "payment_origin": "provider",
  "customer_number": "Customer number",
  "bank_transactions": [
    {
      "date": "2022-07-15",
      "firm": "App\\Http\\Resources\\FirmResource",
      "uuid": "cff10c19-2419-400e-9e27-a96157ff0f27",
      "amount": {
        "amount": "12399",
        "currency": "GBP",
        "formatted": "£123.99"
      },
      "account": "App\\Http\\Resources\\AccountResource",
      "filename": "Natwest June 2022 Statement.xlsx",
      "metadata": {
        "client_name": "Gareth Thompson"
      },
      "reference": "VitalityLtd",
      "statement": "App\\Http\\Resources\\StatementResource",
      "created_at": "2025-06-25T15:10:47+01:00",
      "updated_at": "2025-06-25T15:10:47+01:00",
      "bank_statement": "App\\Http\\Resources\\BankStatementResource"
    }
  ],
  "product_reference": "Product reference",
  "provider_statement": {
    "date": "2025-06-25",
    "name": "Aviva",
    "uuid": "0d2a5ebf-1767-42fb-8cd6-97107e87356e",
    "number": 23,
    "origin": "upload",
    "filename": "aviva-statement-may.csv",
    "provider": "App\\Http\\Resources\\Plans\\ProviderResource",
    "reference": "SW#8434",
    "statement": "App\\Http\\Resources\\StatementResource",
    "created_at": "2025-06-25T15:10:47+01:00",
    "updated_at": "2025-06-25T15:10:47+01:00",
    "total_amount": {
      "amount": "345895",
      "currency": "GBP",
      "formatted": "£3,458.95"
    },
    "statement_transactions": "App\\Http\\Resources\\StatementTransactionResource",
    "statement_transactions_count": 6,
    "reconciled_expectations_amount": {
      "amount": "12849",
      "currency": "GBP",
      "formatted": "£128.49"
    },
    "reconciled_expectations_percentage": 95.68,
    "is_fully_reconciled_to_expectations": true,
    "reconciled_bank_transactions_amount": {
      "amount": "22985",
      "currency": "GBP",
      "formatted": "£229.85"
    },
    "reconciled_bank_transactions_percentage": 95.68
  },
  "policy_market_value": "Policy market value",
  "sender_id_sib_number": "Sender id sib number",
  "transaction_reference": "Wb5F08cSfG"
}