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

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The payment methods were returned successfully.
Body ()
Root Schema : paymentMethods
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Wallet
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : paymentInstrument
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : name
Type: object
Show Source
Nested Schema : PaymentInstrumentType
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.

500 Response

An internal server error occurred.
Back to Top

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
            }
        ]
    }
}
Back to Top