HOW TO: Automate Flash & TM Mobile Transfers

Transfer TM Mobile tickets by providing a URL

  1. Accept the order

    Accept order 190840
    curl -i \
    -X POST \
    -H "X-Signature: sDJX751LMpjn2tIrNxIy6DO+nse/El9ZWQDwlIooJoI=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"reviewer_id":2487,"seats":[911,912,913,914,915]}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/orders/190840/accept?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 190823,
      "oid": " 61449-190823",
      "shipments": [
      {
        "id": 78817,
        "url": "/shipments/78817",
        "type": "TBD",
        …
      }
      …
    }
  2. See that the shipment type is TBD in the response body of your POST.

  3. Use Shipments / Update to PUT to /v9/shipments/78817 to indicate that you will be supplying a URL.

    Shipments / Update
    curl -i \
    -X PUT \
    -H "X-Signature: oDL98QMt6dA96tDtGYEnnD7fU5AtY9LQKUUzb7NNMC8=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"tm_mobile_shipment_type":"TMMobileLink"}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/shipments/78817?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 78826,
      "url": "/shipment/78826",
      "type": "TMMobileLink",
      "state": "pending",
      …
    }
  4. See in the response body that a new shipment (78826) has been created and returned.
  5. Use Shipments / Complete to PUT to /v9/shipments/78826/complete to supply the transfer URL and mark the shipment and order complete.

    Shipments / Complete
    curl -i \
    -X PUT \
    -H "X-Signature: 0HzGka1xfouV1eqxes9twAs/sRxedYavwdSrUA3L4HQ=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"tm_mobile_link":"https://am.ticketmaster.com/tdgarden/claim?123123lets213232go123rangers1231241"}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/shipments/78826/complete?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 78826,
      "url": "/shipment/78826",
      "type": "TMMobileLink",
      "tm_mobile_link": "https://am.ticketmaster.com/tdgarden/claim?123123lets213232go123rangers1231241",
      "state": "delivered",
      …
    }

Transfer TM Mobile tickets to a provided email address

  1. Accept the order

    Accept order 190840
    curl -i \
    -X POST \
    -H "X-Signature: sDJX751LMpjn2tIrNxIy6DO+nse/El9ZWQDwlIooJoI=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"reviewer_id":2487,"seats":[911,912,913,914,915]}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/orders/190840/accept?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 190823,
      "oid": " 61449-190823",
      "shipments": [
      {
        "id": 78817,
        "url": "/shipments/78817",
        "type": "TBD",
        …
      }
      …
    }
  2. See that the shipment type is TBD in the response body of your POST.

  3. Use Shipments / Update to PUT to /v9/shipments/78817 to indicate that you will be transferring the tickets to an email address supplied in the response body of this PUT.

    Shipments / Update
    curl -i \
    -X PUT \
    -H "X-Signature: oDL98QMt6dA96tDtGYEnnD7fU5AtY9LQKUUzb7NNMC8=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"tm_mobile_shipment_type":"TMMobile"}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/shipments/78817?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 78826,
      "url": "/shipment/78826",
      "type": "TMMobile",
      "state": "pending",
      "ship_to_name": "Moe Szyslak",
      "email_address": {
        "address": "moe.szyslak@example.com",
        …
      }
      …
    }
  4. See in the response body that a new shipment (78826) has been created and returned and that the email address and name to which you should transfer the tickets is provided.
  5. Transfer the tickets to the provided email address (moe.szyslak@example.com in this example) and name (Moe Szyslak in this example).
  6. Simply use Shipments / Complete to PUT to /v9/shipments/78826/complete and supply the transfer URL (if you have one) and mark the shipment and order complete. As of 2018-11-29  you may optionally include a URL to claim the tickets with your TM Mobile complete request. Including the URL will reduce the need for you to be contacted if the recipient does not receive the transfer email from the primary box office.
    Shipments / Complete
    curl -i \
    -X PUT \
    -H "X-Signature: 0HzGka1xfouV1eqxes9twAs/sRxedYavwdSrUA3L4HQ=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"tm_mobile_link":"https://am.ticketmaster.com/tdgarden/claim?123123lets213232go123rangers1231241"}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/shipments/78826/complete?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 78826,
      "url": "/shipment/78826",
      "type": "TMMobile",
      "tm_mobile_link": "https://am.ticketmaster.com/tdgarden/claim?123123lets213232go123rangers1231241",
      "state": "delivered",
      …
    }

Transfer Flash Seats tickets to a provided email address

  1. Accept the order

    Accept order 190840
    curl -i \
    -X POST \
    -H "X-Signature: sDJX751LMpjn2tIrNxIy6DO+nse/El9ZWQDwlIooJoI=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"reviewer_id":2487,"seats":[911,912,913,914,915]}' \
    --url 'https://api.sandbox.ticketevolution.com/v9/orders/190840/accept?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 190840,
      "oid": "61455-190840",
      "shipments": [
        {
          "id": 78823,
          "url": "/shipments/78823",
          "type": "FlashSeats",
          "state": "pending",
          "ship_to_name": "Moe Szyslak",
          "email_address": {
            "address": "moe.szyslak@example.com",
            …
          }
        …
      }
      …
     }
  2. See in the response body that the shipment type is FlashSeats and that the email address to which you should transfer the tickets is provided.

  3. Transfer the tickets to the provided email address (moe.szyslak@example.com in this example) and name (Moe Szyslak in this example).
  4. Use Shipments / Complete to PUT to /v9/shipments/78823/complete to mark the shipment and order complete.

    Shipments / Complete
    curl -i \
    -X PUT \
    -H "X-Signature: 0HzGka1xfouV1eqxes9twAs/sRxedYavwdSrUA3L4HQ=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    --url 'https://api.sandbox.ticketevolution.com/v9/shipments/78823/complete?'
    HTTP/1.1 200 OK
    Content-Type: application/json; charset=utf-8
    
    …
    
    {
      "id": 78823,
      "url": "/shipment/78823",
      "type": "FlashSeats",
      "state": "delivered",
      …
    }