Skip to main content

/v2/tickets/transfer/pending/{processId}

Description

The Initiate Transfer Status API endpoint returns the status of the initiate transfer transaction trigger by the /v2/tickets/transfer post call. This endpoint is needed when the response to the /v2/tickets/transfer has a status of PENDING, and no asyncCallbackUrl was provided for the system to inform the caller of a status of the initiate transfer request. Calling this endpoint will provide an update.

Supported Methods

  1. GET

Request

/v2/tickets/transfer/pending/{processId}

HEADERS

RCOPropertyTypeDescription
RUser-AgentStringAn identifying string in Product/Version format, where Version is a SemVer-compliant string, that uniquely identifies your application.
RAuthorizationStringIt's required to use the "Bearer" authentication scheme to transmit the access token.
RAcceptStringThe only supported response type for this endpoint is application/json.
OAccept-EncodingStringgzip compression is supported.
RContent-TypeStringThe only supported request type for this endpoint is application/json.
RPAC-Channel-CodeStringThe channel partner identifier issued to your organization by the Paciolan Partner Services team partner on-boarding.
RPAC-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.
RPAC-API-KeyStringThe API key provided by Paciolan for this application.
RRequest-IDStringA unique ID provided for debugging purposes

Response

Response Object

PropertyTypeDescription
patronIdStringUnique customer ID
confirmationCdStringtranferId returned by Backoffice
sentDtStringSent date MM/dd/yyyy HH:mm:ss (using the 24-hour clock)
expireDtStringExpiration date MM/dd/yyyy HH:mm:ss (using the 24-hour clock)
transferIdStringDatabase primary key
transferStatusStringTransfer status (pending, accepted or cancelled)
urlStringTransfer accept URL
processIdStringA unique ID for the request that is/has executed.
transactionStatusStringThe status of the request (PENDING, COMPLETE, or ERROR). A status of "PENDING" will require a polling call to /v2/tickets/transfer/pending/{processId} if no asyncCallbackUrl was provided in the request.

Error Response Object

PropertyTypeDescription
errorObjectError details
→ typeStringError type that has occurred
→ developerMessageStringGeneric description of error that occurred
→ appErrorCodeStringInternal error code used for support. Depending on type returned, this code may be needed to handle error response differently
processIdObjectA unique ID for the request that is/has executed.

Error Types

Error TypeError DescApp Error CodeHTTP Status CodeHTTP Status DescRetry PossibleRetry CountUltimate actionMS Error Level
INVALID_PARAMETER_VALUEInvalid Code ProvidedMS-400400Bad RequestNo0Caller to inform ProviderERROR
UNHANDLED_EXCEPTIONInternal server error occurred due to backend errorMS-500500Internal Server ErrorYes3Caller to inform ProviderFATAL

Pending Response Object

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

PropertyTypeDescription
transactionStatusEnum ["PENDING", "COMPLETE", "ERROR"]The status of the request. A status of "PENDING" will require a followup polling call to this /v2/tickets/transfer/pending/{processId} if no asyncCallbackUrl was provided in the request of the /v2/tickets/transfer.
processIdstringA unique ID for the request that is/has executed.

Examples

Request

curl --location 'https://link-sandbox.paciolan.info/v2/tickets/transfer/pending/12345' \
--header 'User-Agent: MyApplication/1.0' \
--header 'Authorization: Bearer <BearerToken>' \
--header 'PAC-Channel-Code: my-application' \
--header 'PAC-Application-ID: com.mycompany.myapp' \
--header 'PAC-API-Key: <ApiKey>' \
--header 'Request-ID: <RequestID>' \
--header 'Content-Type: application/json'

Responses

Success Response
{
"patronId": "3785222",
"confirmationCd": "3785222-AMTX:10237",
"sentDt": "06/07/2023 23:46:03",
"expireDt": "06/14/2023 23:46:03",
"transferId": "w53hKM1ZPmDBgYsq68VW6xR6KLLeoWCR",
"url": "https://qfnq-bqfn80-amtx.paciolan.info/myaccount/receive/xnc3t7KpSQQxLr9SmdtnUXs74qHPfrz2?linkID=BQFN80-AMTX&siteId=ev_BQFN80-AMTX",
"processId": "5f6d4e",
"transferStatus": "pending",
"transactionStatus": "COMPLETE"
}
Failure Response
{
"error": {
"type": "INVALID_PARAMETER_VALUE",
"developerMessage": "Invalid input. Please provide valid data.",
"appErrorCode": "MS-400"
},
"transactionStatus": "ERROR",
"processId": "5f6d4e"
}
Status PENDING Response
{
"processId": "d4e5f6",
"transactionStatus": "PENDING"
}