GET rest/v1/payment/billing/account/{accountId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
accountId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PaymentResponseName | Description | Type | Additional information |
---|---|---|---|
creditCards | Collection of ZuoraCreditCard |
None. |
|
success | boolean |
None. |
|
processId | string |
None. |
|
reasons | Collection of Reason |
None. |
Response Formats
application/json, text/json
Sample:
{ "creditCards": [ { "id": "sample string 1", "defaultPaymentMethod": "sample string 2", "cardType": "sample string 3", "cardNumber": "sample string 4", "expirationMonth": 5, "expirationYear": 6, "securityCode": "sample string 7", "cardHolderInfo": { "cardHolderName": "sample string 1", "addressLine1": "sample string 2", "addressLine2": "sample string 3", "city": "sample string 4", "state": "sample string 5", "zipCode": "sample string 6", "country": "sample string 7", "phone": "sample string 8", "email": "sample string 9" } }, { "id": "sample string 1", "defaultPaymentMethod": "sample string 2", "cardType": "sample string 3", "cardNumber": "sample string 4", "expirationMonth": 5, "expirationYear": 6, "securityCode": "sample string 7", "cardHolderInfo": { "cardHolderName": "sample string 1", "addressLine1": "sample string 2", "addressLine2": "sample string 3", "city": "sample string 4", "state": "sample string 5", "zipCode": "sample string 6", "country": "sample string 7", "phone": "sample string 8", "email": "sample string 9" } } ], "success": true, "processId": "sample string 2", "reasons": [ { "code": 1, "message": "sample string 2" }, { "code": 1, "message": "sample string 2" } ] }
application/xml, text/xml
Sample:
<PaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Subscriptions.HMH.Common.APIEntities"> <processId>sample string 2</processId> <reasons> <Reason> <code>1</code> <message>sample string 2</message> </Reason> <Reason> <code>1</code> <message>sample string 2</message> </Reason> </reasons> <success>true</success> <creditCards> <ZuoraCreditCard> <cardHolderInfo> <addressLine1>sample string 2</addressLine1> <addressLine2>sample string 3</addressLine2> <cardHolderName>sample string 1</cardHolderName> <city>sample string 4</city> <country>sample string 7</country> <email>sample string 9</email> <phone>sample string 8</phone> <state>sample string 5</state> <zipCode>sample string 6</zipCode> </cardHolderInfo> <cardNumber>sample string 4</cardNumber> <cardType>sample string 3</cardType> <defaultPaymentMethod>sample string 2</defaultPaymentMethod> <expirationMonth>5</expirationMonth> <expirationYear>6</expirationYear> <id>sample string 1</id> <securityCode>sample string 7</securityCode> </ZuoraCreditCard> <ZuoraCreditCard> <cardHolderInfo> <addressLine1>sample string 2</addressLine1> <addressLine2>sample string 3</addressLine2> <cardHolderName>sample string 1</cardHolderName> <city>sample string 4</city> <country>sample string 7</country> <email>sample string 9</email> <phone>sample string 8</phone> <state>sample string 5</state> <zipCode>sample string 6</zipCode> </cardHolderInfo> <cardNumber>sample string 4</cardNumber> <cardType>sample string 3</cardType> <defaultPaymentMethod>sample string 2</defaultPaymentMethod> <expirationMonth>5</expirationMonth> <expirationYear>6</expirationYear> <id>sample string 1</id> <securityCode>sample string 7</securityCode> </ZuoraCreditCard> </creditCards> </PaymentResponse>