Checkout with payment information
documentedSubmit payment information to complete checkout.
POST /rest/{store_code}/V1/carts/mine/payment-informationCheckoutno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$host}}/rest/{{$store_code}}/V1/carts/mine/payment-information" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{"paymentMethod": {"method": "{{$payment_method}}"}, "billing_address": {"email": "{{$email}}", "region": "{{$region}}", "region_id": {{$region_id}}, "region_code": "{{$region_code}}", "country_id": "{{$country_id}}", "street": ["{{$street1}}", "{{$street2}}"], "postcode": "{{$postcode}}", "city": "{{$city}}", "telephone": "{{$telephone}}", "firstname": "{{$firstname}}", "lastname": "{{$lastname}}"}}'