POST api/UpdatePayment
Update Payment Method
Request Information
URI Parameters
None.
Body Parameters
UpdatePaymentRequestV4Name | Type | Description | Additional information |
---|---|---|---|
FirstName | string |
|
|
LastName | string |
|
|
EmailAddress | string |
|
|
Password | string |
|
|
AutoRenewEnabled | boolean |
|
|
AutoRenewAmount | decimal number |
|
|
AutoRenewThreshold | decimal number |
|
|
CreditCardPayment | CreditCardPayment |
|
|
ACHPayment | ACHPayment |
|
|
Options | Dictionary of string [key] and string [value] |
|
Request Formats
application/json, text/json
Sample:
{ "FirstName": "sample string 1", "LastName": "sample string 2", "EmailAddress": "sample string 3", "Password": "sample string 4", "AutoRenewEnabled": true, "AutoRenewAmount": 1.0, "AutoRenewThreshold": 1.0, "CreditCardPayment": { "CardNumber": "sample string 1", "CardHolderName": "sample string 2", "ExpirationMonth": "sample string 3", "ExpirationYear": "sample string 4", "SecurityCode": "sample string 5", "Country": "sample string 6", "Address1": "sample string 7", "Address2": "sample string 8", "City": "sample string 9", "State": "sample string 10", "PostalCode": "sample string 11", "PhoneNumber": "sample string 12", "Active": true, "Default": true }, "ACHPayment": { "RoutingNumber": "sample string 1", "AccountHolderName": "sample string 2", "AccountNumber": "sample string 3", "Country": "sample string 4", "Address1": "sample string 5", "Address2": "sample string 6", "City": "sample string 7", "State": "sample string 8", "PostalCode": "sample string 9", "PhoneNumber": "sample string 10", "Active": true, "Default": true }, "Options": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }
application/x-www-form-urlencoded
Sample:
Sample not available.
application/xml, text/xml
Sample:
<UpdatePaymentRequestV4 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InvectioApi.Models.PackageHub.v4"> <ACHPayment> <AccountHolderName>sample string 2</AccountHolderName> <AccountNumber>sample string 3</AccountNumber> <Active>true</Active> <Address1>sample string 5</Address1> <Address2>sample string 6</Address2> <City>sample string 7</City> <Country>sample string 4</Country> <Default>true</Default> <PhoneNumber>sample string 10</PhoneNumber> <PostalCode>sample string 9</PostalCode> <RoutingNumber>sample string 1</RoutingNumber> <State>sample string 8</State> </ACHPayment> <AutoRenewAmount>1</AutoRenewAmount> <AutoRenewEnabled>true</AutoRenewEnabled> <AutoRenewThreshold>1</AutoRenewThreshold> <CreditCardPayment> <Active>true</Active> <Address1>sample string 7</Address1> <Address2>sample string 8</Address2> <CardHolderName>sample string 2</CardHolderName> <CardNumber>sample string 1</CardNumber> <City>sample string 9</City> <Country>sample string 6</Country> <Default>true</Default> <ExpirationMonth>sample string 3</ExpirationMonth> <ExpirationYear>sample string 4</ExpirationYear> <PhoneNumber>sample string 12</PhoneNumber> <PostalCode>sample string 11</PostalCode> <SecurityCode>sample string 5</SecurityCode> <State>sample string 10</State> </CreditCardPayment> <EmailAddress>sample string 3</EmailAddress> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> <Options xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </Options> <Password>sample string 4</Password> </UpdatePaymentRequestV4>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.