Skip to content

eBay item sold emails

Parse eBay item sold emails

eBay emails you when an item sells. This layout reads the item, the price it sold for, the buyer's user ID and the order number.

Use this layoutFree plan included: 2 layouts per endpoint.
The email
From
eBay <ebay@ebay.example>
Subject
You sold: Vintage film camera
Your item sold!

Item: Vintage film camera
Sold for: $120.00
Buyer: jdoe_photos
Order number: 12-34567-89012

Ship it by Nov 3 to keep your seller performance up.
What your endpoint delivers
{
  "parsed": {
    "status": "matched",
    "layout": {
      "id": "ebay-sales",
      "name": "eBay sales"
    },
    "fields": {
      "item": "Vintage film camera",
      "price": "120.00",
      "buyer": "jdoe_photos",
      "order": "12-34567-89012"
    },
    "lineItems": []
  }
}

The layout

It matches the email by its subject, reads each field with an RE2 pattern. Edit any of it in the endpoint's settings, where the preview tries it on an email you captured as you type.

{
  "id": "ebay-sales",
  "name": "eBay sales",
  "match": {
    "conditions": [
      {
        "field": "email",
        "name": "subject",
        "op": "starts_with",
        "value": "You sold"
      }
    ]
  },
  "fields": [
    {
      "name": "item",
      "from": "subject",
      "pattern": "You sold:[ \\t]*([^\\r\\n]+)"
    },
    {
      "name": "price",
      "from": "text",
      "pattern": "Sold for:\\s*\\$?([0-9][0-9.,]*)"
    },
    {
      "name": "buyer",
      "from": "text",
      "pattern": "Buyer:\\s*(\\S+)"
    },
    {
      "name": "order",
      "from": "text",
      "pattern": "Order number:\\s*([0-9-]+)"
    }
  ]
}

More senders