Create a B2B Schema

post

/ic/api/b2b/v1/schemas

Creates a B2B schema 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

Body ()

Create B2B Schema request details.

Example:

{"id": "SCH123",	"name": "Sch123", "std": "X12", "version": "4010", "txId": "850", "desc": "Schema Document" }
Root Schema : SchemaUI
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 : docNode
Type: array
Show Source
Nested Schema : inActive
Type: array
Read Only: true
Show Source
Nested Schema : inActiveAgr
Type: array
Read Only: true
Show Source
Nested Schema : MaxSize
Type: object
Show Source
Nested 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
Nested Schema : DocumentNode
Type: object
Show Source
Nested Schema : DocumentModelUI
Type: object
Discriminator: objType
Show Source
Nested Schema : children
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : items
Type: object

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