Mediloop
APIsMarketplace APICancel order

Cancel order

POST

Cancel an eligible Marketplace order before fulfillment reaches a terminal state.

/orders/{id}/cancel

Authentication

OAuth 2.0

Permissions

marketplace:write

Rate limit

120 requests / min

Response

201 Created

Overview

Cancel an eligible Marketplace order before fulfillment reaches a terminal state.

Endpoint

POST /orders/{id}/cancel
POST https://api.mediloop.com/v1/orders/lst_123/cancel
Authorization: Bearer $ACCESS_TOKEN
X-Tenant-Id: $TENANT_ID

Authentication

Required scope: marketplace:write. Access is also constrained by seller organization, tenant membership and Marketplace entitlement.

Request body

FieldTypeRequiredDescription
idempotency_keystringRecommendedPrevents duplicate business actions
reference_idstringVariesRelated Marketplace resource
metadataobjectNoIntegration metadata

Example request

cURL
curl -X POST "https://api.mediloop.com/v1/orders/lst_123/cancel" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"metadata":{"source":"erp"}}'
Example response200 OK
{
  "data": {
    "id": "mkt_123",
    "status": "created",
    "updated_at": "2026-08-19T07:00:00Z"
  }
}

Example response

Marketplace responses use stable resource IDs and explicit lifecycle states so integrations can reconcile safely.

Responses

HTTPMeaning
200Success
201Created
400Invalid request
401Authentication required
403Insufficient permissions
404Resource not found
409Business-state conflict
429Rate limit exceeded