Metadata-Version: 2.4
Name: crossly-buyer
Version: 0.3.1
Summary: Official Python client for the Crossly buyer API: cart, orders, wishlists, offers, cashback.
Home-page: https://crossly.net
Author: Crossly
Author-email: support@crossly.net
License: MIT
Project-URL: Documentation, https://crossly.net/docs/api-quickstart
Project-URL: Source, https://github.com/crossly-dev/crossly-python
Project-URL: Issues, https://github.com/crossly-dev/crossly-python/issues
Project-URL: Changelog, https://github.com/crossly-dev/crossly-python/blob/main/CHANGELOG.md
Project-URL: Sign up, https://crossly.net/register
Keywords: crossly,crosslisting,reselling,ebay,poshmark,mercari,depop,sdk,api
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: urllib3>=1.25.3
Requires-Dist: python-dateutil
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

<!-- Written by codegen/integrations/extras/python/finish.mjs -->
# crossly-buyer

[Crossly](https://crossly.net) is a crosslisting platform for resellers and a marketplace for their buyers.
This package is the official client for the **buyer** API: cart, checkout, orders, wishlists, offers and
cashback, acting for a signed-in Crossly shopper.

## Install

```sh
pip install crossly-buyer
```

Python 3.8 or newer. It authenticates with a buyer OAuth token (`crossly_oat_…`) with `buyer:*` scopes. A seller Personal Access Token is refused by this API.

## First call

```python
import os
from crossly_buyer.client import Crossly

crossly = Crossly(os.environ["CROSSLY_BUYER_TOKEN"])  # crossly_oat_…
orders = crossly.buyer.list_buyer_orders()
for order in orders.data:
    print(order.id, order.status)
```

`crossly.<area>` is the generated `crossly_buyer.api.<area>_api` class bound to one configured client, with retries
(honouring `Retry-After`), an `Idempotency-Key` on every write, pagination helpers (`iter_items`, `iter_pages`)
and typed errors (`crossly_buyer.client.CrosslyError`). The webhook verifier ships as `crossly_buyer.webhooks.verify_webhook`,
with Flask, Django and FastAPI helpers in `crossly_buyer.frameworks`.

Selling on Crossly (listings, crossposting, orders)? Use [`crossly`](https://pypi.org/project/crossly/).

## Links

- Create a free Crossly account: https://crossly.net/register
- API quickstart: https://crossly.net/docs/api-quickstart
- SDK guide: https://crossly.net/docs/api-sdks
- Every endpoint and model: https://github.com/crossly-dev/crossly-python/blob/main/buyer/docs/README.md
- Source, changelog and issues: https://github.com/crossly-dev/crossly-python

MIT licensed. Generated from the public Crossly OpenAPI spec and released automatically, with signed build provenance.
