Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: tm_mobile_shipment_type to mobile_transfer_type

...

  1. Accept the order

    Code Block
    languagebash
    themeRDark
    firstline1
    titleAccept order 190840
    linenumberstrue
    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.

    Code Block
    languagebash
    themeRDark
    titleShipments / Update
    linenumberstrue
    curl -i \
    -X PUT \
    -H "X-Signature: oDL98QMt6dA96tDtGYEnnD7fU5AtY9LQKUUzb7NNMC8=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"tm_mobile_shipmenttransfer_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.

    Code Block
    languagebash
    themeRDark
    titleShipments / Complete
    linenumberstrue
    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",
      …
    }


...

  1. Accept the order

    Code Block
    languagebash
    themeRDark
    firstline1
    titleAccept order 190840
    linenumberstrue
    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.

    Code Block
    languagebash
    themeRDark
    titleShipments / Update
    linenumberstrue
    curl -i \
    -X PUT \
    -H "X-Signature: oDL98QMt6dA96tDtGYEnnD7fU5AtY9LQKUUzb7NNMC8=" \
    -H "X-Token: 11hafc2ed4cd788b932cd4b542e6c2b6" \
    -H "Content-Type: application/json" \
    -d '{"tm_mobile_shipmenttransfer_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.


    Code Block
    languagebash
    themeRDark
    titleShipments / Complete
    linenumberstrue
    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",
      …
    }


...