Skip to main content
POST
/
v2
/
stores
/
{store_id}
/
payment_methods
/
personalized
Retrieve personalized payment methods for a specific customer
curl --request POST \
  --url https://mock-merchant-api-portal-dev.d.eks.aws.cld.resurs.com/v2/stores/{store_id}/payment_methods/personalized \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "governmentId": "197906023457",
  "customerSessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "amount": 123
}
'
{
  "content": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "type": "RESURS_CARD",
      "minPurchaseLimit": 123,
      "maxPurchaseLimit": 123,
      "minApplicationLimit": 123,
      "maxApplicationLimit": 123,
      "legalLinks": [
        {
          "url": "https://priceinfo.resurs.com/prisskyltning.html?countryCode=SE&amp;authorizedBankproductId=NZ690101&amp;representativeId=107&amp;creditAmount=2500",
          "type": "PRICE_INFO",
          "appendAmount": false
        }
      ],
      "disabled": false,
      "applicationRequired": true,
      "account": {
        "availableAmount": 123,
        "creditLimit": 123
      },
      "priceSignagePossible": true
    }
  ],
  "page": {
    "number": 1,
    "size": 10,
    "totalElements": 100,
    "totalPages": 10
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

store_id
string
required

The UUID of the store Unique identifier of the store

Example:

"123e4567-e89b-12d3-a456-426655440000"

Body

application/json
governmentId
string

Government-issued identification number of the customer, such as a national ID number or social security number. This should always be included when there is no customer session.

Example:

"197906023457"

customerSessionId
string<uuid>

A unique session id that is used to verify that the customer is identified and has access to the requested data. If this is included, governmentId should be omitted.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

amount
number

The total cost of the purchase. If the customer already has an account associated with this payment method, and the amount is provided, it will be used to update the 'disabled' and 'applicationRequired' flags based on the account's available balance and limits.

Response

OK

Paginated list of payment methods

content
object[]

List of page entries

page
object

Page information