---
title: "Purchase a service"
method: POST
path: "/api/service/purchase"
tags: ["Premium"]
---

# Purchase a service

`POST /api/service/purchase`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/service/purchase`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `GoogleToken`

## Request body

- PurchaseArgs: Arguments for purchasing a service
  - `slug` string, nullable, required: The service to pruchase
  - `count` integer, required: How many instances to purchase (longer time)
  - `reference` string, nullable, required: Reference to prevent dupplicates
  - `slotIds` integer[], nullable: Owned slots to extend; omit to purchase new capacity.
  - `immediatePerformanceRequested` boolean, nullable: Whether the user expressly requested early performance for this order.
  - `withdrawalConsequenceAcknowledged` boolean, nullable: Whether the user acknowledged the consequence of complete performance.
  - `declarationVersion` string, nullable: Hash-verified declaration version shown to the user.
  - `legalLocale` string, nullable: Locale in which the declaration was shown.
  - `declarationRequestId` string, nullable: Idempotency identifier for this declaration and order.

## Response `200`

OK

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-10-12** `dc2f7ffe2903`: 24 info
  - added the new optional request property `declarationRequestId` (media type: application/json-patch+json)
  - added the new optional request property `declarationRequestId` (media type: application/json)
  - added the new optional request property `declarationRequestId` (media type: text/json)
  - added the new optional request property `declarationRequestId` (media type: application/*+json)
  - …20 more
- **2026-08-04** `41f7cdd4406b`: 12 breaking, 4 info
  - the request property `count` became required (media type: application/json-patch+json)
  - the request property `count` became required (media type: application/json)
  - the request property `count` became required (media type: text/json)
  - the request property `count` became required (media type: application/*+json)
  - …12 more

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/service/purchase/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
