# anyshop > anyshop is checkout and delivery for software and digital products. A seller gets a store, a hosted checkout, buy buttons for any site and a headless checkout for their own, and anyshop delivers what was bought: serial keys from stock, license keys that apps activate and check, files, or an answer from the seller's own server. Buyers pay the seller's own Stripe, PayPal or crypto wallet, so the money never passes through anyshop. Developers build on it with a REST API (v1, JSON over HTTPS, described by an OpenAPI 3.1 document), signed webhooks, and public license checks that need no API key. - API base URL: https://api.anyshop.io/v1. JSON over HTTPS; amounts are integers in minor units of the store currency, times are ISO 8601 in UTC. - [OpenAPI 3.1 document](https://api.anyshop.io/v1/openapi.json): every endpoint, parameter and schema, generated from the routes the API runs on. - Authentication: send an API key as a Bearer token, `Authorization: Bearer as_live_...`. Every key is a live key and starts with `as_live_`. The seller creates keys in the anyshop dashboard under Developers, API keys, each with the scopes it may use. A key belongs to one store; keep it on a server, never in a browser or an app. - Public license checks, called from the seller's app with no API key (the license key is the credential): - [Validate a license](https://docs.anyshop.io/reference/validate-license.md): `POST https://api.anyshop.io/v1/licenses/validate` - [Activate a license](https://docs.anyshop.io/reference/activate-license.md): `POST https://api.anyshop.io/v1/licenses/activate` - [Deactivate a license](https://docs.anyshop.io/reference/deactivate-license.md): `POST https://api.anyshop.io/v1/licenses/deactivate` - [Get an offline license file](https://docs.anyshop.io/reference/offline-license-file.md): `POST https://api.anyshop.io/v1/licenses/offline` ## Get started - [Overview](https://docs.anyshop.io/index.md): Products, stock, orders, licenses and webhooks of your store, over one REST API at api.anyshop.io. - [Quickstart](https://docs.anyshop.io/quickstart.md): Create a product, add keys, publish it, hear about the order on your server, then buy it once and refund it. ## Guides - [Payments with Stripe](https://docs.anyshop.io/guides/stripe.md): Connect your own Stripe account with a restricted key, and buyers pay on Stripe's own page with every way to pay you turn on: cards, wallets, bank debits and more. anyshop takes 0%. - [Check licenses in your app](https://docs.anyshop.io/guides/licenses.md): Activate a license on a device within its limit, validate it on launch, and work offline with a signed file. - [React to orders](https://docs.anyshop.io/guides/webhooks.md): Standard Webhooks signatures, retries for 3 days, and replays of anything your server missed. - [Headless checkout](https://docs.anyshop.io/guides/headless-checkout.md): Your server starts a checkout, the buyer pays on Stripe's or PayPal's own page or anyshop's, and comes back to your pages. The amount always comes from your prices. - [Buy buttons](https://docs.anyshop.io/guides/buy-buttons.md): One script tag and a button sell a product from any page. On your own sites, checkout opens in an overlay; anywhere else, in a new tab. - [Delivery from your server](https://docs.anyshop.io/guides/dynamic-delivery.md): When an order is paid, anyshop asks your server what the buyer gets, signed like a webhook, and delivers your answer: a code, some text or a link. ## API reference - [API reference](https://docs.anyshop.io/reference.md): The anyshop REST API: authentication, errors, pagination, idempotency, rate limits, and every endpoint. - [Error codes](https://docs.anyshop.io/errors.md): Each error's HTTP status, type and code, when it happens and what your code does about it. The public license checks answer with a shorter body of their own. - [Changelog and versioning](https://docs.anyshop.io/changelog.md): What changed for developers, newest first, and what you can count on while the API is v1. ## API reference: The API - [The OpenAPI document](https://docs.anyshop.io/reference/get-open-api.md): GET /v1/openapi.json - [The API index](https://docs.anyshop.io/reference/get-api.md): GET /v1. The API's version and where its reference is. ## API reference: Products - [List products](https://docs.anyshop.io/reference/list-products.md): GET /v1/products - [Create a product](https://docs.anyshop.io/reference/create-product.md): POST /v1/products - [Retrieve a product](https://docs.anyshop.io/reference/get-product.md): GET /v1/products/{id} - [Update a product](https://docs.anyshop.io/reference/update-product.md): PATCH /v1/products/{id} - [Publish a product](https://docs.anyshop.io/reference/publish-product.md): POST /v1/products/{id}/publish. Publish a product (it goes on sale). - [Unpublish a product](https://docs.anyshop.io/reference/unpublish-product.md): POST /v1/products/{id}/unpublish. Unpublish a product (off sale, back to draft). ## API reference: Stock - [Stock counts](https://docs.anyshop.io/reference/get-stock.md): GET /v1/products/{id}/stock. Stock counts of a serial key product, in the key's mode. - [List stock keys](https://docs.anyshop.io/reference/list-stock-items.md): GET /v1/products/{id}/stock_items. List a product's stock keys, masked. - [Add stock keys](https://docs.anyshop.io/reference/add-stock-items.md): POST /v1/products/{id}/stock_items. Add keys to a product's stock. - [Revoke a stock key](https://docs.anyshop.io/reference/revoke-stock-item.md): DELETE /v1/stock_items/{id}. Revoke a stock key (never sold). - [Reveal a stock key](https://docs.anyshop.io/reference/reveal-stock-item.md): POST /v1/stock_items/{id}/reveal. Reveal one stock key in full (audited). ## API reference: Coupons - [List coupons](https://docs.anyshop.io/reference/list-coupons.md): GET /v1/coupons. List coupons, newest first. - [Create a coupon](https://docs.anyshop.io/reference/create-coupon.md): POST /v1/coupons - [Retrieve a coupon](https://docs.anyshop.io/reference/get-coupon.md): GET /v1/coupons/{id} - [Update a coupon](https://docs.anyshop.io/reference/update-coupon.md): PATCH /v1/coupons/{id} - [Archive a coupon](https://docs.anyshop.io/reference/archive-coupon.md): POST /v1/coupons/{id}/archive. Archive a coupon (its code stops working). ## API reference: Orders - [List orders](https://docs.anyshop.io/reference/list-orders.md): GET /v1/orders. List orders, newest first. - [Retrieve an order](https://docs.anyshop.io/reference/get-order.md): GET /v1/orders/{id} - [Refund an order](https://docs.anyshop.io/reference/refund-order.md): POST /v1/orders/{id}/refund. Refund all or part of an order. - [Take back delivered items](https://docs.anyshop.io/reference/take-back-order-items.md): POST /v1/orders/{id}/take_back. Take back what was delivered (keys, licenses, downloads). - [Get the buyer's order page link](https://docs.anyshop.io/reference/get-buyer-link.md): GET /v1/orders/{id}/buyer_link - [Resend the delivery email](https://docs.anyshop.io/reference/resend-delivery-email.md): POST /v1/orders/{id}/resend_delivery_email. Send the delivery email again. ## API reference: Customers - [List customers](https://docs.anyshop.io/reference/list-customers.md): GET /v1/customers. List customers, latest order first. - [Create or update a customer record](https://docs.anyshop.io/reference/create-customer.md): POST /v1/customers - [Retrieve a customer](https://docs.anyshop.io/reference/get-customer.md): GET /v1/customers/{id} - [Update a customer](https://docs.anyshop.io/reference/update-customer.md): PATCH /v1/customers/{id}. Update a customer's name or marketing consent. ## API reference: Checkout sessions - [Start a checkout for a buyer on your site](https://docs.anyshop.io/reference/create-checkout-session.md): POST /v1/checkout_sessions - [Retrieve a checkout session](https://docs.anyshop.io/reference/get-checkout-session.md): GET /v1/checkout_sessions/{id} - [Cancel a checkout session](https://docs.anyshop.io/reference/cancel-checkout-session.md): POST /v1/checkout_sessions/{id}/cancel ## API reference: Licenses - [List licenses](https://docs.anyshop.io/reference/list-licenses.md): GET /v1/licenses. List licenses, newest first. - [Retrieve a license](https://docs.anyshop.io/reference/get-license.md): GET /v1/licenses/{id}. Retrieve a license, with its active devices. - [Revoke a license](https://docs.anyshop.io/reference/revoke-license.md): POST /v1/licenses/{id}/revoke. Revoke a license (its next check fails). - [Free a device](https://docs.anyshop.io/reference/free-license-device.md): DELETE /v1/licenses/{id}/activations/{activation}. Free a device, so the license can be activated elsewhere. ## API reference: License checks - [Validate a license](https://docs.anyshop.io/reference/validate-license.md): POST /v1/licenses/validate. Is this key a valid license (and active on this device)? - [Activate a license](https://docs.anyshop.io/reference/activate-license.md): POST /v1/licenses/activate. Activate the license on a device, within its device limit. - [Deactivate a license](https://docs.anyshop.io/reference/deactivate-license.md): POST /v1/licenses/deactivate. Free the license's slot on a device. - [Get an offline license file](https://docs.anyshop.io/reference/offline-license-file.md): POST /v1/licenses/offline. A signed offline license file for a key. ## API reference: Webhooks and events - [List webhook endpoints](https://docs.anyshop.io/reference/list-webhook-endpoints.md): GET /v1/webhook_endpoints - [Add a webhook endpoint](https://docs.anyshop.io/reference/create-webhook-endpoint.md): POST /v1/webhook_endpoints - [Retrieve a webhook endpoint](https://docs.anyshop.io/reference/get-webhook-endpoint.md): GET /v1/webhook_endpoints/{id} - [Update a webhook endpoint](https://docs.anyshop.io/reference/update-webhook-endpoint.md): PATCH /v1/webhook_endpoints/{id}. Update, pause or resume a webhook endpoint. - [Delete a webhook endpoint](https://docs.anyshop.io/reference/delete-webhook-endpoint.md): DELETE /v1/webhook_endpoints/{id}. Remove a webhook endpoint and its delivery log. - [Rotate the signing secret](https://docs.anyshop.io/reference/rotate-webhook-secret.md): POST /v1/webhook_endpoints/{id}/rotate_secret. Rotate the signing secret (both sign for 24 hours). - [List events](https://docs.anyshop.io/reference/list-events.md): GET /v1/events. List events of the last 30 days, newest first. - [Retrieve an event](https://docs.anyshop.io/reference/get-event.md): GET /v1/events/{id} ## API reference: Exports - [Start an export](https://docs.anyshop.io/reference/create-export.md): POST /v1/exports. Start an export of the store's data. - [Retrieve an export](https://docs.anyshop.io/reference/get-export.md): GET /v1/exports/{id}. Retrieve an export, with a download link once it is ready. ## Optional - [Everything in one file](https://docs.anyshop.io/llms-full.txt): every page above as Markdown, in this order.