Skip to main content

/tickets/transfer

Description​

This call will create a transfer ticket request that can be accepted or cancel later.

Supported Methods​

  1. POST

Request​

/tickets/transfer

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.
CPAC-Organization-IDStringPAC-Organization-ID String The client's data account ID to pull events from. Required if calling the request with seat details (see example below).

Query Parameters​

RCOKeyTypeDescription
CdistributorCodeStringDistributor code. Required if initiating transfer with seat details.

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→ SenderObjectSender details
R→→ patronIdStringUnique customer ID
R→ RecipientObjectRecipient details
C→→ phoneStringRecipient phone. Required if email is not provided.
C→→ emailStringRecipient email. Required if phone is not provided.
R→→ recipientFirstNameStringRecipient first name.
R→→ recipientLastNameStringRecipient last name.
C→ SeatsArray of ObjectsSeat details for transfers. Required if calling the request with tokens.
R→→ seasonStringSeason code
R→→ eventStringEvent code
R→→ priceLevelStringPrice level code
R→→ priceTypeStringPrice type code
R→→ seatInfoObjectSeat information
R→→→ levelStringSeat level
R→→→ sectionStringSeat section
R→→→ rowIntSeat row
R→→→ seatsIntSeat number
R→→→ soldForNumberPrice for which it was originally sold by the third party
R→→→ marketplaceStringPlace where it was sold
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
OlinkIdStringLink ID
OsiteIdStringSite ID
ObaseUrlStringPac Client Base URL

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
urlStringTransfer accept URL

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 parameters. Please review documentationMS-422422Unprocessable EntityNo0Caller to inform ProviderERROR
UNHANDLED_EXCEPTIONAn internal server error occurred due to a backend errorMS-500500Internal Server ErrorYes3Caller to inform ProviderFATAL
UNPROCESSABLE_ENTITYRequest is missing a required transfer entityMS-422400Internal Server ErrorNo0Caller to inform ProviderERROR
UNPROCESSABLE_ENTITYA transfer entity cannot have more than one itemMS-422400Internal Server ErrorNo0Caller to inform ProviderERROR
UNPROCESSABLE_ENTITYThe seat array in the request is emptyMS-422400Internal Server ErrorNo0Caller to inform ProviderERROR
UNPROCESSABLE_ENTITYA seat transfer array cannot contain more than 30 itemsMS-422400Internal Server ErrorNo0Caller to inform ProviderERROR

Examples​

Request​

Transfer with Seat Details​
curl --location 'https://link-sandbox.paciolan.info/v1/tickets/transfer?distributorCode=AMTX' \
--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' \
--header 'PAC-Organization-ID: 999'
--data-raw '{
"transferRequests": [
{
"Sender": {
"patronId": "3785222"
},
"Recipient": {
"phone": "+1 (555) 123-4567",
"email": "ta236@paciolan.com",
"recipientFirstName": "Juan",
"recipientLastName": "Ramirez"
},
"Seats": [
{
"season": "FB19",
"event": "FB03",
"priceLevel": "1",
"priceType": "A",
"seatInfo": {
"level": "One",
"section": "2",
"row": 12,
"seats": 8,
"soldFor": 13.13,
"marketplace": "store"
}
}
]
}
]
}'
Transfer with Tokens​
curl --location 'https://link-sandbox.paciolan.info/v1/tickets/transfer' \
--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
{
"patronId": "3785222",
"confirmationCd": "3785222-AMTX:10237",
"sentDt": "06/07/2023 23:46:03",
"expireDt": "06/14/2023 23:46:03",
"transferId": "w53hKM1ZPmDBgYsq68VW6xR6KLLeoWCR",
"transferStatus": "INITIATED",
"url": "https://qfnq-bqfn80-amtx.paciolan.info/myaccount/receive/xnc3t7KpSQQxLr9SmdtnUXs74qHPfrz2?linkID=BQFN80-AMTX&siteId=ev_BQFN80-AMTX"
}
Failure Response​
< HTTP/1.1 400
{
"error": {
"type": "INVALID_PARAMETER_VALUE",
"developerMessage": "Invalid input. Please provide valid data.",
"appErrorCode": "MS-400"
}
}