AI resources
Update consent status

Updates the status of an existing consent. The primary seller can cancel (CANCELED) an active or pending consent.

PATCH

https://api.mercadopago.com/v1/split-consent/{receiver_id}
Request parameters
Header
Authorization
string

REQUIRED

Access Token obtained through the developer panel. Must be sent in all requests.
X-Idempotency-Key
string

REQUIRED

Idempotency key in UUIDv4 format. Ensures the same request is not processed more than once.
Path
receiver_id
string

REQUIRED

Unique identifier of the secondary seller's consent (UUID generated when the consent was created). This value is obtained from the receiver_id field included in the succeeded array of the POST /v1/split-consent respo
Body
status
string
New consent status. Currently only CANCELED is accepted. Valid transitions: PENDING → CANCELED (by the primary seller) and ACTIVE → CANCELED (by the primary or secondary seller). The statuses REJECTED, EXPIRED and CANCELED are terminal: attempting to cancel from those statuses returns 409 with INVALID_TRANSITION.
PENDING: The secondary seller received the invitation but has not yet accepted or rejected it.
ACTIVE: The secondary seller accepted the consent. Split payments are enabled.
REJECTED: The secondary seller rejected the invitation.
Response parameters
receiver_id
string
Unique consent identifier in UUID format.
status
string
Current status of the consent.
PENDING: The secondary seller received the invitation but has not yet accepted or rejected it.
ACTIVE: The secondary seller accepted the consent. Split payments are enabled.
REJECTED: The secondary seller rejected the invitation.
created_at
string
Consent creation date and time (ISO 8601).
updated_at
string
Last consent update date and time (ISO 8601).
Errors

400X-Idempotency-Key absent or not a valid UUIDv4. Generate a new UUIDv4 and send it in the X-Idempotency-Key header.

409Conflict in the request. Can occur for two reasons: (1) Idempotency key reused with a different payload: if you need to retry with different data, generate a new X-Idempotency-Key; if the request is identical, reuse the same key. (2) Invalid state transition (INVALID_TRANSITION): the consent is in a terminal status (REJECTED, EXPIRED or CANCELED) and cannot be canceled.

423Concurrent request with the same X-Idempotency-Key in progress. Wait for the in-progress request to complete before retrying.

Request
curl -X PATCH \
    'https://api.mercadopago.com/v1/split-consent/{receiver_id}'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer APP_USR-4*********782856-12*********f202ca494*********f0baa4bb3*********648' \
       -H 'X-Idempotency-Key: 0b229cb2-1227-4553-84bc-d97f90fb6d3c' \
    -d '{
  "status": "CANCELED"
}'
Response
{
  "receiver_id": "550e8400-e29b-41d4-a716-446655440001",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-16T08:00:00Z"
}