Skip to main content

/cart/complete-order/{processId}

Description

The Complete Order Status API endpoint returns the state of an order as received by the /cart/complete-order call. This endpoint is needed when the response to the /cart/complete-order has a status of PENDING, and no asyncCallbackUrl was provided for the system to inform the caller of a status change. Calling this endpoint will provide an update.

Supported Methods

  • GET

Supported Media Types

Request

  • application/json

Response

  • application/json

Request

/cart/complete-order/{processId}

HEADERS

RCOMultitudeKeyTypeDescription
R1User-AgentStringAn identifying string in Product/Version format, where Version is a SemVer-compliant string, that uniquely identifies your application.
R1AuthorizationStringIt's required to use the "Bearer" authentication scheme to transmit the access token.
R1AcceptStringThe only supported response type for this endpoint is application/json.
O0-1Accept-EncodingStringgzip compression is supported.
R1Content-TypeStringPThe only supported request type for this endpoint is application/json.
R1PAC-Application-IDStringThe application identifier for which API access has been authorized; this value is typically expressed in reverse domain notation and is bound to an API key provided by Paciolan during provisioning.
R1PAC-API-KeyStringThe API key provided by Paciolan for this application.
R1PAC-Channel-CodeStringThe channel partner identifier issued to your organization by the Paciolan Partner Services team partner on-boarding.
R1Request-IDStringThe integrator's external request ID for support traceablility and issue debugging. This string should be a UUID V4 value.

Response

HEADERS

PropertyTypeDescription
Request-IDStringThe same ID provided in the header of the request call returned back.
Content-TypeStringSupported type is application/json.

Response Object

At a minimum, the following two properties will be returned in the response if the status is PENDING.

PropertyTypeDescription
processIdStringA unique ID for the request that is/has executed.
statusEnum ["PENDING", "COMPLETE", "ERROR"]The status of the order. A status of "PENDING" will require a followup polling call to this /complete-order/{processId} if no asyncCallbackUrl was provided in the request of the /complete-order.

A full response will be provided if the status returned is set as COMPLETE. See the Complete Order Response Object.

Error Response Object

PropertyTypeDescription
errorObjectError details
→ typeStringError type that has occurred
→ appErrorCodeStringInternal error code used for support. Depending on type returned, this code may be needed to handle error response differently
→ developerMessageStringGeneric description of error that occured

Error Types

Error TypeError DescApp Error CodeHTTP Status CodeHTTP Status DescRetry PossibleRetry CountUltimate actionMS Error Level
AUTHORIZATION_FAILUREMissing required headers (PAC-Channel-Code, PAC-Application-ID, or PAC-Organization-ID)MS-401401UnauthorizedNo0Caller to analyzeERROR
INVALID_CHANNEL_CONFIG
INVALID_PARAMETER_VALUE
JSON_PARSE_ERROR
UNAUTHORIZED_REQUESTA PAC-Organization-ID provided that does not have the correct access controls set upMS-403403ForbiddenNo0Caller to analyzeERROR
UNHANDLED_EXCEPTIONA call made where the API can't properly connect/read the internal channel configurationMS-500500Internal Server ErrorYes3Caller to inform ProviderFATAL
ORDER_NOT_FOUNDAn order for the processId provided was not foundMS-404404Not FoundNo0Caller to analyzeERROR

Examples

Request

curl 'https://link-sandbox.paciolan.info/v1/cart/complete-order/123456' \
-H 'User-Agent: MyApplication/1.0' \
-H 'Authorization: Bearer <BearerToken>'
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'PAC-Application-ID: com.mycompany.myapp' \
-H 'PAC-API-Key: <ApiKey>' \
-H 'PAC-Channel-Code: my-application' \
-H 'Request-ID: <RequestID>'

Responses

Status COMPLETE (Success) Response

See the Complete Order success response example.

Status PENDING Response
{
"processId": "d4e5f6",
"status": "PENDING"
}
Status ERROR Response
{
"processId": "d4e5f6",
"status": "ERROR",
"error": {
"type": "ORDER_ALREADY_COMPLETED",
"developerMessage": "The order has already been completed and cannot be completed again.",
"appErrorCode": "MS-409"
}
}
Order Not Found
{
"error": {
"type": "ORDER_NOT_FOUND",
"appErrorCode": "MS-404",
"developerMessage": "Order with processId={123456} not found"
}
}