# DR12 - List lines of a document request

Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:dateCreated - Sort by creation date (asc by default)

Endpoint: GET /api/document-request/{document_request_id}/lines

## Path parameters:

  - `document_request_id` (string, required)
    Document Request identifier

## Query parameters:

  - `shop_id` (integer)
    Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

## Response 200 fields (application/json):

  - `data` (array, required)
    Page of data

  - `data.delivery_bill_information` (array)
    The delivery bill information.

  - `data.delivery_bill_information.delivery_bill_date` (string)
    The delivery bill date.

  - `data.delivery_bill_information.delivery_bill_id` (string)
    The delivery bill identifier.

  - `data.eco_contributions` (array)
    List of eco-contributions that apply to the accounting document request line.

This is only available:
- if the operator activates the circular economy information collection,
- and when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.eco_contributions.epr_category_code` (string)
    Extended Producer Responsibility category.

  - `data.eco_contributions.total_amount` (number)
    The total eco-contribution amount.

  - `data.eco_contributions.unit_amount` (number)
    The unit eco-contribution amount.

  - `data.eco_contributions.producer_id` (string)
    Producer identifier of the eco-contribution.

This is always null.

  - `data.eco_contributions.producer_id_owner` (string)
    Owner of the producer_id.

This is always null.

  - `data.entity_id` (string, required)
    The identifier of the entity the accounting document request line relates to.

  - `data.entity_type` (string, required)
    The type of the entity the accounting document request line relates to.
    Enum: "PRODUCT_DEBIT", "PRODUCT_CREDIT_CANCEL", "PRODUCT_CREDIT_CANCEL_COMMERCIAL_GESTURE", "PRODUCT_CREDIT_CANCEL_ADJUSTMENT", "PRODUCT_CREDIT_REFUND", "PRODUCT_CREDIT_REFUND_COMMERCIAL_GESTURE", "PRODUCT_CREDIT_REFUND_ADJUSTMENT", "PURCHASE_ORDER_DEBIT", "PURCHASE_ORDER_CREDIT", "FEES_DEBIT_COMMISSION", "FEES_CREDIT_COMMISSION_REFUND", "FEES_DEBIT_SUBSCRIPTION", "FEES_DEBIT_SELLER_FEE_ON_ORDER", "FEES_DEBIT_SELLER_PENALTY_FEE", "FEES_CREDIT_ONE_OFF", "FEES_DEBIT_ONE_OFF"

  - `data.fees_excluding_taxes` (array)
    The fees applied to the order line.

This may be provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.fees_excluding_taxes.amount` (number, required)
    The fee amount.

  - `data.fees_excluding_taxes.code` (string, required)
    The fee code.

  - `data.fees_excluding_taxes.label` (string, required)
    The fee label.

  - `data.id` (string, required)
    The accounting document request line unique identifier.

  - `data.order` (object)
    The order the accounting document request line relates to.

This is only provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.order.commercial_id` (string)
    The order's commercial identifier.

  - `data.order.date_created` (string)
    The order creation date.

  - `data.order.id` (string, required)
    The order identifier.

  - `data.order.reference_for_customer` (string)
    The order reference for the customer.

  - `data.order.reference_for_seller` (string)
    The order reference for the seller.

  - `data.order.transaction_info` (object)
    The transaction information, if any.

  - `data.order.transaction_info.date` (string, required)
    The transaction date.

  - `data.order.transaction_info.number` (string, required)
    The transaction number.

  - `data.order_line` (object)
    The order line the accounting document request line relates to.

This may be provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.order_line.id` (string, required)
    The order line identifier.

  - `data.origin_unit_price_excluding_taxes` (number)
    The original unit price, excluding tax, of the offer associated with the order line.

This may be provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.origin_unit_price_including_taxes` (number)
    The original unit price including tax of the offer associated with the order line.

This may be provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.price_excluding_taxes` (number, required)
    The price excluding taxes for the accounting document request line (after promotions).

  - `data.product` (object)
    The product the accounting document request line relates to.

