Skip to main content
PUT

Path Parameters

cart_token
string
required

Opaque cart token returned by the create-cart response. It scopes the request to a single cart and is the credential for these endpoints — cart-token authentication carried in the path, with no bearer token or API key.

Body

application/json
type
string
required

Payment type (credit_card, paypal, apple_pay, klarna, bread, affirm, or a platform type such as *_citcon, *_ppro, *_dlocal).

payment_method
object

Type-specific payment payload (e.g. VGS card fields for credit_card; order_id/token for paypal; authorization_token/session_id for klarna).

billing_address
object

Optional billing address. All fields are optional.

payment_account
string | null

PaymentAccount UUID override for routing.

customer_details
object | null

Integration-specific customer details.

device_data
string | null

Braintree Data Collector fraud fingerprint.

use_customer_payment_method
boolean

Resolve payment_method_id against the customer's saved payment methods instead of the shared wallet.

payment_method_id

Existing saved PaymentMethod id (saved payment method flow).

jwt
string

Customer/user JWT authorizing use of a saved payment method (may also be sent as an Authorization header).

token
object

Raw Apple Pay payment token envelope (apple_pay flow).

apple_pay_token
object

VGS-decrypted Apple Pay token data (apple_pay flow, inbound VGS route).

payment_type
string

Secondary payment-type selector. When set to "paypal" on an apple_pay request, routes the decrypted Apple Pay token through the PayPal-on-Apple-Pay flow.

Response

Payment method set

Success body for setting the cart payment method. The shape varies by payment type: credit_card/apple_pay return card; saved payment methods return card + payment_method; paypal returns order_id (Braintree SDK PayPal also returns transaction_id); klarna returns authorization_token; bread/affirm/platform payments return an empty object.

order_id
string

PayPal order id (paypal and decrypted Apple Pay-on-PayPal flows).

transaction_id
string

Braintree transaction id (Braintree SDK PayPal flow).

authorization_token
string

Klarna authorization token (klarna flow).

card
object

Sanitized stored-card JSON (credit_card, apple_pay, and saved payment method flows).

payment_method
object

Formatted payment method (saved payment method flow).