POST
/
conversion
/
stablecoins
Create Stablecoin Conversion
curl --request POST \
  --url https://api.paxos.com/v2/conversion/stablecoins \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount'\''": "3",
  "metadata": {
    "skey": "svalue",
    "custom_key": "custom_value"
  },
  "profile_id": "b821ff88-fdb4-49ba-b30f-99c40f01fcfc",
  "ref_id": "refid-24d25de7f5bd47ab978cbbd428b74199",
  "source_asset": "USD",
  "target_asset": "USDP"
}'
{
"account_id'": "00000000-0000-0000-0000-000000000000",
"amount'": "3",
"created_at": "2023-10-19T15:37:18.929305155Z",
"id": "8dbce0e0-510f-4edc-9249-15f8c6214569",
"identity_id": "00000000-0000-0000-0000-000000000000",
"metadata": {
"skey": "svalue",
"custom_key": "custom_value"
},
"profile_id": "b821ff88-fdb4-49ba-b30f-99c40f01fcfc",
"ref_id": "refid-24d25de7f5bd47ab978cbbd428b74199",
"source_asset": "USD",
"status": "CREATED",
"target_asset": "USDP",
"updated_at": "2023-10-19T15:37:18.990343Z"
}

Authorizations

Authorization
string
header
required

Paxos APIs use OAuth 2 with the client credentials grant flow.

Token URLs:

Learn more in the API credentials guide →

Body

application/json

Response

200
application/json

A successful response.

The response is of type object.