Create a buy instruction
Changed onDeclares an incoming fiat payment under an id you choose, and returns the memo to quote in that payment's reference field so the funds can be attributed and the RLUSD minted to the wallet you named.
You generate the UUID for {id} client-side and it becomes the instruction's identity. Reusing an id that already exists is rejected with a 409 carrying code FIAT_INSTRUCTION_ALREADY_EXISTS.
Only a CRYPTO destination may be created here. Redemption (FIAT) instructions are created by Ripple when your redemption is registered, and are read-only to you.
Put the memo verbatim into the payment's reference field, and nothing else. A RIPxxxxxxx wallet ripId token in the payment's free text takes precedence over a memo during matching, which would credit that wallet and leave this instruction UNUSED.
Request
- Base URLhttps://api.ripple.com
- AuthOAuth 2Client credentialsToken URLhttps://api.ripple.com/v2/oauth/tokenScopesrlusd_customers:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The id you are creating the instruction under, as a UUID you choose.
Request body
Example request
{
"currency": "USD",
"destination": {
"walletRipId": "RIP0000001"
}
}Response
Instruction created; its memo is in the response
Example response
{
"memo": "RL7Q3K9ZP2MTX4VB",
"currency": "USD",
"destination": {
"walletRipId": "RIP0000001"
},
"bankDetails": {
"bankName": "ABC Bank",
"accountName": "RIPPLE LABS CAYMAN LTD.",
"accountNumber": "000000",
"swiftBicCode": "ABCBUS33XXX",
"routingNumber": "0000",
"bankAddress": {
"street": "1 Example Street",
"city": "Singapore",
"state": "Singapore",
"zipCode": "000000",
"country": "Singapore"
}
}
}Changes
- info
endpoint added
- info