---
id: object/page/30251
type: object
title: Page 30251 "APIV2 - Sales Ret. Orders"
summary: Page 30251 "APIV2 - Sales Ret. Orders" in APIV2 (Microsoft.API.V2). Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - apiv2
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: e3e91483c7230f4d5cd62659fc1309aefa0cd368ba3fa114d7933878364f5f1f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2SalesRetOrders.Page.al
    title: src/Apps/W1/APIV2/app/src/pages/APIV2SalesRetOrders.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 30251
name: APIV2 - Sales Ret. Orders
namespace: Microsoft.API.V2
app: APIV2
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: 0
  procedures: 0
  events: 0
  subscribers: 0
  controls: 54
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Page 30251 "APIV2 - Sales Ret. Orders"

> Page 30251 "APIV2 - Sales Ret. Orders" in APIV2 (Microsoft.API.V2). Introduced in BC29, still in BC30.

APIV2 · Microsoft.API.V2 · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2SalesRetOrders.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |
| SourceTable | Sales Header |
| PageType | API |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Group | Id | `Rec.SystemId` | — |
|  | No. | [No.](../table/36.md#fields) | Specifies a unique number that identifies the sales document. The number can be generated automatically from a number series, or you can number each of them manually. <small>from the table field</small> |
|  | External Document No. | [External Document No.](../table/36.md#fields) | Specifies a document number that refers to the customer's or vendor's numbering system. <small>from the table field</small> |
|  | Document Date | [Document Date](../table/36.md#fields) | Specifies the date when the related document was created. <small>from the table field</small> |
|  | Posting Date | [Posting Date](../table/36.md#fields) | Specifies the date when the posting of the sales document will be recorded. <small>from the table field</small> |
|  | Due Date | [Due Date](../table/36.md#fields) | Specifies when the sales invoice must be paid. <small>from the table field</small> |
|  | Sell-to Customer No. | [Sell-to Customer No.](../table/36.md#fields) | Specifies the number of the customer that you're selling to. By default, the same customer is suggested as the ship-to customer. If needed, you can specify a different ship-to customer on the document. <small>from the table field</small> |
|  | Sell-to Customer Name | [Sell-to Customer Name](../table/36.md#fields) | Specifies the name of the customer that you're selling to. By default, the same customer is suggested as the ship-to customer. If needed, you can specify a different ship-to customer on the document. <small>from the table field</small> |
|  | Bill-to Name | [Bill-to Name](../table/36.md#fields) | Specifies the name of the customer that you send or sent the invoice or credit memo to. <small>from the table field</small> |
|  | Bill-to Customer No. | [Bill-to Customer No.](../table/36.md#fields) | Specifies the number of the customer that you send or sent the invoice or credit memo to. <small>from the table field</small> |
|  | Ship-to Name | [Ship-to Name](../table/36.md#fields) | Specifies the name of the customer at the address that the items are shipped to. <small>from the table field</small> |
|  | Ship-to Contact | [Ship-to Contact](../table/36.md#fields) | Specifies the name of the contact person at the address that the items are shipped to. <small>from the table field</small> |
|  | Sell-to Address | [Sell-to Address](../table/36.md#fields) | Specifies the address where the customer is located. <small>from the table field</small> |
|  | Sell-to Address 2 | [Sell-to Address 2](../table/36.md#fields) | Specifies additional address information. <small>from the table field</small> |
|  | Sell-to City | [Sell-to City](../table/36.md#fields) | Specifies the city of the customer on the sales document. <small>from the table field</small> |
|  | Sell-to Country/Region Code | [Sell-to Country/Region Code](../table/36.md#fields) | Specifies the country/region code of the customer's main address. <small>from the table field</small> |
|  | Sell-to County | [Sell-to County](../table/36.md#fields) | Specifies the state, province or county of the address. <small>from the table field</small> |
|  | Sell-to Post Code | [Sell-to Post Code](../table/36.md#fields) | Specifies the postal code of the customer's main address. <small>from the table field</small> |
|  | Ship-to Address | [Ship-to Address](../table/36.md#fields) | Specifies the address that products on the sales document will be shipped to. <small>from the table field</small> |
|  | Ship-to Address 2 | [Ship-to Address 2](../table/36.md#fields) | Specifies additional address information. <small>from the table field</small> |
|  | Ship-to City | [Ship-to City](../table/36.md#fields) | Specifies the city of the customer on the sales document. <small>from the table field</small> |
|  | Ship-to Country/Region Code | [Ship-to Country/Region Code](../table/36.md#fields) | Specifies the country/region code of the address that the items are shipped to. <small>from the table field</small> |
|  | Ship-to County | [Ship-to County](../table/36.md#fields) | Specifies the state, province or county of the address. <small>from the table field</small> |
|  | Ship-to Post Code | [Ship-to Post Code](../table/36.md#fields) | Specifies the postal code of the address that the items are shipped to. <small>from the table field</small> |
|  | Bill-to Address | [Bill-to Address](../table/36.md#fields) | Specifies the address of the customer that you will send the invoice to. <small>from the table field</small> |
|  | Bill-to Address 2 | [Bill-to Address 2](../table/36.md#fields) | Specifies additional address information. <small>from the table field</small> |
|  | Bill-to City | [Bill-to City](../table/36.md#fields) | Specifies the city of the customer on the sales document. <small>from the table field</small> |
|  | Bill-to Country/Region Code | [Bill-to Country/Region Code](../table/36.md#fields) | Specifies the country/region code of the customer's billing address. <small>from the table field</small> |
|  | Bill-to County | [Bill-to County](../table/36.md#fields) | Specifies the state, province or county of the address. <small>from the table field</small> |
|  | Bill-to Post Code | [Bill-to Post Code](../table/36.md#fields) | Specifies the postal code of the customer's billing address. <small>from the table field</small> |
|  | Currency Code | [Currency Code](../table/36.md#fields) | Specifies the currency of amounts on the sales document. <small>from the table field</small> |
|  | Prices Including VAT | [Prices Including VAT](../table/36.md#fields) | Specifies if the Unit Price and Line Amount fields on document lines should be shown with or without VAT. <small>from the table field</small> |
|  | Payment Terms Code | [Payment Terms Code](../table/36.md#fields) | Specifies a formula that calculates the payment due date, payment discount date, and payment discount amount. <small>from the table field</small> |
|  | Shipment Method Code | [Shipment Method Code](../table/36.md#fields) | Specifies the delivery conditions of the related shipment, such as free on board (FOB). <small>from the table field</small> |
|  | Salesperson Code | [Salesperson Code](../table/36.md#fields) | Specifies the name of the salesperson who is assigned to the customer. <small>from the table field</small> |
|  | Order Date | [Order Date](../table/36.md#fields) | Specifies the date when the order was created. <small>from the table field</small> |
|  | Requested Delivery Date | [Requested Delivery Date](../table/36.md#fields) | Specifies the date that the customer has asked for the order to be delivered. <small>from the table field</small> |
|  | Your Reference | [Your Reference](../table/36.md#fields) | Specifies the customer's reference. The content will be printed on sales documents. <small>from the table field</small> |
|  | Location Code | [Location Code](../table/36.md#fields) | Specifies the code for the location from where the items are shipped. When you select the customer and the customer has a location assigned, the value is taken from the Customer card. If the customer has no location, but a Responsibility Center is populated, the location code is taken from the Respo... <small>from the table field</small> |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/36.md#fields) | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 2 Code | [Shortcut Dimension 2 Code](../table/36.md#fields) | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Customer Posting Group | [Customer Posting Group](../table/36.md#fields) | Specifies the customer's market type to link business transactions to. <small>from the table field</small> |
|  | Gen. Bus. Posting Group | [Gen. Bus. Posting Group](../table/36.md#fields) | Specifies the general business posting group that the sales document is linked to. The general business posting group is used to link the sales document to the appropriate general ledger account. <small>from the table field</small> |
|  | VAT Bus. Posting Group | [VAT Bus. Posting Group](../table/36.md#fields) | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. <small>from the table field</small> |
|  | Sell-to Contact | [Sell-to Contact](../table/36.md#fields) | Specifies the name of the contact person at the customer's main address. <small>from the table field</small> |
|  | Bill-to Contact | [Bill-to Contact](../table/36.md#fields) | Specifies the name of the contact person at the customer's billing address. <small>from the table field</small> |
|  | Responsibility Center | [Responsibility Center](../table/36.md#fields) | Specifies the code of the responsibility center, such as a distribution hub, that is associated with the involved user, company, customer, or vendor. <small>from the table field</small> |
|  | Status | [Status](../table/36.md#fields) | Specifies whether the document is open, waiting to be approved, has been invoiced for prepayment, or has been released to the next stage of processing. <small>from the table field</small> |
|  | Last Modified Date Time | `Rec.SystemModifiedAt` | — |
|  | Dimension Set Lines | part [Page 30022 "APIV2 - Dimension Set Lines"](../page/30022.md) | — |
|  | Lines | part [Page 30202 "APIV2 - Sales Ret. Ord. Lines"](../page/30202.md) | — |
|  | PDF Document | part [Page 30056 "APIV2 - PDF Document"](../page/30056.md) | — |
|  | Attachments | part [Page 30039 "APIV2 - Attachments"](../page/30039.md) | — |
|  | Document Attachments | part [Page 30080 "APIV2 - Document Attachments"](../page/30080.md) | — |

## Relations

- source table [Table 36 "Sales Header"](../table/36.md)

## 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: "page", object_name: "APIV2 - Sales Ret. Orders")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
