Tinka

Payment Methods Request

Method to get the configured payment methods that can be used to generate a payment request

URL

GET /merchant-api/v2/configs/payment-methods


HTTP response codes

  • 200 - Successful operation
  • 401 - Unauthorized, maybe the credentials are missing. For more information, see security
  • 403 - Forbidden, the HMAC may be wrong or out of date. For more information, see security

Response

The endpoint returns an array of strings with all the payment methods available.

Example

Request

fetch('https://....../merchant-api/v2/configs/payment-methods', {
  method: 'GET',
  headers: {
    Authorization: 'Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'X-Authorization': 'hmac example:xxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxx/xxx=:nonce:xxxxxxxxxx',
    'Content-Type': 'application/json'
  }
})

Response

[
  "Credit",
  "Invoice"
]

© 2024 Tinka. All Rights Reserved. All trademarks, service marks and trade names used in this material are the property of their respective owners.