Real-time status webhook hosted by Ledger. Partners call this endpoint to notify Ledger whenever the status of a swap transaction changes.
- Authenticated with the provider-specific x-api-key header (a shared secret provisioned by Ledger). Calls without a valid key are rejected with 401, and the same 401 is returned for unknown / unsupported providers so callers cannot probe which providers exist.
- Processing is asynchronous: a 200 means the update was authenticated, validated and queued, not that it has already been persisted. The update is applied shortly after, and only while the swap is still in a non-final status.
- providerStatus is your own status string (typically the same value your GET /status endpoint returns). Ledger maps it to an internal status using the same per-provider mapping it uses when polling your /status endpoint; a value Ledger cannot map is rejected with 422 and nothing is persisted.
post/webhook/{swapId}/status
Request
- Base URL: https://developers.ledger.com (the document declares no server; this is the origin it was published from)
- URL: https://developers.ledger.com/webhook/{swapId}/status
- Auth: API key in header x-api-key
Path parameters
swapIdstring required
The swap transaction id (the swapId returned by /swap/fixed or /swap/float).
Request body
Example request
{
"providerId": "moonpaytrade",
"providerStatus": "finished"
}Response
The status update was accepted and queued for asynchronous processing.
Example response
{
"message": "queued"
}Changes
No recorded changes to this operation across all 1 revision of this API.