Apply or detach payment methods

Apply a payment method to the cart

post

Applies a payment method to a cart.

Query parameters
tokenstringOptional

Provide the authorized or anonymous token for a shopper.

expandstringOptional

Use the expand query parameter when you want additional fields to appear in the response. The expand query parameter provides more fields in the response. Expanding resources reduces the number of API calls required to accomplish a task.

fieldsstringOptional

Specify the fields that you want to appear in the response. Filtering the fields returned in the response can conserve bandwidth and accelerate response time.

Body
or
Responses
200

Successful response.

application/json
Responseone of
or
post
/v1/shoppers/me/carts/active/apply-payment-method

Detach a payment source from the cart

delete

Detaches a payment source from a cart.

Query parameters
tokenstringOptional

Provide the authorized or anonymous token for a shopper.

Body
Responses
delete
/v1/shoppers/me/carts/active/apply-payment-method

No content

Detach all applied payment methods from the cart

delete

Delete payment informations from the cart.

Query parameters
tokenstringOptional

This token is the authorized or anonymous token for a shopper.

Responses
delete
/v1/shoppers/me/carts/active/payment

No content

Last updated