Developer Docs
  • 👋Get Started
  • Add Payment Methods in Optty
  • Custom API | Headless
    • 🖥️Direct API Integration
      • Environments
      • Order Flow
      • 1️⃣Create Access Token
      • 2️⃣Get APM Options
      • 3️⃣Create Order
      • 4️⃣Handle Payment Response
      • 5️⃣Refund Order
      • 🔥Handling Exceptions
  • Platforms
    • ◾BigCommerce
      • 🚀Activate Optty
      • ⚡Add Optty Widgets
        • 1️⃣Install the App
        • 2️⃣Create Widget Token
        • 3️⃣Edit Your Template
        • 4️⃣Widget Configuration
      • 💳Refunds
    • Magento 2
      • Install Optty Module
      • Configure the Optty Extension
      • One Step Checkout
    • Salesforce Commerce Cloud
      • Component Overview
      • Implementation Guide
      • Operation and Management
      • User Guide
    • 🟪WooCommerce
      • 🚀Install Optty
      • ⚡Setup Widgets
      • 💳Refunds
  • Widget
    • Widget Setup and Integration
    • Create Order Widget Integration
    • Handle Order Payment Widget Integration
  • API References
    • Create Order
      • Create Order Response
    • Refund Order
    • Void Order
    • Capture Order
    • Transaction Details
    • Create Customer Session
    • Best Practice
  • Go Live
  • Universal Payment Platform
    • Support Articles
Powered by GitBook
On this page
  • Sandbox Testing Environment
  • Production Environment
  • Use this method to request available payment methods from Optty to get
  1. Custom API | Headless
  2. Direct API Integration

Get APM Options

In order to display the correct APM options at checkout, you should request the options available from the Optty platform using this request.

PreviousCreate Access TokenNextCreate Order

Last updated 8 months ago

Sandbox Testing Environment

Merchant URL

https://api.qa.optty.com

Production Environment

Merchant URL

https://api.optty.com

Use this method to request available payment methods from Optty to get

GET /options

Use this method to request from Optty a list of available payment methods in the order that they should be displayed. e.g. GET /options?amount=100&currency=EUR

Query URL Parameters

Name
Type
Description

currency

eg. USD

amount

eg. 100

Headers

Name
Type
Description

*

String

Bearer <token>

All active APMs will be returned in the response but the example below assumes a single APM.

content-type application/json:

[
 {
   "terms": "Pay SGD 33.33 weekly over 3 weeks with Hoolah SG.",
   "name": "HOOLAH_SG",
   "imageUrl": "https://widgets.qa.optty.com/images/logos/bnpl_hoolah_1.0.png",
   "instalment": {
     "rate": {
       "amount": 33.33,
       "currency": "SGD"
       },
     "termDuration": 3,
     "termUnit": "weeks"
      },
   "monthlyCost": {
      "amount": 100,
      "currency": "SGD"
       },
   "termDurationInMonths": 0.75,
   "weeklyCost": {
      "amount": 33.33,
      "currency": "SGD"
       },
    "termDurationInWeeks": 3,
    "recommended": true,
    "checkoutConfig": {
       "content": "",
       "iframeUrl": "",
       "button": {
          "type": "global",
          "text": "Checkout",
          "color": "#FFFFFF",
          "background": "#0E77C6",
          "position": "left",
          "size": "small"
          },
       "termsCondition": {
          "type": "none",
          "content": "",
          "linkText": "Terms & Condition"
          }
        },
      "currency": "SGD",
      "maxAmount": "10000",
      "minAmount": "1",
      "priority": "24",
      "lateFeesAllowed": false,
       "customerFeesAllowed": false,
       "interestRateAllowed": false,
       "interestRate": "0",
       "ratings": 0,
       "ratingsAvailabilityStatus": false
         }
]

🖥️
2️⃣