---
title: "Delete the code or login on your order now"
method: DELETE
path: "/api/orders/{id}/pay"
tags: ["Orders"]
---

# Delete the code or login on your order now

`DELETE /api/orders/{id}/pay`

## Request

- Base URL: `https://agentdrives.com`
- URL: `https://agentdrives.com/api/orders/{id}/pay`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

Removed

- object
  - `pay` object, nullable: What you gave so our agent buys your plan: never the value
    - `kind` 'code' | 'sandbox' | 'seat'
    - `hint` string, nullable: A code's last two characters
    - `status` 'waiting' | 'handed' | 'done' | 'removed': waiting: kept for the drive; handed: a drive has it now; done: that drive ended and it is deleted; removed: you removed it, or the order ended first
    - `at` string, date-time, nullable
    - `mailed_at` string, date-time, nullable: A seat: when we sent you the address our agent signed up with

## Other responses

- `404`: Error as problem details (RFC 9457) with a machine-readable `error` and a `fix` that says what to do next

---

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