Table 8. API Resources for Billing Accounts
|
|
Additional Input Parameters |
|
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. |