Order Service
Custom Code Config
register custom code configurations
1min
POST
HEADER PARAMETERS
X-COREOS-REQUEST-ID
string
*Unique requestId
X-COREOS-TID
string
*Tenant id
X-COREOS-ACCESS
string
*core-os access token
X-COREOS-USERINFO
string
core-os user info token
BODY PARAMETERS
body
CustomCodeCreateRequest
*Create new custom code for containerType
url
string
*request URL for the custom call
requestHeader
object
*Example: [object Object]
request headers object for custom call
method
Method
*determines the METHOD of the custom code API call
wait
boolean
*determines if service waits for sync response
acceptableStatusCodes
number[]
Example:
determines the list of acceptable status codes for the custom code api
raiseErrorOnStatusMismatch
boolean
if the tenant wants to raise error if api status is not one of the acceptable status codes
methodName
string<createOrder:onError | updateOrder:onError | orderCancellation:onError | batchOrderCreation:onError | createOrder:onRequest | updateOrder:onRequest | orderCancellation:onRequest | batchOrderCreation:onRequest>
*determines for which order API the custom code config has to be registered
RESPONSES
201
OK
SuccessResponse
error
Error
*Error Information
request
Request
*data
object
Example: [object Object]
400
Error Occurred
PostErrorResponse
error
Error
*Error Information
request
Request
*data
object
Example: [object Object]
401
Error Occurred
PostErrorResponse
error
Error
*Error Information
request
Request
*data
object
Example: [object Object]
404
Error Occurred
PostErrorResponse
error
Error
*Error Information
request
Request
*data
object
Example: [object Object]


Updated 03 Aug 2023
Did this page help you?