Skip to main content
POST
C#

Release Escrow Allocation

Release held escrow funds for a specific merchant allocation once the corresponding product or service has been fulfilled. In marketplace scenarios where an order is split across multiple vendors, each merchant’s allocation can be released independently as their items are shipped or delivered.

Endpoint

Authentication

Include your API secret in the request header. Header:
  • x-api-secret (string) — Required. Your StarPay API secret key. Generate this key from the Merchant Portal under API Keys.
Example:

Request Body

escrowId

The unique identifier of the escrow transaction returned during order creation. Type: string — Required Example:

merchantId

The merchant ID corresponding to the allocation you want to release. Type: string — Required Example:

Example Request


Response

Success Response (200 OK)


Notes & Best Practices

  • Partial Releases: If an order contains multiple merchant allocations, you can call this endpoint separately for each merchant as they fulfill their part of the order.
  • Idempotency: Releasing an allocation that has already been released will return the existing release confirmation or an error indicating the allocation was previously settled.
  • Unreleased Allocations: Any remaining unreleased allocations continue to be held securely in escrow until explicitly released or cancelled.

Headers

x-api-secret
string
required

Your StarPay API secret key.

Example:

"SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk"

Body

application/json

Escrow ID and merchant ID identifying the allocation to release.

escrowId
string
required

Unique escrow transaction identifier.

Example:

"59667344"

merchantId
string
required

Merchant ID to receive payout.

Example:

"01344351"

Response

Escrow allocation released successfully.

status
string
required
Example:

"success"

timestamp
string<date-time>
required
Example:

"2026-07-29T11:00:00Z"

message
string
required
Example:

"Escrow allocation released successfully"

data
object
required