# More Admin API resources

Further Admin API endpoints: transactions, refunds, collections, blogs, variants, menus, coupons, themes, locations and more.

This page lists more Admin API resources. Authentication works as described in [Authentication](https://developer.versacommerce.de/articles/authentication): requests use HTTP Basic auth against the `/api` namespace. Merchant credentials use the user name `api` and the shop's API key as password; installed apps use their application key and the password derived from their shared secret and token. Write requests need an app with read-write access or the merchant API key.

All paths are relative to your shop domain, for example `https://example-shop.versacommerce.de/api/collections.json`. Responses are available as JSON or XML, depending on the file extension.

## Order transactions

Payment transactions of an order. Pending authorizations can be captured.

| Method | Path |
|---|---|
| GET, POST | `/api/orders/:order_id/transactions` |
| GET | `/api/orders/:order_id/transactions/:id` |
| GET | `/api/orders/:order_id/transactions/count` |
| POST | `/api/orders/:order_id/transactions/:id/capture` |

Main fields and parameters: `kind`, `parent_id`, `amount`, `order_id`.

## Order refunds

Refunds of an order.

| Method | Path |
|---|---|
| GET, POST | `/api/orders/:order_id/refunds` |
| GET | `/api/orders/:order_id/refunds/:id` |

Main fields and parameters: `refund.amount`, `refund.note`, `refund.transaction_id`.

## Settings

Key-value settings of the shop.

| Method | Path |
|---|---|
| POST | `/api/settings` |
| GET, PUT, DELETE | `/api/settings/:id` |

Main fields and parameters: `key`, `value`, `shop_id`.

## Carriers

Shipping carriers (shipping types), also per product.

| Method | Path |
|---|---|
| GET, POST | `/api/carriers` |
| GET, PUT, DELETE | `/api/carriers/:id` |
| GET | `/api/carriers/count` |
| GET | `/api/products/:product_id/carriers` |
| GET | `/api/products/:product_id/carriers/:id` |

Main fields and parameters: `carrier`, `id`, `product_id`, `name`, `price`, `delivery_countries`.

## Collections

Product collections.

| Method | Path |
|---|---|
| GET, POST | `/api/collections` |
| GET, PUT, DELETE | `/api/collections/:id` |
| GET | `/api/collections/count` |

Main fields and parameters: `collection`, `title`, `handle`, `product_ids`, `q`, `include`, `methods`.

## Blogs

Blogs of the shop.

| Method | Path |
|---|---|
| GET, POST | `/api/blogs` |
| GET, PUT, DELETE | `/api/blogs/:id` |
| GET | `/api/blogs/count` |

Main fields and parameters: `blog`, `id`, `title`, `handle`, `q`.

## Articles

Blog articles.

| Method | Path |
|---|---|
| GET, POST | `/api/articles` |
| GET, PUT, DELETE | `/api/articles/:id` |
| GET | `/api/articles/count` |

Main fields and parameters: `article`, `id`, `blog_id`, `title`, `handle`, `content`, `q`.

## Variants

Product variants.

| Method | Path |
|---|---|
| GET, POST | `/api/variants` |
| GET, PUT, DELETE | `/api/variants/:id` |
| GET | `/api/variants/count` |

Main fields and parameters: `id`, `code`, `vendor`, `category`, `title`, `subtitle`, `price`, `compare_at_price`, `extra_price`, `stock`, `created_on`, `updated_on`, `active`.

## Linklists

Navigation menus (link lists).

| Method | Path |
|---|---|
| GET, POST | `/api/linklists` |
| GET, PUT, DELETE | `/api/linklists/:id` |
| GET | `/api/linklists/count` |

Main fields and parameters: `linklist`, `id`, `title`, `handle`.

## Links

Links of a menu, also nested under their link list.

| Method | Path |
|---|---|
| GET, POST | `/api/links` |
| GET, PUT, DELETE | `/api/links/:id` |
| GET | `/api/links/count` |
| GET, POST | `/api/linklists/:linklist_id/links` |
| GET, PUT, DELETE | `/api/linklists/:linklist_id/links/:id` |

Main fields and parameters: `link`, `linklist_id`, `title`, `url`.

## Comments

Comments on blog articles.

| Method | Path |
|---|---|
| GET, POST | `/api/comments` |
| GET | `/api/comments/:id` |
| GET | `/api/comments/count` |

Main fields and parameters: `comment`, `id`, `article_id`, `author`, `email`, `body`.

## Coupons

Discount coupons.

| Method | Path |
|---|---|
| GET, POST | `/api/coupons` |
| GET | `/api/coupons/:id` |
| GET | `/api/coupons/count` |

Main fields and parameters: `coupon`, `code`, `amount`, `active`.

## Reservations

Product reservations.

| Method | Path |
|---|---|
| GET, POST | `/api/reservations` |
| GET | `/api/reservations/:id` |
| GET | `/api/reservations/count` |

Main fields and parameters: `reservation`, `id`, `product_id`, `redeemed_at`, `expired_at`.

## Pickers

Staff members who pick orders in the warehouse.

| Method | Path |
|---|---|
| GET, POST | `/api/pickers` |
| GET, PUT, DELETE | `/api/pickers/:id` |
| GET | `/api/pickers/count` |

Main fields and parameters: `picker`, `id`.

## Picking jobs

Picking jobs for orders and draft orders.

| Method | Path |
|---|---|
| GET, POST | `/api/picking_jobs` |
| GET, PUT, DELETE | `/api/picking_jobs/:id` |
| GET | `/api/picking_jobs/count` |

Main fields and parameters: `picking_job.order_id`, `picking_job.draft_order_id`, `picking_job.picker_id_list`, `picking_job.location_id`.

## Themes

Themes of the shop: upload a theme as a ZIP file, publish it or delete it. `/api/theme/info` uses a separate theme authorization header.

| Method | Path |
|---|---|
| GET, POST | `/api/themes` |
| GET, DELETE | `/api/themes/:id` |
| POST | `/api/themes/:id/publish` |
| GET | `/api/theme/info` |

Main fields and parameters: `id` (the theme name), `name`, `file` (theme ZIP), `role`, `expected_current`, `theme`, `expires_at`.

## Account

The authenticated account.

| Method | Path |
|---|---|
| GET | `/api/account` |

Returns the authenticated account as JSON or XML.

## Mediafiles

Uploaded media files (images, documents, videos).

| Method | Path |
|---|---|
| GET, POST | `/api/mediafiles` |
| GET | `/api/mediafiles/:file_type` |
| PUT, DELETE | `/api/mediafiles/:id` |

Main fields and parameters: `file_type` (`image`, `document` or `video`), `offset`, `attachment`, `id`, `url`, `type`.

## Product listings

Products made available to an installed app (sales channel).

| Method | Path |
|---|---|
| GET | `/api/product_listings` |
| GET | `/api/product_listings/count` |
| PUT | `/api/product_listings/create_or_activate_all` |
| PUT | `/api/product_listings/deactivate_all` |
| PUT | `/api/product_listings/disable_product` |

Main fields and parameters: `product_id`, `include`, `methods`, listing settings.

## Events

Events of the shop, such as messages from apps.

| Method | Path |
|---|---|
| GET, POST | `/api/events` |
| GET, DELETE | `/api/events/:id` |
| GET | `/api/events/count` |

Main fields and parameters: `custom_message`, `arguments`, `message_key`, `author`, `action`, `level`, `must_read`, `persistent`, `url`, `subject_id`, `subject_type`.

## POS cash boxes

Cash boxes of the point of sale.

| Method | Path |
|---|---|
| GET | `/api/pos/cash_boxes` |

Main fields and parameters: `id` (UUID), `name`, `shop_id`, printer settings.

## Locations

Locations (warehouses and stores) of the shop.

| Method | Path |
|---|---|
| GET | `/api/locations` |
| GET | `/api/locations/:id` |
| GET | `/api/locations/count` |

Main fields and parameters: `id`, `name`, `address`, `latitude`, `longitude`.

## Resource counts

Counts of several resources in one request.

| Method | Path |
|---|---|
| GET | `/api/resources_count` |

Parameter: `q`.

## Delivery timeslots

Delivery time slots, including a capacity report.

| Method | Path |
|---|---|
| GET | `/api/delivery_timeslots` |
| GET | `/api/delivery_timeslots/count` |
| GET | `/api/delivery_timeslots/search` |
| GET | `/api/delivery_timeslots/capacity_report` |

Parameters: `from`, `to`.

## Picking reports

Reports about picking jobs and missing articles.

| Method | Path |
|---|---|
| GET | `/api/picking_reports/job_overview` |
| GET | `/api/picking_reports/missing_articles` |
