Create Refill (action=refill)

4. Create refill – action=refill

Description:
Creates a refill request for completed, refillable orders. Requests are forwarded to the upstream provider when supported.

4.1 Single refill

Parameters
  • key (required)
  • action (required) = refill
  • order (required): API order ID.
Example response
{
  "refill": "1"
}

4.2 Multiple refills

Parameters
  • key (required)
  • action (required) = refill
  • orders (required): Comma-separated API order IDs (up to 100).
Example response
[
  {
    "order": 1,
    "refill": 1
  },
  {
    "order": 2,
    "refill": 2
  },
  {
    "order": 3,
    "refill": {
      "error": "Incorrect order ID"
    }
  }
]