Create a B2B Document

post

/ic/api/b2b/v1/b2bdocuments

Creates a B2B document with the specified id, name description, standard, txId and version. Examples of standard values are X12, EDIFACT. Examples of version for EDIFACT are D00A, D00B, etc, for X12 are 4010. 4011, etc. Examples of txId (or transaction type) for EDIFACT are APERAK, AUTHOR, etc, for X12 are 100, 850, etc.

Request

Supported Media Types
Body ()

Create B2B Document request details.

Example:

{"id": "DOC123", "name": "PO Doc", "std": "X12", "version": "4010", "txId": "850", "desc": "Purchase Order Document" }
Root Schema : DocumentUI
Type: object
Show Source
Nested Schema : active
Type: array
Read Only: true
Show Source
Nested Schema : activeAgr
Type: array
Read Only: true
Show Source
Nested Schema : BusinessIdentifierUI
Type: object
Show Source
Nested Schema : inActive
Type: array
Read Only: true
Show Source
Nested Schema : inActiveAgr
Type: array
Read Only: true
Show Source
Nested Schema : IntegrationResourceUI
Type: object
Show Source
Nested Schema : AgreementUI
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : DocumentUI
Type: object
Show Source
Nested Schema : active
Type: array
Read Only: true
Show Source
Nested Schema : activeAgr
Type: array
Read Only: true
Show Source
Nested Schema : BusinessIdentifierUI
Type: object
Show Source
Nested Schema : inActive
Type: array
Read Only: true
Show Source
Nested Schema : inActiveAgr
Type: array
Read Only: true
Show Source
Nested Schema : IntegrationResourceUI
Type: object
Show Source
Nested Schema : AgreementUI
Type: object
Show Source

201 Response

Successful operation

400 Response

Bad request, malformed parameters or missing required data

409 Response

Duplicate data error

412 Response

Pre condition failure, please ensure that the length of name is no longer that 50 characters, length of identifier is no longer than 32 characters, length of decsription is no longer than 1024 characters, length of identifier is no longer than 32 characters, Name and Identifier should not be named as 'Standard' or 'Default' and there must be a valid combination of std, version and txId

500 Response

Server error
Back to Top