Shared
Payment
Update Payment Method

Update Payment Method

PUT endpoint for /shared/payment/update-payment-method in shared category

Overview

  • Method: PUT
  • Path: /shared/payment/update-payment-method
  • Tags: shared

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes
  • Schema: Defined

Responses

200

Successful response

Content Type: application/json

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "paymentIntentId": {
      "type": "string"
    },
    "paymentStatus": {
      "type": "string"
    },
    "actionTaken": {
      "type": "string"
    },
    "isAuthorized": {
      "type": "boolean"
    },
    "isCaptured": {
      "type": "boolean"
    },
    "needsManualCapture": {
      "type": "boolean"
    },
    "orderStatus": {
      "type": "string"
    },
    "amount": {
      "type": "string"
    },
    "nextSteps": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "cardDetails": {
      "type": "string"
    },
    "last4": {
      "type": "string"
    },
    "exp_month": {
      "type": "number"
    },
    "exp_year": {
      "type": "number"
    }
  },
  "required": [
    "success",
    "message",
    "cardDetails",
    "last4",
    "exp_month",
    "exp_year"
  ]
}

400

Bad Request

Content Type: application/json

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "success",
    "message"
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X PUT \
  http://localhost:9000/shared/payment/update-payment-method \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'

Interactive Testing

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