# Delivering the ticket sold on resale

Your system is solely responsible for delivering the ticket sold on resale.

The optimized flows for purchase, sale, listing, editing, and sale detail—with ongoing improvements to strengthen supply and demand—are handled by menta tech.

When a resale is completed, we immediately **notify your system that it happened.**

{% diagram type="sequence" height="400px" %}
{
  "nodes": [
    {
      "id": "actor-1",
      "type": "sequence-actor",
      "position": {
        "x": 80,
        "y": 30
      },
      "data": {
        "label": "Buyer",
        "accentColor": "#22c55e",
        "lifelineHeight": 306
      }
    },
    {
      "id": "actor-2",
      "type": "sequence-actor",
      "position": {
        "x": 656.2896139143585,
        "y": 30
      },
      "data": {
        "label": "Your platform",
        "accentColor": "#f97316",
        "lifelineHeight": 306
      }
    },
    {
      "id": "msg-1765938030861",
      "type": "sequence-message",
      "position": {
        "x": 32.95834830885329,
        "y": 91.21314401957406
      },
      "data": {
        "label": "Completes resale purchase\nin secondary market"
      }
    },
    {
      "id": "actor-1765938270969",
      "type": "sequence-actor",
      "position": {
        "x": 303.5,
        "y": 30
      },
      "data": {
        "label": "menta tech",
        "accentColor": "#3b82f6",
        "lifelineHeight": 306
      }
    },
    {
      "id": "msg-1765938351644",
      "type": "sequence-message",
      "position": {
        "x": 279.3151445162491,
        "y": 160.40449904505073
      },
      "data": {
        "label": "Payment captured"
      }
    },
    {
      "id": "actor-1765938398711",
      "type": "sequence-actor",
      "position": {
        "x": 477.93814757136727,
        "y": 30
      },
      "data": {
        "label": "Payments",
        "accentColor": "#8b5cf6",
        "lifelineHeight": 306
      }
    },
    {
      "id": "msg-1765938441980",
      "type": "sequence-message",
      "position": {
        "x": 452.604814238034,
        "y": 222.014880715283
      },
      "data": {
        "label": "Payment confirmed"
      }
    },
    {
      "id": "msg-1765938477466",
      "type": "sequence-message",
      "position": {
        "x": 262.39490133465875,
        "y": 270.86191657946057
      },
      "data": {
        "label": "Resale success webhook"
      }
    },
    {
      "id": "msg-1765938519424",
      "type": "sequence-message",
      "position": {
        "x": 371.3340207090429,
        "y": 331.3400727215167
      },
      "data": {
        "label": "Ticket delivered"
      }
    }
  ],
  "edges": [
    {
      "id": "edge-1765938273771",
      "source": "msg-1765938030861",
      "target": "actor-1765938270969",
      "sourceHandle": null,
      "targetHandle": "h-2",
      "animated": true,
      "style": {
        "stroke": "#9ca3af",
        "strokeWidth": 1.5
      },
      "markerEnd": {
        "type": "arrowclosed",
        "color": "#9ca3af",
        "width": 16,
        "height": 16
      }
    },
    {
      "id": "edge-1765938428350",
      "source": "msg-1765938351644",
      "target": "actor-1765938398711",
      "sourceHandle": null,
      "targetHandle": "h-7",
      "animated": true,
      "style": {
        "stroke": "#9ca3af",
        "strokeWidth": 1.5
      },
      "markerEnd": {
        "type": "arrowclosed",
        "color": "#9ca3af",
        "width": 16,
        "height": 16
      }
    },
    {
      "id": "edge-1765938457827",
      "source": "actor-1765938270969",
      "target": "msg-1765938441980",
      "sourceHandle": "s-12",
      "targetHandle": null,
      "animated": true,
      "style": {
        "stroke": "#9ca3af",
        "strokeWidth": 1.5
      },
      "markerStart": {
        "type": "arrowclosed",
        "color": "#9ca3af",
        "width": 16,
        "height": 16
      },
      "data": {
        "isReversed": true
      }
    },
    {
      "id": "edge-1765938579583",
      "source": "msg-1765938477466",
      "target": "actor-2",
      "sourceHandle": null,
      "targetHandle": "h-16",
      "animated": true,
      "style": {
        "stroke": "#9ca3af",
        "strokeWidth": 1.5
      },
      "label": "HTTP Webhook",
      "markerEnd": {
        "type": "arrowclosed",
        "color": "#9ca3af",
        "width": 16,
        "height": 16
      }
    },
    {
      "id": "edge-1765938625799",
      "source": "msg-1765938519424",
      "target": "actor-2",
      "sourceHandle": null,
      "targetHandle": "h-21",
      "animated": true,
      "style": {
        "stroke": "#9ca3af",
        "strokeWidth": 1.5
      },
      "markerStart": {
        "type": "arrowclosed",
        "color": "#9ca3af",
        "width": 16,
        "height": 16
      },
      "data": {
        "isReversed": true
      }
    },
    {
      "id": "edge-1765938680272",
      "source": "actor-1",
      "target": "msg-1765938519424",
      "sourceHandle": "s-21",
      "targetHandle": null,
      "animated": true,
      "style": {
        "stroke": "#9ca3af",
        "strokeWidth": 1.5
      },
      "markerStart": {
        "type": "arrowclosed",
        "color": "#9ca3af",
        "width": 16,
        "height": 16
      },
      "data": {
        "isReversed": true
      }
    }
  ]
}
{% /diagram %}


{% columns gap="2rem" align="start" %}
{% column width="1" valign="center" %}
Partners choose different approaches to meet this requirement.

They all share that they receive an `HTTP Webhook` sent by menta tech to the connected system.

<br>

After receiving that webhook, each system performs whatever actions are needed to securely <i>transfer</i> the ticket from seller to buyer.

<br>

menta tech collects all the information you need to do this—from the buyer’s email to ticket personalization data, mailing address, phone number, or any other required fields.

<br>

Everything travels via `Webhook` to your system. On the right is a full example of the `JSON` sent from menta tech.

<br>

{% callout type="info" title="Information collection" %}
Fields containing personal data can capture the information your system needs to deliver the ticket to the buyer.
{% /callout %}

{% /column %}
{% column width="2" valign="center" %}
Example of an outgoing `Webhook` from menta tech reporting a successful resale.
<br><br>

```json
{
    "family": "ticket",
    "action": "ticket.updated",
    "data": {
        "id": "127471-2", // ID of the sold ticket (from your system)
        "newOwnerEmail": "susana@hotmail.com", // Email of the new owner
        "oldOwnerEmail": "joe@gmail.com", // Email of the previous owner
        "reversal": false, // true if the transaction is being reversed
        "metadata": {
            "nominal": {
                "fullName": "Susana Kann",
                "identificationNumber": "1307009",
                "identificationType": "DNI", // Document type for the new ticket. Country-specific.
            },
            "payer": {
                "fullName": "Susana Kann",
                "identificationNumber": "1307009",
                "identificationType": "DNI", // Document type for the buyer. Country-specific.
            },
            "seller": {
                "identification": "9282712", // Seller identification
                "identificationType": "CC" // Seller document type. Country-specific.
            },
            "order": {
                "resaleId": "689a3a0bc68bd2502ce21b15", // Resale ID (in menta tech)
                "grossResalePaidAmount": 57.5, // Total sale price
                "grossResalePaidAmountWithoutBuyerFee": 50.0, // Sale price without buyer fee
                "buyerFee": 0.15, // Buyer fee.
                "buyerFeeAmount": 7.5 // Buyer fee amount
            }
        }
    }
}
```
{% /column %}
{% /columns %}



