Shared
Payment
Get Payment Method

Get Payment Method

GET endpoint for /shared/payment/get-payment-method in shared category

Overview

  • Method: GET
  • Path: /shared/payment/get-payment-method
  • Tags: shared

Parameters

No parameters required.

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "type": "object",
  "properties": {
    "paymentMethod": {
      "type": "string"
    },
    "object": {
      "type": "string"
    },
    "billing_details": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "line1": {
      "type": "string"
    },
    "line2": {
      "type": "string"
    },
    "postal_code": {
      "type": "string"
    },
    "state": {
      "type": "string"
    }
  },
  "required": [
    "paymentMethod",
    "object"
  ]
}

400

Bad Request

Content Type: application/json

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "details": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "required": [
    "error",
    "details"
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X GET \
  http://localhost:9000/shared/payment/get-payment-method \
  -H "Content-Type: application/json" \
  

Interactive Testing

You can test this endpoint interactively in the Swagger UI (opens in a new tab).