Skip to content

Search the docs

Jump to any page or section

REST API v3

Refills

Request a refill on a finished order and follow it until it completes or is rejected.

The refill object

A request to restore units that dropped after an order finished.

Before you request one, order.refill.available and order.refill.reason tell you whether it would be accepted. The rules are in Refills and cancellations.

idinteger
Refill ID. The same number v2 action=refill returns.
objectstring
Always refill.
Valuerefill
orderinteger
The order being refilled.
statusstring
pending → in_progress → completed, or rejected when there was nothing to restore.
One ofpendingin_progresscompletedrejected
droppedinteger
Units that dropped since completion and haven't been restored by an earlier refill.
restoredinteger
Units restored so far.
reasonstring or null
Why the refill was rejected.
sourcestring
Where the request came from, for example API v2, API v3 or the API playground.
created_atISO 8601 string
When the refill was requested.
started_atISO 8601 string or null
When restoring started.
completed_atISO 8601 string or null
When the refill completed or was rejected.
Example
{
  "id": 9038,
  "object": "refill",
  "order": 184607,
  "status": "pending",
  "dropped": 15,
  "restored": 0,
  "reason": null,
  "source": "API v3",
  "created_at": "2026-11-15T23:52:10.776Z",
  "started_at": null,
  "completed_at": null
}

Request a refill

POST/api/v3/orders/{id}/refills

Asks us to restore units that dropped since the order finished. Only for services with a refill window, one request per 24 hours per order.

Needs the refills:write scope (request refills). About scopes

Path parameters

idinteger
Required
The order ID.

Request

curl -X POST https://ultrasmm.io/api/v3/orders/184607/refills \
  -H 'Authorization: Bearer tk_live_your_key_here'

Response

201 with the refill object.

Response201Created
{
  "id": 9038,
  "object": "refill",
  "order": 184607,
  "status": "pending",
  "dropped": 15,
  "restored": 0,
  "reason": null,
  "source": "API v3",
  "created_at": "2026-11-15T23:52:10.776Z",
  "started_at": null,
  "completed_at": null
}

Errors

Plus the errors every endpoint can return.

List refills for an order

GET/api/v3/orders/{id}/refills

Every refill requested on one order, newest first.

Needs the orders:read scope (read orders and services). About scopes

Path parameters

idinteger
Required
The order ID.

Request

curl https://ultrasmm.io/api/v3/orders/184607/refills \
  -H 'Authorization: Bearer tk_live_your_key_here'

Response

200 with a list of refill objects.

Response200OK
{
  "object": "list",
  "order": 184607,
  "data": [
    {
      "id": 9038,
      "object": "refill",
      "order": 184607,
      "status": "pending",
      "dropped": 15,
      "restored": 0,
      "reason": null,
      "source": "API v3",
      "created_at": "2026-11-15T23:52:10.776Z",
      "started_at": null,
      "completed_at": null
    }
  ]
}

Errors

Plus the errors every endpoint can return.

Retrieve a refill

GET/api/v3/refills/{id}

One refill and its progress.

Needs the orders:read scope (read orders and services). About scopes

Path parameters

idinteger
Required
The refill ID.

Request

curl https://ultrasmm.io/api/v3/refills/9038 \
  -H 'Authorization: Bearer tk_live_your_key_here'

Response

200 with the refill object.

Response200OK
{
  "id": 9038,
  "object": "refill",
  "order": 184607,
  "status": "pending",
  "dropped": 15,
  "restored": 0,
  "reason": null,
  "source": "API v3",
  "created_at": "2026-11-15T23:52:10.776Z",
  "started_at": null,
  "completed_at": null
}

Errors

Plus the errors every endpoint can return.

Something unclear or out of date? Write to [email protected] and quote the page.