GET Single Payer Token
A GET request used when you need to retrieve a single token.
GET Single Payer Token Request
GET Single Payer Token Request
GET Single Payer Token Response
GET Single Payer Token Response
1
2
3
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8; version=3.x/2.0
api-supported-versions: 3.x/2.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"token": {
"id" : <resourceId>,
"payerReference" : "{payerReference}",
"token": <Guid>,
"tokenType": "Unscheduled",
"instrument": "Trustly",
"instrumentDisplayName" : "Custom value, or default depending on instrument",
"correlationsId": "e2f06785-805d-4605-bf40-426a725d313d",
"state": "Active",
"instrumentParameters": {
.....
}
},
"operations": [
{
"method": "GET",
"href": "https://api.<environment>.swedbankpay.com/online/payer/payees/<guid>/tokens/<token>-<tokenType>",
"rel": "get-token",
"contentType": "application/json"
},
{
"method": "PATCH",
"href": "https://api.<environment>.swedbankpay.com/online/payer/payees/<guid>/tokens/<token>-<tokenType>/displaynames",
"rel": "update-displayname",
"contentType": "application/json"
},
{
"method": "PATCH",
"href": "https://api.<environment>.swedbankpay.com/online/payer/payees/<guid>/tokens/<token>-<tokenType>/archives",
"rel": "archive-token",
"contentType": "application/json"
}
]
}
token
object
id
string
payerReference
string
token
string
guid.
tokenType
string
Payment, Recurrence, TransactionOnFile or Unscheduled.
instrument
string
CreditCard or Trustly.
instrumentDisplayName
string
correlationsId
string
state
string
Active or Archived.
archivedBy
string
Archived and indicates who archived it. Can either be PAYEE SWEDBANK_PAY or TOKEN_ISSUER.
archiveReason
string
active or archived.
instrumentParameters
object
operations
array
Instrument Parameters - CreditCard
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { "token": { "instrumentParameters": { "cardBrand": "Visa", "expiryDate" : "12/2028", "expiryPan": "12/2028", "issuerName": "Name of issuer if present", "lastFourPan": "0004" "bin": "492500", "cardHolderType" : "Consumer", "cardType" : "Debit", "countryCode" : "752", "lastFourDPan" : "1234", "expiryDPan" : "02/2029" }, } } ````
token
object
instrumentParameters
object
cardBrand
string
Visa, MC, etc. The brand of the card.
expiryDate
string
expiryPan
string
issuerName
string
lastFourPan
string
bin
string
maskedPan.
cardHolderType
string
cardType
string
countryCode
string
lastFourDPan
string
expiryDPan
string
Instrument Parameters - Trustly <button aria-describedby="tooltipCopy" class="code-view-copy tooltip" aria-label="Copy json to clipboard" value='{ "token": { "instrumentParameters": { "AccountId": "156", -> ('DisplayName' default) }, } }' onclick='javascript:navigator.clipboard.writeText(this.value)'>
token
object
instrumentParameters
object
AccountId
string
GET All Payer Tokens Request
## Get All Payer Tokens ResponseGET All Payer Tokens Response
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { { "tokens": { "id": "/online/payer/payees/
tokens
object
id
string
payerReference
string
migratedFromConsumerProfile
bool
true or false.
tokenlist
array
id
string
id
string
payerReference
string
token
string
guid.
tokenType
string
Payment, Recurrence, TransactionOnFile or Unscheduled.
instrument
string
CreditCard or Trustly.
instrument
string
CreditCard or Trustly.
instrumentDisplayName
string
correlationsId
string
state
string
Active or Archived.
archivedBy
string
Archived and indicates who archived it. Can either be PAYEE SWEDBANK_PAY or TOKEN_ISSUER.
archiveReason
string
active or archived.
instrumentParameters
object
GET single payer token.
operations
array
GET Archived Tokens Request
## GET Archived Payer Tokens ResponseGET Archived Payer Tokens Response
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { { "tokens": { "id": "/online/payer/payees/
tokens
object
id
string
payerReference
string
migratedFromConsumerProfile
bool
true or false.
tokenlist
array
id
string
id
string
payerReference
string
token
string
guid.
tokenType
string
Payment, Recurrence, TransactionOnFile or Unscheduled.
instrument
string
CreditCard or Trustly.
instrument
string
CreditCard or Trustly.
instrumentDisplayName
string
correlationsId
string
state
string
Active or Archived.
archivedBy
string
Archived and indicates who archived it. Can either be PAYEE SWEDBANK_PAY or TOKEN_ISSUER.
archiveReason
string
active or archived.
instrumentParameters
object
GET single payer token.
operations
array
PATCH Update Display Name Request
````jsonc { "displayName" : "xxxxxxxxxxxxxxxxxxxxxxx" } ```` ## PATCH Update Display Name ResponsePATCH Update Display Name Response
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { "token": { "id" :
token
object
id
string
payerReference
string
token
string
guid.
tokenType
string
Payment, Recurrence, TransactionOnFile or Unscheduled.
instrument
string
CreditCard or Trustly.
instrumentDisplayName
string
correlationsId
string
state
string
Active or Archived.
archivedBy
string
Archived and indicates who archived it. Can either be PAYEE SWEDBANK_PAY or TOKEN_ISSUER.
archiveReason
string
active or archived.
instrumentParameters
object
GET single payer token.
operations
array
PATCH Archive Single Payer Token Request
````jsonc { "reason" : "description", "updatedBy": "PAYEE" } ```` ## PATCH Archive Single Payer Token ResponsePATCH Archive Single Payer Token Response
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { "token": { "id" :
token
object
id
string
payerReference
string
token
string
guid.
tokenType
string
Payment, Recurrence, TransactionOnFile or Unscheduled.
instrument
string
CreditCard or Trustly.
instrumentDisplayName
string
correlationsId
string
state
string
Active or Archived.
archivedBy
string
Archived and indicates who archived it. Can either be PAYEE SWEDBANK_PAY or TOKEN_ISSUER.
archiveReason
string
active or archived.
instrumentParameters
object
GET single payer token.
operations
array
PATCH Archive All Payer Tokens Request
````jsonc { "reason" : "description", "updatedBy": "SWEDBANK_PAY" } ```` ## PATCH Archive All Payer Tokens ResponsePATCH Archive All Payer Tokens Response
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { { "tokens": { "id": "/online/payer/payees/
tokens
object
id
string
payerReference
string
migratedFromConsumerProfile
bool
true or false.
tokenlist
array
id
string
id
string
payerReference
string
token
string
guid.
tokenType
string
Payment, Recurrence, TransactionOnFile or Unscheduled.
instrument
string
CreditCard or Trustly.
instrument
string
CreditCard or Trustly.
instrumentDisplayName
string
correlationsId
string
state
string
Active or Archived.
archivedBy
string
Archived and indicates who archived it. Can either be PAYEE SWEDBANK_PAY or TOKEN_ISSUER.
archiveReason
string
active or archived.
instrumentParameters
object
GET single payer token.
operations
array
Request
````http PATCH /psp/paymentorders/recurrenceTokens/5a17c24e-d459-4567-bbad-aa0f17a76119 HTTP/1.1 Host: api.externalintegration.payex.com Authorization: BearerResponse
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { "token": "5a17c24e-d459-4567-bbad-aa0f17a76119", "isDeleted": true } ```` ## Delete unscheduledToken RequestRequest
````http PATCH /psp/paymentorders/unscheduledTokens/5a17c24e-d459-4567-bbad-aa0f17a76119 HTTP/1.1 Host: api.externalintegration.payex.com Authorization: BearerResponse
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { "token": "5a17c24e-d459-4567-bbad-aa0f17a76119", "instrument": "CreditCard", "instrumentDisplayName": "123456xxxxxx1111" "correlationId": "e2f06785-805d-4605-bf40-426a725d313d", "instrumentParameters": { "cardBrand": "Visa", "expiryDate": "MM/YYYY" } } ```` ## Delete paymentToken RequestRequest
````http PATCH /psp/paymentorders/paymentTokens/5a17c24e-d459-4567-bbad-aa0f17a76119 HTTP/1.1 Host: api.externalintegration.payex.com Authorization: BearerResponse
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.x/2.0 api-supported-versions: 3.x/2.0 ```` ````jsonc { "paymentToken": "5a17c24e-d459-4567-bbad-aa0f17a76119", "instrument": "CreditCard", "instrumentDisplayName": "123456xxxxxx1111" "correlationId": "e2f06785-805d-4605-bf40-426a725d313d", "instrumentParameters": { "cardBrand": "Visa", "expiryDate": "MM/YYYY" } } ```` ## Delete payerOwnedToken RequestRequest
````http PATCH /psp/paymentorders/payerownedtokens/Response
````http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8; version=3.1 api-supported-versions: 3.x/2.0 ```` ````jsonc { "payerOwnedTokens": { "id": "/psp/paymentorders/payerownedtokens/{payerReference}", "payerReference": "{payerReference}", "tokens": [ { "tokenType": "Payment", "token": "{paymentToken}", "instrument": "Invoice-payexfinancingno", "instrumentDisplayName": "260267*****", "correlationId": "e2f06785-805d-4605-bf40-426a725d313d", "instrumentParameters": { "email": "hei@hei.no", "msisdn": "+4798765432", "zipCode": "1642" } }, { "tokenType": "Payment", "token": "{paymentToken}", "instrument": "CreditCard", "instrumentDisplayName": "492500******0004", "correlationId": "e2f06785-805d-4605-bf40-426a725d313d", "instrumentParameters": { "expiryDate": "12/2020", "cardBrand": "Visa" } } ] } } ````