cart.set_payment_method
Set the payment method on the cart — and, when the front knows it, WHICH app serves it. The app is what a shopper actually chose (they saw its block and its terms), so the order is placed with that provider instead of whichever one was installed first.
- Scope:
public - System: no
- Reachable from: an ANONYMOUS face — no credential, and never
/v1/commands/*. Which path serves it is not derivable from the registry; see the anonymous faces. - Events: none — A checkout step on session state; the payment machinery emits from the intent onwards, where the money is.
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "cart_id": { "minLength": 1, "type": "string" }, "method": { "enum": [ "pix", "card", "promissory", "zero" ], "type": "string" }, "payment_app": { "minLength": 1, "type": "string" } }, "required": [ "cart_id", "method" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "cart_id": { "type": "string" } }, "required": [ "cart_id" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)