Jump to content

Partial payment error


Vitor

Recommended Posts

Hi there, I am trying to send partial payment but have no success.

My request body is :

{
    "method": "sign",
    "params": [
        {
			"secret": "...",
        	"offline": false,
        	"fee_mult_max": 100000,
            "tx_json": {
    			"TransactionType" : "Payment",
    			"Account": "raN1AbjFyCyDHFzfNuR48VBt6CJAqaFCT7",
				"Destination" : "rhcxQGp6XQkpMNKqKL8XBmsH4jxnurXjR9",
				"DestinationTag": "8",
				"Amount": "1000000",
				"DeliverMin": {
					"value":"0.000172873626357679",
					"currency":"BAR",
					"issuer":"rPuCBpZPTk5K4qkG72A5JeVpSprnf5fo8K"
				},
				"Flags": 2147614720
            }
        }
    ]
}

When I submit it I get an error:

Quote

"Malformed: Partial payment is not allowed for XRP to XRP."

So what I need to do send it to destination address? I read that it's possible to send non-XRP to XRP. How to do that?

I tried to change the body to:

{
    "method": "sign",
    "params": [
        {
			"secret": "...",
        	"offline": false,
        	"fee_mult_max": 100000,
            "tx_json": {
    			"TransactionType" : "Payment",
    			"Account": "raN1AbjFyCyDHFzfNuR48VBt6CJAqaFCT7",
				"Destination" : "rhcxQGp6XQkpMNKqKL8XBmsH4jxnurXjR9",
				"DestinationTag": "8",
				"Amount": {
					"value":"0.0005",
					"currency":"BAR",
					"issuer":"rPuCBpZPTk5K4qkG72A5JeVpSprnf5fo8K"
				},
				"DeliverMin": {
					"value":"0.000172873626357679",
					"currency":"BAR",
					"issuer":"rPuCBpZPTk5K4qkG72A5JeVpSprnf5fo8K"
				},
				"Flags": 2147614720
            }
        }
    ]
}

Now I get tecPATH_DRY status code in response with message:

Quote

Path could not send partial amount.

What I am doing wrong?

It's testnet addresses

 

Edited by Vitor
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...