Transaction Risk Analysis Exemption
Request
1
2
3
4
 
POST /psp/paymentorders HTTP/1.1
Host: api.externalintegration.payex.com
Authorization: Bearer <AccessToken>
Content-Type: application/json;version=3.x/2.0      // Version optional for 3.0 and 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
 
{
    "paymentorder": {
        "requestTraExemption": true,
        "operation": "Purchase",
        "currency": "SEK",
        "amount": 1500,
        "vatAmount": 375,
        "description": "Test Purchase",
        "userAgent": "Mozilla/5.0",
        "language": "sv-SE", 
        "urls": {
            "hostUrls": [ "https://example.com", "https://example.net" ], 
            "completeUrl": "https://example.com/payment-completed",
            "cancelUrl": "https://example.com/payment-cancelled",
            "callbackUrl": "https://api.example.com/payment-callback",
            "termsOfServiceUrl": "https://example.com/termsandconditions.pdf"
        },
        "payeeInfo": {
            "payeeId": "5cabf558-5283-482f-b252-4d58e06f6f3b",
            "payeeReference": "AB832",
            "payeeName": "Merchant1",
            "productCategory": "A123",
            "orderReference": "or-123456",
            "subsite": "MySubsite", 
        },
        "payer": {
            "nationalIdentifier": {
                "socialSecurityNumber": "199710202392",
                "countryCode": "SE"
            "requireConsumerInfo": false,
            "digitalProducts": false,
            "email": "olivia.nyhuus@swedbankpay.com",
            "msisdn": "+4798765432",
            "authentication" : {
                "type" : "Digital",
                "method" : "OneFactor",
                "nationalIdentityCardType": null,
                "reference" : null
            },
            "shippingAddress": {
                "firstName": "Olivia",
                "lastName": "Nyhuus",
                "email": "olivia.nyhuus@swedbankpay.com",
                "msisdn": "+4798765432",
                "streetAddress": "Saltnestoppen 43",
                "coAddress": "",
                "city": "Saltnes",
                "zipCode": "1642",
                "countryCode": "NO"
              },
              "billingAddress": {
                "firstName": "Olivia",
                "lastName": "Nyhuus",
                "email": "olivia.nyhuus@swedbankpay.com",
                "msisdn": "+4798765432",
                "streetAddress": "Saltnestoppen 43",
                "coAddress": "",
                "city": "Saltnes",
                "zipCode": "1642",
                "countryCode": "NO"
              },
              "accountInfo": {
                "accountAgeIndicator": "01",
                "accountChangeIndicator": "01",
                "accountPwdChangeIndicator": "01",
                "shippingAddressUsageIndicator": "01",
                "shippingNameIndicator": "01",
                "suspiciousAccountActivity": "01",
                "addressMatchIndicator": true
              }
        },
        "orderItems": [
            {
                "reference": "P1",
                "name": "Product1",
                "type": "PRODUCT",
                "class": "ProductGroup1",
                "itemUrl": "https://example.com/products/123",
                "imageUrl": "https://example.com/product123.jpg",
                "description": "Product 1 description",
                "discountDescription": "Volume discount",
                "quantity": 5,
                "quantityUnit": "pcs",
                "unitPrice": 300,
                "discountPrice": 0,
                "vatPercent": 2500,
                "amount": 1500,
                "vatAmount": 375
            },
            {
                "reference": "I1",
                "name": "InvoiceFee",
                "type": "PAYMENT_FEE",
                "class": "Fees",
                "description": "Fee for paying with Invoice",
                "quantity": 1,
                "quantityUnit": "pcs",
                "unitPrice": 1900,
                "vatPercent": 0,
                "amount": 1900,
                "vatAmount": 0,
                "restrictedToInstruments": [
                    "Invoice-PayExFinancingSe"
                ]
            }
        ],
        "riskIndicator": {
            "deliveryEmailAddress": "olivia.nyhuus@swedbankpay.com",
            "deliveryTimeFrameindicator": "01",
            "preOrderDate": "20210220",
            "preOrderPurchaseIndicator": "01",
            "shipIndicator": "01",
            "giftCardPurchase": false,
            "reOrderPurchaseIndicator": "01",
            "pickUpAddress": {
            "name": "Company Megashop Sarpsborg",
            "streetAddress": "Hundskinnveien 92",
            "coAddress": "",
            "city": "Sarpsborg",
            "zipCode": "1711",
            "countryCode": "NO"
            },
            "items": [
            {
                "gpcNumber": 11220000,
                "amount": 5000
            },
            {
                "gpcNumber": 12340000,
                "amount": 3000
            }
            ]
        }
    }
}
 
 
      paymentOrder
      object
      check
    
    
    The relative URL and unique identifier of the     paymentorder resource this payer belongs to.     Please read about URL Usage     to understand how this and other URLs should be used in your solution.
          requestTraExemption
          bool
          check
        
        true if the merchant requests a TRA exemption.
          operation
          string
          check
        
        
        Determines the initial operation, defining the type of payment order created. Possible options are Purchase, Abort Verify, UnscheduledPurchase, Recur and Payout.
          currency
          string
          check
        
        
          amount
          integer
          check
        
        
        The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
          vatAmount
          integer
          check
        
        
        The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.  The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
          description
          string
          check
        
        
          userAgent
          string
          check
        
        
        The user agent of the payer. Should typically be set to the value of the User-Agent header sent by the payer’s web browser.
          language
          string
          check
        
        
          productName
          string
          check
        
        
          implementation
          string
        
        
          urls
          object
          check
        
        urls object, containing the URLs relevant for the payment order.
              hostUrls
              array
              check
            
            
              completeUrl
              string
              check
            
            
            The URL that Swedbank Pay will redirect back to when the payer has completed their interactions with the payment. This does not indicate a successful payment, only that it has reached a final (complete) state. A GET request needs to be performed on the payment order to inspect it further. See completeUrl for details.
              cancelUrl
              string
            
            abort request of the payment or paymentorder.
              callbackUrl
              string
              check
            
            
            The URL that Swedbank Pay will perform an HTTP POST against every time a transaction is created on the payment order. See callback for details.
              termsOfServiceUrl
              string
              check
            
            
            The URL to the terms of service document which the payer must accept in order to complete the payment. HTTPS is a requirement.
          payeeInfo
          object
          check
        
        
        The payeeInfo object, containing information about the payee (the recipient of the money). See payeeInfo for details.
              payeeId
              string
              check
            
            
              payeeReference
              string(30)
              check
            
            
            A unique reference from the merchant system. Set per operation to     ensure an exactly-once delivery of a transactional operation. Length and     content validation depends on whether the transaction.number or the     payeeReference is sent to the acquirer. If Swedbank Pay handles the     settlement, the transaction.number is sent to the acquirer and the     payeeReference must be in the format of A-Za-z0-9 and     string(30). If you handle the settlement,     Swedbank Pay will send the payeeReference and it will be limited to the     format of string(12). All characters must be digits.               In Invoice Payments payeeReference is used as an invoice/receipt         number, if the receiptReference is not defined.
              payeeName
              string
            
            
              productCategory
              string(50)
            
            
              orderReference
              string(50)
            
            
              subsite
              string(40)
            
            
            The subsite field can be used to perform a split settlement on the payment. The different subsite values must be resolved with Swedbank Pay reconciliation before being used. If you send in an unknown subsite value, it will be ignored and the payment will be settled using the merchant’s default settlement account. Must be in the format of A-Za-z0-9.
          payer
          object
        
        
              nationalIdentifier
              object
            
            
                  socialSecurityNumber
                  string
                
                
                  countryCode
                  string
                
                
              requireConsumerInfo
              bool
            
            true if the merchant wants to receive profile information from Swedbank Pay. Applicable for when the merchant only needs email and/or msisdn for digital goods, or when the full shipping address is necessary. If set to false, Swedbank Pay will depend on the merchant to send email and/or msisdn for digital products and shipping address for physical orders.
              digitalProducts
              bool
            
            true for merchants who only sell digital goods and only require email and/or msisdn as shipping details. Set to false if the merchant also sells physical goods.
              email
              string
            
            
              msisdn
              string
            
            
              authentication
              object
            
            payer.
                  type
                  string
                
                Physical or Digital, depending on how the authentication was done.
                  method
                  string
                
                OneFactor, MultiFactor, BankId, nationalIdentityCard or RecurringToken.
                  nationalIdentityCardType
                  string
                
                Passport, DriversLicense or BankCard.
                  reference
                  string
                
                Passport authentications, session numbers for BankID sessions etc.
              shippingAddress
              object
            
            payer.
                  firstName
                  string
                
                
                  lastName
                  string
                
                
                  email
                  string
                
                
                  msisdn
                  string
                
                
                  streetAddress
                  string
                
                
                  coAddress
                  string
                
                
                  city
                  string
                
                
                  zipCode
                  string
                
                
                  countryCode
                  string
                
                
              billingAddress
              object
            
            payer.
                  firstName
                  string
                
                
                  lastName
                  string
                
                
                  email
                  string
                
                
                  msisdn
                  string
                
                
                  streetAddress
                  string
                
                
                  coAddress
                  string
                
                
                  city
                  string
                
                
                  zipCode
                  string
                
                
                  countryCode
                  string
                
                
              accountInfo
              object
            
            payer containing info about the payer's account.
                  accountAgeIndicator
                  string
                
                01 (No account, guest checkout) 02 (Created during this transaction) 03 (Less than 30 days old) 04 (30 to 60 days old) 05 (More than 60 days old)
                  accountChangeIndicator
                  string
                
                01 (Changed during this transaction) 02 (Less than 30 days ago) 03 (30 to 60 days ago) 04 (More than 60 days ago)
                  accountChangePwdIndicator
                  string
                
                01 (No changes) 02 (Changed during this transaction) 03 (Less than 30 days ago) 04 (30 to 60 days ago) 05 (More than 60 days old)
                  shippingAddressUsageIndicator
                  string
                
                01(This transaction) 02 (Less than 30 days ago) 03 (30 to 60 days ago) 04 (More than 60 days ago)
                  shippingNameIndicator
                  string
                
                01 (Account name identical to shipping name) 02 (Account name different from shipping name)
                  suspiciousAccountActivity
                  string
                
                01 (No suspicious activity has been observed) 02 (Suspicious activity has been observed)
                  addressMatchIndicator
                  bool
                
                
          orderItems
          object
        
        
              reference
              string
              check
            
            
              name
              string
              check
            
            
              type
              enum
              check
            
            PRODUCT, SERVICE, SHIPPING_FEE, DISCOUNT, VALUE_CODE, or OTHER. The type of the order item.
              class
              string
              check
            
            MobilePhone. Note that class cannot contain spaces and must follow the regex pattern [\w-]*. Swedbank Pay may use this field for statistics.
              itemUrl
              string
            
            
              imageUrl
              string
            
            
              description
              string
            
            
              <span class="field>discountDescription</span>
              string
            
            
              quantity
              number
              check
            
            
              quantityUnit
              string
              check
            
            pcs, grams, or similar.
              unitPrice
              integer
              check
            
            
              discountPrice
              integer
            
            
              vatPercent
              integer
              check
            
            25% becomes 2500.
              amount
              integer
              check
            
            
            The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.
              vatAmount
              integer
              check
            
            
            The payment’s VAT (Value Added Tax) amount, entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK.  The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount. This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged.
          riskIndicator
          object
        
        
              deliveryEmailAdress
              string
            
            shipIndicator below), the email address to which the merchandise was delivered. Providing this field when appropriate decreases the likelihood of a 3-D Secure authentication for the payer.
              deliveryTimeFrameIndicator
              string
            
            01 (Electronic Delivery) 02 (Same day shipping) 03 (Overnight shipping) 04 (Two-day or more shipping).
              preOrderDate
              string
            
            YYYYMMDD.
              preOrderPurchaseIndicator
              string
            
            01 (Merchandise available) 02 (Future availability).
              shipIndicator
              string
            
            01 (Ship to cardholder's billing address) 02 (Ship to another verified address on file with merchant)03 (Ship to address that is different than cardholder's billing address)04 (Ship to Store / Pick-up at local store. Store address shall be populated in the riskIndicator.pickUpAddress and payer.shippingAddress fields)05 (Digital goods, includes online services, electronic giftcards and redemption codes) 06 (Travel and Event tickets, not shipped) 07 (Other, e.g. gaming, digital service)
              giftCardPurchase
              bool
            
            true if this is a purchase of a gift card.
              reOrderPurchaseIndicator
              string
            
            01 (First time ordered) 02 (Reordered).
              pickUpAddress
              object
            
            riskIndicator, containing info about the merchant's pick-up address. If the shipIndicator is set to 04, this should be filled out with the merchant's pick-up address. Do not use if the shipment is sent or delivered to a consumer address (ShipIndicator 01, 02 or 03). In those cases, the shipping address in the Payer field should be used instead.
                  pickUpAddress.Name
                  string
                
                
                  pickUpAddress.streetAddress
                  string
                
                
                  pickUpAddress.coAddress
                  string
                
                
                  pickUpAddress.City
                  string
                
                
                  pickUpAddress.zipCode
                  string
                
                
                  pickUpAddress.countryCode
                  string
                
                
              items
              object
            
            riskIndicator, containing info about the items ordered. Should be added if the GPC codes for the items are available. If the orderItems object is used and includes the GPC codes, there is no need to add this field. Should only be used by merchants who don't use the orderItems object.