Web Services Reference for Oracle Self-Service E-Billing > RESTful API Resource Reference >

Web Service API Resources for Billing Accounts


You use the accounts resource for billing account resources as described in Table 8.

Table 8. API Resources for Billing Accounts
Operation
Resource URI
Additional Input Parameters
Description

GET

/accounts

None

Returns all accounts for the latest period. This information is retrieved from the billing hierarchy in the Business Edition (B2B) or from a user account link table in the Consumer Edition (B2C).

POST

/accounts/b2b

None

Creates a B2B billing account and adds the account to the company's latest period of the billing hierarchy. This API is primarily for object creation. The ETL billing file load can override any attribute values that are entered. For more information about the ETL load, see Administration Guide for Oracle Self-Service E-Billing.

POST

/accounts/b2c

None

Creates a B2C billing account.

GET

/accounts/{account_id}

None

Returns an account.

PUT

/accounts/{account_id}

None

Updates an account.

GET

/accounts/{account_id}/balance

None

Returns the current account balance. The balance can differ from the most recent statement.

PUT

/accounts/{account_id}/balance

None

Updates the current balance of the account.

Web Services Reference for Oracle Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.