Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A Buy/Sell order is where you create an order in which your Office is selling tickets to one of your Clients. Additionally, if the tickets are owned by another Office the system will create the corresponding purchase order to purchase the tickets from the Office that owns them. This is the type of order most Partners and websites should be creating. Please see the Orders / Create documentation for more info.

...

Create a Buy/Sell order for TM Mobile Entry tickets to be electronically transferred to the Client. In this example, a broker named “TEvo POS Test - Main Office (1937)” is selling two tickets to their client, Ned Flanders (167895). The tickets will be transferred to an email address (207924) that was previously created for Ned Flanders.

Code Block
languagejs
{
  "orders": [
    {
      "additional_expense": 0,
      "billing_address_id": 111111,
      "client_id": 167895,
      "created_by_ip_address": "12.34.56.78",
      "discount": 0,
      "external_notes": "These notes will be visible to all parties",
      "internal_notes": "These notes will be visible only to your office (1937)",
      "payments": [
        {
          "creditpayment_cardmethod_idnonce": 22222"AvgRPFtHJPHpQVdNiBX5n1G8eASTrjbk",
          "type": "credit_card"
        }
      ],
      "promo_code": "10DOLLARSOFF",
      "seller_id": 1937,
      "seller_reference_number": "123456789",
      "service_fee": 0,
      "shipped_items": [
        {
          "email_address_id": 207924,
          "items": [
            {
              "price": 10,
              "quantity": 2,
              "ticket_group_id": 385269975,
              "wholesale_price": 8.56
            }
          ],
          "ship_to_name": "Ned Flanders",
          "type": "TMMobile"
        }
      ],
      "shipping": 0,
      "tax": 0,
      "tax_signature": "9166e5ac-c663-4236-ae8b-76eb890a0468"
    }
  ]
}

...

Create a Buy/Sell order for Flash Seats tickets to be electronically transferred to the Client. In this example, a broker named “TEvo POS Test - Main Office (1937)” is selling two tickets to their client, Ned Flanders (167895). The Flash Seats will be transferred to an email address (207924) that was previously created for Ned Flanders.

Code Block
languagejs
{
  "orders": [
    {
      "additional_expense": 0,
      "billing_address_id": 111111,
      "client_id": 167895,
      "created_by_ip_address": "12.34.56.78",
      "discount": 0,
      "external_notes": "These notes will be visible to all parties",
      "internal_notes": "These notes will be visible only to your office (1937)",
      "payments": [
        {
          "creditpayment_cardmethod_idnonce": 22222"AvgRPFtHJPHpQVdNiBX5n1G8eASTrjbk",
          "type": "credit_card"
        }
      ],
      "promo_code": "10DOLLARSOFF",
      "seller_id": 1937,
      "seller_reference_number": "123456789",
      "service_fee": 0,
      "shipped_items": [
        {
          "email_address_id": 207924,
          "items": [
            {
              "price": 10,
              "quantity": 2,
              "ticket_group_id": 385269975,
              "wholesale_price": 8.56
            }
          ],
          "ship_to_name": "Ned Flanders",
          "type": "FlashSeats"
        }
      ],
      "shipping": 0,
      "tax": 0,
      "tax_signature": "9166e5ac-c663-4236-ae8b-76eb890a0468"
    }
  ]
}

...

Create a Buy/Sell order for Print at Home tickets (Etickets) that are delivered as a PDF file. In this example, a broker named “TEvo POS Test - Main Office (1937)” is selling two tickets to their client, Ned Flanders (167895). 

