Premium

Purchase a service

Changed on
post/api/service/purchase

Request

  • Base URL
    https://sky.coflnet.com (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or API key in header GoogleToken

Request body

PurchaseArgs required

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

OK

Changes

    • info

      added the new optional request property declarationRequestId (media type: application/json-patch+json)

    • info

      added the new optional request property declarationRequestId (media type: application/json)

    • info

      added the new optional request property declarationRequestId (media type: text/json)

    21 more changes in this revision