Implement guaranteed 1:1 conversions between USD and Paxos-issued stablecoins.
If you’ve already authenticated and have USD and USDG balances in a Profile, skip ahead to the request a conversion step.
If you don’t see all the scopes when creating or editing API credentials, contact Support.
profile_id
) you want the conversion to be associated with. See the First API Request guide for help retrieving Profile IDs.
This guide also includes examples for the USDG → USD conversion, so if you are following along make sure you add some USDG to the Profile.
You can also use the Fiat Transfers funding flow if you’ve already set up a Fiat Account.
source_asset
of $100 USD into the target_asset
.
For Third-party integrations, you must also specify identity_id
and account_id
.
id
, which can be used to lookup the transaction, and the status will always be CREATED
.
The source_asset
is immediately debited from the associated profile_id
balance.
The target_asset
will not be credited until the conversion status is “status”: “SETTLED”`.
id
, which can be used to lookup the transaction, and the status will always be CREATED
.
The source_asset
is immediately debited from the associated profile_id
balance.
The target_asset
will not be credited until the conversion status is “status”: “SETTLED”`.
profile_id
query parameter.
settled_at
parameter and the status is SETTLED
for all conversions executed for the given Profile.
Supported Asset | Maximum Decimal Precision | Example Conversion Precision |
---|---|---|
USD | 0.01 (1e-2) | USD → USDG = 0.01 (1e-2) |
PYUSD | 0.000001 (1e-6) | PYUSD → USD = 0.01 (1e-2) |
USDG | 0.00000001 (1e-8) | USDG → USD = 0.01 (1e-2) |
USDP | 0.00000001 (1e-8) | USDP → USD = 0.01 (1e-2) |
CREATED
: The conversion has been submitted successfully but has not yet settled.SETTLED
: The conversion has been completed.CANCELLED
: The conversion was stopped using the cancel endpoint for the pending conversion.CREATED
status, the source_asset
(for example, fiat for acquiring stablecoin) will be debited from the profile_id
balance.
The target_asset
(for example, USDG for acquiring stablecoin) will not be credited until the order has SETTLED
.
created_at
timestamp of the most recent conversion in the paged results.