# One-time sales

A one-time sale is single, non-recurring, charge for a product or service.
Example: A one-time purchase of an internet modem.

## One-time sale status

This section describes all one-time sale statuses.

One-time sale example: A one-time purchase of a bag of coffee charged at a total of 5 USD.

`status` describes the state of the one-time sale.
The following are all statuses.

| **Status**  | **Description** |
|  --- | --- |
| `pending` | A customer requests one or more one-time sales items in an order. |
| `completed` | The customer pays the order invoice. |
| `canceled` | The customer cancels the order before paying. |


### Status transitions

```mermaid
%%{init: {"flowchart": {"htmlLabels": false}}}%%
graph LR;
    A(1 Pending) --> |Invoice is paid| B(Complete)
    A --> |Purchase canceled|C(Canceled)
```

1. A customer requests one or more one-time sales items in an order.
The one-time sales items are assigned the `pending` status.
2. The customer does one of the following:
  - The customer pays the invoice that includes the one-time sales items.
One-time sales items are assigned the `completed` status.
  - The customer cancels the purchase before paying.
One-time sales items are assigned the `canceled` status.


## Related resources

- [Orders API operations](/docs/dev-docs/api/orders/)
- [Invoices API operations](/docs/dev-docs/api/invoices/)