v1

latestOpenAPI 3.0.12026-07-243902.3 MB
Line Items

Get an Order Line Item

This endpoint allows the retrieval of order line item information using the Extend Line Item ID. Order line items are categorized through a type field. Here are type field definitions that may be helpful:

  • contract - An extended warranty contract has been or will be created from the order line item. This is determined by receiving a Plan ID and Product and will trigger an extended warranty contract to be created.
  • category_contract - A category contract created from line item. This is determined by receiving a valid plan object and products object with one or many products that will be covered by the contract.
  • category_product - A category product is a line item that is covered by a category contract. This is determined by the Product ID being included in the products object of the category contract line item.
  • lead - A lead contract has been created from the order line item. This is determined by receiving no Plan ID on a warrantable Product and will trigger a lead contract to be created.
  • shipments - A shipping protection contract has been created from the order line item. This is determined by receiving Shipment Info and a Quote ID and will trigger a shipping protection contract to be created.
  • non_warrantable - The order line item could not be categorized as a contract, lead, or shipments line item type. This is determined by receiving a non-warrantable product.

Order line items can track the delivery status of a product. Here are delivery status definitions that may be helpful:

  • awaiting_shipment - The product associated to the order line item has not been shipped yet.
  • shipped - The product associated to the order line item has been shipped.

Order line items also have a status that provides helpful high level insights.

  • canceled - The order line item has been canceled. When a line item is canceled, this will trigger a cancellation of an associated Extend contract on the line item.
  • cancel_failed - The attempt to cancel the order line item has failed. This is typically due to logic in Extend’s system preventing the cancelation (e.g. attempt to cancel a line item when there is an associated shipment).
  • contract_failed - The attempt to create an Extend contract from the order line item has failed. This is typically due to expected fields or values being invalid or incorrect on the order line item, specifically at the product, plan, or offers level.
  • contract_pending - A contract that will be created from the order line item is pending a wait period provided on the order.
  • fulfilled - The product on the order line item has been fulfilled (e.g. product is available or will be made available to the customer). Once an order line item is in the fulfilled status, any associated Extend contract to the line item will be created.
  • lead_failed - The attempt to create an Extend lead contract from the order line item has failed. This is typically due to expected fields or values being invalid or incorrect on the order line item.
  • quote_failed - The attempt to create a shipping protection contract from the order line item has failed. This is typically due to expected fields or values being invalid or incorrect on the order line item.
  • pending - An order line item that has been created where the order has a wait period value. This is typically used to create an order that requires a certain time period to pass before it is considered a valid order.
  • refunded - A successful refund has been made by the merchant to the customer on the order line item.
  • unfulfilled - An order line item has been created but the product associated has not been fulfilled yet.
get/line-items/{lineItemId}

Path parameters

lineItemIdstring uuid required
Example:cc957cb3-3d5d-430b-90a2-9ec96ee4c3cf

Unique identifier for an Extend Order Line Item

Headers

Content-Typestring required
Example:application/json

Used to indicate the original media type of the resource (prior to any content encoding applied for sending).

X-Extend-Access-Tokenstring required
Example:ExtendAccessToken

An Extend private API key used to authenticate requests.

Acceptstring required
Example:application/json; version=2022-02-01

Indicates which content types, expressed as MIME types, the client is able to understand, as well as identifies which API version to use in the request.

Response

Successful line item retrieval.

OR
OR
OR
OR
OR
OR

Example response

