Charge with the MercadoPago Payment Brick token
Requires the X-Customer-Session header. The enterprise service API key is OPTIONAL (with a key, results are additionally scoped to the workspace pinned to it). Receives the token the Payment Brick produced on the landing page’s domain and charges through the Orders API using the sale amount (never one sent by the client); payer.email travels in the body but is ignored — the payer is ALWAYS the sale’s. status is approved, pending (normal, may require additional authentication from the bank) or rejected (business decline; the reason is in message) — all three are returned with 200. With rejected, saleAlive tells what happened to the purchase: false = it was cancelled and a new one must be started; true = this payment was declined but the purchase is still pending because another payment is in progress on it (do not start a new purchase: wait and check the order). Responds 409 with code PAYMENT_UNAVAILABLE if the reservation expired, the sale is no longer pending, a payment attempt is in flight with another gateway, the event only charges through Bold, or MercadoPago returned an error that cannot be classified as a decline. The sale must belong to the session’s buyer (and, with a key, to the workspace pinned to it): anything else is 404. {id} accepts the sale id or its reference. Limited to 10 attempts per minute per buyer (429 with Retry-After).
/customer/orders/{id}/payment/cardAuthorizationAPI key · headerrequiredAPI key prefixed with Bearer . Alternative: the x-api-key header with the raw key. Available scopes: read and write (see /.well-known/oauth-protected-resource).
x-api-keyAPI key · headerrequiredRaw API key (without Bearer ), alternative to Authorization.
idstringrequiredX-Workspace-IdstringActive workspace to operate on. Optional: when omitted, the default workspace of the user who owns the key is used (pickActiveOrg).
X-Purchase-SessionstringPurchase session id (POST /customer/purchase-sessions). Required when the event's workspace enforces a single purchase session; if present, it is always validated. The requirement is decided by the EVENT, not the API key: it applies if the owning workspace, a linked artist or a catalog seller of the show has the flag, with or without a key. Rejections (409; uppercase error.code and the slug in error.details.reason): PURCHASE_SESSION_REQUIRED (missing, or belongs to another buyer or another event date), PURCHASE_SESSION_SUPERSEDED (another tab or device replaced it), PURCHASE_SESSION_EXPIRED (the map clock ran out before the order was created), PURCHASE_SESSION_BUSY (an order is already in flight with this session) and, on POST /customer/orders with seats, HOLD_TOKEN_MISMATCH (the holdToken is not the session's, or belongs to a replaced session or another buyer even if the header is absent). Payment POSTs accept the buyer's live session or the session that created THAT order, as long as no other session has been opened since. Rejecting a new payment NEVER affects a payment already in flight.
application/jsontokenstringrequiredCard token returned by the Payment Brick when tokenizing.
paymentMethodIdstringrequiredpayment_method_id returned by the Brick (e.g. visa, debmaster).
installmentsintegerrequiredissuerIdstringissuer_id returned by the Brick. Some BINs require it.
payerobjectShow propertiesHide properties
emailstringIgnored: the charge ALWAYS uses the sale's email, never one sent by the client.
identificationobjectShow propertiesHide properties
typestringrequirednumberstringrequiredOK
dataCustomerOrderMercadoPagoChargeResultrequiredShow propertiesHide properties
statusstringrequiredpending is normal: it may require additional authentication from the bank. rejected is a business decline (funds, card details, …) — the buyer can retry with another card.
approvedpendingrejectedreferencestringrequiredmessagestringHuman-readable message for the buyer. Only present with rejected.
saleAlivebooleanOnly present with rejected. false: the purchase was cancelled and its tickets (and seats) went back to inventory — a new purchase must be started. true: THIS payment was declined but the purchase is still pending because another payment is in progress on it (e.g. a PSE payment waiting on the bank); do NOT start a new purchase: show the message, wait, and check the order status.
Missing or invalid credential.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyInsufficient role or resource not accessible.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyResource does not exist or is out of scope.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyConflict: the resource does not allow this operation in its current state.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyOperation error.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyToo many requests: rate limit exceeded.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsany
