Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 17 Next »

5.4.0

A pass-through API to Claims (when configured) which allows the Claims' "Part Update Order" API to be called.     

On this page:

Related pages:

Resource URL Summary

Pass Through Call to Claims "Parts UpdateOrder" API

POST /up/v5/parts/updateOrder

HTTP Headers

This API uses the standard ServiceBroker HTTP Headers.


Enablements

To enable this feature, the tenant's sysconfig needs to be updated:

{
    "Providers": {
        "Claims": {
            "Features": {
                "queryEntitlement": {
                    "Endpoint": "services/product/v1/checkentitlement"
                },
                "queryCustomerApptInfo": {
                    "Endpoint": "services/customer/v2/newcallnumber"
                },
                "updatePartsOrder": {
                    "Endpoint": "services/part/v1/updateorder"
                }
            },

            "UserId": "CASEYSHSAP",
            "Password": "--Redacted--",
            "ManufacturerNumber": "S900"
        },
    }
}

API Specifics

Pass Through Call to Claims "Parts UpdateOrder" API

This RESTified API will perform a pass-through call to the Claims sub-system's "Part Update Order" API (when configured).

URL

POST /up/v5/claims

HTTP Request Body

This request requires a JSON object supplied in the HTTP request body, which defines the parameters that will be passed through to the ServiceDispatch "Update Order" APi.

UpdateOrder Object Format

{
    "callNumber": "0007084-97757435",
    "orderSequence": 0,
    "parts": [
        {
            "PartNumber": "285442",
            "PartSequence": 0,
            "OrderDate": "20231114",
            "Status": "Shipping",
            "BackorderQuantity": 1,
            "BackorderDate": "20231117",
            "ShipQuantity": 1,
            "ShipDate": "20231119",
            "ShipMethod": "Ground",
            "ShipCarrier": "UPS",
            "TrackingNumber": "1ZTESTING12345"
        },
        {
            "PartNumber": "285999",
            "PartSequence": 0,
            "OrderDate": "",
            "Status": "Shipped",
            "BackorderQuantity": 0,
            "BackorderDate": "",
            "ShipQuantity": 1,
            "ShipDate": "20231125",
            "ShipMethod": "Express",
            "ShipCarrier": "FEDEX",
            "TrackingNumber": "1ZTESTING12346"
        }
    ]
}

UpdateOrder Object Properties

PropertyTypeRequired?DescriptionServiceClaims Field Mapping
callNumberstringYes

Pass through parameter to the ServiceClaims "UpdateOrder " API.

callNumber
orderSequencestringYesPass through parameter to the ServiceClaims "UpdateOrder " API.orderSequence
partsarrayYesPass through parameter to the ServiceClaims "UpdateOrder " API.parts

PartNumberarrayYesPass through parameter to the ServiceDispatch "Submit Claim" API.RequiredParts

PartSequence




OrderDate




Status




BackorderQuantity




BackorderDate




StatusShipQuantity




ShipDate




ShipMethod




ShipCarrier




TrackingNumber



HTTP Response

Success

On success, a JSON-formatted version of the ServiceDispatch "Submit Claim" API response will be returned.

SubmitClaim Response Object Format

{
    "Success": true,
    "Code": 0,
    "Message": "OK",
    "Payload": {
        "ResponseCode": "OK"
    }
}

SubmitClaim Response Object Properties

PropertyTypeDescriptionServiceDispatch Field Mapping
SuccessbooleanPass through parameter from the ServiceDispatch "Submit Claim" API.Success  
CodeintegerPass through parameter from the ServiceDispatch "Submit Claim" API.Code
MessagestringPass through parameter from the ServiceDispatch "Submit Claim" API.Message
PayloadobjectPass through parameter from the ServiceDispatch "Submit Claim" API.Payload

TotalClaimsReceivedintegerPass through parameter from the ServiceDispatch "Submit Claim" API.TotalClaimsReceived

TransactionIdstringPass through parameter from the ServiceDispatch "Submit Claim" API.TransactionId

ResponseCodestringPass through parameter from the ServiceDispatch "Submit Claim" API.ResponseCode

TotalClaimsProcessedSuccessfullyintegerPass through parameter from the ServiceDispatch "Submit Claim" API.TotalClaimsProcessedSuccessfully

ClaimsarrayPass through parameter from the ServiceDispatch "Submit Claim" API.Claims


ClaimTransactionIdstringPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimTransactionId


ClaimResponseCodestringPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimResponseCode


ServiceCenterNumberstringPass through parameter from the ServiceDispatch "Submit Claim" API.ServiceCenterNumber


ClaimStatusDescriptionstringPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimStatusDescription


ManufacturerNamestringPass through parameter from the ServiceDispatch "Submit Claim" API.ManufacturerName


ServiceCenterLocationCodestringPass through parameter from the ServiceDispatch "Submit Claim" API.ServiceCenterLocationCode


TypestringPass through parameter from the ServiceDispatch "Submit Claim" API.Type


ClaimBatchNumberintegerPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimBatchNumber


ClaimSequenceNumberintegerPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimSequenceNumber


ClaimStatusCodestringPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimStatusCode


ClaimNumberstringPass through parameter from the ServiceDispatch "Submit Claim" API.ClaimNumber


ErrorsarrayPass through parameter from the ServiceDispatch "Submit Claim" API.Errors



ErrorDescriptionstringPass through parameter from the ServiceDispatch "Submit Claim" API.ErrorDescription



PartNumberstringPass through parameter from the ServiceDispatch "Submit Claim" API.PartNumber

TotalClaimsNotProcessedSuccessfullyintegerPass through parameter from the ServiceDispatch "Submit Claim" API.TotalClaimsNotProcessedSuccessfully

Error

On error, a JSON-formatted version of the ServiceDispatch "Submit Claim" API response will be returned.

{
    "name": "GeneralError",
    "message": "Error",
    "code": 400,
    "className": "general-error",
    "data": {
        "Success": false,
        "Code": 8,
        "Message": "BadRequest: Error ocurred while querying the Claim!"
    }
}


Return Codes

In addition to the Standard Return Codes, and the ServiceDispatch Error codes, individual API calls made have unique codes found on their individual pages.

  • No labels