Create
post
/fscmRestApi/resources/11.13.18.05/b2bTradingPartners
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.
-
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
b2bServiceProviders: array
b2bServiceProviders
-
confirmationCodes: array
confirmationCodes
-
deliveryMethods: array
deliveryMethods
-
documents: array
documents
-
ExternalMessageStandardTag: string
Maximum Length:
512 -
ExternalMessageTypeTag: string
Maximum Length:
512 -
ExternalMessageVersionTag: string
Maximum Length:
512 -
FromPartnerIdTag: string
Maximum Length:
512 -
FromPartnerIdTypeTag: string
Maximum Length:
512 -
inboundCollaborationMessages: array
inboundCollaborationMessages
-
ManualEntryIndicator: string
Maximum Length:
10Default Value:Yes -
outboundCollaborationMessages: array
outboundCollaborationMessages
-
ServiceProviderId(required): integer
(int64)
-
ServiceProviderName: string
-
SPUserDefined: string
-
ToPartnerIdTag: string
Maximum Length:
512 -
ToPartnerIdTypeTag: string
Maximum Length:
512 -
TradingPartner: string
Title:
Trading Partner IDMaximum Length:100 -
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType: string
Maximum Length:
100
Nested Schema : b2bTradingPartners-b2bServiceProviders-item-post-request
Type:
Show Source
object-
PartnerId: string
Title:
Provider IDMaximum Length:100 -
PartnerIdType: string
Maximum Length:
100 -
ServiceProviderId: integer
(int64)
-
ServiceProviderName: string
Maximum Length:
256 -
UserDefined: string
Maximum Length:
1Default Value:Y
Nested Schema : b2bTradingPartners-confirmationCodes-item-post-request
Type:
Show Source
object-
CollaborationStatus: string
Maximum Length:
100 -
ConfStatusXrefId: integer
(int64)
-
PartnerStatus: string
Maximum Length:
256
Nested Schema : b2bTradingPartners-deliveryMethods-item-post-request
Type:
Show Source
object-
AttachXmlFlag: boolean
Title:
Attach PayloadMaximum Length:10 -
B2bRoutingFlag: boolean
Title:
B2B Routing EnabledMaximum Length:10Default Value:false -
CsfkeyPassword: string
-
CsfkeyUser: string
-
DeliveryMethodId: integer
(int64)
-
DeliveryMethodName: string
Title:
NameMaximum Length:256 -
DeliveryMethodType: string
Maximum Length:
100 -
FileExtension: string
Maximum Length:
10 -
FileName: string
Maximum Length:
256 -
RecipientEmailId: string
Title:
Recipient Email IDMaximum Length:256 -
RemoteDir: string
Maximum Length:
2000 -
RequestHeaders: string
Maximum Length:
2000 -
SecurityPolicy: string
Title:
Security PolicyMaximum Length:256 -
Service: string
Title:
Service NameMaximum Length:256 -
ServiceMeaning: string
-
ServiceUri: string
-
SftpHost: string
-
SftpPort: string
Maximum Length:
255 -
UcmExportDocumentAccount: string
Title:
Repository AccountMaximum Length:1024
Nested Schema : b2bTradingPartners-documents-messageProcessingRules-item-post-request
Type:
Show Source
object-
DefaultValue: string
Maximum Length:
512 -
IncludeInOutputFlag: boolean
Maximum Length:
100 -
MessageNodeXpath: string
Maximum Length:
2000 -
Name: string
Maximum Length:
512 -
NodeId: integer
(int64)
-
ValueRequiredFlag: boolean
Maximum Length:
100
Nested Schema : b2bTradingPartners-inboundCollaborationMessages-item-post-request
Type:
Show Source
object-
AcknowledgementCode: string
Maximum Length:
100Default Value:Never -
ApplicationPartnerCodeXpath: string
Maximum Length:
2000 -
CreationDate: string
(date-time)
-
DocumentId: integer
(int64)
-
domainValueMaps: array
domainValueMaps
-
LastUpdateDate: string
(date-time)
-
MessageId(required): integer
(int64)
Title:
Collaboration Message Definition -
MessageName(required): string
-
messageProcessingRules: array
messageProcessingRules
-
ObjectKey1Xpath: string
Maximum Length:
2000 -
ObjectKey2Xpath: string
Maximum Length:
2000 -
ObjectKey3Xpath: string
Maximum Length:
2000 -
ObjectKey4Xpath: string
Maximum Length:
2000 -
ObjectKey5Xpath: string
Maximum Length:
2000 -
ObjectKey6Xpath: string
Maximum Length:
2000 -
OverrideStatus(required): string
Maximum Length:
100 -
OverrideStatusDate: string
(date-time)
-
PartnerMessageCustomizationId(required): integer
(int64)
-
PartnerMessageId: integer
(int64)
-
PartnerMessageName(required): string
Title:
NameMaximum Length:256 -
PartnerMessageStatus: string
Maximum Length:
100 -
PartnerMessageStatusDate: string
(date-time)
-
ProcessingAction: string
Maximum Length:
256 -
RetentionDuration: integer
(int32)
Title:
Retention Duration -
RetentionDurationType: string
Title:
Retention Duration UnitMaximum Length:100
Nested Schema : b2bTradingPartners-inboundCollaborationMessages-domainValueMaps-item-post-request
Type:
Show Source
objectNested Schema : schema
Type:
Show Source
object-
DefaultValue: string
Maximum Length:
512 -
IncludeInOutputFlag: boolean
Maximum Length:
100 -
MessageNodeXpath: string
Maximum Length:
2000 -
Name: string
Maximum Length:
512 -
NodeId: integer
(int64)
-
ValueRequiredFlag: boolean
Maximum Length:
100
Nested Schema : b2bTradingPartners-outboundCollaborationMessages-item-post-request
Type:
Show Source
object-
AlternateDeliveryMethodId: integer
(int64)
-
AlternateDeliveryMethodName: string
-
AttachmentProcessingMethod: string
Maximum Length:
64 -
DeliveryMethodId: integer
(int64)
-
DeliveryMethodName: string
-
DocumentId: integer
(int64)
-
domainValueMaps: array
domainValueMaps
-
MessageId(required): integer
(int64)
Title:
Collaboration Message Definition -
MessageName(required): string
-
messageProcessingRules: array
messageProcessingRules
-
OverrideStatus(required): string
Maximum Length:
100 -
OverrideStatusDate: string
(date-time)
-
PartnerMessageCustomizationId(required): integer
(int64)
-
PartnerMessageId: integer
(int64)
-
PartnerMessageName(required): string
Title:
NameMaximum Length:256 -
PartnerMessageStatus: string
Maximum Length:
100 -
PartnerMessageStatusDate: string
(date-time)
-
ProcessingAction: string
Maximum Length:
256 -
RetentionDuration: integer
(int32)
Title:
Retention Duration -
RetentionDurationType: string
Title:
Retention Duration UnitMaximum Length:100 -
ServiceProviderId: integer
(int64)
Nested Schema : b2bTradingPartners-outboundCollaborationMessages-domainValueMaps-item-post-request
Type:
Show Source
objectNested Schema : b2bTradingPartners-outboundCollaborationMessages-messageProcessingRules-item-post-request
Type:
Show Source
object-
DefaultValue: string
Maximum Length:
512 -
IncludeInOutputFlag: boolean
Maximum Length:
100 -
MessageNodeXpath: string
Maximum Length:
2000 -
Name: string
Maximum Length:
512 -
NodeId: integer
(int64)
-
ValueRequiredFlag: boolean
Maximum Length:
100
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 : b2bTradingPartners-item-response
Type:
Show Source
object-
b2bServiceProviders: array
b2bServiceProviders
-
confirmationCodes: array
confirmationCodes
-
CreationDate: string
(date-time)
Read Only:
true -
deliveryMethods: array
deliveryMethods
-
documents: array
documents
-
ExternalMessageStandardTag: string
Maximum Length:
512 -
ExternalMessageTypeTag: string
Maximum Length:
512 -
ExternalMessageVersionTag: string
Maximum Length:
512 -
FromPartnerIdTag: string
Maximum Length:
512 -
FromPartnerIdTypeTag: string
Maximum Length:
512 -
inboundCollaborationMessages: array
inboundCollaborationMessages
-
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ManualEntryIndicator: string
Maximum Length:
10Default Value:Yes -
ObnId: string
Read Only:
trueMaximum Length:100 -
outboundCollaborationMessages: array
outboundCollaborationMessages
-
ServiceProviderId: integer
(int64)
-
ServiceProviderName: string
-
SPUserDefined: string
-
ToPartnerIdTag: string
Maximum Length:
512 -
ToPartnerIdTypeTag: string
Maximum Length:
512 -
TradingPartner: string
Title:
Trading Partner IDMaximum Length:100 -
TradingPartnerId: integer
(int64)
-
TradingPartnerIdType: string
Maximum Length:
100
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-b2bServiceProviders-item-response
Type:
Show Source
object-
CreationDate: string
(date-time)
Read Only:
true -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PartnerId: string
Title:
Provider IDMaximum Length:100 -
PartnerIdType: string
Maximum Length:
100 -
ServiceProviderId: integer
(int64)
-
ServiceProviderName: string
Maximum Length:
256 -
UserDefined: string
Maximum Length:
1Default Value:Y
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
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.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : b2bTradingPartners-confirmationCodes-item-response
Type:
Show Source
object-
CollaborationStatus: string
Maximum Length:
100 -
ConfStatusXrefId: integer
(int64)
-
CreationDate: string
(date-time)
Read Only:
true -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PartnerStatus: string
Maximum Length:
256
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-deliveryMethods-item-response
Type:
Show Source
object-
AttachXmlFlag: boolean
Title:
Attach PayloadMaximum Length:10 -
B2bRoutingFlag: boolean
Title:
B2B Routing EnabledMaximum Length:10Default Value:false -
CreationDate: string
(date-time)
Read Only:
true -
CsfkeyPassword: string
-
CsfkeyUser: string
-
DeliveryMethodId: integer
(int64)
-
DeliveryMethodName: string
Title:
NameMaximum Length:256 -
DeliveryMethodType: string
Maximum Length:
100 -
FileExtension: string
Maximum Length:
10 -
FileName: string
Maximum Length:
256 -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
RecipientEmailId: string
Title:
Recipient Email IDMaximum Length:256 -
RemoteDir: string
Maximum Length:
2000 -
RequestHeaders: string
Maximum Length:
2000 -
SecurityPolicy: string
Title:
Security PolicyMaximum Length:256 -
Service: string
Title:
Service NameMaximum Length:256 -
ServiceMeaning: string
-
ServiceUri: string
-
SftpHost: string
-
SftpPort: string
Maximum Length:
255 -
UcmExportDocumentAccount: string
Title:
Repository AccountMaximum Length:1024
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-documents-item-response
Type:
Show Source
object-
DocumentId: integer
-
DocumentName: string
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
messageProcessingRules: array
messageProcessingRules
-
ServiceRequestId: integer
-
TradingPartnerDocumentId: integer
-
TradingPartnerDocumentStatus: string
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-documents-messageProcessingRules-item-response
Type:
Show Source
object-
CreationDate: string
(date-time)
Read Only:
true -
DefaultValue: string
Maximum Length:
512 -
IncludeInOutputFlag: boolean
Maximum Length:
100 -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageNodeXpath: string
Maximum Length:
2000 -
Name: string
Maximum Length:
512 -
NodeId: integer
(int64)
-
ValueRequiredFlag: boolean
Maximum Length:
100
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-inboundCollaborationMessages-item-response
Type:
Show Source
object-
AcknowledgementCode: string
Maximum Length:
100Default Value:Never -
ApplicationPartnerCodeXpath: string
Maximum Length:
2000 -
CreationDate: string
(date-time)
-
DocumentId: integer
(int64)
-
DocumentName: string
Read Only:
trueMaximum Length:256 -
domainValueMaps: array
domainValueMaps
-
LastUpdateDate: string
(date-time)
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageId: integer
(int64)
Title:
Collaboration Message Definition -
MessageName: string
-
messageProcessingRules: array
messageProcessingRules
-
ObjectKey1Xpath: string
Maximum Length:
2000 -
ObjectKey2Xpath: string
Maximum Length:
2000 -
ObjectKey3Xpath: string
Maximum Length:
2000 -
ObjectKey4Xpath: string
Maximum Length:
2000 -
ObjectKey5Xpath: string
Maximum Length:
2000 -
ObjectKey6Xpath: string
Maximum Length:
2000 -
OverrideStatus: string
Maximum Length:
100 -
OverrideStatusDate: string
(date-time)
-
PartnerMessageCustomizationId: integer
(int64)
-
PartnerMessageId: integer
(int64)
-
PartnerMessageName: string
Title:
NameMaximum Length:256 -
PartnerMessageStatus: string
Maximum Length:
100 -
PartnerMessageStatusDate: string
(date-time)
-
ProcessingAction: string
Maximum Length:
256 -
RetentionDuration: integer
(int32)
Title:
Retention Duration -
RetentionDurationType: string
Title:
Retention Duration UnitMaximum Length:100 -
UserDefinedFlag: boolean
Read Only:
true
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-inboundCollaborationMessages-domainValueMaps-item-response
Type:
Show Source
object-
CreationDate: string
(date-time)
Read Only:
true -
DvmName: string
Read Only:
trueMaximum Length:256 -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageDvmId: integer
(int64)
Read Only:
true -
MessageId: integer
(int64)
Read Only:
true -
MessageName: string
Read Only:
true
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-inboundCollaborationMessages-messageProcessingRules-item-response
Type:
Show Source
object-
CreationDate: string
(date-time)
Read Only:
true -
DefaultValue: string
Maximum Length:
512 -
IncludeInOutputFlag: boolean
Maximum Length:
100 -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageNodeXpath: string
Maximum Length:
2000 -
Name: string
Maximum Length:
512 -
NodeId: integer
(int64)
-
ValueRequiredFlag: boolean
Maximum Length:
100
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-outboundCollaborationMessages-item-response
Type:
Show Source
object-
AlternateDeliveryMethodId: integer
(int64)
-
AlternateDeliveryMethodName: string
-
AttachmentProcessingMethod: string
Maximum Length:
64 -
CreationDate: string
(date-time)
Read Only:
true -
DeliveryMethodId: integer
(int64)
-
DeliveryMethodName: string
-
DocumentId: integer
(int64)
-
DocumentName: string
Read Only:
trueMaximum Length:256 -
domainValueMaps: array
domainValueMaps
-
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageId: integer
(int64)
Title:
Collaboration Message Definition -
MessageName: string
-
messageProcessingRules: array
messageProcessingRules
-
OverrideStatus: string
Maximum Length:
100 -
OverrideStatusDate: string
(date-time)
-
PartnerMessageCustomizationId: integer
(int64)
-
PartnerMessageId: integer
(int64)
-
PartnerMessageName: string
Title:
NameMaximum Length:256 -
PartnerMessageStatus: string
Maximum Length:
100 -
PartnerMessageStatusDate: string
(date-time)
-
ProcessingAction: string
Maximum Length:
256 -
RetentionDuration: integer
(int32)
Title:
Retention Duration -
RetentionDurationType: string
Title:
Retention Duration UnitMaximum Length:100 -
ServiceProviderId: integer
(int64)
-
UserDefinedFlag: boolean
Read Only:
true
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-outboundCollaborationMessages-domainValueMaps-item-response
Type:
Show Source
object-
CreationDate: string
(date-time)
Read Only:
true -
DvmName: string
Read Only:
trueMaximum Length:256 -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageDvmId: integer
(int64)
Read Only:
true -
MessageId: integer
(int64)
Read Only:
true -
MessageName: string
Read Only:
true
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : b2bTradingPartners-outboundCollaborationMessages-messageProcessingRules-item-response
Type:
Show Source
object-
CreationDate: string
(date-time)
Read Only:
true -
DefaultValue: string
Maximum Length:
512 -
IncludeInOutputFlag: boolean
Maximum Length:
100 -
LastUpdateDate: string
(date-time)
Read Only:
true -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MessageNodeXpath: string
Maximum Length:
2000 -
Name: string
Maximum Length:
512 -
NodeId: integer
(int64)
-
ValueRequiredFlag: boolean
Maximum Length:
100
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- b2bServiceProviders
-
Operation: /fscmRestApi/resources/11.13.18.05/b2bTradingPartners/{TradingPartnerId}/child/b2bServiceProvidersParameters:
- TradingPartnerId:
$request.path.TradingPartnerId
- TradingPartnerId:
- confirmationCodes
-
Operation: /fscmRestApi/resources/11.13.18.05/b2bTradingPartners/{TradingPartnerId}/child/confirmationCodesParameters:
- TradingPartnerId:
$request.path.TradingPartnerId
- TradingPartnerId:
- deliveryMethods
-
Operation: /fscmRestApi/resources/11.13.18.05/b2bTradingPartners/{TradingPartnerId}/child/deliveryMethodsParameters:
- TradingPartnerId:
$request.path.TradingPartnerId
- TradingPartnerId:
- documents
-
Parameters:
- TradingPartnerId:
$request.path.TradingPartnerId
- TradingPartnerId:
- inboundCollaborationMessages
-
Parameters:
- TradingPartnerId:
$request.path.TradingPartnerId
- TradingPartnerId:
- outboundCollaborationMessages
-
Parameters:
- TradingPartnerId:
$request.path.TradingPartnerId
- TradingPartnerId:
Examples
This example describes how to create trading partners.
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/b2bTradingPartners"
Example Request Body
The following example includes the contents of the request body in JSON format. 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.
{
"TradingPartner": "JK_NEW_TEST",
"TradingPartnerIdType": "ORA_DUNS",
"ManualEntryIndicator": "Yes"
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"TradingPartnerId" : 300100113040917,
"TradingPartner" : "JK_NEW_TEST",
"TradingPartnerIdType" : "ORA_DUNS",
"ManualEntryIndicator" : "Yes",
"ServiceProviderId" : 50055,
"ServiceProviderName" : "None",
"FromPartnerIdTag" : null,
"FromPartnerIdTypeTag" : null,
"ToPartnerIdTag" : null,
"ToPartnerIdTypeTag" : null,
"ExternalMessageTypeTag" : null,
"ExternalMessageVersionTag" : null,
"ExternalMessageStandardTag" : null,
}