Onerway
POST

Profit share result webhook

Receive profit share and reversal results, and use relatedTxnId and relatedMerchantTxnId to associate them with the original payment.
Webhook URL
The notification URL depends on how the profit share is initiated. Automatic profit shares and reversals send no notification if the URL is not configured.
View URL rulesHide URL rules
Automatic profit shares and reversals: Notifications are sent to paymentMethodOptions.share.profitShareNotifyUrl from the original payment. No automatic notification is sent if it is absent.
API-initiated profit shares and reversals: Pass urlCallback in the request; it can be omitted if the original payment already has profitShareNotifyUrl configured.

Verification

Verification guide

Header-signed

Signature header
x-signature

Signature coverage

All payload fields except sign(legacy signature value).

Webhook payload fields

x-signature
Signature for verifying this notification. Contains one or more comma-separated v1=<signature> values.
profitType
Whether this notification reports a profit share or a reversal.
Allowed values
share
The notification reports a profit share.
return
The notification reports a profit share reversal.
profitReference
Reference for the profit share or reversal. For operations initiated through the API, this is the reference supplied by the merchant. For automatic profit shares and reversals, Onerway generates it. Use relatedTxnId and relatedMerchantTxnId to associate the result with the original payment.
profitGatewayReference
Onerway order number of the profit share or reversal.
state
Overall processing state of the order. Do not treat completed as every detail having succeeded; check receivers[].result individually.
Allowed values
processing
The profit share order is still being processed.
completed
The profit share order finished processing. Check each detail result separately.
currency
Settlement currency of the profit share or reversal.
relatedTxnId
Transaction ID of the original payment. A reversal still references the original payment, not the profit share order.
relatedMerchantTxnId
Merchant order number of the original payment.
Per-recipient processing results.
sign
Retained for compatibility. Verify this notification using the x-signature header. See Webhook signature verification.
Constraints
Rule
Exclude sign itself from the canonical string when verifying this webhook.

Webhook example

{
  "profitType": "share",
  "profitReference": "example_profit_share_reference",
  "profitGatewayReference": "replace_with_profit_gateway_reference",
  "state": "completed",
  "currency": "USD",
  "relatedTxnId": "9007199254740993",
  "relatedMerchantTxnId": "example_payment_order",
  "receivers": "[{\"profitDetailReference\":\"example_profit_share_detail_reference\",\"profitDetailGatewayReference\":\"replace_with_profit_detail_gateway_reference\",\"type\":\"1\",\"amount\":\"80.00\",\"result\":\"success\",\"failReason\":null,\"createdAt\":\"2026-06-22 10:00:00\",\"finishedAt\":\"2026-06-22 10:00:08\"}]",
  "sign": "replace_with_sha256_signature"
}

Acknowledgement

Return HTTP 200 after the profit share webhook is received and accepted. No response body is required.

Response body example

No response body.