POST
/
ext-stripe
/
payment-intent
/
confirm
/
{paymentIntentId}
curl --request POST \
  --url https://prod01-apigw.{customer_name}.fabric.zone/ext-stripe/payment-intent/confirm/{paymentIntentId} \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_method": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
  "receipt_email": "joedoe@fabric.inc",
  "setup_future_usage": "off_session"
}'
{
  "id": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
  "object": "payment_intent",
  "amount": 1000,
  "amount_capturable": 0,
  "amount_received": 0,
  "application": "<string>",
  "application_fee_amount": 123,
  "canceled_at": "<string>",
  "cancellation_reason": "<string>",
  "capture_method": "manual",
  "client_secret": "pi_1GsyhzFbKq2Pvw1bwAI3ZluI_secret_GKG6hcap7VCggeoqJICAqSsRW",
  "confirmation_method": "automatic",
  "created": 1591913835,
  "currency": "usd",
  "customer": "<string>",
  "description": "<string>",
  "invoice": "<string>",
  "last_payment_error": "<string>",
  "livemode": true,
  "metadata": {},
  "next_action": "<string>",
  "on_behalf_of": "<string>",
  "payment_method": "<string>",
  "payment_method_options": {
    "card": {
      "installments": "<string>",
      "network": "<string>",
      "request_three_d_secure": "automatic"
    }
  },
  "payment_method_types": [
    "card"
  ],
  "receipt_email": "<string>",
  "review": "<string>",
  "setup_future_usage": "on_session",
  "shipping": "<string>",
  "source": "<string>",
  "statement_descriptor": "<string>",
  "statement_descriptor_suffix": "<string>",
  "status": "requires_payment_method",
  "transfer_data": "<string>",
  "transfer_group": "<string>",
  "billing_details": {
    "address": {
      "line1": "3520 Millenio",
      "line2": "Crowley Drive",
      "city": "Vancouver",
      "state": "BC",
      "country": "CA",
      "postal_code": "V5R 6G9"
    },
    "name": "John Smith",
    "email": "john@fabric.inc",
    "phone": "123-456-7890"
  },
  "charges": {
    "object": "list",
    "data": [
      {
        "id": "ch_1GszZAFbKq2PvwXbWRHwiXg0",
        "object": "charge",
        "amount": 1500,
        "amount_refunded": 0,
        "application": "<string>",
        "application_fee": "<string>",
        "application_fee_amount": "<string>",
        "balance_transaction": "<string>",
        "calculated_statement_descriptor": "Stripe",
        "captured": false,
        "created": 1591917132,
        "currency": "usd",
        "customer": "<string>",
        "description": "<string>",
        "destination": "<string>",
        "dispute": false,
        "disputed": "<string>",
        "failure_code": "<string>",
        "failure_message": "<string>",
        "fraud_details": {},
        "invoice": "<string>",
        "livemode": false,
        "metadata": "<string>",
        "on_behalf_of": "<string>",
        "order": "<string>",
        "outcome": {
          "network_status": "approved_by_network",
          "reason": "<string>",
          "risk_level": "normal",
          "risk_score": 7,
          "seller_message": "Payment complete.",
          "type": "authorized"
        },
        "paid": true,
        "payment_intent": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
        "payment_method": "pm_1GszYCFbKq2PvwXb2CDbdZOP",
        "payment_method_details": {
          "card": {
            "brand": "visa",
            "checks": {
              "address_line1_check": "<string>",
              "address_postal_code_check": "pass",
              "cvc_check": "pass"
            },
            "country": "US",
            "exp_month": 3,
            "exp_year": 2023,
            "fingerprint": "KYFNiC9k7gBUEnMg",
            "funding": "credit",
            "installments": "<string>",
            "last4": "4242",
            "network": "visa",
            "three_d_secure": "<string>",
            "wallet": "<string>"
          },
          "type": "card"
        },
        "receipt_email": "<string>",
        "receipt_number": "<string>",
        "receipt_url": "https://pay.stripe.com/receipts/acct_1GrptTFbKq2PvwXb/ch_1GszZAFbKq2PvwXbWRHwiXg0/rcpt_HRtLuMrk7E5VQ1rLWNVzKrXHFZHHczr",
        "refunded": false,
        "refunds": {
          "object": "list",
          "data": [
            "<any>"
          ],
          "has_more": false,
          "total_count": 0,
          "url": "/v1/charges/ch_1GszZAFbKq2PvwXbWRHwiXg0/refunds"
        },
        "review": "<string>",
        "shipping": "<string>",
        "source": "<string>",
        "source_transfer": "<string>",
        "statement_descriptor": "<string>",
        "statement_descriptor_suffix": "<string>",
        "status": "succeeded",
        "transfer_data": "<string>",
        "transfer_group": "<string>"
      }
    ],
    "has_more": false,
    "total_count": 0,
    "url": "/v1/charges?payment_intent=pi_1GsyhzFbKq2PvwXbwAI3ZluI"
  }
}

Headers

x-api-key
string

Path Parameters

paymentIntentId
string
required

Payment intent Id.

Body

application/json
payment_method
string
receipt_email
string
setup_future_usage
enum<string>
Available options:
on_session,
off_session

Response

200
application/json
Confirm stripe payment intent
id
string
object
string
amount
number
amount_capturable
number
amount_received
number
application
string
application_fee_amount
number
canceled_at
string
cancellation_reason
string
capture_method
string
client_secret
string
confirmation_method
string
created
number
currency
string
customer
string
description
string
invoice
string
last_payment_error
string
livemode
boolean
metadata
object
next_action
string
on_behalf_of
string
payment_method
string
payment_method_options
object
payment_method_types
string[]
receipt_email
string
review
string
setup_future_usage
string
shipping
string
source
string
statement_descriptor
string
statement_descriptor_suffix
string
status
string
transfer_data
string
transfer_group
string
billing_details
object
charges
object