Good parts. A second life. A better way to buy.Private preview

Partner API

For yard management and listing tools. Send a seller's used-parts inventory to Only Partz and keep prices, stock and sold items in step, with one key per seller.

How a seller connects your tool

  1. We register your tool once. Ask us; it takes a name and a website.
  2. The seller opens Yard Studio, "eBay and channels", "Only Partz", "Listing tools", picks your tool and creates a key.
  3. The seller gives you the key. It acts for that one business only, expires on the date they chose, and they can revoke it at any time.

Keep keys on your server. Calls from a browser are refused.

Check the key

curl https://www.onlypartz.com/api/v1/connection \
  -H "Authorization: Bearer opz_xxxxxxxx_your-seller-key"

Send a listing

Use your own id for the listing in the address. The same call creates it the first time and updates it afterwards, so repeating a call after a timeout never makes a duplicate.

curl -X PUT https://www.onlypartz.com/api/v1/listings/SKU-48213 \
  -H "Authorization: Bearer opz_xxxxxxxx_your-seller-key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "2016 BMW X5 F15 Left Tail Light 7290103 OEM",
    "priceCents": 18500,
    "quantity": 1,
    "sku": "SKU-48213",
    "partNumbers": ["7290103"],
    "images": ["https://your-cdn.example/48213-1.jpg"],
    "fitment": { "vehicles": [
      { "year": 2016, "make": "BMW", "model": "X5" },
      { "year": 2017, "make": "BMW", "model": "X5" }
    ] }
  }'
  • Photos stay with you. Send https links; we show the pictures from your address and don't copy them.
  • Category is optional. Send a part type id from /categories, or leave it out and we work it out from the title.
  • Money is whole US cents. Unknown fields are refused, so a typo doesn't pass silently.
  • An active listing needs a title, a price and one photo. Send "status": "paused" until it has them.

When a part sells somewhere else

End it straight away, so it can't be sold twice:

curl -X DELETE "https://www.onlypartz.com/api/v1/listings/SKU-48213?reason=sold" \
  -H "Authorization: Bearer opz_xxxxxxxx_your-seller-key"

Nothing is deleted. The listing leaves the marketplace and its record is kept. Use reason=removed for anything that isn't a sale.

Whole inventories

POST /listings/bulk takes up to 100 creates, updates and ends in one call and answers with one result per item. GET /listings pages through what you have sent, 100 at a time, so you can reconcile after a gap.

Each connection may make 120 requests a minute. With bulk calls that is up to 12,000 listings a minute.

Answers and errors

Success is { "data": …, "requestId": "…" }. Errors are { "error": { "code", "message", "requestId" } } with a message written for a person.

  • 401: the key is wrong, expired or revoked. Stop and ask the seller for a new one.
  • 403: the seller didn't grant that permission, or your tool is suspended.
  • 422: the listing has a problem; the message lists every one.
  • 429: slow down and honor Retry-After.
  • 5xx: send the same request again.

Rules that apply to every listing

  • Airbags, seatbelts and catalytic converters are accepted but stay hidden until the seller verifies the donor car in Yard Studio.
  • A listing can be held for review after a report. heldForReview and onMarketplace in every answer tell you what buyers see.
  • Your tool is the source of truth for the listings it sends: your next update replaces edits the seller made to them in Yard Studio.

Full reference

The complete description, for code generators and API clients: /api/v1/openapi.json.

Not in this version yet: buyer messages and offers, orders, and change notifications. Tell us which you need first.

Contact us

A question about one part goes to its seller: open the part and choose Message seller.

For anything else, write to the Only Partz team. Include the stock number from the part page if it is about a part.