Skip to main content
POST
Create a repayment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Universally unique identifier (UUID v4) of a resource.

Example:

"b3d9d2d5-4c12-4946-a09d-953e82fae2b0"

Body

application/json

Request to repay part or all of an outstanding borrow.

idempotencyKey
string<uuid>
required

Idempotency key (UUID v4) for this request. Reusing it with a different body returns 409 Conflict.

mode
enum<string>
required

Repayment mode. FULL repays the entire outstanding debt (measured when the UserOperation is built). PARTIAL repays exactly amount.

Available options:
FULL,
PARTIAL
amount
string

Amount to repay, in raw onchain uint256 base units (decimal-integer string). Required when mode is PARTIAL. Ignored when mode is FULL. Must be positive.

Response

Repayment accepted. Poll the returned job to track its status.

data
object

An async onchain operation. Each job represents one of: borrow, repay, add collateral, wallet setup, owner change, or residual withdraw. Poll this resource until the job reaches a terminal status (completed, failed, or approval_rejected). Fields that do not apply to the current status or job type are omitted rather than returned as null.

Example: