HomeAPI ReferenceCrypto Payment OrdersSelect Crypto Payment Order Asset
POST/payment-orders/crypto/select-asset

Select Crypto Payment Order Asset

Outcome - Sets the coin a PENDING order will be paid in. RoxCustody assigns a receiving wallet on that network and calculates amountInAsset at the current price. You can call it again to switch to another asset while the order is PENDING.

Body Parameters

orderIdstringrequiredmax(42)

The ID of the crypto payment order

assetIdnumberrequired

ID of the cryptocurrency asset to use for receiving payment

Responses

Response attributes

messagestring

Success message

dataobject

Updated payment order with new asset assignment

Show child attributes (21)
idstring

Order ID

vaultIdnumber

Vault ID associated with this order

walletIdnumber

ID of the assigned wallet

clientNamestring

Name of the client

itemNamestring

Name of the item being purchased

statusstring

Order status (PENDING, COMPLETED, CANCELLED, PARTIALLY_PAID, EXPIRED)

amountInDollarstring

Amount converted to USD

amountInFiatstring

Original amount in fiat currency

emailstring

Customer email

expirationstring

Order expiration timestamp

vaultobject

Vault configuration details

Show child attributes (3)
gasStationCategoryIdnumber

Gas station category ID

fiatCurrencyDetailsobject

Fiat currency details

Show child attributes (4)
idnumber

Currency ID

namestring

Currency name

symbolstring

Currency symbol

pricingIdstring

Pricing identifier

photostring | null

Vault photo URL

walletobject

Assigned wallet details

Show child attributes (12)
idnumber

Wallet ID

assetIdnumber

Asset ID

balancestring

Current wallet balance

pendingBalancestring

Pending balance

publicAddressstring

Blockchain address for payment

transactionsCountstring

Number of transactions

targetIdstring

Target ID

protocolnumber

Protocol number

assetobject

Asset details with network information

typestring

Wallet type (ORDER)

createdAtstring

Wallet creation timestamp

updatedAtstring

Wallet update timestamp

amountToBeCollectedstring

Amount available for collection

transactionsarray

Array of order transactions

Show child attributes (5)
idnumber

Transaction ID

amountstring

Transaction amount

blockMinedAtstring

Block mining timestamp

blockchainTransactionIdstring

Blockchain transaction hash

createdAtstring

Transaction creation timestamp

balancestring

Current order balance

expirationWithTolerancestring

Expiration time with tolerance period

paymentLinkstring

URL for the payment page

globalIdstring

Global unique identifier (ULID)

amountInAssetstring

Recalculated amount in the newly selected asset

createdAtstring

Order creation timestamp

updatedAtstring

Order update timestamp

statusnumber

HTTP status code

Was this page helpful?