AWS B2B Data Interchange 2022-06-23
- Client: Aws\B2bi\B2biClient
- Service ID: b2bi
- Version: 2022-06-23
This page describes the parameters and results for the operations of the AWS B2B Data Interchange (2022-06-23), and shows how to use the Aws\B2bi\B2biClient object to call the described operations. This documentation is specific to the 2022-06-23 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- CreateCapability ( array $params = [] )
- Instantiates a capability based on the specified parameters.
- CreatePartnership ( array $params = [] )
- Creates a partnership between a customer and a trading partner, based on the supplied parameters.
- CreateProfile ( array $params = [] )
- Creates a customer profile.
- CreateStarterMappingTemplate ( array $params = [] )
- Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI.
- CreateTransformer ( array $params = [] )
- Creates a transformer.
- DeleteCapability ( array $params = [] )
- Deletes the specified capability.
- DeletePartnership ( array $params = [] )
- Deletes the specified partnership.
- DeleteProfile ( array $params = [] )
- Deletes the specified profile.
- DeleteTransformer ( array $params = [] )
- Deletes the specified transformer.
- GetCapability ( array $params = [] )
- Retrieves the details for the specified capability.
- GetPartnership ( array $params = [] )
- Retrieves the details for a partnership, based on the partner and profile IDs specified.
- GetProfile ( array $params = [] )
- Retrieves the details for the profile specified by the profile ID.
- GetTransformer ( array $params = [] )
- Retrieves the details for the transformer specified by the transformer ID.
- GetTransformerJob ( array $params = [] )
- Returns the details of the transformer run, based on the Transformer job ID.
- ListCapabilities ( array $params = [] )
- Lists the capabilities associated with your Amazon Web Services account for your current or specified region.
- ListPartnerships ( array $params = [] )
- Lists the partnerships associated with your Amazon Web Services account for your current or specified region.
- ListProfiles ( array $params = [] )
- Lists the profiles associated with your Amazon Web Services account for your current or specified region.
- ListTagsForResource ( array $params = [] )
- Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify.
- ListTransformers ( array $params = [] )
- Lists the available transformers.
- StartTransformerJob ( array $params = [] )
- Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange.
- TagResource ( array $params = [] )
- Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
- TestConversion ( array $params = [] )
- This operation mimics the latter half of a typical Outbound EDI request.
- TestMapping ( array $params = [] )
- Maps the input file according to the provided template file.
- TestParsing ( array $params = [] )
- Parses the input EDI (electronic data interchange) file.
- UntagResource ( array $params = [] )
- Detaches a key-value pair from the specified resource, as identified by its Amazon Resource Name (ARN).
- UpdateCapability ( array $params = [] )
- Updates some of the parameters for a capability, based on the specified parameters.
- UpdatePartnership ( array $params = [] )
- Updates some of the parameters for a partnership between a customer and trading partner.
- UpdateProfile ( array $params = [] )
- Updates the specified parameters for a profile.
- UpdateTransformer ( array $params = [] )
- Updates the specified parameters for a transformer.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
Operations
CreateCapability
$result = $client->createCapability
([/* ... */]); $promise = $client->createCapabilityAsync
([/* ... */]);
Instantiates a capability based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Parameter Syntax
$result = $client->createCapability([ 'clientToken' => '<string>', 'configuration' => [ // REQUIRED 'edi' => [ 'capabilityDirection' => 'INBOUND|OUTBOUND', 'inputLocation' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], 'outputLocation' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], 'transformerId' => '<string>', // REQUIRED 'type' => [ // REQUIRED 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], ], ], 'instructionsDocuments' => [ [ 'bucketName' => '<string>', 'key' => '<string>', ], // ... ], 'name' => '<string>', // REQUIRED 'tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'type' => 'edi', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Reserved for future use.
- configuration
-
- Required: Yes
- Type: CapabilityConfiguration structure
Specifies a structure that contains the details for a capability.
- instructionsDocuments
-
- Type: Array of S3Location structures
Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
- name
-
- Required: Yes
- Type: string
Specifies the name of the capability, used to identify it.
- tags
-
- Type: Array of Tag structures
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
- type
-
- Required: Yes
- Type: string
Specifies the type of the capability. Currently, only
edi
is supported.
Result Syntax
[ 'capabilityArn' => '<string>', 'capabilityId' => '<string>', 'configuration' => [ 'edi' => [ 'capabilityDirection' => 'INBOUND|OUTBOUND', 'inputLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'outputLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'transformerId' => '<string>', 'type' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], ], ], 'createdAt' => <DateTime>, 'instructionsDocuments' => [ [ 'bucketName' => '<string>', 'key' => '<string>', ], // ... ], 'name' => '<string>', 'type' => 'edi', ]
Result Details
Members
- capabilityArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- capabilityId
-
- Required: Yes
- Type: string
Returns a system-assigned unique identifier for the capability.
- configuration
-
- Required: Yes
- Type: CapabilityConfiguration structure
Returns a structure that contains the details for a capability.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the capability.
- instructionsDocuments
-
- Type: Array of S3Location structures
Returns one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
- name
-
- Required: Yes
- Type: string
Returns the name of the capability used to identify it.
- type
-
- Required: Yes
- Type: string
Returns the type of the capability. Currently, only
edi
is supported.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample CreateCapability call
$result = $client->createCapability([ 'name' => 'b2biexample', 'type' => 'edi', 'clientToken' => 'foo', 'configuration' => [ 'edi' => [ 'type' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'inputLocation' => [ 'key' => 'input/', 'bucketName' => 'test-bucket', ], 'outputLocation' => [ 'key' => 'output/', 'bucketName' => 'test-bucket', ], 'transformerId' => 'tr-9a893cf536df4658b', ], ], 'instructionsDocuments' => [ [ 'key' => 'instructiondoc.txt', 'bucketName' => 'test-bucket', ], ], 'tags' => [ [ 'Key' => 'capabilityKey1', 'Value' => 'capabilityValue1', ], ], ]);
Result syntax:
[ 'name' => 'b2biexample', 'type' => 'edi', 'capabilityArn' => 'arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348', 'capabilityId' => 'ca-963a8121e4fc4e348', 'configuration' => [ 'edi' => [ 'type' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'inputLocation' => [ 'key' => 'input/', 'bucketName' => 'test-bucket', ], 'outputLocation' => [ 'key' => 'output/', 'bucketName' => 'test-bucket', ], 'transformerId' => 'tr-9a893cf536df4658b', ], ], 'createdAt' =>, 'instructionsDocuments' => [ [ 'key' => 'instructiondoc.txt', 'bucketName' => 'test-bucket', ], ], ]
CreatePartnership
$result = $client->createPartnership
([/* ... */]); $promise = $client->createPartnershipAsync
([/* ... */]);
Creates a partnership between a customer and a trading partner, based on the supplied parameters. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameter Syntax
$result = $client->createPartnership([ 'capabilities' => ['<string>', ...], // REQUIRED 'capabilityOptions' => [ 'outboundEdi' => [ 'x12' => [ 'common' => [ 'delimiters' => [ 'componentSeparator' => '<string>', 'dataElementSeparator' => '<string>', 'segmentTerminator' => '<string>', ], 'functionalGroupHeaders' => [ 'applicationReceiverCode' => '<string>', 'applicationSenderCode' => '<string>', 'responsibleAgencyCode' => '<string>', ], 'interchangeControlHeaders' => [ 'acknowledgmentRequestedCode' => '<string>', 'receiverId' => '<string>', 'receiverIdQualifier' => '<string>', 'repetitionSeparator' => '<string>', 'senderId' => '<string>', 'senderIdQualifier' => '<string>', 'usageIndicatorCode' => '<string>', ], 'validateEdi' => true || false, ], ], ], ], 'clientToken' => '<string>', 'email' => '<string>', // REQUIRED 'name' => '<string>', // REQUIRED 'phone' => '<string>', 'profileId' => '<string>', // REQUIRED 'tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- capabilities
-
- Required: Yes
- Type: Array of strings
Specifies a list of the capabilities associated with this partnership.
- capabilityOptions
-
- Type: CapabilityOptions structure
Specify the structure that contains the details for the associated capabilities.
- clientToken
-
- Type: string
Reserved for future use.
-
- Required: Yes
- Type: string
Specifies the email address associated with this trading partner.
- name
-
- Required: Yes
- Type: string
Specifies a descriptive name for the partnership.
- phone
-
- Type: string
Specifies the phone number associated with the partnership.
- profileId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for the profile connected to this partnership.
- tags
-
- Type: Array of Tag structures
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
Result Syntax
[ 'capabilities' => ['<string>', ...], 'capabilityOptions' => [ 'outboundEdi' => [ 'x12' => [ 'common' => [ 'delimiters' => [ 'componentSeparator' => '<string>', 'dataElementSeparator' => '<string>', 'segmentTerminator' => '<string>', ], 'functionalGroupHeaders' => [ 'applicationReceiverCode' => '<string>', 'applicationSenderCode' => '<string>', 'responsibleAgencyCode' => '<string>', ], 'interchangeControlHeaders' => [ 'acknowledgmentRequestedCode' => '<string>', 'receiverId' => '<string>', 'receiverIdQualifier' => '<string>', 'repetitionSeparator' => '<string>', 'senderId' => '<string>', 'senderIdQualifier' => '<string>', 'usageIndicatorCode' => '<string>', ], 'validateEdi' => true || false, ], ], ], ], 'createdAt' => <DateTime>, 'email' => '<string>', 'name' => '<string>', 'partnershipArn' => '<string>', 'partnershipId' => '<string>', 'phone' => '<string>', 'profileId' => '<string>', 'tradingPartnerId' => '<string>', ]
Result Details
Members
- capabilities
-
- Type: Array of strings
Returns one or more capabilities associated with this partnership.
- capabilityOptions
-
- Type: CapabilityOptions structure
Returns the structure that contains the details for the associated capabilities.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the partnership.
-
- Type: string
Returns the email address associated with this trading partner.
- name
-
- Type: string
Returns a descriptive name for the partnership.
- partnershipArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- partnershipId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for a partnership.
- phone
-
- Type: string
Returns the phone number associated with the partnership.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile connected to this partnership.
- tradingPartnerId
-
- Type: string
Returns the unique, system-generated identifier for a trading partner.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample CreatePartnership call
$result = $client->createPartnership([ 'name' => 'b2bipartner', 'capabilities' => [ 'ca-963a8121e4fc4e348', ], 'clientToken' => 'foo', 'email' => 'john@example.com', 'phone' => '5555555555', 'profileId' => 'p-60fbc37c87f04fce9', 'tags' => [ [ 'Key' => 'sampleKey1', 'Value' => 'sampleValue1', ], ], ]);
Result syntax:
[ 'name' => 'b2bipartner', 'capabilities' => [ 'ca-963a8121e4fc4e348', ], 'createdAt' =>, 'email' => 'john@example.com', 'partnershipArn' => 'arn:aws:b2bi:us-west-2:123456789012:partnership/ps-60fbc37c87f04fce9', 'partnershipId' => 'ps-219fa02f5b4242af8', 'phone' => '5555555555', 'profileId' => 'p-60fbc37c87f04fce9', 'tradingPartnerId' => 'tp-2a17ca447f6f4a8a8', ]
CreateProfile
$result = $client->createProfile
([/* ... */]); $promise = $client->createProfileAsync
([/* ... */]);
Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. A profile is the mechanism used to create the concept of a private network.
Parameter Syntax
$result = $client->createProfile([ 'businessName' => '<string>', // REQUIRED 'clientToken' => '<string>', 'email' => '<string>', 'logging' => 'ENABLED|DISABLED', // REQUIRED 'name' => '<string>', // REQUIRED 'phone' => '<string>', // REQUIRED 'tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- businessName
-
- Required: Yes
- Type: string
Specifies the name for the business associated with this profile.
- clientToken
-
- Type: string
Reserved for future use.
-
- Type: string
Specifies the email address associated with this customer profile.
- logging
-
- Required: Yes
- Type: string
Specifies whether or not logging is enabled for this profile.
- name
-
- Required: Yes
- Type: string
Specifies the name of the profile.
- phone
-
- Required: Yes
- Type: string
Specifies the phone number associated with the profile.
- tags
-
- Type: Array of Tag structures
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
Result Syntax
[ 'businessName' => '<string>', 'createdAt' => <DateTime>, 'email' => '<string>', 'logGroupName' => '<string>', 'logging' => 'ENABLED|DISABLED', 'name' => '<string>', 'phone' => '<string>', 'profileArn' => '<string>', 'profileId' => '<string>', ]
Result Details
Members
- businessName
-
- Required: Yes
- Type: string
Returns the name for the business associated with this profile.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp representing the time the profile was created.
-
- Type: string
Returns the email address associated with this customer profile.
- logGroupName
-
- Type: string
Returns the name of the logging group.
- logging
-
- Type: string
Returns whether or not logging is turned on for this profile.
- name
-
- Required: Yes
- Type: string
Returns the name of the profile, used to identify it.
- phone
-
- Required: Yes
- Type: string
Returns the phone number associated with the profile.
- profileArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for the profile.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample CreateProfile call
$result = $client->createProfile([ 'name' => 'Shipping Profile', 'businessName' => 'John's Shipping', 'clientToken' => 'foo', 'email' => 'john@example.com', 'logging' => 'ENABLED', 'phone' => '5555555555', 'tags' => [ [ 'Key' => 'sampleKey', 'Value' => 'sampleValue', ], ], ]);
Result syntax:
[ 'name' => 'Shipping Profile', 'businessName' => 'John's Trucking', 'createdAt' =>, 'email' => 'john@example.com', 'logGroupName' => 'b2bi/p-60fbc37c87f04fce9-Logs', 'logging' => 'ENABLED', 'phone' => '5555555555', 'profileArn' => 'arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9', 'profileId' => 'p-60fbc37c87f04fce9', ]
CreateStarterMappingTemplate
$result = $client->createStarterMappingTemplate
([/* ... */]); $promise = $client->createStarterMappingTemplateAsync
([/* ... */]);
Amazon Web Services B2B Data Interchange uses a mapping template in JSONata or XSLT format to transform a customer input file into a JSON or XML file that can be converted to EDI.
If you provide a sample EDI file with the same structure as the EDI files that you wish to generate, then the service can generate a mapping template. The starter template contains placeholder values which you can replace with JSONata or XSLT expressions to take data from your input file and insert it into the JSON or XML file that is used to generate the EDI.
If you do not provide a sample EDI file, then the service can generate a mapping template based on the EDI settings in the templateDetails
parameter.
Currently, we only support generating a template that can generate the input to produce an Outbound X12 EDI file.
Parameter Syntax
$result = $client->createStarterMappingTemplate([ 'mappingType' => 'JSONATA|XSLT', // REQUIRED 'outputSampleLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'templateDetails' => [ // REQUIRED 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], ]);
Parameter Details
Members
- mappingType
-
- Required: Yes
- Type: string
Specify the format for the mapping template: either JSONATA or XSLT.
- outputSampleLocation
-
- Type: S3Location structure
Specify the location of the sample EDI file that is used to generate the mapping template.
- templateDetails
-
- Required: Yes
- Type: TemplateDetails structure
Describes the details needed for generating the template. Specify the X12 transaction set and version for which the template is used: currently, we only support X12.
Result Syntax
[ 'mappingTemplate' => '<string>', ]
Result Details
Members
- mappingTemplate
-
- Required: Yes
- Type: string
Returns a string that represents the mapping template.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample CreateStarterMappingTemplate call
$result = $client->createStarterMappingTemplate([ 'mappingType' => 'JSONATA', 'outputSampleLocation' => [ 'key' => 'output-sample-key', 'bucketName' => 'output-sample-bucket', ], 'templateDetails' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], ]);
Result syntax:
[ 'mappingTemplate' => 'Example Mapping Template', ]
CreateTransformer
$result = $client->createTransformer
([/* ... */]); $promise = $client->createTransformerAsync
([/* ... */]);
Creates a transformer. Amazon Web Services B2B Data Interchange currently supports two scenarios:
-
Inbound EDI: the Amazon Web Services customer receives an EDI file from their trading partner. Amazon Web Services B2B Data Interchange converts this EDI file into a JSON or XML file with a service-defined structure. A mapping template provided by the customer, in JSONata or XSLT format, is optionally applied to this file to produce a JSON or XML file with the structure the customer requires.
-
Outbound EDI: the Amazon Web Services customer has a JSON or XML file containing data that they wish to use in an EDI file. A mapping template, provided by the customer (in either JSONata or XSLT format) is applied to this file to generate a JSON or XML file in the service-defined structure. This file is then converted to an EDI file.
The following fields are provided for backwards compatibility only: fileFormat
, mappingTemplate
, ediType
, and sampleDocument
.
-
Use the
mapping
data type in place ofmappingTemplate
andfileFormat
-
Use the
sampleDocuments
data type in place ofsampleDocument
-
Use either the
inputConversion
oroutputConversion
in place ofediType
Parameter Syntax
$result = $client->createTransformer([ 'clientToken' => '<string>', 'ediType' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fromFormat' => 'X12', // REQUIRED ], 'mapping' => [ 'template' => '<string>', 'templateLanguage' => 'XSLT|JSONATA', // REQUIRED ], 'mappingTemplate' => '<string>', 'name' => '<string>', // REQUIRED 'outputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'toFormat' => 'X12', // REQUIRED ], 'sampleDocument' => '<string>', 'sampleDocuments' => [ 'bucketName' => '<string>', // REQUIRED 'keys' => [ // REQUIRED [ 'input' => '<string>', 'output' => '<string>', ], // ... ], ], 'tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- clientToken
-
- Type: string
Reserved for future use.
- ediType
-
- Type: EdiType structure
Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Type: string
Specifies that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputConversion
-
- Type: InputConversion structure
Specify the
InputConversion
object, which contains the format options for the inbound transformation. - mapping
-
- Type: Mapping structure
Specify the structure that contains the mapping template and its language (either XSLT or JSONATA).
- mappingTemplate
-
- Type: string
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
This parameter is available for backwards compatibility. Use the Mapping data type instead.
- name
-
- Required: Yes
- Type: string
Specifies the name of the transformer, used to identify it.
- outputConversion
-
- Type: OutputConversion structure
A structure that contains the
OutputConversion
object, which contains the format options for the outbound transformation. - sampleDocument
-
- Type: string
Specifies a sample EDI document that is used by a transformer as a guide for processing the EDI data.
- sampleDocuments
-
- Type: SampleDocuments structure
Specify a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
- tags
-
- Type: Array of Tag structures
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
Result Syntax
[ 'createdAt' => <DateTime>, 'ediType' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '<string>', 'templateLanguage' => 'XSLT|JSONATA', ], 'mappingTemplate' => '<string>', 'name' => '<string>', 'outputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'toFormat' => 'X12', ], 'sampleDocument' => '<string>', 'sampleDocuments' => [ 'bucketName' => '<string>', 'keys' => [ [ 'input' => '<string>', 'output' => '<string>', ], // ... ], ], 'status' => 'active|inactive', 'transformerArn' => '<string>', 'transformerId' => '<string>', ]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the transformer.
- ediType
-
- Type: EdiType structure
Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Type: string
Returns that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputConversion
-
- Type: InputConversion structure
Returns the
InputConversion
object, which contains the format options for the inbound transformation. - mapping
-
- Type: Mapping structure
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).
- mappingTemplate
-
- Type: string
Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
- name
-
- Required: Yes
- Type: string
Returns the name of the transformer, used to identify it.
- outputConversion
-
- Type: OutputConversion structure
Returns the
OutputConversion
object, which contains the format options for the outbound transformation. - sampleDocument
-
- Type: string
Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
- sampleDocuments
-
- Type: SampleDocuments structure
Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
- status
-
- Required: Yes
- Type: string
Returns the state of the newly created transformer. The transformer can be either
active
orinactive
. For the transformer to be used in a capability, its status mustactive
. - transformerArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- transformerId
-
- Required: Yes
- Type: string
Returns the system-assigned unique identifier for the transformer.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample CreateTransformer call
$result = $client->createTransformer([ 'name' => 'transformX12', 'clientToken' => 'foo', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '{}', 'templateLanguage' => 'JSONATA', ], 'sampleDocuments' => [ 'bucketName' => 'test-bucket', 'keys' => [ [ 'input' => 'sampleDoc.txt', ], ], ], 'tags' => [ [ 'Key' => 'sampleKey', 'Value' => 'sampleValue', ], ], ]);
Result syntax:
[ 'name' => 'transformX12', 'createdAt' =>, 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '{}', 'templateLanguage' => 'JSONATA', ], 'sampleDocuments' => [ 'bucketName' => 'test-bucket', 'keys' => [ [ 'input' => 'sampleDoc.txt', ], ], ], 'status' => 'inactive', 'transformerArn' => 'arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9', 'transformerId' => 'tr-974c129999f84d8c9', ]
DeleteCapability
$result = $client->deleteCapability
([/* ... */]); $promise = $client->deleteCapabilityAsync
([/* ... */]);
Deletes the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Parameter Syntax
$result = $client->deleteCapability([ 'capabilityId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- capabilityId
-
- Required: Yes
- Type: string
Specifies a system-assigned unique identifier for the capability.
Result Syntax
[]
Result Details
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample DeleteCapabilty call
$result = $client->deleteCapability([ 'capabilityId' => 'ca-963a8121e4fc4e348', ]);
DeletePartnership
$result = $client->deletePartnership
([/* ... */]); $promise = $client->deletePartnershipAsync
([/* ... */]);
Deletes the specified partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameter Syntax
$result = $client->deletePartnership([ 'partnershipId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- partnershipId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for a partnership.
Result Syntax
[]
Result Details
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample DeletePartnership call
$result = $client->deletePartnership([ 'partnershipId' => 'ps-219fa02f5b4242af8', ]);
DeleteProfile
$result = $client->deleteProfile
([/* ... */]); $promise = $client->deleteProfileAsync
([/* ... */]);
Deletes the specified profile. A profile is the mechanism used to create the concept of a private network.
Parameter Syntax
$result = $client->deleteProfile([ 'profileId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- profileId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for the profile.
Result Syntax
[]
Result Details
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample DeleteProfile call
$result = $client->deleteProfile([ 'profileId' => 'p-60fbc37c87f04fce9', ]);
DeleteTransformer
$result = $client->deleteTransformer
([/* ... */]); $promise = $client->deleteTransformerAsync
([/* ... */]);
Deletes the specified transformer. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
Parameter Syntax
$result = $client->deleteTransformer([ 'transformerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- transformerId
-
- Required: Yes
- Type: string
Specifies the system-assigned unique identifier for the transformer.
Result Syntax
[]
Result Details
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample DeleteTransformer call
$result = $client->deleteTransformer([ 'transformerId' => 'tr-974c129999f84d8c9', ]);
GetCapability
$result = $client->getCapability
([/* ... */]); $promise = $client->getCapabilityAsync
([/* ... */]);
Retrieves the details for the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Parameter Syntax
$result = $client->getCapability([ 'capabilityId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- capabilityId
-
- Required: Yes
- Type: string
Specifies a system-assigned unique identifier for the capability.
Result Syntax
[ 'capabilityArn' => '<string>', 'capabilityId' => '<string>', 'configuration' => [ 'edi' => [ 'capabilityDirection' => 'INBOUND|OUTBOUND', 'inputLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'outputLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'transformerId' => '<string>', 'type' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], ], ], 'createdAt' => <DateTime>, 'instructionsDocuments' => [ [ 'bucketName' => '<string>', 'key' => '<string>', ], // ... ], 'modifiedAt' => <DateTime>, 'name' => '<string>', 'type' => 'edi', ]
Result Details
Members
- capabilityArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- capabilityId
-
- Required: Yes
- Type: string
Returns a system-assigned unique identifier for the capability.
- configuration
-
- Required: Yes
- Type: CapabilityConfiguration structure
Returns a structure that contains the details for a capability.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the capability.
- instructionsDocuments
-
- Type: Array of S3Location structures
Returns one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for last time the capability was modified.
- name
-
- Required: Yes
- Type: string
Returns the name of the capability, used to identify it.
- type
-
- Required: Yes
- Type: string
Returns the type of the capability. Currently, only
edi
is supported.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample GetCapabilty call
$result = $client->getCapability([ 'capabilityId' => 'ca-963a8121e4fc4e348', ]);
Result syntax:
[ 'name' => 'b2biexample', 'type' => 'edi', 'capabilityArn' => 'arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348', 'capabilityId' => 'ca-963a8121e4fc4e348', 'configuration' => [ 'edi' => [ 'type' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'inputLocation' => [ 'key' => 'input/', 'bucketName' => 'test-bucket', ], 'outputLocation' => [ 'key' => 'output/', 'bucketName' => 'test-bucket', ], 'transformerId' => 'tr-9a893cf536df4658b', ], ], 'createdAt' =>, 'instructionsDocuments' => [ [ 'key' => 'instructiondoc.txt', 'bucketName' => 'test-bucket', ], ], 'modifiedAt' => , ]
GetPartnership
$result = $client->getPartnership
([/* ... */]); $promise = $client->getPartnershipAsync
([/* ... */]);
Retrieves the details for a partnership, based on the partner and profile IDs specified. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameter Syntax
$result = $client->getPartnership([ 'partnershipId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- partnershipId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for a partnership.
Result Syntax
[ 'capabilities' => ['<string>', ...], 'capabilityOptions' => [ 'outboundEdi' => [ 'x12' => [ 'common' => [ 'delimiters' => [ 'componentSeparator' => '<string>', 'dataElementSeparator' => '<string>', 'segmentTerminator' => '<string>', ], 'functionalGroupHeaders' => [ 'applicationReceiverCode' => '<string>', 'applicationSenderCode' => '<string>', 'responsibleAgencyCode' => '<string>', ], 'interchangeControlHeaders' => [ 'acknowledgmentRequestedCode' => '<string>', 'receiverId' => '<string>', 'receiverIdQualifier' => '<string>', 'repetitionSeparator' => '<string>', 'senderId' => '<string>', 'senderIdQualifier' => '<string>', 'usageIndicatorCode' => '<string>', ], 'validateEdi' => true || false, ], ], ], ], 'createdAt' => <DateTime>, 'email' => '<string>', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'partnershipArn' => '<string>', 'partnershipId' => '<string>', 'phone' => '<string>', 'profileId' => '<string>', 'tradingPartnerId' => '<string>', ]
Result Details
Members
- capabilities
-
- Type: Array of strings
Returns one or more capabilities associated with this partnership.
- capabilityOptions
-
- Type: CapabilityOptions structure
Contains the details for an Outbound EDI capability.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the partnership.
-
- Type: string
Returns the email address associated with this trading partner.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp that identifies the most recent date and time that the partnership was modified.
- name
-
- Type: string
Returns the display name of the partnership
- partnershipArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- partnershipId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for a partnership.
- phone
-
- Type: string
Returns the phone number associated with the partnership.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile connected to this partnership.
- tradingPartnerId
-
- Type: string
Returns the unique identifier for the partner for this partnership.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample GetPartnership call
$result = $client->getPartnership([ 'partnershipId' => 'ps-219fa02f5b4242af8', ]);
Result syntax:
[ 'name' => 'b2bipartner', 'capabilities' => [ 'ca-963a8121e4fc4e348', ], 'createdAt' =>, 'email' => 'john@example.com', 'modifiedAt' => , 'partnershipArn' => 'arn:aws:b2bi:us-west-2:123456789012:partnership/ps-219fa02f5b4242af8', 'partnershipId' => 'ps-219fa02f5b4242af8', 'phone' => '5555555555', 'profileId' => 'p-60fbc37c87f04fce9', 'tradingPartnerId' => 'tp-2a17ca447f6f4a8a8', ]
GetProfile
$result = $client->getProfile
([/* ... */]); $promise = $client->getProfileAsync
([/* ... */]);
Retrieves the details for the profile specified by the profile ID. A profile is the mechanism used to create the concept of a private network.
Parameter Syntax
$result = $client->getProfile([ 'profileId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- profileId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for the profile.
Result Syntax
[ 'businessName' => '<string>', 'createdAt' => <DateTime>, 'email' => '<string>', 'logGroupName' => '<string>', 'logging' => 'ENABLED|DISABLED', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'phone' => '<string>', 'profileArn' => '<string>', 'profileId' => '<string>', ]
Result Details
Members
- businessName
-
- Required: Yes
- Type: string
Returns the name for the business associated with this profile.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the transformer.
-
- Type: string
Returns the email address associated with this customer profile.
- logGroupName
-
- Type: string
Returns the name of the logging group.
- logging
-
- Type: string
Returns whether or not logging is enabled for this profile.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for last time the profile was modified.
- name
-
- Required: Yes
- Type: string
Returns the name of the profile, used to identify it.
- phone
-
- Required: Yes
- Type: string
Returns the phone number associated with the profile.
- profileArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample GetProfile call
$result = $client->getProfile([ 'profileId' => 'p-60fbc37c87f04fce9', ]);
Result syntax:
[ 'name' => 'Shipping Profile', 'businessName' => 'John's Trucking', 'createdAt' =>, 'email' => 'john@example.com', 'logGroupName' => 'b2bi/p-60fbc37c87f04fce9-Logs', 'logging' => 'ENABLED', 'phone' => '5555555555', 'profileArn' => 'arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9', 'profileId' => 'p-60fbc37c87f04fce9', ]
GetTransformer
$result = $client->getTransformer
([/* ... */]); $promise = $client->getTransformerAsync
([/* ... */]);
Retrieves the details for the transformer specified by the transformer ID. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
Parameter Syntax
$result = $client->getTransformer([ 'transformerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- transformerId
-
- Required: Yes
- Type: string
Specifies the system-assigned unique identifier for the transformer.
Result Syntax
[ 'createdAt' => <DateTime>, 'ediType' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '<string>', 'templateLanguage' => 'XSLT|JSONATA', ], 'mappingTemplate' => '<string>', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'outputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'toFormat' => 'X12', ], 'sampleDocument' => '<string>', 'sampleDocuments' => [ 'bucketName' => '<string>', 'keys' => [ [ 'input' => '<string>', 'output' => '<string>', ], // ... ], ], 'status' => 'active|inactive', 'transformerArn' => '<string>', 'transformerId' => '<string>', ]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the transformer.
- ediType
-
- Type: EdiType structure
Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Type: string
Returns that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputConversion
-
- Type: InputConversion structure
Returns the
InputConversion
object, which contains the format options for the inbound transformation. - mapping
-
- Type: Mapping structure
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).
- mappingTemplate
-
- Type: string
Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for last time the transformer was modified.
- name
-
- Required: Yes
- Type: string
Returns the name of the transformer, used to identify it.
- outputConversion
-
- Type: OutputConversion structure
Returns the
OutputConversion
object, which contains the format options for the outbound transformation. - sampleDocument
-
- Type: string
Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
- sampleDocuments
-
- Type: SampleDocuments structure
Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
- status
-
- Required: Yes
- Type: string
Returns the state of the newly created transformer. The transformer can be either
active
orinactive
. For the transformer to be used in a capability, its status mustactive
. - transformerArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- transformerId
-
- Required: Yes
- Type: string
Returns the system-assigned unique identifier for the transformer.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample GetTransformer call
$result = $client->getTransformer([ 'transformerId' => 'tr-974c129999f84d8c9', ]);
Result syntax:
[ 'name' => 'transformX12', 'createdAt' =>, 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '{}', 'templateLanguage' => 'JSONATA', ], 'sampleDocuments' => [ 'bucketName' => 'test-bucket', 'keys' => [ [ 'input' => 'sampleDoc.txt', ], ], ], 'status' => 'inactive', 'transformerArn' => 'arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9', 'transformerId' => 'tr-974c129999f84d8c9', ]
GetTransformerJob
$result = $client->getTransformerJob
([/* ... */]); $promise = $client->getTransformerJobAsync
([/* ... */]);
Returns the details of the transformer run, based on the Transformer job ID.
Parameter Syntax
$result = $client->getTransformerJob([ 'transformerId' => '<string>', // REQUIRED 'transformerJobId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- transformerId
-
- Required: Yes
- Type: string
Specifies the system-assigned unique identifier for the transformer.
- transformerJobId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for a transformer run.
Result Syntax
[ 'message' => '<string>', 'outputFiles' => [ [ 'bucketName' => '<string>', 'key' => '<string>', ], // ... ], 'status' => 'running|succeeded|failed', ]
Result Details
Members
- message
-
- Type: string
Returns an optional error message, which gets populated when the job is not run successfully.
- outputFiles
-
- Type: Array of S3Location structures
Returns the location for the output files. If the caller specified a directory for the output, then this contains the full path to the output file, including the file name generated by the service.
- status
-
- Required: Yes
- Type: string
Returns the current state of the transformer job, either
running
,succeeded
, orfailed
.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample GetTransformerJob call
$result = $client->getTransformerJob([ 'transformerId' => 'tr-974c129999f84d8c9', 'transformerJobId' => 'tj-vpYxfV7yQOqjMSYllEslLw', ]);
Result syntax:
[ 'message' => 'Transformed, writing output', 'outputFiles' => [ [ 'key' => 'output/sample-214.edi.2023-11-01T10:44:03.353Z.json', 'bucketName' => 'gt-edi-test', ], ], 'status' => 'succeeded', ]
ListCapabilities
$result = $client->listCapabilities
([/* ... */]); $promise = $client->listCapabilitiesAsync
([/* ... */]);
Lists the capabilities associated with your Amazon Web Services account for your current or specified region. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Parameter Syntax
$result = $client->listCapabilities([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the maximum number of capabilities to return.
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources.
Result Syntax
[ 'capabilities' => [ [ 'capabilityId' => '<string>', 'createdAt' => <DateTime>, 'modifiedAt' => <DateTime>, 'name' => '<string>', 'type' => 'edi', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- capabilities
-
- Required: Yes
- Type: Array of CapabilitySummary structures
Returns one or more capabilities associated with this partnership.
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample ListCapabilities call
$result = $client->listCapabilities([ 'maxResults' => 50, 'nextToken' => 'foo', ]);
Result syntax:
[ 'capabilities' => [ [ 'name' => 'b2biexample', 'type' => 'edi', 'capabilityId' => 'ca-963a8121e4fc4e348', 'createdAt' =>, 'modifiedAt' => , ], ], 'nextToken' => 'foo', ]
ListPartnerships
$result = $client->listPartnerships
([/* ... */]); $promise = $client->listPartnershipsAsync
([/* ... */]);
Lists the partnerships associated with your Amazon Web Services account for your current or specified region. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameter Syntax
$result = $client->listPartnerships([ 'maxResults' => <integer>, 'nextToken' => '<string>', 'profileId' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the maximum number of capabilities to return.
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources. - profileId
-
- Type: string
Specifies the unique, system-generated identifier for the profile connected to this partnership.
Result Syntax
[ 'nextToken' => '<string>', 'partnerships' => [ [ 'capabilities' => ['<string>', ...], 'capabilityOptions' => [ 'outboundEdi' => [ 'x12' => [ 'common' => [ 'delimiters' => [ 'componentSeparator' => '<string>', 'dataElementSeparator' => '<string>', 'segmentTerminator' => '<string>', ], 'functionalGroupHeaders' => [ 'applicationReceiverCode' => '<string>', 'applicationSenderCode' => '<string>', 'responsibleAgencyCode' => '<string>', ], 'interchangeControlHeaders' => [ 'acknowledgmentRequestedCode' => '<string>', 'receiverId' => '<string>', 'receiverIdQualifier' => '<string>', 'repetitionSeparator' => '<string>', 'senderId' => '<string>', 'senderIdQualifier' => '<string>', 'usageIndicatorCode' => '<string>', ], 'validateEdi' => true || false, ], ], ], ], 'createdAt' => <DateTime>, 'modifiedAt' => <DateTime>, 'name' => '<string>', 'partnershipId' => '<string>', 'profileId' => '<string>', 'tradingPartnerId' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources. - partnerships
-
- Required: Yes
- Type: Array of PartnershipSummary structures
Specifies a list of your partnerships.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample ListPartnerships call
$result = $client->listPartnerships([ 'maxResults' => 50, 'nextToken' => 'foo', 'profileId' => 'p-60fbc37c87f04fce9', ]);
Result syntax:
[ 'nextToken' => 'string', 'partnerships' => [ [ 'name' => 'b2bipartner', 'capabilities' => [ 'ca-963a8121e4fc4e348', ], 'createdAt' =>, 'modifiedAt' => , 'partnershipId' => 'ps-219fa02f5b4242af8', 'profileId' => 'p-60fbc37c87f04fce9', 'tradingPartnerId' => 'tp-2a17ca447f6f4a8a8', ], ], ]
ListProfiles
$result = $client->listProfiles
([/* ... */]); $promise = $client->listProfilesAsync
([/* ... */]);
Lists the profiles associated with your Amazon Web Services account for your current or specified region. A profile is the mechanism used to create the concept of a private network.
Parameter Syntax
$result = $client->listProfiles([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the maximum number of profiles to return.
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources.
Result Syntax
[ 'nextToken' => '<string>', 'profiles' => [ [ 'businessName' => '<string>', 'createdAt' => <DateTime>, 'logGroupName' => '<string>', 'logging' => 'ENABLED|DISABLED', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'profileId' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources. - profiles
-
- Required: Yes
- Type: Array of ProfileSummary structures
Returns an array of
ProfileSummary
objects.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample ListProfiles call
$result = $client->listProfiles([ 'maxResults' => 50, 'nextToken' => 'foo', ]);
Result syntax:
[ 'nextToken' => 'foo', 'profiles' => [ [ 'name' => 'Shipping Profile', 'businessName' => 'John's Trucking', 'createdAt' =>, 'logGroupName' => 'b2bi/p-60fbc37c87f04fce9-Logs', 'logging' => 'ENABLED', 'profileId' => 'p-60fbc37c87f04fce9', ], ], ]
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a capability, partnership, profile, or transformer.
Parameter Syntax
$result = $client->listTagsForResource([ 'ResourceARN' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ResourceARN
-
- Required: Yes
- Type: string
Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
Result Syntax
[ 'Tags' => [ [ 'Key' => '<string>', 'Value' => '<string>', ], // ... ], ]
Result Details
Members
- Tags
-
- Type: Array of Tag structures
Returns the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
Errors
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample ListTagsForResources call
$result = $client->listTagsForResource([ 'ResourceARN' => 'arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9', ]);
Result syntax:
[ 'Tags' => [ [ 'Key' => 'sampleKey', 'Value' => 'SampleValue', ], ], ]
ListTransformers
$result = $client->listTransformers
([/* ... */]); $promise = $client->listTransformersAsync
([/* ... */]);
Lists the available transformers. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
Parameter Syntax
$result = $client->listTransformers([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- maxResults
-
- Type: int
Specifies the number of items to return for the API response.
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources.
Result Syntax
[ 'nextToken' => '<string>', 'transformers' => [ [ 'createdAt' => <DateTime>, 'ediType' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '<string>', 'templateLanguage' => 'XSLT|JSONATA', ], 'mappingTemplate' => '<string>', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'outputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'toFormat' => 'X12', ], 'sampleDocument' => '<string>', 'sampleDocuments' => [ 'bucketName' => '<string>', 'keys' => [ [ 'input' => '<string>', 'output' => '<string>', ], // ... ], ], 'status' => 'active|inactive', 'transformerId' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
When additional results are obtained from the command, a
NextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional resources. - transformers
-
- Required: Yes
- Type: Array of TransformerSummary structures
Returns an array of one or more transformer objects.
For each transformer, a
TransformerSummary
object is returned. TheTransformerSummary
contains all the details for a specific transformer.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample ListTransformers call
$result = $client->listTransformers([ 'maxResults' => 50, 'nextToken' => 'foo', ]);
Result syntax:
[ 'nextToken' => 'foo', 'transformers' => [ [ 'name' => 'transformJSON', 'createdAt' =>, 'ediType' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fileFormat' => 'JSON', 'mappingTemplate' => '$', 'modifiedAt' => , 'sampleDocument' => 's3://test-bucket/sampleDoc.txt', 'status' => 'inactive', 'transformerId' => 'tr-974c129999f84d8c9', ], ], ]
StartTransformerJob
$result = $client->startTransformerJob
([/* ... */]); $promise = $client->startTransformerJobAsync
([/* ... */]);
Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2B Data Interchange.
If you only want to transform EDI (electronic data interchange) documents, you don't need to create profiles, partnerships or capabilities. Just create and configure a transformer, and then run the StartTransformerJob
API to process your files.
Parameter Syntax
$result = $client->startTransformerJob([ 'clientToken' => '<string>', 'inputFile' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], 'outputLocation' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], 'transformerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- clientToken
-
- Type: string
Reserved for future use.
- inputFile
-
- Required: Yes
- Type: S3Location structure
Specifies the location of the input file for the transformation. The location consists of an Amazon S3 bucket and prefix.
- outputLocation
-
- Required: Yes
- Type: S3Location structure
Specifies the location of the output file for the transformation. The location consists of an Amazon S3 bucket and prefix.
- transformerId
-
- Required: Yes
- Type: string
Specifies the system-assigned unique identifier for the transformer.
Result Syntax
[ 'transformerJobId' => '<string>', ]
Result Details
Members
- transformerJobId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for a transformer run.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample StartTransformerJob call
$result = $client->startTransformerJob([ 'clientToken' => 'foo', 'inputFile' => [ 'key' => 'input/inputFile.txt', 'bucketName' => 'test-bucket', ], 'outputLocation' => [ 'key' => 'output/', 'bucketName' => 'test-bucket', ], 'transformerId' => 'tr-974c129999f84d8c9', ]);
Result syntax:
[ 'transformerJobId' => 'tj-vpYxfV7yQOqjMSYllEslLw', ]
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.
There is no response returned from this call.
Parameter Syntax
$result = $client->tagResource([ 'ResourceARN' => '<string>', // REQUIRED 'Tags' => [ // REQUIRED [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- ResourceARN
-
- Required: Yes
- Type: string
Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- Tags
-
- Required: Yes
- Type: Array of Tag structures
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
Result Syntax
[]
Result Details
Errors
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample TagResource call
$result = $client->tagResource([ 'ResourceARN' => 'arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9', 'Tags' => [ [ 'Key' => 'sampleKey', 'Value' => 'SampleValue', ], ], ]);
TestConversion
$result = $client->testConversion
([/* ... */]); $promise = $client->testConversionAsync
([/* ... */]);
This operation mimics the latter half of a typical Outbound EDI request. It takes an input JSON/XML in the B2Bi shape as input, converts it to an X12 EDI string, and return that string.
Parameter Syntax
$result = $client->testConversion([ 'source' => [ // REQUIRED 'fileFormat' => 'JSON|XML', // REQUIRED 'inputFile' => [ // REQUIRED 'fileContent' => '<string>', ], ], 'target' => [ // REQUIRED 'fileFormat' => 'X12', // REQUIRED 'formatDetails' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'outputSampleFile' => [ 'fileLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], ], ], ]);
Parameter Details
Members
- source
-
- Required: Yes
- Type: ConversionSource structure
Specify the source file for an outbound EDI request.
- target
-
- Required: Yes
- Type: ConversionTarget structure
Specify the format (X12 is the only currently supported format), and other details for the conversion target.
Result Syntax
[ 'convertedFileContent' => '<string>', 'validationMessages' => ['<string>', ...], ]
Result Details
Members
- convertedFileContent
-
- Required: Yes
- Type: string
Returns the converted file content.
- validationMessages
-
- Type: Array of strings
Returns an array of strings, each containing a message that Amazon Web Services B2B Data Interchange generates during the conversion.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample TestConversion call
$result = $client->testConversion([ 'source' => [ 'fileFormat' => 'JSON', 'inputFile' => [ 'fileContent' => 'Sample file content', ], ], 'target' => [ 'fileFormat' => 'X12', 'formatDetails' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], ], ]);
Result syntax:
[ 'convertedFileContent' => 'Sample converted file content', 'validationMessages' => [ ], ]
TestMapping
$result = $client->testMapping
([/* ... */]); $promise = $client->testMappingAsync
([/* ... */]);
Maps the input file according to the provided template file. The API call downloads the file contents from the Amazon S3 location, and passes the contents in as a string, to the inputFileContent
parameter.
Parameter Syntax
$result = $client->testMapping([ 'fileFormat' => 'XML|JSON|NOT_USED', // REQUIRED 'inputFileContent' => '<string>', // REQUIRED 'mappingTemplate' => '<string>', // REQUIRED ]);
Parameter Details
Members
- fileFormat
-
- Required: Yes
- Type: string
Specifies that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputFileContent
-
- Required: Yes
- Type: string
Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.
- mappingTemplate
-
- Required: Yes
- Type: string
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
This parameter is available for backwards compatibility. Use the Mapping data type instead.
Result Syntax
[ 'mappedFileContent' => '<string>', ]
Result Details
Members
- mappedFileContent
-
- Required: Yes
- Type: string
Returns a string for the mapping that can be used to identify the mapping. Similar to a fingerprint
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample TestMapping call
$result = $client->testMapping([ 'fileFormat' => 'JSON', 'inputFileContent' => 'Sample file content', 'mappingTemplate' => '$', ]);
Result syntax:
[ 'mappedFileContent' => 'Sample file content', ]
TestParsing
$result = $client->testParsing
([/* ... */]); $promise = $client->testParsingAsync
([/* ... */]);
Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.
Parameter Syntax
$result = $client->testParsing([ 'ediType' => [ // REQUIRED 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', // REQUIRED 'inputFile' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], ]);
Parameter Details
Members
- ediType
-
- Required: Yes
- Type: EdiType structure
Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Required: Yes
- Type: string
Specifies that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputFile
-
- Required: Yes
- Type: S3Location structure
Specifies an
S3Location
object, which contains the Amazon S3 bucket and prefix for the location of the input file.
Result Syntax
[ 'parsedFileContent' => '<string>', ]
Result Details
Members
- parsedFileContent
-
- Required: Yes
- Type: string
Returns the contents of the input file being tested, parsed according to the specified EDI (electronic data interchange) type.
Errors
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample TestParsing call
$result = $client->testParsing([ 'ediType' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fileFormat' => 'JSON', 'inputFile' => [ 'key' => 'sampleFile.txt', 'bucketName' => 'test-bucket', ], ]);
Result syntax:
[ 'parsedFileContent' => 'Sample parsed file content', ]
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Detaches a key-value pair from the specified resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.
Parameter Syntax
$result = $client->untagResource([ 'ResourceARN' => '<string>', // REQUIRED 'TagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- ResourceARN
-
- Required: Yes
- Type: string
Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- TagKeys
-
- Required: Yes
- Type: Array of strings
Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.
Result Syntax
[]
Result Details
Errors
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample UntagResource call
$result = $client->untagResource([ 'ResourceARN' => 'arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9', 'TagKeys' => [ 'sampleKey', ], ]);
UpdateCapability
$result = $client->updateCapability
([/* ... */]); $promise = $client->updateCapabilityAsync
([/* ... */]);
Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Parameter Syntax
$result = $client->updateCapability([ 'capabilityId' => '<string>', // REQUIRED 'configuration' => [ 'edi' => [ 'capabilityDirection' => 'INBOUND|OUTBOUND', 'inputLocation' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], 'outputLocation' => [ // REQUIRED 'bucketName' => '<string>', 'key' => '<string>', ], 'transformerId' => '<string>', // REQUIRED 'type' => [ // REQUIRED 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], ], ], 'instructionsDocuments' => [ [ 'bucketName' => '<string>', 'key' => '<string>', ], // ... ], 'name' => '<string>', ]);
Parameter Details
Members
- capabilityId
-
- Required: Yes
- Type: string
Specifies a system-assigned unique identifier for the capability.
- configuration
-
- Type: CapabilityConfiguration structure
Specifies a structure that contains the details for a capability.
- instructionsDocuments
-
- Type: Array of S3Location structures
Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
- name
-
- Type: string
Specifies a new name for the capability, to replace the existing name.
Result Syntax
[ 'capabilityArn' => '<string>', 'capabilityId' => '<string>', 'configuration' => [ 'edi' => [ 'capabilityDirection' => 'INBOUND|OUTBOUND', 'inputLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'outputLocation' => [ 'bucketName' => '<string>', 'key' => '<string>', ], 'transformerId' => '<string>', 'type' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], ], ], 'createdAt' => <DateTime>, 'instructionsDocuments' => [ [ 'bucketName' => '<string>', 'key' => '<string>', ], // ... ], 'modifiedAt' => <DateTime>, 'name' => '<string>', 'type' => 'edi', ]
Result Details
Members
- capabilityArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- capabilityId
-
- Required: Yes
- Type: string
Returns a system-assigned unique identifier for the capability.
- configuration
-
- Required: Yes
- Type: CapabilityConfiguration structure
Returns a structure that contains the details for a capability.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the capability.
- instructionsDocuments
-
- Type: Array of S3Location structures
Returns one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for last time the capability was modified.
- name
-
- Required: Yes
- Type: string
Returns the name of the capability, used to identify it.
- type
-
- Required: Yes
- Type: string
Returns the type of the capability. Currently, only
edi
is supported.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample UpdateCapability call
$result = $client->updateCapability([ 'name' => 'b2biexample', 'capabilityId' => 'ca-963a8121e4fc4e348', 'configuration' => [ 'edi' => [ 'type' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'inputLocation' => [ 'key' => 'input/', 'bucketName' => 'test-bucket', ], 'outputLocation' => [ 'key' => 'output/', 'bucketName' => 'test-bucket', ], 'transformerId' => 'tr-9a893cf536df4658b', ], ], 'instructionsDocuments' => [ [ 'key' => 'instructiondoc.txt', 'bucketName' => 'test-bucket', ], ], ]);
Result syntax:
[ 'name' => 'b2biexample', 'type' => 'edi', 'capabilityArn' => 'arn:aws:b2bi:us-west-2:123456789012:capability/ca-963a8121e4fc4e348', 'capabilityId' => 'ca-963a8121e4fc4e348', 'configuration' => [ 'edi' => [ 'type' => [ 'x12Details' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'inputLocation' => [ 'key' => 'input/', 'bucketName' => 'test-bucket', ], 'outputLocation' => [ 'key' => 'output/', 'bucketName' => 'test-bucket', ], 'transformerId' => 'tr-9a893cf536df4658b', ], ], 'createdAt' =>, 'instructionsDocuments' => [ [ 'key' => 'instructiondoc.txt', 'bucketName' => 'test-bucket', ], ], 'modifiedAt' => , ]
UpdatePartnership
$result = $client->updatePartnership
([/* ... */]); $promise = $client->updatePartnershipAsync
([/* ... */]);
Updates some of the parameters for a partnership between a customer and trading partner. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Parameter Syntax
$result = $client->updatePartnership([ 'capabilities' => ['<string>', ...], 'capabilityOptions' => [ 'outboundEdi' => [ 'x12' => [ 'common' => [ 'delimiters' => [ 'componentSeparator' => '<string>', 'dataElementSeparator' => '<string>', 'segmentTerminator' => '<string>', ], 'functionalGroupHeaders' => [ 'applicationReceiverCode' => '<string>', 'applicationSenderCode' => '<string>', 'responsibleAgencyCode' => '<string>', ], 'interchangeControlHeaders' => [ 'acknowledgmentRequestedCode' => '<string>', 'receiverId' => '<string>', 'receiverIdQualifier' => '<string>', 'repetitionSeparator' => '<string>', 'senderId' => '<string>', 'senderIdQualifier' => '<string>', 'usageIndicatorCode' => '<string>', ], 'validateEdi' => true || false, ], ], ], ], 'name' => '<string>', 'partnershipId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- capabilities
-
- Type: Array of strings
List of the capabilities associated with this partnership.
- capabilityOptions
-
- Type: CapabilityOptions structure
To update, specify the structure that contains the details for the associated capabilities.
- name
-
- Type: string
The name of the partnership, used to identify it.
- partnershipId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for a partnership.
Result Syntax
[ 'capabilities' => ['<string>', ...], 'capabilityOptions' => [ 'outboundEdi' => [ 'x12' => [ 'common' => [ 'delimiters' => [ 'componentSeparator' => '<string>', 'dataElementSeparator' => '<string>', 'segmentTerminator' => '<string>', ], 'functionalGroupHeaders' => [ 'applicationReceiverCode' => '<string>', 'applicationSenderCode' => '<string>', 'responsibleAgencyCode' => '<string>', ], 'interchangeControlHeaders' => [ 'acknowledgmentRequestedCode' => '<string>', 'receiverId' => '<string>', 'receiverIdQualifier' => '<string>', 'repetitionSeparator' => '<string>', 'senderId' => '<string>', 'senderIdQualifier' => '<string>', 'usageIndicatorCode' => '<string>', ], 'validateEdi' => true || false, ], ], ], ], 'createdAt' => <DateTime>, 'email' => '<string>', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'partnershipArn' => '<string>', 'partnershipId' => '<string>', 'phone' => '<string>', 'profileId' => '<string>', 'tradingPartnerId' => '<string>', ]
Result Details
Members
- capabilities
-
- Type: Array of strings
Returns one or more capabilities associated with this partnership.
- capabilityOptions
-
- Type: CapabilityOptions structure
Returns the structure that contains the details for the associated capabilities.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp that identifies the most recent date and time that the partnership was modified.
-
- Type: string
Returns the email address associated with this trading partner.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp that identifies the most recent date and time that the partnership was modified.
- name
-
- Type: string
The name of the partnership, used to identify it.
- partnershipArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- partnershipId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for a partnership.
- phone
-
- Type: string
Returns the phone number associated with the partnership.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile connected to this partnership.
- tradingPartnerId
-
- Type: string
Returns the unique, system-generated identifier for a trading partner.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample UpdatePartnership call
$result = $client->updatePartnership([ 'name' => 'b2bipartner', 'capabilities' => [ 'ca-963a8121e4fc4e348', ], 'partnershipId' => 'ps-219fa02f5b4242af8', ]);
Result syntax:
[ 'name' => 'b2bipartner', 'capabilities' => [ 'ca-963a8121e4fc4e348', ], 'createdAt' =>, 'email' => 'john@example.com', 'modifiedAt' => , 'partnershipArn' => 'arn:aws:b2bi:us-west-2:123456789012:partnership/ps-60fbc37c87f04fce9', 'partnershipId' => 'ps-219fa02f5b4242af8', 'phone' => '5555555555', 'profileId' => 'p-60fbc37c87f04fce9', 'tradingPartnerId' => 'tp-2a17ca447f6f4a8a8', ]
UpdateProfile
$result = $client->updateProfile
([/* ... */]); $promise = $client->updateProfileAsync
([/* ... */]);
Updates the specified parameters for a profile. A profile is the mechanism used to create the concept of a private network.
Parameter Syntax
$result = $client->updateProfile([ 'businessName' => '<string>', 'email' => '<string>', 'name' => '<string>', 'phone' => '<string>', 'profileId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- businessName
-
- Type: string
Specifies the name for the business associated with this profile.
-
- Type: string
Specifies the email address associated with this customer profile.
- name
-
- Type: string
The name of the profile, used to identify it.
- phone
-
- Type: string
Specifies the phone number associated with the profile.
- profileId
-
- Required: Yes
- Type: string
Specifies the unique, system-generated identifier for the profile.
Result Syntax
[ 'businessName' => '<string>', 'createdAt' => <DateTime>, 'email' => '<string>', 'logGroupName' => '<string>', 'logging' => 'ENABLED|DISABLED', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'phone' => '<string>', 'profileArn' => '<string>', 'profileId' => '<string>', ]
Result Details
Members
- businessName
-
- Required: Yes
- Type: string
Returns the name for the business associated with this profile.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the profile.
-
- Type: string
Returns the email address associated with this customer profile.
- logGroupName
-
- Type: string
Returns the name of the logging group.
- logging
-
- Type: string
Specifies whether or not logging is enabled for this profile.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for last time the profile was modified.
- name
-
- Required: Yes
- Type: string
Returns the name of the profile.
- phone
-
- Required: Yes
- Type: string
Returns the phone number associated with the profile.
- profileArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for the profile.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample UpdateProfile call
$result = $client->updateProfile([ 'name' => 'Shipping Profile', 'businessName' => 'John's Shipping', 'email' => 'john@example.com', 'phone' => '5555555555', 'profileId' => 'p-60fbc37c87f04fce9', ]);
Result syntax:
[ 'name' => 'Shipping Profile', 'businessName' => 'John's Trucking', 'createdAt' =>, 'email' => 'john@example.com', 'logGroupName' => 'b2bi/p-60fbc37c87f04fce9-Logs', 'logging' => 'ENABLED', 'modifiedAt' => , 'phone' => '5555555555', 'profileArn' => 'arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9', 'profileId' => 'p-60fbc37c87f04fce9', ]
UpdateTransformer
$result = $client->updateTransformer
([/* ... */]); $promise = $client->updateTransformerAsync
([/* ... */]);
Updates the specified parameters for a transformer. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
Parameter Syntax
$result = $client->updateTransformer([ 'ediType' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fromFormat' => 'X12', // REQUIRED ], 'mapping' => [ 'template' => '<string>', 'templateLanguage' => 'XSLT|JSONATA', // REQUIRED ], 'mappingTemplate' => '<string>', 'name' => '<string>', 'outputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'toFormat' => 'X12', // REQUIRED ], 'sampleDocument' => '<string>', 'sampleDocuments' => [ 'bucketName' => '<string>', // REQUIRED 'keys' => [ // REQUIRED [ 'input' => '<string>', 'output' => '<string>', ], // ... ], ], 'status' => 'active|inactive', 'transformerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ediType
-
- Type: EdiType structure
Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Type: string
Specifies that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputConversion
-
- Type: InputConversion structure
To update, specify the
InputConversion
object, which contains the format options for the inbound transformation. - mapping
-
- Type: Mapping structure
Specify the structure that contains the mapping template and its language (either XSLT or JSONATA).
- mappingTemplate
-
- Type: string
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
This parameter is available for backwards compatibility. Use the Mapping data type instead.
- name
-
- Type: string
Specify a new name for the transformer, if you want to update it.
- outputConversion
-
- Type: OutputConversion structure
To update, specify the
OutputConversion
object, which contains the format options for the outbound transformation. - sampleDocument
-
- Type: string
Specifies a sample EDI document that is used by a transformer as a guide for processing the EDI data.
- sampleDocuments
-
- Type: SampleDocuments structure
Specify a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
- status
-
- Type: string
Specifies the transformer's status. You can update the state of the transformer, from
active
toinactive
, orinactive
toactive
. - transformerId
-
- Required: Yes
- Type: string
Specifies the system-assigned unique identifier for the transformer.
Result Syntax
[ 'createdAt' => <DateTime>, 'ediType' => [ 'x12Details' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fileFormat' => 'XML|JSON|NOT_USED', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '<string>', 'templateLanguage' => 'XSLT|JSONATA', ], 'mappingTemplate' => '<string>', 'modifiedAt' => <DateTime>, 'name' => '<string>', 'outputConversion' => [ 'formatOptions' => [ 'x12' => [ 'transactionSet' => 'X12_110|X12_180|X12_204|X12_210|X12_211|X12_214|X12_215|X12_259|X12_260|X12_266|X12_269|X12_270|X12_271|X12_274|X12_275|X12_276|X12_277|X12_278|X12_310|X12_315|X12_322|X12_404|X12_410|X12_417|X12_421|X12_426|X12_810|X12_820|X12_824|X12_830|X12_832|X12_834|X12_835|X12_837|X12_844|X12_846|X12_849|X12_850|X12_852|X12_855|X12_856|X12_860|X12_861|X12_864|X12_865|X12_869|X12_870|X12_940|X12_945|X12_990|X12_997|X12_999|X12_270_X279|X12_271_X279|X12_275_X210|X12_275_X211|X12_276_X212|X12_277_X212|X12_277_X214|X12_277_X364|X12_278_X217|X12_820_X218|X12_820_X306|X12_824_X186|X12_834_X220|X12_834_X307|X12_834_X318|X12_835_X221|X12_837_X222|X12_837_X223|X12_837_X224|X12_837_X291|X12_837_X292|X12_837_X298|X12_999_X231', 'version' => 'VERSION_4010|VERSION_4030|VERSION_5010|VERSION_5010_HIPAA', ], ], 'toFormat' => 'X12', ], 'sampleDocument' => '<string>', 'sampleDocuments' => [ 'bucketName' => '<string>', 'keys' => [ [ 'input' => '<string>', 'output' => '<string>', ], // ... ], ], 'status' => 'active|inactive', 'transformerArn' => '<string>', 'transformerId' => '<string>', ]
Result Details
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the transformer.
- ediType
-
- Type: EdiType structure
Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Type: string
Returns that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputConversion
-
- Type: InputConversion structure
Returns the
InputConversion
object, which contains the format options for the inbound transformation. - mapping
-
- Type: Mapping structure
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).
- mappingTemplate
-
- Type: string
Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
- modifiedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for last time the transformer was modified.
- name
-
- Required: Yes
- Type: string
Returns the name of the transformer.
- outputConversion
-
- Type: OutputConversion structure
Returns the
OutputConversion
object, which contains the format options for the outbound transformation. - sampleDocument
-
- Type: string
Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
- sampleDocuments
-
- Type: SampleDocuments structure
Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
- status
-
- Required: Yes
- Type: string
Returns the state of the newly created transformer. The transformer can be either
active
orinactive
. For the transformer to be used in a capability, its status mustactive
. - transformerArn
-
- Required: Yes
- Type: string
Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.
- transformerId
-
- Required: Yes
- Type: string
Returns the system-assigned unique identifier for the transformer.
Errors
- ConflictException:
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
Occurs when a B2BI object cannot be validated against a request from another object.
- ThrottlingException:
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
- ResourceNotFoundException:
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
- ServiceQuotaExceededException:
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
- InternalServerException:
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Examples
Example 1: Sample UpdateTransformer call
$result = $client->updateTransformer([ 'name' => 'transformX12', 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '{}', 'templateLanguage' => 'JSONATA', ], 'sampleDocuments' => [ 'bucketName' => 'test-bucket', 'keys' => [ [ 'input' => 'sampleDoc.txt', ], ], ], 'status' => 'inactive', 'transformerId' => 'tr-974c129999f84d8c9', ]);
Result syntax:
[ 'name' => 'transformX12', 'createdAt' =>, 'inputConversion' => [ 'formatOptions' => [ 'x12' => [ 'version' => 'VERSION_4010', 'transactionSet' => 'X12_110', ], ], 'fromFormat' => 'X12', ], 'mapping' => [ 'template' => '{}', 'templateLanguage' => 'JSONATA', ], 'modifiedAt' => , 'sampleDocuments' => [ 'bucketName' => 'test-bucket', 'keys' => [ [ 'input' => 'sampleDoc.txt', ], ], ], 'status' => 'inactive', 'transformerArn' => 'arn:aws:b2bi:us-west-2:123456789012:transformer/tr-974c129999f84d8c9', 'transformerId' => 'tr-974c129999f84d8c9', ]
Shapes
AccessDeniedException
Description
You do not have sufficient access to perform this action.
Members
- message
-
- Required: Yes
- Type: string
CapabilityConfiguration
Description
A capability object. Currently, only EDI (electronic data interchange) capabilities are supported. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Members
- edi
-
- Type: EdiConfiguration structure
An EDI (electronic data interchange) configuration object.
CapabilityOptions
Description
Contains the details for an Outbound EDI capability.
Members
- outboundEdi
-
- Type: OutboundEdiOptions structure
A structure that contains the outbound EDI options.
CapabilitySummary
Description
Returns the capability summary details. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Members
- capabilityId
-
- Required: Yes
- Type: string
Returns a system-assigned unique identifier for the capability.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the capability.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp that identifies the most recent date and time that the capability was modified.
- name
-
- Required: Yes
- Type: string
The display name of the capability.
- type
-
- Required: Yes
- Type: string
Returns the type of the capability. Currently, only
edi
is supported.
ConflictException
Description
A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
Members
- message
-
- Required: Yes
- Type: string
ConversionSource
Description
Describes the input for an outbound transformation.
Members
- fileFormat
-
- Required: Yes
- Type: string
The format for the input file: either JSON or XML.
- inputFile
-
- Required: Yes
- Type: InputFileSource structure
File to be converted
ConversionTarget
Description
Provide a sample of what the output of the transformation should look like.
Members
- fileFormat
-
- Required: Yes
- Type: string
Currently, only X12 format is supported.
- formatDetails
-
- Type: ConversionTargetFormatDetails structure
A structure that contains the formatting details for the conversion target.
- outputSampleFile
-
- Type: OutputSampleFileSource structure
Customer uses this to provide a sample on what should file look like after conversion X12 EDI use case around this would be discovering the file syntax
ConversionTargetFormatDetails
Description
Contains a structure describing the X12 details for the conversion target.
Members
- x12
-
- Type: X12Details structure
A structure that contains the X12 transaction set and version. The X12 structure is used when the system transforms an EDI (electronic data interchange) file.
If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.
EdiConfiguration
Description
Specifies the details for the EDI (electronic data interchange) transformation.
Members
- capabilityDirection
-
- Type: string
Specifies whether this is capability is for inbound or outbound transformations.
- inputLocation
-
- Required: Yes
- Type: S3Location structure
Contains the Amazon S3 bucket and prefix for the location of the input file, which is contained in an
S3Location
object. - outputLocation
-
- Required: Yes
- Type: S3Location structure
Contains the Amazon S3 bucket and prefix for the location of the output file, which is contained in an
S3Location
object. - transformerId
-
- Required: Yes
- Type: string
Returns the system-assigned unique identifier for the transformer.
- type
-
- Required: Yes
- Type: EdiType structure
Returns the type of the capability. Currently, only
edi
is supported.
EdiType
Description
Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
Members
- x12Details
-
- Type: X12Details structure
Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
FormatOptions
Description
A structure that contains the X12 transaction set and version.
Members
- x12
-
- Type: X12Details structure
A structure that contains the X12 transaction set and version. The X12 structure is used when the system transforms an EDI (electronic data interchange) file.
If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.
InputConversion
Description
Contains the input formatting options for an inbound transformer (takes an X12-formatted EDI document as input and converts it to JSON or XML.
Members
- formatOptions
-
- Type: FormatOptions structure
A structure that contains the formatting options for an inbound transformer.
- fromFormat
-
- Required: Yes
- Type: string
The format for the transformer input: currently on
X12
is supported.
InputFileSource
Description
The input file to use for an outbound transformation.
Members
- fileContent
-
- Type: string
Specify the input contents, as a string, for the source of an outbound transformation.
InternalServerException
Description
This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
Members
- message
-
- Required: Yes
- Type: string
- retryAfterSeconds
-
- Type: int
The server attempts to retry a failed command.
Mapping
Description
Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
Members
- template
-
- Type: string
A string that represents the mapping template, in the transformation language specified in
templateLanguage
. - templateLanguage
-
- Required: Yes
- Type: string
The transformation language for the template, either XSLT or JSONATA.
OutboundEdiOptions
Description
A container for outbound EDI options.
Members
- x12
-
- Type: X12Envelope structure
A structure that contains an X12 envelope structure.
OutputConversion
Description
Contains the formatting options for an outbound transformer (takes JSON or XML as input and converts it to an EDI document (currently only X12 format is supported).
Members
- formatOptions
-
- Type: FormatOptions structure
A structure that contains the X12 transaction set and version for the transformer output.
- toFormat
-
- Required: Yes
- Type: string
The format for the output from an outbound transformer: only X12 is currently supported.
OutputSampleFileSource
Description
Container for the location of a sample file used for outbound transformations.
Members
- fileLocation
-
- Type: S3Location structure
Specifies the details for the Amazon S3 file location that is being used with Amazon Web Services B2B Data Interchange. File locations in Amazon S3 are identified using a combination of the bucket and key.
PartnershipSummary
Description
A structure that contains the details for a partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.
Members
- capabilities
-
- Type: Array of strings
Returns one or more capabilities associated with this partnership.
- capabilityOptions
-
- Type: CapabilityOptions structure
Contains the details for an Outbound EDI capability.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp for creation date and time of the partnership.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp that identifies the most recent date and time that the partnership was modified.
- name
-
- Type: string
Returns the name of the partnership.
- partnershipId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for a partnership.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile connected to this partnership.
- tradingPartnerId
-
- Type: string
Returns the unique, system-generated identifier for a trading partner.
ProfileSummary
Description
Contains the details for a profile. A profile is the mechanism used to create the concept of a private network.
Members
- businessName
-
- Required: Yes
- Type: string
Returns the name for the business associated with this profile.
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns the timestamp for creation date and time of the profile.
- logGroupName
-
- Type: string
Returns the name of the logging group.
- logging
-
- Type: string
Specifies whether or not logging is enabled for this profile.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns the timestamp that identifies the most recent date and time that the profile was modified.
- name
-
- Required: Yes
- Type: string
Returns the display name for profile.
- profileId
-
- Required: Yes
- Type: string
Returns the unique, system-generated identifier for the profile.
ResourceNotFoundException
Description
Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
Members
- message
-
- Required: Yes
- Type: string
S3Location
Description
Specifies the details for the Amazon S3 file location that is being used with Amazon Web Services B2B Data Interchange. File locations in Amazon S3 are identified using a combination of the bucket and key.
Members
- bucketName
-
- Type: string
Specifies the name of the Amazon S3 bucket.
- key
-
- Type: string
Specifies the Amazon S3 key for the file location.
SampleDocumentKeys
Description
An array of the Amazon S3 keys used to identify the location for your sample documents.
Members
- input
-
- Type: string
An array of keys for your input sample documents.
- output
-
- Type: string
An array of keys for your output sample documents.
SampleDocuments
Description
Describes a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
Members
- bucketName
-
- Required: Yes
- Type: string
Contains the Amazon S3 bucket that is used to hold your sample documents.
- keys
-
- Required: Yes
- Type: Array of SampleDocumentKeys structures
Contains an array of the Amazon S3 keys used to identify the location for your sample documents.
ServiceQuotaExceededException
Description
Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
Members
- message
-
- Required: Yes
- Type: string
- quotaCode
-
- Required: Yes
- Type: string
The quota that was exceeded, which caused the exception.
- resourceId
-
- Required: Yes
- Type: string
The ID for the resource that exceeded the quota, which caused the exception.
- resourceType
-
- Required: Yes
- Type: string
The resource type (profile, partnership, transformer, or capability) that exceeded the quota, which caused the exception.
- serviceCode
-
- Required: Yes
- Type: string
The code responsible for exceeding the quota, which caused the exception.
Tag
Description
Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to capabilities, partnerships, profiles and transformers. A tag key can take more than one value. For example, to group capabilities for accounting purposes, you might create a tag called Group
and assign the values Research
and Accounting
to that group.
Members
- Key
-
- Required: Yes
- Type: string
Specifies the name assigned to the tag that you create.
- Value
-
- Required: Yes
- Type: string
Contains one or more values that you assigned to the key name that you create.
TemplateDetails
Description
A data structure that contains the information to use when generating a mapping template.
Members
- x12
-
- Type: X12Details structure
A structure that contains the X12 transaction set and version. The X12 structure is used when the system transforms an EDI (electronic data interchange) file.
If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.
ThrottlingException
Description
The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
Members
- message
-
- Required: Yes
- Type: string
- retryAfterSeconds
-
- Type: int
The server attempts to retry a command that was throttled.
TransformerSummary
Description
Contains the details for a transformer object. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.
Members
- createdAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp indicating when the transformer was created. For example,
2023-07-20T19:58:44.624Z
. - ediType
-
- Type: EdiType structure
Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
- fileFormat
-
- Type: string
Returns that the currently supported file formats for EDI transformations are
JSON
andXML
. - inputConversion
-
- Type: InputConversion structure
Returns a structure that contains the format options for the transformation.
- mapping
-
- Type: Mapping structure
Returns the structure that contains the mapping template and its language (either XSLT or JSONATA).
- mappingTemplate
-
- Type: string
Returns the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.
- modifiedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
Returns a timestamp representing the date and time for the most recent change for the transformer object.
- name
-
- Required: Yes
- Type: string
Returns the descriptive name for the transformer.
- outputConversion
-
- Type: OutputConversion structure
Returns the
OutputConversion
object, which contains the format options for the outbound transformation. - sampleDocument
-
- Type: string
Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
- sampleDocuments
-
- Type: SampleDocuments structure
Returns a structure that contains the Amazon S3 bucket and an array of the corresponding keys used to identify the location for your sample documents.
- status
-
- Required: Yes
- Type: string
Returns the state of the newly created transformer. The transformer can be either
active
orinactive
. For the transformer to be used in a capability, its status mustactive
. - transformerId
-
- Required: Yes
- Type: string
Returns the system-assigned unique identifier for the transformer.
ValidationException
Description
Occurs when a B2BI object cannot be validated against a request from another object.
Members
- Message
-
- Required: Yes
- Type: string
X12Delimiters
Description
In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header. The delimiters are part of the message's syntax and divide up its different elements.
Members
- componentSeparator
-
- Type: string
The component, or sub-element, separator. The default value is
:
(colon). - dataElementSeparator
-
- Type: string
The data element separator. The default value is
*
(asterisk). - segmentTerminator
-
- Type: string
The segment terminator. The default value is
~
(tilde).
X12Details
Description
A structure that contains the X12 transaction set and version. The X12 structure is used when the system transforms an EDI (electronic data interchange) file.
If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.
Members
- transactionSet
-
- Type: string
Returns an enumerated type where each value identifies an X12 transaction set. Transaction sets are maintained by the X12 Accredited Standards Committee.
- version
-
- Type: string
Returns the version to use for the specified X12 transaction set.
X12Envelope
Description
A wrapper structure for an X12 definition object.
the X12 envelope ensures the integrity of the data and the efficiency of the information exchange. The X12 message structure has hierarchical levels. From highest to the lowest, they are:
-
Interchange Envelope
-
Functional Group
-
Transaction Set
Members
- common
-
- Type: X12OutboundEdiHeaders structure
A container for the X12 outbound EDI headers.
X12FunctionalGroupHeaders
Description
Part of the X12 message structure. These are the functional group headers for the X12 EDI object.
Members
- applicationReceiverCode
-
- Type: string
A value representing the code used to identify the party receiving a message, at position GS-03.
- applicationSenderCode
-
- Type: string
A value representing the code used to identify the party transmitting a message, at position GS-02.
- responsibleAgencyCode
-
- Type: string
A code that identifies the issuer of the standard, at position GS-07.
X12InterchangeControlHeaders
Description
In X12, the Interchange Control Header is the first segment of an EDI document and is part of the Interchange Envelope. It contains information about the sender and receiver, the date and time of transmission, and the X12 version being used. It also includes delivery information, such as the sender and receiver IDs.
Members
- acknowledgmentRequestedCode
-
- Type: string
Located at position ISA-14 in the header. The value "1" indicates that the sender is requesting an interchange acknowledgment at receipt of the interchange. The value "0" is used otherwise.
- receiverId
-
- Type: string
Located at position ISA-08 in the header. This value (along with the
receiverIdQualifier
) identifies the intended recipient of the interchange. - receiverIdQualifier
-
- Type: string
Located at position ISA-07 in the header. Qualifier for the receiver ID. Together, the ID and qualifier uniquely identify the receiving trading partner.
- repetitionSeparator
-
- Type: string
Located at position ISA-11 in the header. This string makes it easier when you need to group similar adjacent element values together without using extra segments.
This parameter is only honored for version greater than 401 (
VERSION_4010
and higher).For versions less than 401, this field is called StandardsId, in which case our service sets the value to
U
. - senderId
-
- Type: string
Located at position ISA-06 in the header. This value (along with the
senderIdQualifier
) identifies the sender of the interchange. - senderIdQualifier
-
- Type: string
Located at position ISA-05 in the header. Qualifier for the sender ID. Together, the ID and qualifier uniquely identify the sending trading partner.
- usageIndicatorCode
-
- Type: string
Located at position ISA-15 in the header. Specifies how this interchange is being used:
-
T
indicates this interchange is for testing. -
P
indicates this interchange is for production. -
I
indicates this interchange is informational.
X12OutboundEdiHeaders
Description
A structure containing the details for an outbound EDI object.
Members
- delimiters
-
- Type: X12Delimiters structure
The delimiters, for example semicolon (
;
), that separates sections of the headers for the X12 object. - functionalGroupHeaders
-
- Type: X12FunctionalGroupHeaders structure
The functional group headers for the X12 object.
- interchangeControlHeaders
-
- Type: X12InterchangeControlHeaders structure
In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header.
- validateEdi
-
- Type: boolean
Specifies whether or not to validate the EDI for this X12 object:
TRUE
orFALSE
.