Transfer Points
1 min
POST
https://api.b.preview.loyaltyservices.io/api/v3/members/{accountNumber}/transfer
Path Parameters
- accountNumberstringrequiredExampleDescription
Body Parameters
- bodyPointsTransferRequestrequired
- partnerTransactionNumberstringExampleDescription
- rewardCodestringExampleDescription
- recipientAccountNumberstringExampleDescription
- bonusCodestringDescription
- transferAmountinteger<int32>DescriptionFormatint32
- transferredBystringExampleDescriptionMax Length25
- customDataCustomData
- ace01stringDescription
- ace01DescriptionstringDescription
- ace02stringDescription
- ace02DescriptionstringDescription
- ace03stringDescription
- ace03DescriptionstringDescription
- ace04stringDescription
- ace04DescriptionstringDescription
- ace05stringDescription
- ace05DescriptionstringDescription
- ace06stringDescription
- ace06DescriptionstringDescription
- ace07stringDescription
- ace07DescriptionstringDescription
- ace08stringDescription
- ace08DescriptionstringDescription
- ace09stringDescription
- ace09DescriptionstringDescription
- ace10stringDescription
- ace10DescriptionstringDescription
- ace11stringDescription
- ace11DescriptionstringDescription
- ace12stringDescription
- ace12DescriptionstringDescription
- ace13stringDescription
- ace13DescriptionstringDescription
- ace14stringDescription
- ace14DescriptionstringDescription
- ace15stringDescription
- ace15DescriptionstringDescription
Responses
200
- PointsTransferResponse
- partnerTransactionNumberstringDescription
- accountNumberstringDescription
- correctedAccountNumberstringDescription
- rewardCodestringDescription
- orderNumberinteger<int32>DescriptionFormatint32
- recipientAccountNumberstringDescription
- correctedRecipientAccountNumberstringDescription
- bonusCodestringDescription
- transactionIdstringExampleDescription
- transferAmountinteger<int32>DescriptionFormatint32
400
- ErrorResponse
- errorsValidationError[]Description
- codestringDescription
- fieldNamestringDescription
- messagestringDescription
- messageParametersobject[]Description
401
500
curl
curl --request POST \
--url https://api.b.preview.loyaltyservices.io/api/v3/members/{accountNumber}/transfer \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.b.preview.loyaltyservices.io/api/v3/members/{accountNumber}/transfer", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.b.preview.loyaltyservices.io/api/v3/members/{accountNumber}/transfer")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.b.preview.loyaltyservices.io/api/v3/members/{accountNumber}/transfer"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Success
{
"partnerTransactionNumber": "",
"accountNumber": "",
"correctedAccountNumber": "",
"rewardCode": "",
"orderNumber": "",
"recipientAccountNumber": "",
"correctedRecipientAccountNumber": "",
"bonusCode": "",
"transactionId": "EN-321654211",
"transferAmount": ""
}400
// Bad Request
{
"errors": [
{
"code": "",
"fieldName": "",
"message": "",
"messageParameters": [
{}
]
}
]
}401
// Unauthorized
500
// Internal Error