Skip to main content

/tickets/transfer/complete

Description

This call will initiate, accept and print a transfer request.

Supported Methods

  1. POST

Request

/tickets/transfer/complete

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-IDStringThe integrator's external request ID for support traceablility and issue debugging. This string should be a UUID V4 value.

Request Object

RCOPropertyTypeDescription
RtransferRequestsArray of ObjectsWe currently only support one recipient transfer at a time so only one object is allowed in this array.
O externalTransferIdStringExternal Transfer ID
R RecipientObjectRecipient details
O phoneStringRecipient phone
R emailStringRecipient email
R recipientFirstNameStringRecipient first name.
R recipientLastNameStringRecipient last name.
C ItemsArray of ObjectsToken details for transfers. Required if calling the request with tokens.
R externalOrderIdStringExternal order ID used in the complete order call
R tokensArray of StringsList of tokens to transfer

Response

Response Object

PropertyTypeDescription
processIdStringA unique ID for the request that is/has executed.
statusEnum ["PENDING", "COMPLETE", "ERROR"]The status of the transfer. A status of "PENDING" will require a followup polling call to /tickets/transfer/complete/{processId}.
confirmationCdStringtransferId returned by Backoffice
transferIdStringDatabase primary key
ticketsArrayTicket items
tokenStringReturns the same token ID from the request.
applePassUrlStringApple Pass
googlePassUrlStringText file containing the JWT needed to append to https://pay.google.com/gp/v/save/{JWT} to receive the pass for Google Wallet.

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

Error Types

Error TypeError DescApp Error CodeHTTP Status CodeHTTP Status DescRetry PossibleRetry CountUltimate actionMS Error Level
INVALID_PARAMETER_VALUEInvalid input. Please provide a valid data.MS-422422Unprocessable EntityNo0Caller to inform ProviderERROR
UNHANDLED_EXCEPTIONInternal server error occurred due to backend errorMS-500500Internal Server ErrorYes3Caller to inform ProviderFATAL

Examples

Request

curl --location 'https://link-sandbox.paciolan.info/v1/tickets/transfer/complete' \
--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' \
--data-raw '{
"transferRequests": [
{
"externalTransferId": "DJY2347651234",
"Recipient": {
"email": "ta236@paciolan.com",
"recipientFirstName": "Juan",
"recipientLastName": "Ramirez"
},
"Items": [
{
"externalOrderId": "1234567890",
"tokens": [
"56789983390560",
"56689833903898"
]
},
{
"externalOrderId": "2345678901",
"tokens": [
"67889833903898",
]
}
]
}
]
}'

Responses

Success Response
< HTTP/1.1 200
{
"processId": "d4e5f6",
"status": "COMPLETE",
"confirmationCd": "3785222-AMTX:10237",
"transferId": "w53hKM1ZPmDBgYsq68VW6xR6KLLeoWCR",
"tickets": [
{
"token": "56789983390560",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfgdnfgjd.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfgdnfgjd.txt"
},
{
"token": "56689833903898",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/7etwy4oayi7isudfisfbgf.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/7etwy4oayi7isudfisfbgf.txt"
},
{
"token": "67889833903898",
"applePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhx.pkpass",
"googlePassUrl": "https://ticketdelivery.eveneue.net/tickets/F19/F02/3u328u39hfisudfisfhx.txt"
}
]
}
Status COMPLETE Response with Missing Passes

If tokens are missing the Apple or Google passes, a call the /print endpoint is needed to retrieve the passes.

< HTTP/1.1 200
{
"processId": "d4e5f6",
"status": "COMPLETE",
"confirmationCd": "3785222-AMTX:10237",
"transferId": "w53hKM1ZPmDBgYsq68VW6xR6KLLeoWCR",
"tickets": [
{
"token": "56789983390560",
"applePassUrl": null,
"googlePassUrl": null
},
{
"token": "56689833903898",
"applePassUrl": null,
"googlePassUrl": null
},
{
"token": "67889833903898",
"applePassUrl": null,
"googlePassUrl": null
}
]
}
Status PENDING Response
{
"processId": "d4e5f6",
"status": "PENDING"
}
Status ERROR Response
{
"processId": "d4e5f6",
"status": "ERROR",
"error": {
"type": "UNHANDLED_EXCEPTION",
"developerMessage": "You can't transfer tickets to yourself",
"appErrorCode": "MS-400"
}
}
Failure Response
< HTTP/1.1 400
{
"error": {
"type": "INVALID_PARAMETER_VALUE",
"developerMessage": "Invalid input. Please provide valid data.",
"appErrorCode": "MS-400"
}
}