Get Payment Methods for an Account
get
/bcws/webresources/v1.0/paymentmethods/account/{id}
Returns all payment methods for the specified account.
Request
Path Parameters
-
id(required): string
The ID of the account, such as 0.0.0.1+-account+4567890, to get payment methods for.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
The payment methods were returned successfully.
Root Schema : paymentMethods
Type:
Show Source
object
-
extension: object
extension
The extended attributes.
-
paymentMethods: object
Wallet
Nested Schema : extension
Type:
object
The extended attributes.
Nested Schema : Wallet
Type:
Show Source
object
-
extension: object
extension
The extended attributes.
-
paymentInstrument: array
paymentInstrument
Nested Schema : extension
Type:
object
The extended attributes.
Nested Schema : PaymentInstrumentType
Type:
Show Source
object
-
accountRef: object
ResourceRef
-
correctiveInvoiceType: integer
(int32)
The type of invoice to create, such as an invoice correction letter or a replacement invoice.
-
extension: object
extension
The extended attributes.
-
id: string
The ID.
-
name: string
The payment instrument's name.
-
paymentType: integer
(int32)
The payment type. Can be one of the following:
- 10001:Invoice
- 10003: Credit card
- 10005: Direct debit
- 10007: Subordinate
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
Nested Schema : extension
Type:
object
The extended attributes.
500 Response
An internal server error occurred.
Examples
This example shows how to get an account's payment methods by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".
cURL Command
curl -X GET 'http://hostname:port/bcws/webresources/version/paymentmethods/account/0.0.0.1+-account+57615'
where:
- hostname is the URL for the Billing Care REST server.
- port is the port for the Billing Care REST server.
- version is the version of the API you're using, such as v1.0.
Example of Response Body
This example shows the contents of the response body in JSON format.
{
"extension": null,
"paymentMethods": {
"extension": null,
"paymentInstrument": [
{
"name": "{http://xmlns.oracle.com/cgbu/schemas/BusinessObjs}invoice",
"declaredType": "com.oracle.communications.brm.cc.model.InvoiceType",
"scope": "javax.xml.bind.JAXBElement$GlobalScope",
"value": {
"extension": null,
"id": "0.0.0.1+-payinfo-invoice+59663",
"name": "Invoice Payment Type",
"paymentType": 10001,
"accountRef": {
"id": "0.0.0.1+-account+57615",
"uri": null
},
"correctiveInvoiceType": 0,
"details": {
"invoiceId": "1234",
"address": "2300 Oracle Way",
"city": "Austin",
"country": "US",
"deliveryPrefer": "1",
"emailAddr": "name@example.com",
"name": "Mary Williams",
"state": "TX",
"zip": "78741",
"elem": null
}
},
"nil": false,
"globalScope": true,
"typeSubstituted": false
}
]
}
}