Payments

Update a payment's metadata

Replaces the payment's metadata. Amount, status and every other field stay as the provider reported them.

patch/api/v1/payments/{id}

Request

  • Base URL
    https://merchant.zahlo.eu
  • Auth
    API key in header x-api-key

Path parameters

idstring required

The resource identifier returned by the merchant API.

Request body

metadataobject required

Up to 50 key-value pairs; keys up to 40 characters, values strings up to 500 characters.

Response

Successful response

idstring required
object'payment' required
livemodeboolean required
createdAtstring date-time required
status'pending' | 'succeeded' | 'failed' | 'cancelled' required
amountMinorinteger required
amountRefundedMinorinteger required
refundedboolean required
currencystring required
customerIdstring nullable
subscriptionIdstring nullable
checkoutSessionIdstring nullable
paymentLinkIdstring nullable
receiptNumberstring nullable
receiptUrlstring nullable
referencestring nullable
metadataobject required

Up to 50 key-value pairs; keys up to 40 characters, values strings up to 500 characters.

disputedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.