Convert a buying customer into sales account
post
/crmRestApi/resources/11.13.18.05/accounts/action/convertToSalesAccount
This method lets you convert a Buying Customer into a Sales Account using REST API. This allows to convert party only with External Legal Entity or Buying Customer usage. This is for internal use only.
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/vnd.oracle.adf.action+json
Root Schema : schema
Type:
Show Source
object
-
account: object
account
Additional Properties Allowed: additionalPropertiesThis allows customer to pass in attributes on account header. It's required to pass PartyNumber or PartyId.
Nested Schema : account
Type:
object
Additional Properties Allowed
Show Source
This allows customer to pass in attributes on account header. It's required to pass PartyNumber or PartyId.
Response
Supported Media Types
- application/json
- application/vnd.oracle.adf.actionresult+json
Default Response
The following table describes the default response for this task.
Root Schema : schema
Type:
Show Source
object
-
result(required): string
Returns successful when a buying customer or External legal entity is converted to Sales account. Otherwise, returns the relevant error message.