This is only provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.product.references` (array, required)
    The product references.

  - `data.product.references.reference` (string, required)
    The value of the product reference.

  - `data.product.references.type` (string, required)
    The type of the product reference.

  - `data.product.sku` (string)
    The product SKU.

  - `data.product.title` (string, required)
    The product title.

  - `data.quantity` (integer, required)
    The quantity for the accounting document request line.

  - `data.shipping_from` (object)
    From where (country or full address) the order line is shipped.

This may be provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.shipping_from.address` (object)
    The address from where the order line is shipped.

  - `data.shipping_from.address.city` (string)
    The city of the shipping origin address.

  - `data.shipping_from.address.country_iso_code` (string, required)
    The ISO 3166-1 alpha-3 country code of the shipping origin address.

  - `data.shipping_from.address.state` (string)
    The state, province, or region of the shipping origin address.

  - `data.shipping_from.address.street1` (string)
    The primary line of the shipping origin street address (e.g., street number and name).

  - `data.shipping_from.address.street2` (string)
    The secondary line of the shipping origin street address (e.g., building, floor, or suite number).

  - `data.shipping_from.address.zip_code` (string)
    The postal or zip code of the shipping origin address.

  - `data.shipping_price_excluding_taxes` (number)
    The shipping price excluding taxes for the accounting document request line.

This is only provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.shipping_taxes` (array)
    The shipping tax breakdown for the accounting document request line, by tax code and rate.

This is only provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.shipping_taxes.amount` (number, required)
    The tax amount.

  - `data.shipping_taxes.code` (string, required)
    The tax code.

  - `data.shipping_taxes.rate` (number)
    The tax rate.

  - `data.shipping_to` (object)
    To where (country or full address) the order line is shipped.

This may be provided when entity_type is PRODUCT_ or PURCHASE_ORDER_.

  - `data.shipping_to.address` (object)
    The address to where the order line is shipped.

  - `data.shipping_to.address.city` (string)
    The city of the shipping destination address.

  - `data.shipping_to.address.civility` (string)
    The civility or title of the recipient (e.g., Mr., Mrs., Dr.).

  - `data.shipping_to.address.company` (string)
    The company or organization name of the shipping destination.

  - `data.shipping_to.address.company2` (string)
    The secondary company or organization name of the shipping destination (e.g., department or subsidiary).

  - `data.shipping_to.address.country_iso_code` (string)
    The ISO 3166-1 alpha-3 country code of the shipping destination address.

  - `data.shipping_to.address.firstname` (string)
    The first name of the recipient.

  - `data.shipping_to.address.lastname` (string)
    The last name of the recipient.

  - `data.shipping_to.address.phone` (string)
    The primary phone number of the recipient.

  - `data.shipping_to.address.phone_secondary` (string)
    The secondary phone number of the recipient.

  - `data.shipping_to.address.state` (string)
    The state, province, or region of the shipping destination address.

  - `data.shipping_to.address.street1` (string)
    The primary line of the shipping destination street address (e.g., street number and name).

  - `data.shipping_to.address.street2` (string)
    The secondary line of the shipping destination street address (e.g., building, floor, or suite number).

  - `data.shipping_to.address.zip_code` (string)
    The postal or zip code of the shipping destination address.

  - `data.shop` (object, required)
    The shop the accounting document request line relates to.

  - `data.shop.id` (integer, required)
    The shop identifier.

  - `data.tax_legal_notice` (string)
    The legal notice applying to the accounting document request line.

  - `data.taxes` (array, required)
    The taxes breakdown for the accounting document request line, by tax code and rate.

  - `data.taxes.amount` (number, required)
    The tax amount.

  - `data.taxes.code` (string, required)
    The tax code.

  - `data.taxes.rate` (number)
    The tax rate.

  - `data.total_price_including_taxes` (number, required)
    The total price for the accounting document request line.

  - `data.unit_price_excluding_taxes` (number, required)
    The unit price excluding taxes for the accounting document request line (after promotions).

  - `next_page_token` (string)
    Token to access the next page. Absent if the current page is the last one.

  - `previous_page_token` (string)
    Token to access the previous page. Absent if the current page is the first one.


