---
id: object/table/30145
type: object
title: Table 30145 "Shpfy Refund Line"
summary: Table 30145 "Shpfy Refund Line" in Shopify (Microsoft.Integration.Shopify). 20 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: d6acbdd7cf9b74588df594f6d58bf0eff224c7f3247859a374253f9a77e401d1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Shopify/app/src/Order%20Refunds/Tables/ShpfyRefundLine.Table.al
    title: src/Apps/W1/Shopify/app/src/Order Refunds/Tables/ShpfyRefundLine.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/8554
object_type: table
object_id: 30145
name: Shpfy Refund Line
caption: Refund Line
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: 20
  procedures: 2
  events: 0
  subscribers: 0
relations:
  out: 7
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 30145 "Shpfy Refund Line"

> Table 30145 "Shpfy Refund Line" in Shopify (Microsoft.Integration.Shopify). 20 fields, 2 public procedures. Introduced in BC29, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Caption | Refund Line |
| DataClassification | SystemMetadata |

## 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 | Refund Line Id | BigInteger | — | not editable |
| 2 | Refund Id | BigInteger | — | TableRelation [Table 30142 "Shpfy Refund Header"](../table/30142.md) ("Shpfy Refund Header"."Refund Id"); not editable |
| 3 | Order Line Id | BigInteger | — | TableRelation [Table 30119 "Shpfy Order Line"](../table/30119.md) ("Shpfy Order Line"."Line Id"); not editable |
| 4 | Quantity | Integer | Specifies the quantity of a refunded line item. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | not editable |
| 5 | Restock Type | Enum "Shpfy Restock Type" | Specifies the type of restock for the refunded line item. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | enum [Enum 30140 "Shpfy Restock Type"](../enum/30140.md); not editable |
| 6 | Restocked | boolean | Specifies whether the refunded line item was restocked. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | not editable |
| 7 | Amount | Decimal | Specifies the price of a refunded line item. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | not editable |
| 8 | Presentment Amount | Decimal | Specifies the price in presentment currency of a refunded line item. | not editable |
| 9 | Subtotal Amount | Decimal | Specifies the subtotal price of a refunded line item. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | not editable |
| 10 | Presentment Subtotal Amount | Decimal | Specifies the subtotal price of a refunded line item in presentment currency. | not editable |
| 11 | Total Tax Amount | Decimal | Specifies the total tax charged on a refunded line item. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | not editable |
| 12 | Presentment Total Tax Amount | Decimal | Specifies the total tax charged on a refunded line item in presentment currency. | not editable |
| 13 | Can Create Credit Memo | Boolean | — | not editable |
| 14 | Is Exchange Item | Boolean | Specifies that this refund line was synthesized from a Return.exchangeLineItems entry rather than from a real Shopify refund line. Exchange-item refund lines carry a negative quantity so that the sales credit memo total matches the Shopify refund total without an extra balancing G/L line. | not editable |
| 101 | Item No. | Code[20] | Specifies the value of the Item No. field. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | FlowField: lookup("Shpfy Order Line"."Item No." where("Line Id" = field("Order Line Id"))); not editable |
| 102 | Description | Text[100] | Specifies the value of the Description field. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | FlowField: lookup("Shpfy Order Line".Description where("Line Id" = field("Order Line Id"))); not editable |
| 103 | Variant Code | Code[10] | Specifies the value of the Variant Code field. <small>via [Page 30146 "Shpfy Refund Lines"](../page/30146.md)</small> | FlowField: lookup("Shpfy Order Line"."Variant Code" where("Line Id" = field("Order Line Id"))); not editable |
| 104 | Gift Card | Boolean | — | FlowField: lookup("Shpfy Order Line"."Gift Card" where("Line Id" = field("Order Line Id"))); not editable |
| 105 | Location Id | BigInteger | — | not editable |
| 106 | Unit of Measure Code | Code[10] | — | FlowField: lookup("Shpfy Order Line"."Unit of Measure Code" where("Line Id" = field("Order Line Id"))); not editable |

## Keys

- PK: Refund Id, Refund Line Id (clustered)

## Procedures

- `OrderCurrencyCode(): Code[10]` (internal)
- `PresentmentCurrencyCode(): Code[10]` (internal)

## Triggers

OnDelete

## Relations

- Description: CalcFormula [Table 30119 "Shpfy Order Line"](../table/30119.md)
- Gift Card: CalcFormula [Table 30119 "Shpfy Order Line"](../table/30119.md)
- Item No.: CalcFormula [Table 30119 "Shpfy Order Line"](../table/30119.md)
- Unit of Measure Code: CalcFormula [Table 30119 "Shpfy Order Line"](../table/30119.md)
- Variant Code: CalcFormula [Table 30119 "Shpfy Order Line"](../table/30119.md)
- Order Line Id: TableRelation [Table 30119 "Shpfy Order Line"](../table/30119.md)
- Refund Id: TableRelation [Table 30142 "Shpfy Refund Header"](../table/30142.md)

## Pages and codeunits on this table

- [Page 30146 "Shpfy Refund Lines"](../page/30146.md) (source table)

## Recent changes

- 2026-07-21 [#8554 [Shopify] Fix incorrect G/L line on credit memo for refund with exchange item](../../changes/bcapps/8554.md) (main, BC30, fix)

## 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 Refund Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