{
  "contractId": "c57ed096-24ef-49a4-a20a-d1b8bf770980",
  "lineItemTransactionId": "c57ed096-24ef-49a4-a20a-d1b8bf770980",
  "offerId": "7cdabc72-227d-8f76-a9e7-c91de35c2781",
  "offerPlanId": "c57ed096-24ef-49a4-a20a-d1b8bf770980",
  "plan": {
    "id": "10001-misc-elec-adh-replace-1y",
    "purchasePrice": 1999,
    "termsId": "12A",
    "termsVersion": "2",
    "version": "2"
  },
  "product": {
    "deliveryStatus": "shipped",
    "id": "SKU-123-456",
    "purchasePrice": 1999,
    "serialNumber": "123SAD3",
    "purchaseDate": 1652403703000,
    "listPrice": 1999,
    "name": "Shiny Hat 2",
    "mfrWarranty": {
      "url": "https://www.manufacturer.com/warranty"
    },
    "parentReferenceId": "550e8400-e29b-41d4-a716-446655440000"
  },
  "leadToken": "c57ed096-24ef-49a4-a20a-d1b8bf770980",
  "id": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
  "accountId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
  "status": "fulfilled",
  "storeId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
  "orderId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
  "transactionId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3",
  "isProductWarrantabilityVerified": true,
  "fulfilledAt": 1652402394000,
  "refundedAt": 1652402394000,
  "cancelledAt": 1652402394000,
  "createdAt": 1652402394000,
  "updatedAt": 1652402394000,
  "discountAmount": 399,
  "taxCost": 199,
  "adjustments": {
    "calculatedListPrice": 5999,
    "originalPlanId": "3f87b162-3462-4c0c-bb9c-af2b14e025c3"
  },
  "contractFailedReasons": [
    "Contract line requested more coverage than available quantities on the order for at least one product"
  ],
  "analytics": {
    "fulfillmentMethod": "BOPIS"
  },
  "contract": {
    "accountId": "f36feabf-d024-431f-9506-32bfcada1231",
    "adminContractId": "1001609401",
    "adminSyncError": "Update Error: PcmiError: Contract plan expected price is not set, try re-syncing",
    "adminSyncStatus": "synced",
    "cancelledAt": 1651787627000,
    "createdAt": 1651787624000,
    "coverage": {
      "starts": 1651787621000,
      "ends": 1683323621000
    },
    "customer": {
      "billingAddress": {
        "address1": "535 Mission Street",
        "address2": "11th Floor",
        "city": "San Francisco",
        "countryCode": "US",
        "postalCode": "94526",
        "provinceCode": "CA"
      },
      "email": "bobross@gmail.com",
      "name": "Bob Ross",
      "phone": "123-456-7890",
      "shippingAddress": {
        "address1": "535 Mission Street",
        "address2": "11th Floor",
        "city": "San Francisco",
        "countryCode": "US",
        "postalCode": "94526",
        "provinceCode": "CA"
      },
      "type": "consumer",
      "locale": "en-US",
      "region": "US",
      "subdivision": "CA"
    },
    "formId": "1ADJ",
    "id": "cc957cb3-3d5d-430b-90a2-9ec96ee4c3cf",
    "isProductWarrantabilityVerified": true,
    "limitOfLiabilityAmount": 1999,
    "limitOfLiabilityAmountType": "product_purchase_price",
    "listPrice": 1999,
    "orderId": "9778f161-9530-491a-bfdc-5c45214c0a6c",
    "plan": {
      "id": "10001-misc-elec-adh-replace-1y",
      "skuId": "EXT123",
      "termsId": "154ebea0-6c1b-46a4-b166-032246330526",
      "termsVersion": "1",
      "version": 1
    },
    "product": {
      "fulfillmentDate": 1651787629000,
      "listPrice": 3999,
      "manufacturerWarrantyLengthLabor": 6,
      "manufacturerWarrantyLengthParts": 6,
      "purchaseDate": 1651787629000,
      "purchasePrice": 3999,
      "referenceId": "SKU-123-456",
      "reimbursementAmount": 3999,
      "serialNumber": "ABCD123456",
      "name": "Wireless Headphones",
      "transactionId": "6789876212"
    },
    "purchaseCurrency": "USD",
    "purchaseDate": 1651787620000,
    "purchasePrice": 1999,
    "refundedAt": 1651787679000,
    "resellerMerchant": {
      "id": "154ebea0-6c1b-46a4-b166-032246330526",
      "name": "Acme Reseller Company",
      "domain": "https://acme.reseller.com"
    },
    "sellerId": "598b11f3-5514-42f8-bdd5-e13ae866635a",
    "sellerName": "Quality Crafts",
    "status": "live",
    "transactionId": "123928374327464",
    "type": "pcrs",
    "updatedAt": 1651787679000
  }
}