Sync financial data: customer accounts, billing account, billing addresses and default shipping addresses for the provided organization id.

post

/ccadmin/v1/organizations/{id}/syncFinancialData

Sync financial data: customer accounts, billing account, billing addresses and default shipping addresses for a given organization id. Each time when this API is triggered, billing accounts and billing addresses are removed and re-created.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : syncFinancialData_request
Type: object
Show Source
  • If the business unit ID is provided, billing addresses associated with that business unit will be retrieved. And any existing billing accounts and billing addresses will be replaced with new ones. If no business unit ID is supplied, the system will attempt to obtain it from the CDMAccountServices component (if configured). If still unavailable, all billing addresses linked to the specified organization's party will be fetched.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : syncFinancialData_response
Type: object
Show Source
Nested Schema : customerAccountIds
Type: array
List of repository ids of synced the Customer Accounts.
Show Source
Nested Schema : failedAddressItems
Type: array
List of failed addresses of the Customer Account.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "customerAccountIds":[
        "ca10002",
        "ca10003",
        "ca20001"
    ],
    "failedAddressItems":[
        {
            "errorMessage":"City is not specified",
            "externalId":"300100628304102"
        },
        {
            "errorMessage":"City is not specified",
            "externalId":"17277"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |100193| Internal Error occurred while syncing Financial data: customer accounts and their addresses | |58001| Error if selfservice portal is not enabled| |100001|Error on invalid organization|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top