An asset transfer is an asynchronous exchange of an asset or an amount to a recipient.
+Asset Transfers
An asset transfer is an asynchronous exchange of an asset or an amount to a recipient.
A recipient is an existing Centrapay user or someone who can create an account to claim the asset transfer by verifying their phone number.
After an asset transfer is completed the recipientAlias, lastSentTo and @@ -67,7 +67,7 @@
Create an Asset Transfer
Transfer an asset to a recipient. Some assets can be transfered only in whole (eg giftcards or tokens) while others can be transfered only in part (eg money).
Some assets can be transferred without supplying a recipient. A url
field will be
-returned in these cases. The url
will link to a page to claim the asset.
Attributes
assetId
Id of a discrete asset to transfer or wallet to draw from.
recipientAlias
Phone number, email or handle of receiver.
description
Shows up in transaction history against the transfer. 200 character limit.
message
Shows up in transaction history against the transfer. 100 character limit.
value
bignumberAmount to send. Required for money transfers. Units depend on the asset type.
senderName
Human readable name for the sender. 30 character limit.
suppressNotification
Suppress notifications from Centrapay (SMS/Email).
Errors
INSUFFICIENT_WALLET_BALANCE
The value of the asset-transfer exceeds the balance on the wallet.
QUOTA_EXCEEDED
The transfer exceeds one or more spend quota limits. See Quota Error Response API .
ASSET_NOT_ACTIVE
The asset is not active and cannot be transferred.
RECIPIENT_MISSING
The asset must be transferred with a recipient supplied.
curl -X POST https://service.centrapay.com/api/asset-transfers \
+returned in these cases. The url
will link to a page to claim the asset.Attributes
assetId
Id of a discrete asset to transfer or wallet to draw from.
recipientAlias
Phone number, email or handle of receiver.
description
Shows up in transaction history against the transfer. 200 character limit.
message
Shows up in transaction history against the transfer. 100 character limit.
value
bignumberAmount to send. Required for money transfers. Units depend on the asset type.
senderName
Human readable name for the sender. 30 character limit.
suppressNotification
Suppress notifications from Centrapay (SMS/Email).
Errors
INSUFFICIENT_WALLET_BALANCE
The value of the asset-transfer exceeds the balance on the wallet.
QUOTA_EXCEEDED
The transfer exceeds one or more spend quota limits. See Quota Error Response API .
ASSET_NOT_ACTIVE
The asset is not active and cannot be transferred.
RECIPIENT_MISSING
The asset must be transferred with a recipient supplied.
INVALID_ASSET_TYPE
The asset’s type API does not support transfers.
curl -X POST https://service.centrapay.com/api/asset-transfers \
-H "X-Api-Key: $api_key" \
-H "Content-Type: application/json" \
-d '{