Created
August 27, 2014 21:56
-
-
Save BobWay/8b23685ba0e8cc547e43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H 'Content-Type: application/json' http://localhost:5990/v1/accounts/rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W/payments/paths/rw596XXeHUUomskvL1dXy5VHf8UtfprdzR/10000+EUR | |
{ | |
"success": true, | |
"payments": [ | |
{ | |
"source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", | |
"source_tag": "", | |
"source_amount": { | |
"value": "10000", | |
"currency": "EUR", | |
"issuer": "" | |
}, | |
"source_slippage": "0", | |
"destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", | |
"destination_tag": "", | |
"destination_amount": { | |
"value": "10000", | |
"currency": "EUR", | |
"issuer": "" | |
}, | |
"invoice_id": "", | |
"paths": "[]", | |
"partial_payment": false, | |
"no_direct_ripple": false | |
} | |
] | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"b9559756-c1cf-45e4-85f0-c51c3d134e0f", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": "", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "tefDST_TAG_NEEDED", | |
"message": "Destination tag required." | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"b9559756-c1cf-45e4-85f0-c51c3d134e0f", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": "1", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"message": "Duplicate Transaction. A record already exists in the database for a transaction of this type with the same client_resource_id. If this was not an accidental resubmission please submit the transaction again with a unique client_resource_id" | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"b9559756-c1cf-45e4-85f0-c51c3d134e0f2", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": "1", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "tefALREADY", | |
"message": "The exact transaction was already in this ledger." | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"b9559756-c1cf-45e4-85f0-c51c3d1342222", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": "1", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "tecPATH_DRY", | |
"message": "Path could not send partial amount. Please ensure that the source_address has sufficient funds (in the source_amount currency, if specified) to execute this transaction." | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"b9559756-c1cf-45e4-85f0-c51c3d1342222", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": "2", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"message": "Duplicate Transaction. A record already exists in the database for a transaction of this type with the same client_resource_id. If this was not an accidental resubmission please submit the transaction again with a unique client_resource_id" | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"bbfe0338-d688-4ab9-a348-1a4f6b850658", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": "2", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "tecPATH_DRY", | |
"message": "Path could not send partial amount. Please ensure that the source_address has sufficient funds (in the source_amount currency, if specified) to execute this transaction." | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"COLD WALLET SECRET", "client_resource_id":"bbfe038-d688-4ab9-a348-1a4f6b850658", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": “2", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "Unexpected token “" | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"bbfe0338-d688-4ab9-a348-1a4f6b850658", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": “2", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "Unexpected token “" | |
} | |
curl -H 'Content-Type: application/json' -X POST -d '{ "secret":"secret replaced", "client_resourceid":"bbfe0338-d688-4ab9-a348-1a4f6b850655", "payment":{ "source_account": "rUU8vXA3p6d92skbArWjaKWqfbtxyrr65W", "source_tag": "", "source_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "source_slippage": "0", "destination_account": "rw596XXeHUUomskvL1dXy5VHf8UtfprdzR", "destination_tag": “2", "destination_amount": { "value": "10000", "currency": "EUR", "issuer": "" }, "invoice_id": "", "paths": "[]", "partial_payment": false, "no_direct_ripple": false } }' http://localhost:5990/v1/payments | |
{ | |
"success": false, | |
"error": "Unexpected token “" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment