Create
/fscmRestApi/resources/11.13.18.05/b2bApplicationPartners
Request
-
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.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
- application/json
objectDiscriminator Values
-
CustomerAccount -
object
oracle_apps_scm_cmk_collaborationMessagingSetup_restModel_view_ApplicationPartnersToCustomerAccountVO-item-post-request
-
SoldToParty -
object
oracle_apps_scm_cmk_collaborationMessagingSetup_restModel_view_ApplicationPartnersToSoldToPartyVO-item-post-request
-
Supplier Site -
object
oracle_apps_scm_cmk_collaborationMessagingSetup_restModel_view_ApplicationPartnersToSupplierSiteVO-item-post-request
object-
ApplicationPartnerId: integer
(int64)
-
ApplicationPartnerStatus: string
Maximum Length:
100Default Value:Matched -
CustomerAccountNumber: string
Maximum Length:
256 -
CustomerName: string
Maximum Length:
512 -
CustomerNumber: string
Maximum Length:
256 -
DvmGroup: string
Maximum Length:
256 -
PartnerId: string
Maximum Length:
256 -
PartnerIdType: string
Maximum Length:
100 -
PartnerKeyType(required): string
Maximum Length:
100Default Value:CustomerAccount -
ProcessingActionCode: string
Title:
Application Partner CodeMaximum Length:256 -
ServiceProviderId(required): integer
(int64)
Title:
Service Provider -
ServiceProviderName: string
-
SPUserDefined: string
-
TradingPartner(required): string
-
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType(required): string
object-
ApplicationPartnerId: integer
(int64)
-
ApplicationPartnerStatus: string
Maximum Length:
100Default Value:Matched -
BusinessUnit: string
-
CustomerId: string
Maximum Length:
256 -
CustomerName: string
Maximum Length:
512 -
CustomerNumber: string
Maximum Length:
256 -
DvmGroup: string
Maximum Length:
256 -
PartnerId: string
Maximum Length:
256 -
PartnerIdType: string
Maximum Length:
100 -
PartnerKeyType(required): string
Maximum Length:
100Default Value:SoldToParty -
ProcessingActionCode: string
Title:
Application Partner CodeMaximum Length:256 -
ServiceProviderId(required): integer
(int64)
Title:
Service Provider -
ServiceProviderName: string
-
SPUserDefined: string
-
TradingPartner(required): string
-
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType(required): string
object-
ApplicationPartnerId: integer
(int64)
-
ApplicationPartnerStatus: string
Maximum Length:
100Default Value:Matched -
documents: array
documents
-
DvmGroup: string
Maximum Length:
256 -
PartnerId: string
Maximum Length:
256 -
PartnerIdType: string
Maximum Length:
100 -
PartnerKeyType(required): string
Maximum Length:
100Default Value:Supplier Site -
ProcessingActionCode: string
Title:
Application Partner CodeMaximum Length:256 -
ServiceProviderId(required): integer
(int64)
Title:
Service Provider -
ServiceProviderName: string
-
SPUserDefined: string
-
Supplier: string
Maximum Length:
512 -
SupplierId: string
Maximum Length:
256 -
SupplierNumber: string
Maximum Length:
512 -
SupplierSite: string
Maximum Length:
512 -
SupplierSiteId: string
Maximum Length:
256 -
TradingPartner(required): string
-
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType(required): string
object-
ApplicationPartnerDocumentId: integer
(int64)
-
ApplicationPartnerDocumentStatus: string
Maximum Length:
100 -
Direction: string
-
DocumentDescription: string
-
DocumentId: integer
(int64)
-
DocumentName: string
-
PrimaryRecipientFlag: boolean
Maximum Length:
1 -
SenderRole: string
-
ServiceProviderId: integer
-
StatusDate: string
(date-time)
Response
- application/json
Default Response
-
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.
objectDiscriminator Values
-
CustomerAccount -
object
oracle_apps_scm_cmk_collaborationMessagingSetup_restModel_view_ApplicationPartnersToCustomerAccountVO-item-response
-
SoldToParty -
object
oracle_apps_scm_cmk_collaborationMessagingSetup_restModel_view_ApplicationPartnersToSoldToPartyVO-item-response
-
Supplier Site -
object
oracle_apps_scm_cmk_collaborationMessagingSetup_restModel_view_ApplicationPartnersToSupplierSiteVO-item-response
object-
ApplicationPartnerId: integer
(int64)
-
ApplicationPartnerStatus: string
Maximum Length:
100Default Value:Matched -
CustomerAccountNumber: string
Maximum Length:
256 -
CustomerName: string
Maximum Length:
512 -
CustomerNumber: string
Maximum Length:
256 -
documents: array
documents
-
DvmGroup: string
Maximum Length:
256 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PartnerId: string
Maximum Length:
256 -
PartnerIdType: string
Maximum Length:
100 -
PartnerKeyType: string
Maximum Length:
100Default Value:CustomerAccount -
ProcessingActionCode: string
Title:
Application Partner CodeMaximum Length:256 -
ServiceProviderId: integer
(int64)
Title:
Service Provider -
ServiceProviderName: string
-
SPUserDefined: string
-
TradingPartner: string
-
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType: string
object-
ApplicationPartnerId: integer
(int64)
-
ApplicationPartnerStatus: string
Maximum Length:
100Default Value:Matched -
BusinessUnit: string
-
CustomerId: string
Maximum Length:
256 -
CustomerName: string
Maximum Length:
512 -
CustomerNumber: string
Maximum Length:
256 -
documents: array
documents
-
DvmGroup: string
Maximum Length:
256 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PartnerId: string
Maximum Length:
256 -
PartnerIdType: string
Maximum Length:
100 -
PartnerKeyType: string
Maximum Length:
100Default Value:SoldToParty -
ProcessingActionCode: string
Title:
Application Partner CodeMaximum Length:256 -
ServiceProviderId: integer
(int64)
Title:
Service Provider -
ServiceProviderName: string
-
SPUserDefined: string
-
TradingPartner: string
-
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType: string
object-
ApplicationPartnerId: integer
(int64)
-
ApplicationPartnerStatus: string
Maximum Length:
100Default Value:Matched -
documents: array
documents
-
DvmGroup: string
Maximum Length:
256 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PartnerId: string
Maximum Length:
256 -
PartnerIdType: string
Maximum Length:
100 -
PartnerKeyType: string
Maximum Length:
100Default Value:Supplier Site -
ProcessingActionCode: string
Title:
Application Partner CodeMaximum Length:256 -
ServiceProviderId: integer
(int64)
Title:
Service Provider -
ServiceProviderName: string
-
SPUserDefined: string
-
Supplier: string
Maximum Length:
512 -
SupplierId: string
Maximum Length:
256 -
SupplierNumber: string
Maximum Length:
512 -
SupplierSite: string
Maximum Length:
512 -
SupplierSiteId: string
Maximum Length:
256 -
TradingPartner: string
-
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType: string
arrayLinksobject-
ApplicationPartnerDocumentId: integer
(int64)
-
ApplicationPartnerDocumentStatus: string
Maximum Length:
100 -
Direction: string
-
DocumentDescription: string
-
DocumentId: integer
(int64)
-
DocumentName: string
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PrimaryRecipientFlag: boolean
Maximum Length:
1 -
SenderRole: string
-
ServiceProviderId: integer
-
StatusDate: string
(date-time)
arrayLinksobject-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
arrayLinksarrayLinks- documents
-
Operation: /fscmRestApi/resources/11.13.18.05/b2bApplicationPartners/{ApplicationPartnerId}/child/documentsParameters:
- ApplicationPartnerId:
$request.path.ApplicationPartnerId
- ApplicationPartnerId:
- serviceProvidersLOV
-
The following properties are defined on the LOV link relation:
- Source Attribute: ServiceProviderId; Target Attribute: ServiceProviderId
- Display Attribute: ServiceProviderName
- tradingPartnerIdTypeLOV
-
The following properties are defined on the LOV link relation:
- Source Attribute: TradingPartnerIdType; Target Attribute: LookupCode
- Display Attribute: Meaning
- tradingPartnersLOV
-
Parameters:
- finder:
ByServiceProviderFinder%3BbindServiceProviderId%3D{ServiceProviderId}
The following properties are defined on the LOV link relation:- Source Attribute: TradingPartnerId; Target Attribute: TradingPartnerId
- Display Attribute: TradingPartner
- finder:
Examples
This example describes how to create one application partner.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/b2bApplicationPartners"
Example 1 Request Body
The following example includes the contents of the request body in JSON format to create an application partner using customer collaboration configuration. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"CustomerNumber": "1001",
"PartnerKeyType": "SoldToParty",
"ServiceProviderName": "TEST_SP",
"TradingPartner": "TEST_SP_TP",
"TradingPartnerIdType": "ORA_Generic",
"PartnerId": "Partner ID 1",
"BusinessUnit": "10_CRM_MultiBU",
"ProcessingActionCode": "1234",
"DvmGroup": "ABCDEFG"
}
Example 1 Response Body
The following example includes the contents of the response body in JSON format:
{
"ApplicationPartnerStatus": "Matched",
"TradingPartnerId": 300100186134973,
"DvmGroup": "ABCDEFG",
"PartnerKeyType": "SoldToParty",
"ProcessingActionCode": "1234",
"ServiceProviderId": 300100186134957,
"ApplicationPartnerId": 300100186140473,
"ServiceProviderName": "TEST_SP",
"TradingPartner": "TEST_SP_TP",
"TradingPartnerIdType": "ORA_Generic",
"PartnerId": "Partner ID 1",
"PartnerIdType": null,
"CustomerId": "1001",
"CustomerNumber": "1001",
"CustomerName": "Small, Inc.",
"BusinessUnit": "10_CRM_MultiBU",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/b2bApplicationPartners/300100186140473",
"name": "b2bApplicationPartners",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/b2bApplicationPartners/300100186140473",
"name": "b2bApplicationPartners",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/b2bApplicationPartners/300100186140473/child/documents",
"name": "documents",
"kind": "collection"
}
]
}
Example 2 Request Body
The following example includes the contents of the request body in JSON format to create an application partner using supplier collaboration configuration. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.
{
"SupplierNumber": "515571",
"SupplierSite": "Sacramento",
"PartnerKeyType": "Supplier Site",
"ServiceProviderName": "TEST_SP",
"TradingPartner": "TEST_SP_TP",
"TradingPartnerIdType": "ORA_Generic",
"PartnerId": "Partner ID 1",
"ProcessingActionCode": " 515571-Sacramento",
"DvmGroup": "ABCDEFG"
}
Example 2 Response Body
The following example includes the contents of the response body in JSON format:
{
"ApplicationPartnerStatus": "Matched",
"TradingPartnerId": 300100186134973,
"DvmGroup": "ABCDEFG",
"PartnerKeyType": "Supplier Site",
"ProcessingActionCode": " 515571-Sacramento",
"ServiceProviderId": 300100186134957,
"ApplicationPartnerId": 300100186140512,
"ServiceProviderName": "TEST_SP",
"TradingPartner": "TEST_SP_TP",
"TradingPartnerIdType": "ORA_Generic",
"PartnerId": "Partner ID 1",
"PartnerIdType": null,
"SupplierId": "300100016486225",
"SupplierSiteId": "300100129803123",
"Supplier": "Advanced Devices",
"SupplierNumber": "515571",
"SupplierSite": "Sacramento",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/b2bApplicationPartners/300100186140512",
"name": "b2bApplicationPartners",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/b2bApplicationPartners/300100186140512",
"name": "b2bApplicationPartners",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/b2bApplicationPartners/300100186140512/child/documents",
"name": "documents",
"kind": "collection"
}
]
}