Skip to main content
PUT
/
checkout
/
sessions
/
{checkout_session_id}
/
fields
Update fields for checkout session
using RestSharp;


var options = new RestClientOptions("https://api.mattildapayments.com/checkout/sessions/{checkout_session_id}/fields");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{}", false);
var response = await client.PutAsync(request);

Console.WriteLine("{0}", response.Content);
{
  "type": "error",
  "code": "unauthorized",
  "status": 401,
  "message": "No valid API authentication found",
  "details": []
}
This endpoint requires the checkout-sessions.write scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

checkout_session_id
string<uuid>
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
Card Payment Method · object

Details to store a new card payment method.

Response

Returns when the Checkout Session was updated.