Skip to main content
POST
/
payments
/
setup-payment-method
cURL
curl --request POST \
  --url https://api.example.com/payments/setup-payment-method \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "stripeCustomerId": "<string>",
  "allowedPaymentMethods": [
    "<string>"
  ]
}
'
{
  "clientSecret": "<string>",
  "id": "<string>"
}

Body

application/json
metadata
object[]
required

metadata assigned to the object

stripeCustomerId
string
required

the id of the customer

allowedPaymentMethods
string[]
required

the allowed payment methods

Response

clientSecret
string
required

the created intent client secret

id
string
required

the id of the intent