Mediloop
APIsMarketplace APIRefunds

Refunds

POST

Create and track full or partial refunds for Marketplace payments.

/refunds

Authentication

OAuth 2.0

Permissions

payments:write

Rate limit

120 requests / min

Response

201 Created

Overview

Create and track full or partial refunds for Marketplace payments.

Endpoint

POST /refunds
POST https://api.mediloop.com/v1/refunds
Authorization: Bearer $ACCESS_TOKEN
X-Tenant-Id: $TENANT_ID

Authentication

Required scope: payments: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/refunds" \
  -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