Skip to main content
POST
/
v1
/
credit
/
cryptoRepayment
Initiate a crypto repayment
curl --request POST \
  --url https://api-sandbox.circle.com/v1/credit/cryptoRepayment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "idempotencyKey": "ba943ff1-ca16-49b2-ba55-1057e70ca5c7",
  "amount": {
    "amount": "25000.00",
    "currency": "USD"
  }
}
'
{
  "data": {
    "id": "e5f6a7b8-9012-3456-efab-345678901234",
    "amount": {
      "amount": "25000.00",
      "currency": "USD"
    },
    "status": "pending",
    "createDate": "2024-03-25T10:00:00.000Z",
    "updateDate": "2024-03-25T10:00:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body for initiating a crypto repayment on a credit transfer.

idempotencyKey
string<uuid>
required

Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests.

Example:

"ba943ff1-ca16-49b2-ba55-1057e70ca5c7"

amount
object
required

The amount and currency to repay. Currency must match the credit line currency. The requested amount is capped at the outstanding balance.

Response

Successfully initiated a crypto repayment.

data
object

A crypto repayment initiated on a credit transfer.