Palbase Payments · API
/payments/splits/{split_id}/approveApprove payment split for seller payout
Approves a held marketplace split for payout (iyzico item/approve or Stripe Connect Transfer). It releases what the split's refunds left of its own escrow and top-up; the seller's debt is set against it only by what the approval truly withholds — the platform's top-up it holds — as the provider pays its seller what it pays (iyzico its item, Stripe the whole transfer). A share iyzico would not take off its item, which it pays all the same, is written as the seller's debt. A split is not approved beside a refund of its payment (409 refund_in_progress), nor while a refund of it given outside is being told to iyzico and is not finished (409 refund_pending): ask again. Approved again after a disapproval, it is another approval: its Idempotency-Key is its own — one that was another approval of the split answers 409 idempotency_key_reused, before the provider is asked. An approval its provider does not answer answers 503 provider_unavailable. One cut short so, or after its provider was asked — its books or its row not written —, is made whole by the next request of the split, of what was done of the split since; until its provider answers, that request answers 409 approval_pending. Every answer that says ask again is asked again under the same Idempotency-Key: it is not kept against it.
Called by your server, with the project's secret key.
Path
split_idstring · requiredPayment split UUID.curl -X POST "https://<your-ref>.palbase.studio/payments/splits/<split_id>/approve" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200Split approved
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation ApprovePaymentSplit of payments's contract.