Code Block
languagejs
{
  "orders": [
    {
      "additional_expense": 0,
      "billing_address_id": 111111,
      "client_id": 167895,
      "created_by_ip_address": "12.34.56.78",
      "discount": 0,
      "external_notes": "These notes will be visible to all parties",
      "internal_notes": "These notes will be visible only to your office (1937)",
      "payments": [
        {
          "creditpayment_cardmethod_idnonce": 22222"AvgRPFtHJPHpQVdNiBX5n1G8eASTrjbk",
          "type": "credit_card"
        }
      ],
      "promo_code": "10DOLLARSOFF",
      "seller_id": 1937,
      "seller_reference_number": "123456789",
      "service_fee": 0,
      "shipped_items": [
        {
          "email_address_id": 333333,
          "items": [
            {
              "price": 5,
              "quantity": 2,
              "ticket_group_id": 385270025,
              "wholesale_price": 3.36
            }
          ],
          "type": "Eticket"
        }
      ],
      "shipping": 0,
      "tax": 0,
      "tax_signature": "9166e5ac-c663-4236-ae8b-76eb890a0468"
    }
  ]
}

...

Create a Buy/Sell order for physical tickets that will ship via FedEx. In this example, a broker named “TEvo POS Test - Main Office (1937)” is selling two tickets to their client, Ned Flanders (167895). 

Code Block
languagejs
{
  "orders": [
    {
      "additional_expense": 0,
      "billing_address_id": 111111,
      "client_id": 167895,
      "created_by_ip_address": "12.34.56.78",
      "discount": 0,
      "external_notes": "These notes will be visible to all parties",
      "internal_notes": "These notes will be visible only to your office (1937)",
      "payments": [
        {
          "creditpayment_cardmethod_idnonce": 22222"AvgRPFtHJPHpQVdNiBX5n1G8eASTrjbk",
          "type": "credit_card"
        }
      ],
      "promo_code": "10DOLLARSOFF",
      "seller_id": 1937,
      "seller_reference_number": "123456789",
      "service_fee": 0,
      "shipped_items": [
        {
          "address_id": 111111,
          "items": [
            {
              "price": 5,
              "quantity": 2,
              "ticket_group_id": 385270025,
              "wholesale_price": 3.22
            }
          ],
          "phone_number_id": 33333,
          "residential": true,
          "service_type": "LEAST_EXPENSIVE",
          "ship_to_company_name": "Leftorium",
          "ship_to_name": "Ned Flanders",
          "signature_type": "INDIRECT",
          "type": "FedEx"
        }
      ],
      "shipping": 0,
      "tax": 0,
      "tax_signature": "9166e5ac-c663-4236-ae8b-76eb890a0468"
    }
  ]
}

...

Create a Buy/Sell order for physical tickets when it is too late to ship and the tickets must be picked up locally by the consumer. In this example, a broker named “TEvo POS Test - Main Office (1937)” is selling two tickets to their client, Ned Flanders (167895). 

Code Block
languagejs
{
  "orders": [
    {
      "additional_expense": 0,
      "billing_address_id": 111111,
      "client_id": 167895,
      "created_by_ip_address": "12.34.56.78",
      "discount": 0,
      "external_notes": "These notes will be visible to all parties",
      "internal_notes": "These notes will be visible only to your office (1937)",
      "payments": [
        {
          "creditpayment_cardmethod_idnonce": 22222"AvgRPFtHJPHpQVdNiBX5n1G8eASTrjbk",
          "type": "credit_card"
        }
      ],
      "promo_code": "10DOLLARSOFF",
      "seller_id": 1937,
      "seller_reference_number": "123456789",
      "service_fee": 0,
      "shipped_items": [
        {
          "items": [
            {
              "price": 5,
              "quantity": 2,
              "ticket_group_id": 385270025,
              "wholesale_price": 3.18
            }
          ],
          "notes": "Please contact Ned to arrange when and where to pick up his ticket.",
          "phone_number_id": 33333,
          "ship_to_name": "Ned Flanders",
          "type": "LocalPickup"
        }
      ],
      "shipping": 0,
      "tax": 0,
      "tax_signature": "9166e5ac-c663-4236-ae8b-76eb890a0468"
    }
  ]
}

...