{
  "data": {
    "is_credit_limit_exceeded": true,
    "payment_with_order": false,
    "invoice_payment_with_order_immediately": false,
    "payment_value": 0,
    "payment_reference": "",
    "payment_method_id": 0,
    "payment_method": {
      "name": "",
      "description": "",
      "bank_account_id": 0,
      "currency_id": 0,
      "card_processing_method": false,
      "id": 0
    },
    "payment_declared": 0,
    "payment_undeclared": 0,
    "declared_payment_remaining": 0,
    "payment_status": {
      "is_partially_invoiced": false,
      "is_amendable": true,
      "is_reference_amendable": true,
      "is_payment_method_amendable": true
    },
    "document_no": "TBA",
    "document_date": "2024-05-24T00:00:00Z",
    "document_status": "EnumDocumentStatusLive",
    "despatch_receipt_status": "EnumDocumentProcessStatusNone",
    "invoice_credit_status": "EnumDocumentProcessStatusNone",
    "cancelled_status": "EnumDocumentProcessStatusNone",
    "customer_type": "EnumCustomerTypeCredit",
    "customer_id": 27867,
    "currency_id": 2103,
    "is_draft": true,
    "exchange_rate": 1,
    "subtotal_goods_value": 0,
    "subtotal_charge_net_value": 0,
    "subtotal_charge_tax_value": 0,
    "subtotal_discount_value": 0,
    "total_net_value": 0,
    "total_tax_value": 0,
    "total_gross_value": 0,
    "customer_document_no": "",
    "use_invoice_address": false,
    "is_triangulated": false,
    "settlement_discount_days": 30,
    "settlement_discount_percent": 2.5,
    "document_discount_percent": 0,
    "available_document_discount_percent": 0,
    "document_created_by": "",
    "requested_delivery_date": "2024-05-24T00:00:00Z",
    "promised_delivery_date": "2024-05-24T00:00:00Z",
    "order_priority": "",
    "analysis_code_1": "",
    "analysis_code_2": "",
    "analysis_code_3": "",
    "analysis_code_4": "",
    "analysis_code_5": "",
    "analysis_code_6": "",
    "analysis_code_7": "",
    "analysis_code_8": "",
    "analysis_code_9": "",
    "analysis_code_10": "",
    "analysis_code_11": "",
    "analysis_code_12": "",
    "analysis_code_13": "",
    "analysis_code_14": "",
    "analysis_code_15": "",
    "analysis_code_16": "",
    "analysis_code_17": "",
    "analysis_code_18": "",
    "analysis_code_19": "",
    "analysis_code_20": "",
    "spare_text_1": "",
    "spare_text_2": "",
    "spare_text_3": "",
    "spare_text_4": "",
    "spare_text_5": "",
    "spare_text_6": "",
    "spare_text_7": "",
    "spare_text_8": "",
    "spare_text_9": "",
    "spare_text_10": "",
    "spare_number_1": 0,
    "spare_number_2": 0,
    "spare_number_3": 0,
    "spare_number_4": 0,
    "spare_number_5": 0,
    "spare_number_6": 0,
    "spare_number_7": 0,
    "spare_number_8": 0,
    "spare_number_9": 0,
    "spare_number_10": 0,
    "spare_bool_1": false,
    "spare_bool_2": false,
    "spare_bool_3": false,
    "spare_bool_4": false,
    "spare_bool_5": false,
    "external_reference": "",
    "customer": {
      "reference": "KIN001",
      "name": "Kinghorn & French",
      "short_name": "Kinghorn",
      "balance": 7398.35,
      "on_hold": false,
      "account_status_type": "AccountStatusActive",
      "status_reason": "",
      "currency_id": 2103,
      "exchange_rate_type": "ExchangeRateSingle",
      "telephone_country_code": "44",
      "telephone_area_code": "0191",
      "telephone_subscriber_number": "676 5656",
      "fax_country_code": "44",
      "fax_area_code": "0191",
      "fax_subscriber_number": "676 5657",
      "website": "www.sage.co.uk",
      "credit_limit": 6000,
      "country_code_id": 13,
      "default_tax_code_id": 1729,
      "vat_number": "GB958 5455 12",
      "account_type": "TradingAccountTypeOpenItem",
      "early_settlement_discount_percent": 2.5,
      "early_settlement_discount_days": 30,
      "payment_terms_days": 30,
      "payment_terms_basis": "PaymentDueFromDocumentDate",
      "credit_bureau_id": 2135,
      "credit_position_id": 1,
      "trading_terms": "30 Days",
      "credit_reference": "BCS34367",
      "account_opened": "2018-10-12T00:00:00Z",
      "last_credit_review": "2024-03-03T00:00:00Z",
      "next_credit_review": "2025-03-03T00:00:00Z",
      "application_date": "2018-10-10T00:00:00Z",
      "date_received": "2018-10-12T00:00:00Z",
      "terms_agreed": true,
      "order_priority": "",
      "months_to_keep_transactions": 36,
      "default_nominal_code_reference": "4002",
      "default_nominal_code_cost_centre": "",
      "default_nominal_code_department": "",
      "analysis_code_1": "Trade",
      "analysis_code_2": "George",
      "analysis_code_3": "Tyne & Wear",
      "analysis_code_4": "",
      "analysis_code_5": "",
      "analysis_code_6": "",
      "analysis_code_7": "",
      "analysis_code_8": "",
      "analysis_code_9": "",
      "analysis_code_10": "",
      "analysis_code_11": "",
      "analysis_code_12": "",
      "analysis_code_13": "",
      "analysis_code_14": "",
      "analysis_code_15": "",
      "analysis_code_16": "",
      "analysis_code_17": "",
      "analysis_code_18": "",
      "analysis_code_19": "",
      "analysis_code_20": "",
      "spare_text_1": "",
      "spare_text_2": "",
      "spare_text_3": "",
      "spare_text_4": "",
      "spare_text_5": "",
      "spare_text_6": "",
      "spare_text_7": "",
      "spare_text_8": "",
      "spare_text_9": "",
      "spare_text_10": "",
      "spare_number_1": 0,
      "spare_number_2": 0,
      "spare_number_3": 0,
      "spare_number_4": 0,
      "spare_number_5": 0,
      "spare_number_6": 0,
      "spare_number_7": 0,
      "spare_number_8": 0,
      "spare_number_9": 0,
      "spare_number_10": 0,
      "spare_bool_1": false,
      "spare_bool_2": false,
      "spare_bool_3": false,
      "spare_bool_4": false,
      "spare_bool_5": false,
      "value_of_current_orders_in_sop": 0,
      "duns_code": "",
      "average_time_to_pay": 0,
      "finance_charge_id": 0,
      "office_type": "Independent",
      "associated_head_office_id": 0,
      "produce_statements_for_customer": false,
      "use_consolidated_billing": false,
      "use_tax_code_as_default": false,
      "invoice_discount_percent": 0,
      "invoice_line_discount_percent": 0,
      "customer_discount_group_id": 0,
      "order_value_discount_id": 0,
      "price_band_id": 37419,
      "main_address": {
        "customer_id": 27867,
        "country": "Great Britain",
        "contact_name": "John Bell",
        "address_1": "98 Cathedral Gardens",
        "address_2": "Benfield Rd",
        "address_3": "Newcastle upon Tyne",
        "address_4": "Tyne & Wear",
        "city": "",
        "county": "",
        "postcode": "NE19 1GH",
        "address_country_code_id": 13,
        "id": 27868,
        "date_time_created": "2024-02-28T14:06:36.62Z",
        "date_time_updated": "2024-02-28T14:23:45.963Z"
      },
      "default_tax_code": {
        "code": 1,
        "name": "Standard rate",
        "tax_rate": 20,
        "terms": "EcTermsNotApplicable",
        "terms_description": "Not Applicable",
        "is_notional_acquisition_tax": false,
        "id": 1729,
        "date_time_created": "2024-02-28T14:03:24.59Z",
        "date_time_updated": "2024-02-28T14:23:46.133Z"
      },
      "country_code": {
        "code": "GB",
        "name": "Great Britain",
        "eu_member": false,
        "id": 13,
        "date_time_created": "2024-02-28T13:38:48.637Z",
        "date_time_updated": "2024-02-28T14:23:46.173Z"
      },
      "currency": {
        "symbol": "£",
        "name": "Pound Sterling",
        "core_currency_rate": 1,
        "euro_currency_rate": 0.714285,
        "currency_iso_code_id": 49,
        "is_base_currency": true,
        "is_euro_currency": false,
        "use_for_new_accounts": true,
        "exchange_rate_type": "ExchangeRateSingle",
        "exchange_rate_amendability_type": "ExchangeAmendabilityAllTransactions",
        "id": 2103,
        "date_time_created": "2024-02-28T14:03:36.533Z",
        "date_time_updated": "2024-02-28T14:23:46.243Z"
      },
      "alerts": [],
      "id": 27867,
      "date_time_created": "2024-02-28T14:06:36.61Z",
      "date_time_updated": "2024-02-28T14:23:45.697Z"
    },
    "currency": {
      "symbol": "£",
      "name": "Pound Sterling",
      "core_currency_rate": 1,
      "euro_currency_rate": 0.714285,
      "currency_iso_code_id": 49,
      "is_base_currency": true,
      "is_euro_currency": false,
      "use_for_new_accounts": true,
      "exchange_rate_type": "ExchangeRateSingle",
      "exchange_rate_amendability_type": "ExchangeAmendabilityAllTransactions",
      "id": 2103,
      "date_time_created": "2024-02-28T14:03:36.533Z",
      "date_time_updated": "2024-02-28T14:23:46.243Z"
    },
    "delivery_address": {
      "contact": "John Bell",
      "postal_name": "Kinghorn & French",
      "country": "",
      "telephone_number": "0191 676 5656",
      "fax_number": "0191 676 5657",
      "email_address": "johnbell@kinghornfrench.co.uk",
      "tax_number": "",
      "tax_code_id": 1729,
      "tax_code": {
        "code": 1,
        "name": "Standard rate",
        "tax_rate": 20,
        "terms": "EcTermsNotApplicable",
        "terms_description": "Not Applicable",
        "is_notional_acquisition_tax": false,
        "id": 1729,
        "date_time_created": "2024-02-28T14:03:24.59Z",
        "date_time_updated": "2024-02-28T14:23:46.133Z"
      },
      "country_code_id": 13,
      "country_code": {
        "code": "GB",
        "name": "Great Britain",
        "eu_member": false,
        "tax_mask": {
          "name": "^[0-9]{3}[\\s]*[0-9]{4}[\\s]*[0-9]{2}$",
          "id": 10,
          "date_time_created": "2024-02-28T13:38:48.74Z",
          "date_time_updated": "2024-02-28T14:23:46.19Z"
        },
        "id": 13,
        "date_time_created": "2024-02-28T13:38:48.637Z",
        "date_time_updated": "2024-02-28T14:23:46.173Z"
      },
      "address_1": "98 Cathedral Gardens",
      "address_2": "Benfied Rd",
      "address_3": "Newcastle upon Tyne",
      "address_4": "Tyne & Wear",
      "city": "",
      "county": "",
      "postcode": "NE19 1GH",
      "id": 82910
    },
    "lines": [],
    "memos": [],
    "profitability": {
      "sop_order_return_id": 82900,
      "estimated_cost_value": 0,
      "estimated_profit_percent_on_revenue": 0,
      "estimated_profit_percent_on_cost": 0,
      "estimated_profit_value": 0,
      "issue_value": 0,
      "realised_cost_value": 0,
      "realised_issue_value": 0,
      "realised_profit_percent_on_revenue": 0,
      "realised_profit_percent_on_cost": 0,
      "realised_profit_value": 0,
      "simple_profit_calculation_only": false,
      "id": 82901,
      "date_time_created": "2024-05-24T00:53:12.14Z",
      "date_time_updated": "2024-05-24T00:53:12.14Z"
    },
    "id": 82900,
    "date_time_created": "2024-05-24T00:53:12.093Z",
    "date_time_updated": "2024-05-24T00:53:12.093Z"
  }
}