Create a subscription asset transaction
post
/crmRestApi/resources/11.13.18.05/subscriptionAssetTransactions
Request
Header Parameters
-
Metadata-Context:
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:
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/json
Root Schema : schema
Type:
Show Source
object
-
AssetFulfillmentLines: array
Asset Fulfillment Lines
Title:
Asset Fulfillment Lines
The asset fulfillment lines resource to view and create the asset fulfillment details in a replacement or upgrade transaction. The Asset Fulfillment Lines object has details such as replaced or upgraded customer asset, fulfillment date, fulfillment type etc. -
AssetId(required): integer
(int64)
The unique identifier of the asset associated with the transaction.
-
AssetSplitLines: array
Asset Split Lines
Title:
Asset Split Lines
The asset split lines resource to is used view and create the asset split details in a split transaction. The Asset Split Lines object has details such as customer asset, quantity etc. -
BillToAccountId: integer
(int64)
The unique identifier of the bill-to account associated with the asset.
-
BillToAccountSiteId: integer
(int64)
The unique identifier of the bill-to account site associated with the asset.
-
BillToAccountSiteUseId: integer
(int64)
The unique identifier of the bill-to account site use associated with the asset.
-
BusinessUnitId: integer
(int64)
The unique identifier of the business unit associated with the asset.
-
CustomerId: integer
(int64)
The unique identifier of the customer associated with the asset.
-
FulfillmentType: string
Maximum Length:
30
The type of fulfillment. -
Quantity: number
The quatity for the transaction.
-
ReplacementAssetId: integer
(int64)
The unique identifier of the replacement asset.
-
ReturnOrderId: integer
(int64)
The ID of the return order.
-
ReturnOrderLineId: integer
(int64)
The individual line ID of the return order.
-
ReturnOrderLineNumber: string
Maximum Length:
120
The return order line number. -
ReturnOrderNumber: string
Maximum Length:
120
The identifier of the return order. -
ReturnOrderSystem: string
Maximum Length:
30
The system used to track return orders. -
SalesOrderId: integer
(int64)
The unique identifier of the sales order.
-
SalesOrderLineId: integer
(int64)
The unique identifier of the line in the sales order.
-
SalesOrderLineNumber: string
Maximum Length:
120
The line number of the sles order. -
SalesOrderNumber: string
Maximum Length:
120
The alternate unique identifier of the sales order. -
SalesOrderSystem: string
Maximum Length:
30
The sales order system associated with the transaction. -
ShipToPartyId: integer
(int64)
The unique identifier of the ship-to account associated with the asset.
-
ShipToPartySiteId: integer
(int64)
The unique identifier of the ship-to account site associated with the asset.
-
TransactionDate(required): string
(date)
Title:
Transaction Date
The date for the transaction. -
TransactionId: integer
(int64)
The unique identifier of the transaction.
-
TransactionType(required): string
Title:
Asset Transaction Type
Maximum Length:60
The type of the transaction. -
WaitForFulfillment: string
Maximum Length:
1
The time required to fulfil the subscription.
Nested Schema : Asset Fulfillment Lines
Type:
array
Title:
Asset Fulfillment Lines
The asset fulfillment lines resource to view and create the asset fulfillment details in a replacement or upgrade transaction. The Asset Fulfillment Lines object has details such as replaced or upgraded customer asset, fulfillment date, fulfillment type etc.
Show Source
Nested Schema : Asset Split Lines
Type:
array
Title:
Asset Split Lines
The asset split lines resource to is used view and create the asset split details in a split transaction. The Asset Split Lines object has details such as customer asset, quantity etc.
Show Source
Nested Schema : schema
Type:
Show Source
object
-
AssetId: integer
(int64)
The unique identifier of the associated asset.
-
FulfillmentLineDate: string
(date)
The date of the fulfillment line.
-
FulfillmentLineId: integer
(int64)
The unique identifier of the fulfillment line.
-
FulfillmentLineType: string
Maximum Length:
30
The type of the fullfillment type. -
OrderFulfillLineId: integer
(int64)
The unique identifier of the order fulfillment line.
-
OrderId: integer
(int64)
The unique identifier of the order in the system.
-
OrderLineId: integer
(int64)
The unique identifier of the order line in the system.
-
OrderLineNumber: string
Maximum Length:
120
The alternate unique identifier of the order line. -
OrderNumber: string
Maximum Length:
120
The alternate unique identifier of the order. -
OrderSystem: string
Maximum Length:
30
The order system associated. -
Quantity: number
The quantity of the asset in the fulfillment line.
Nested Schema : schema
Type:
Show Source
object
-
AssetId: integer
(int64)
The unique identifier of the asset associated with the transaction.
-
Quantity: number
The quantity of the asset in the fulfillment line.
-
SplitLineId: integer
(int64)
The unique identifier of the split line.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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:
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.
Root Schema : subscriptionAssetTransactions-item-response
Type:
Show Source
object
-
AssetFulfillmentLines: array
Asset Fulfillment Lines
Title:
Asset Fulfillment Lines
The asset fulfillment lines resource to view and create the asset fulfillment details in a replacement or upgrade transaction. The Asset Fulfillment Lines object has details such as replaced or upgraded customer asset, fulfillment date, fulfillment type etc. -
AssetId: integer
(int64)
The unique identifier of the asset associated with the transaction.
-
AssetSplitLines: array
Asset Split Lines
Title:
Asset Split Lines
The asset split lines resource to is used view and create the asset split details in a split transaction. The Asset Split Lines object has details such as customer asset, quantity etc. -
BillToAccountId: integer
(int64)
The unique identifier of the bill-to account associated with the asset.
-
BillToAccountSiteId: integer
(int64)
The unique identifier of the bill-to account site associated with the asset.
-
BillToAccountSiteUseId: integer
(int64)
The unique identifier of the bill-to account site use associated with the asset.
-
BusinessUnitId: integer
(int64)
The unique identifier of the business unit associated with the asset.
-
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Read Only:
true
The date when the record was created. -
CustomerId: integer
(int64)
The unique identifier of the customer associated with the asset.
-
FulfillmentType: string
Maximum Length:
30
The type of fulfillment. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the record was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PendingFulfillmentCancelled: string
Read Only:
true
Maximum Length:1
Indicates if the pendinf fulfillment can be cancelled. -
Quantity: number
The quatity for the transaction.
-
ReplacementAssetId: integer
(int64)
The unique identifier of the replacement asset.
-
ReturnCompleted: string
Read Only:
true
Maximum Length:1
Indicates if the return is complete. -
ReturnOrderId: integer
(int64)
The ID of the return order.
-
ReturnOrderLineId: integer
(int64)
The individual line ID of the return order.
-
ReturnOrderLineNumber: string
Maximum Length:
120
The return order line number. -
ReturnOrderNumber: string
Maximum Length:
120
The identifier of the return order. -
ReturnOrderSystem: string
Maximum Length:
30
The system used to track return orders. -
SalesOrderId: integer
(int64)
The unique identifier of the sales order.
-
SalesOrderLineId: integer
(int64)
The unique identifier of the line in the sales order.
-
SalesOrderLineNumber: string
Maximum Length:
120
The line number of the sles order. -
SalesOrderNumber: string
Maximum Length:
120
The alternate unique identifier of the sales order. -
SalesOrderSystem: string
Maximum Length:
30
The sales order system associated with the transaction. -
ShipmentCompleted: string
Read Only:
true
Maximum Length:1
Indicates if the shipment is complete. -
ShipToPartyId: integer
(int64)
The unique identifier of the ship-to account associated with the asset.
-
ShipToPartySiteId: integer
(int64)
The unique identifier of the ship-to account site associated with the asset.
-
TransactionDate: string
(date)
Title:
Transaction Date
The date for the transaction. -
TransactionId: integer
(int64)
The unique identifier of the transaction.
-
TransactionNumber: string
Read Only:
true
Maximum Length:120
The alternate unique identifier of the transaction. -
TransactionSequence: integer
(int64)
Title:
Sequence
Read Only:true
The sequence associated with the transaction. -
TransactionStatus: string
Title:
Status
Read Only:true
Maximum Length:30
Default Value:NEW
The currnet status of the transaction. -
TransactionType: string
Title:
Asset Transaction Type
Maximum Length:60
The type of the transaction. -
WaitForFulfillment: string
Maximum Length:
1
The time required to fulfil the subscription.
Nested Schema : Asset Fulfillment Lines
Type:
array
Title:
Asset Fulfillment Lines
The asset fulfillment lines resource to view and create the asset fulfillment details in a replacement or upgrade transaction. The Asset Fulfillment Lines object has details such as replaced or upgraded customer asset, fulfillment date, fulfillment type etc.
Show Source
Nested Schema : Asset Split Lines
Type:
array
Title:
Asset Split Lines
The asset split lines resource to is used view and create the asset split details in a split transaction. The Asset Split Lines object has details such as customer asset, quantity etc.
Show Source
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : subscriptionAssetTransactions-AssetFulfillmentLines-item-response
Type:
Show Source
object
-
AssetId: integer
(int64)
The unique identifier of the associated asset.
-
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Read Only:
true
The date when the record was created. -
FulfillmentLineDate: string
(date)
The date of the fulfillment line.
-
FulfillmentLineId: integer
(int64)
The unique identifier of the fulfillment line.
-
FulfillmentLineNumber: string
Read Only:
true
Maximum Length:120
The identifier of the fulfillment line. -
FulfillmentLineType: string
Maximum Length:
30
The type of the fullfillment type. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the record was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
OrderFulfillLineId: integer
(int64)
The unique identifier of the order fulfillment line.
-
OrderId: integer
(int64)
The unique identifier of the order in the system.
-
OrderLineId: integer
(int64)
The unique identifier of the order line in the system.
-
OrderLineNumber: string
Maximum Length:
120
The alternate unique identifier of the order line. -
OrderNumber: string
Maximum Length:
120
The alternate unique identifier of the order. -
OrderSystem: string
Maximum Length:
30
The order system associated. -
Quantity: number
The quantity of the asset in the fulfillment line.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : subscriptionAssetTransactions-AssetSplitLines-item-response
Type:
Show Source
object
-
AssetId: integer
(int64)
The unique identifier of the asset associated with the transaction.
-
CreatedBy: string
Read Only:
true
Maximum Length:64
The user who created the record. -
CreationDate: string
(date-time)
Read Only:
true
The date when the record was created. -
LastUpdateDate: string
(date-time)
Read Only:
true
The date when the record was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
The user who last updated the record. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
The login of the user who last updated the record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Quantity: number
The quantity of the asset in the fulfillment line.
-
SplitLineId: integer
(int64)
The unique identifier of the split line.
-
SplitLineNumber: string
Read Only:
true
Maximum Length:120
The alternate unique identifier of the split line.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Links
- AssetFulfillmentLines
-
Parameters:
- TransactionNumber:
$request.path.TransactionNumber
The asset fulfillment lines resource to view and create the asset fulfillment details in a replacement or upgrade transaction. The Asset Fulfillment Lines object has details such as replaced or upgraded customer asset, fulfillment date, fulfillment type etc. - TransactionNumber:
- AssetSplitLines
-
Parameters:
- TransactionNumber:
$request.path.TransactionNumber
The asset split lines resource to is used view and create the asset split details in a split transaction. The Asset Split Lines object has details such as customer asset, quantity etc. - TransactionNumber:
- notifyFulfillmentCompleted
-
Parameters:
- TransactionNumber:
$request.path.TransactionNumber
This method will be used for notifying the completion of fulfillment in case of customer replacement or upgrade transaction. - TransactionNumber:
- notifyPendingFulfillmentCancelled
-
Parameters:
- TransactionNumber:
$request.path.TransactionNumber
This method will be used for notifying the fulfillment is cancelled in case of customer replacement or upgrade transaction. - TransactionNumber:
- notifyReturnCompleted
-
Parameters:
- TransactionNumber:
$request.path.TransactionNumber
This method will be used for notifying the completion of return in case of customer replacement or upgrade transaction. - TransactionNumber:
- notifyShipmentCompleted
-
Parameters:
- TransactionNumber:
$request.path.TransactionNumber
Notifies the completion of shipment in case of customer replacement or upgrade transaction. - TransactionNumber:
Examples
The following example shows how to create a subscription asset transaction by submitting a POST request on the REST resource using cURL.
cURL Command
curl --user
sales_cloud_user -X POST -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/subscriptionAssetTransactions
Example of Request Body
The following shows the contents of the request body in JSON format.
{ "TransactionType": "CUSTOMER_ASSET_CREATION", "TransactionDate": "2020-07-01", "AssetId": 300100185258462, "Quantity": 1, "CustomerId": 1005, "BillToAccountId": 1005, "BillToAccountSiteUseId":1023, "SalesOrderSystem": "CSV", "SalesOrderId": "1000", "SalesOrderLineId": 1000, "SalesOrderNumber": "1", "SalesOrderLineNumber": 1 }
Example of Response Body
The following shows the contents of the response body in JSON format.
{ "TransactionId": 300100553691636, "TransactionNumber": "ATXN-3002", "TransactionSequence": 3001, "TransactionType": "CUSTOMER_ASSET_CREATION", "TransactionDate": "2020-07-01", "TransactionStatus": "PENDING", "AssetId": 300100185258462, "Quantity": 1, "BusinessUnitId": null, "CustomerId": 1005, "BillToAccountId": 1005, "BillToAccountSiteId": null, "BillToAccountSiteUseId": 1023, "ShipToPartyId": null, "ShipToPartySiteId": null, "SalesOrderSystem": "CSV", "SalesOrderId": 1000, "SalesOrderLineId": 1000, "SalesOrderNumber": "1", "SalesOrderLineNumber": "1", "ReturnOrderSystem": null, "ReturnOrderId": null, "ReturnOrderLineId": null, "ReturnOrderNumber": null, "ReturnOrderLineNumber": null, "ReplacementAssetId": null, "FulfillmentType": null, "WaitForFulfillment": null, "PendingFulfillmentCancelled": null, "ShipmentCompleted": null, "ReturnCompleted": null, "CreatedBy": "CONMGR", "CreationDate": "2021-03-09T06:02:06+00:00", "LastUpdatedBy": "CONMGR", "LastUpdateDate": "2021-03-09T06:02:06.783+00:00", "LastUpdateLogin": "BC547B379746472FE0530740F00AC04A", ... }