PUT rest/v1/payment/billing
Request Information
URI Parameters
None.
Body Parameters
BillingUpdateRequestName | Description | Type | Additional information |
---|---|---|---|
userid | globally unique identifier |
None. |
|
zAccountId | string |
None. |
|
paymentMethodId | string |
None. |
|
address | BillToContact |
None. |
|
hasLatestOrderId | boolean |
None. |
|
isRequiredToUpdateSap | boolean |
None. |
|
sub_Type | string |
None. |
|
Sub_Order_Id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "userid": "53395a03-4f50-4e83-8c5c-3f6e5a6b10e4", "zAccountId": "sample string 2", "paymentMethodId": "sample string 3", "address": { "address1": "sample string 1", "address2": "sample string 2", "city": "sample string 3", "country": "sample string 4", "county": "sample string 5", "fax": "sample string 6", "firstName": "sample string 7", "homePhone": "sample string 8", "lastName": "sample string 9", "mobilePhone": "sample string 10", "nickname": "sample string 11", "otherPhone": "sample string 12", "otherPhoneType": "sample string 13", "personalEmail": "sample string 14", "zipCode": "sample string 15", "state": "sample string 16", "taxRegion": "sample string 17", "workEmail": "sample string 18", "workPhone": "sample string 19" }, "hasLatestOrderId": true, "isRequiredToUpdateSap": true, "sub_Type": "sample string 6", "Sub_Order_Id": 7 }
application/xml, text/xml
Sample:
<BillingUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Subscriptions.HMH.DataAccess.Entities"> <Sub_Order_Id>7</Sub_Order_Id> <address xmlns:d2p1="http://schemas.datacontract.org/2004/07/Subscriptions.HMH.Common.APIEntities"> <d2p1:address1>sample string 1</d2p1:address1> <d2p1:address2>sample string 2</d2p1:address2> <d2p1:city>sample string 3</d2p1:city> <d2p1:country>sample string 4</d2p1:country> <d2p1:county>sample string 5</d2p1:county> <d2p1:fax>sample string 6</d2p1:fax> <d2p1:firstName>sample string 7</d2p1:firstName> <d2p1:homePhone>sample string 8</d2p1:homePhone> <d2p1:lastName>sample string 9</d2p1:lastName> <d2p1:mobilePhone>sample string 10</d2p1:mobilePhone> <d2p1:nickname>sample string 11</d2p1:nickname> <d2p1:otherPhone>sample string 12</d2p1:otherPhone> <d2p1:otherPhoneType>sample string 13</d2p1:otherPhoneType> <d2p1:personalEmail>sample string 14</d2p1:personalEmail> <d2p1:state>sample string 16</d2p1:state> <d2p1:taxRegion>sample string 17</d2p1:taxRegion> <d2p1:workEmail>sample string 18</d2p1:workEmail> <d2p1:workPhone>sample string 19</d2p1:workPhone> <d2p1:zipCode>sample string 15</d2p1:zipCode> </address> <hasLatestOrderId>true</hasLatestOrderId> <isRequiredToUpdateSap>true</isRequiredToUpdateSap> <paymentMethodId>sample string 3</paymentMethodId> <sub_Type>sample string 6</sub_Type> <userid>53395a03-4f50-4e83-8c5c-3f6e5a6b10e4</userid> <zAccountId>sample string 2</zAccountId> </BillingUpdateRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>