Origin Energy · Schema

LegacyPaymentInstruction

EnergyAustraliaUtilitiesElectricityGasEnergy RetailConsumer Data RightSmart MeteringSolarDERDemand ResponseEnergy Markets

Properties

Name Type Description
external_account_number string

The account number in the source system. This, along with the import_supplier, will be used to find the account in Kraken.

import_supplier string

The import supplier code that the account was imported on to. This, along with the external_account_number, will be used to find the account in Kraken.

instruction_reference string

The reference of the mandate as known by the vendor.

ledger_code string

The code of the relevant Kraken ledger type for the payment instruction. This code must exist in Kraken.

reference string

The reference of the mandate as known by the vendor.

type string

The payment type of the payment instruction.

use_for_scheduled_payments booleannull

Whether this payment instruction should be used for scheduled payments on a given ledger. If true, this instruction will be set as the payment method for the account's payment schedule.

valid_from stringnull

The date from which the payment instruction is valid.

vendor string

The vendor for the payment instruction.

View JSON Schema on GitHub

JSON Schema

origin-energy-legacy-payment-instruction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/origin-energy/main/json-schema/origin-energy-legacy-payment-instruction-schema.json",
  "title": "LegacyPaymentInstruction",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/origin-energy-post-account-import-api-openapi.yml#/components/schemas/LegacyPaymentInstruction",
  "type": "object",
  "properties": {
    "external_account_number": {
      "type": "string",
      "description": "<p>The account number in the source system. This, along with the <code>import_supplier</code>, will be used to find the account in Kraken.</p>"
    },
    "import_supplier": {
      "enum": [
        "ORIGIN_SOLARFLEX_INACTIVE",
        "ORIGIN",
        "WIN_CONNECT_PARENT",
        "ORIGIN_CNI",
        "ORIGIN_BUSINESS",
        "WIN_CONNECT",
        "ORIGIN_SOLARFLEX",
        "ORIGIN_BUSINESS_NO_CONTRACT"
      ],
      "type": "string",
      "x-spec-enum-id": "9572ea198e3a9787",
      "description": "<p>The import supplier code that the account was imported on to. This, along with the <code>external_account_number</code>, will be used to find the account in Kraken.</p>",
      "x-enum-descriptions": {
        "ORIGIN_SOLARFLEX_INACTIVE": "Origin SolarFlex Inactive",
        "ORIGIN": "Origin",
        "WIN_CONNECT_PARENT": "Win Connect Parent",
        "ORIGIN_CNI": "Origin CNI",
        "ORIGIN_BUSINESS": "Origin Zero Business Import Supplier",
        "WIN_CONNECT": "WinConnect",
        "ORIGIN_SOLARFLEX": "Origin SolarFlex",
        "ORIGIN_BUSINESS_NO_CONTRACT": "Origin Business - No Contracts e.g. trustee"
      }
    },
    "instruction_reference": {
      "type": "string",
      "description": "<p>The reference of the mandate as known by the vendor.</p>",
      "deprecated": true,
      "x-use-instead": "reference",
      "maxLength": 128
    },
    "ledger_code": {
      "type": "string",
      "description": "<p>The code of the relevant Kraken ledger type for the payment instruction. This code must exist in Kraken.</p>",
      "x-validators": [
        {
          "name": "Validate ledger code",
          "description": "Validates that the ledger code provided in the payload matches an available ledger type in Kraken.",
          "possible_errors": [
            "ledger_code_does_not_exist"
          ]
        }
      ]
    },
    "reference": {
      "type": "string",
      "description": "<p>The reference of the mandate as known by the vendor.</p>",
      "maxLength": 512
    },
    "type": {
      "enum": [
        "BPAY",
        "CARD",
        "CUSTOM",
        "DIRECT_DEBIT",
        "GMO_REFUND",
        "PAYMENT_SLIP"
      ],
      "type": "string",
      "x-spec-enum-id": "601d0b035869d4dd",
      "description": "<p>The payment type of the payment instruction.</p>",
      "x-enum-descriptions": {
        "BPAY": "BPAY",
        "CARD": "Card",
        "CUSTOM": "Custom",
        "DIRECT_DEBIT": "Direct Debit",
        "GMO_REFUND": "GMO Refund",
        "PAYMENT_SLIP": "Payment slip"
      }
    },
    "use_for_scheduled_payments": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<p>Whether this payment instruction should be used for scheduled payments on a given ledger. If true, this instruction will be set as the payment method for the account's payment schedule.</p>"
    },
    "valid_from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "<p>The date from which the payment instruction is valid.</p>"
    },
    "vendor": {
      "enum": [
        "WESTPAC"
      ],
      "type": "string",
      "x-spec-enum-id": "19baa89b6ef9d00c",
      "description": "<p>The vendor for the payment instruction.</p>",
      "x-enum-descriptions": {
        "WESTPAC": "Westpac"
      }
    }
  },
  "required": [
    "external_account_number",
    "import_supplier",
    "type",
    "vendor"
  ],
  "x-validators": [
    {
      "name": "Validate that account data is staged and account created",
      "description": "Validate that an account exists for the <code>external_account_number</code> and <code>import_supplier</code> code. This means that the import data must already have been staged and processed into an account.",
      "possible_errors": [
        "account_not_found",
        "import_process_does_not_exist"
      ]
    },
    {
      "name": "Validate that migration is ongoing",
      "description": "Validate whether or not an import supplier is open for further data migration.",
      "possible_errors": [
        "import_supplier_migration_not_ongoing"
      ]
    },
    {
      "name": "Validate that either <code>⁨instruction_reference⁩</code> or <code>⁨reference⁩</code> are provided",
      "description": "Validate that exactly one of <code>⁨instruction_reference⁩</code> or <code>⁨reference⁩</code> is provided.",
      "possible_errors": [
        "mutually_exclusive_field_required"
      ]
    }
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/origin-energy-legacy-payment-instruction"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.