PUT
/
checkout
/
sessions
/
{checkout_session_id}
/
fields
curl --request PUT \
  --url https://api.{gr4vy_id}.gr4vy.app/checkout/sessions/{checkout_session_id}/fields \
  --header 'Content-Type: application/json' \
  --data '{
  "payment_method": {
    "method": "card",
    "number": "4111111111111111",
    "expiration_date": "11/25",
    "security_code": "123"
  }
}'
This response does not have an example.

This endpoint requires the checkout-sessions.write scope.

Path Parameters

checkout_session_id
string
required

The unique ID for a Checkout Session.

Example:

"8724fd24-5489-4a5d-90fd-0604df7d3b83"

Body

application/json

A request to update the secure fields of a checkout session.

payment_method
object

Details to store a new card payment method.

Response

204
_mintlify/placeholder

Returns when the Checkout Session was updated.