Shared
Payment
Get Payment Method

Get Payment Method For Order

Retrieves the Stripe payment method associated with an order via the StripePaymentExtensionService.

Overview

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

Parameters

orderId (path)

  • Type: string
  • Required: Yes
  • Description: orderId parameter

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "paymentMethod": "string",
  "object": "string",
  "billing_details": "string",
  "country": "string",
  "line1": "string",
  "line2": "string",
  "postal_code": "string",
  "state": "string"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X GET \
  https://api.pillexa.com/shared/payment/get-payment-method/<orderId> \
  -H "Content-Type: application/json" \