Mediloop
APIsMarketplace APICapture / Confirm payment

Capture / Confirm payment

POST

Confirm or capture an authorized Marketplace payment.

/payments/{id}/confirm

Authentication

OAuth 2.0

Permissions

payments:write

Rate limit

120 requests / min

Response

201 Created

Overview

Confirm or capture an authorized Marketplace payment.

Endpoint

POST /payments/{id}/confirm
POST https://api.mediloop.com/v1/payments/lst_123/confirm
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/payments/lst_123/confirm" \
  -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