---
title: "Buy a credit pack with x402"
method: POST
path: "/api/v1/credits/packs/x402"
---

# Buy a credit pack with x402

`POST /api/v1/credits/packs/x402`

## Request

- Base URL: `https://spoolis.com`
- URL: `https://spoolis.com/api/v1/credits/packs/x402`
- Auth: HTTP bearer

Issues an x402 V2 Base USDC payment requirement or verifies and settles a PAYMENT-SIGNATURE through the configured hosted facilitator. The shared credit ledger is updated only after confirmed settlement.

## Request body

- X402CreditPackRequest
  - `pack_cents` 500 | 1000 | 2000, required

## Response `202`

Payment settled and credited; poll the credit balance before retrying work

- X402PaymentAccepted
  - `status` 'payment_accepted', required
  - `settlement_reference` string, required
  - `pack_cents` 500 | 1000 | 2000, required
  - `amount_micros` integer, required
  - `credited` unknown, required
  - `poll` '/api/v1/credits/balance', required
  - `retry_after_seconds` 0, required

## Other responses

- `400`: Machine-readable API error
- `401`: Machine-readable API error
- `402`: x402 V2 payment requirement
- `403`: Machine-readable API error
- `404`: Machine-readable API error
- `409`: Machine-readable API error
- `413`: Machine-readable API error
- `422`: Machine-readable API error
- `429`: Machine-readable API error
- `500`: Machine-readable API error
- `503`: Machine-readable API error

---

[API](https://skmtc.dev/spoolis/apis/spoolis-public-api.md) · [All operations](https://skmtc.dev/spoolis/apis/spoolis-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spoolis/apis/spoolis-public-api/revisions/e438bfc05c01?raw)
