---
id: object/table/30147
type: object
title: Table 30147 "Shpfy Return Header"
summary: Table 30147 "Shpfy Return Header" in Shopify (Microsoft.Integration.Shopify). 15 fields, 2 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - shopify
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: f387ced6960d42f93d5b61a60b7637611c1eb7df33458de6b6191bb5e873824c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Shopify/app/src/Order%20Returns/Tables/ShpfyReturnHeader.Table.al
    title: src/Apps/W1/Shopify/app/src/Order Returns/Tables/ShpfyReturnHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-orders
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/online-store-with-shopify
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 30147
name: Shpfy Return Header
caption: Return Header
namespace: Microsoft.Integration.Shopify
app: Shopify
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 15
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 10
  referenced_by: 2
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 30147 "Shpfy Return Header"

> Table 30147 "Shpfy Return Header" in Shopify (Microsoft.Integration.Shopify). 15 fields, 2 public procedures. Introduced in BC29, still in BC30.

Shopify · Microsoft.Integration.Shopify · captioned "Return Header" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Shopify/app/src/Order%20Returns/Tables/ShpfyReturnHeader.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 30150 "Shpfy Returns"](../page/30150.md) (1 Learn page), [Page 30151 "Shpfy Return"](../page/30151.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | Return Header |
| DataClassification | SystemMetadata |
| LookupPageId | Shpfy Returns |
| DrillDownPageId | Shpfy Returns |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Return Id | BigInteger | Id <small>caption</small> | not editable |
| 2 | Order Id | BigInteger | — | TableRelation [Table 30118 "Shpfy Order Header"](../table/30118.md) ("Shpfy Order Header"."Shopify Order Id"); not editable |
| 3 | Return No. | Text[30] | Specifies the No. of the return. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | not editable |
| 4 | Status | Enum "Shpfy Return Status" | Specifies the status of the return. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | enum [Enum 30136 "Shpfy Return Status"](../enum/30136.md); not editable |
| 5 | Total Quantity | Integer | Specifies the sum of all line item quantities for the return. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | not editable |
| 6 | Decline Reason | Enum "Shpfy Return Decline Reason" | Specifies the reason the customer's return request was declined. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | enum [Enum 30137 "Shpfy Return Decline Reason"](../enum/30137.md); not editable |
| 7 | Decline Note | Blob | — |  |
| 8 | Shop Code | code[20] | Shop code <small>caption</small> | not editable |
| 12 | Discounted Total Amount | Decimal | — | FlowField: sum("Shpfy Return Line"."Discounted Total Amount" where("Return Id" = field("Return Id"))); not editable |
| 13 | Presentment Disc. Total Amt. | Decimal | Presentment Discounted Total Amount <small>caption</small> | FlowField: sum("Shpfy Return Line"."Presentment Disc. Total Amt." where("Return Id" = field("Return Id"))); not editable |
| 101 | Sell-to Customer No. | Code[20] | Specifies the value of the Sell-to Customer No. field. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | FlowField: lookup("Shpfy Order Header"."Sell-to Customer No." where("Shopify Order Id" = field("Order Id"))) |
| 102 | Bill-to Customer No. | Code[20] | Specifies the value of the Bill-to Customer No. field. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | FlowField: lookup("Shpfy Order Header"."Bill-to Customer No." where("Shopify Order Id" = field("Order Id"))) |
| 103 | Sell-to Customer Name | Text[50] | Specifies the value of the Sell-to Customer Name field. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | FlowField: lookup("Shpfy Order Header"."Sell-to Customer Name" where("Shopify Order Id" = field("Order Id"))) |
| 104 | Bill-to Customer Name | Text[50] | Specifies the value of the Bill-to Customer Name field. <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | FlowField: lookup("Shpfy Order Header"."Bill-to Name" where("Shopify Order Id" = field("Order Id"))) |
| 105 | Shopify Order No. | Text[50] | Specifies the unique identifier for the order that appears on the order page in the Shopify admin and the order status page. For example, "#1001", "EN1001", or "1001-A". <small>via [Page 30151 "Shpfy Return"](../page/30151.md)</small> | FlowField: lookup("Shpfy Order Header"."Shopify Order No." where("Shopify Order Id" = field("Order Id"))) |

## Keys

- PK: Return Id (clustered)
- Idx01: Order Id
- Idx02: Return No.

## Procedures

- `GetDeclineNote(): Text` (internal)
- `SetDeclineNote(NewDeclineNote: Text)` (internal)

Plus 2 local procedures.

## Triggers

OnDelete

## Relations

- drill-down page [Page 30150 "Shpfy Returns"](../page/30150.md)
- lookup page [Page 30150 "Shpfy Returns"](../page/30150.md)
- Bill-to Customer Name: CalcFormula [Table 30118 "Shpfy Order Header"](../table/30118.md)
- Bill-to Customer No.: CalcFormula [Table 30118 "Shpfy Order Header"](../table/30118.md)
- Sell-to Customer Name: CalcFormula [Table 30118 "Shpfy Order Header"](../table/30118.md)
- Sell-to Customer No.: CalcFormula [Table 30118 "Shpfy Order Header"](../table/30118.md)
- Shopify Order No.: CalcFormula [Table 30118 "Shpfy Order Header"](../table/30118.md)
- Order Id: TableRelation [Table 30118 "Shpfy Order Header"](../table/30118.md)
- Discounted Total Amount: CalcFormula [Table 30141 "Shpfy Return Line"](../table/30141.md)
- Presentment Disc. Total Amt.: CalcFormula [Table 30141 "Shpfy Return Line"](../table/30141.md)

## Referenced by

2 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 30141 "Shpfy Return Line"](../table/30141.md): Return Id
- [Table 30142 "Shpfy Refund Header"](../table/30142.md): Return No.

## Pages and codeunits on this table

- [Page 30150 "Shpfy Returns"](../page/30150.md) (source table)
- [Page 30151 "Shpfy Return"](../page/30151.md) (source table)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Shpfy Return Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
