POST api/AddTicketToCart
Request Information
URI Parameters
None.
Body Parameters
AddTicketToCartRequestName | Description | Type | Additional information |
---|---|---|---|
PricetypeId | integer |
Required |
|
SessionKey | string |
Required |
|
PerformanceId | integer |
Required |
|
NumberOfTickets | integer |
Required |
|
ZoneId | integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "PricetypeId": 1, "SessionKey": "sample string 2", "PerformanceId": 3, "NumberOfTickets": 4, "ZoneId": 5 }
application/xml, text/xml
Sample:
<AddTicketToCartRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Ticketing"> <LoginData xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account"> <d2p1:BusinessUnit>18</d2p1:BusinessUnit> <d2p1:ContributionCount>12</d2p1:ContributionCount> <d2p1:CustomerNumber>6</d2p1:CustomerNumber> <d2p1:FirstSeatAddedDateTime>2025-03-17T21:41:46.5171206+00:00</d2p1:FirstSeatAddedDateTime> <d2p1:GiftCertificateCount>15</d2p1:GiftCertificateCount> <d2p1:HouseholdNumber>7</d2p1:HouseholdNumber> <d2p1:IsGuest>true</d2p1:IsGuest> <d2p1:IsLoggedIn>true</d2p1:IsLoggedIn> <d2p1:IsVoucherTicketSession>true</d2p1:IsVoucherTicketSession> <d2p1:MembershipCount>13</d2p1:MembershipCount> <d2p1:ModeOfSale>4</d2p1:ModeOfSale> <d2p1:OriginalMOS>3</d2p1:OriginalMOS> <d2p1:PackageCount>11</d2p1:PackageCount> <d2p1:PaymentCount>16</d2p1:PaymentCount> <d2p1:PerformanceCount>10</d2p1:PerformanceCount> <d2p1:PromoCode>5</d2p1:PromoCode> <d2p1:Status>sample string 9</d2p1:Status> <d2p1:UserDefinedFeeCount>14</d2p1:UserDefinedFeeCount> <d2p1:UserId>sample string 8</d2p1:UserId> </LoginData> <NumberOfTickets>4</NumberOfTickets> <PerformanceId>3</PerformanceId> <SessionKey>sample string 2</SessionKey> <ZoneId>5</ZoneId> <PricetypeId>1</PricetypeId> </AddTicketToCartRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiSuccessOfAddTicketToCartResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | AddTicketToCartResult |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Data": { "NumberOfTicketsAdded": 1, "GroupDiscountApplied": true, "MemberTicketValidationFailureAdjustment": 3, "MemberSeasonTicketValidationFailureAdjustment": 4, "MemberTicketQuantityAdjusted": true, "AddTicketMessage": "sample string 6" } }
application/xml, text/xml
Sample:
<ApiSuccessOfAddTicketToCartResult5BBiySHU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Ticketing"> <d2p1:AddTicketMessage>sample string 6</d2p1:AddTicketMessage> <d2p1:AnyAttr xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <d2p1:GroupDiscountApplied>true</d2p1:GroupDiscountApplied> <d2p1:MemberSeasonTicketValidationFailureAdjustment>4</d2p1:MemberSeasonTicketValidationFailureAdjustment> <d2p1:MemberTicketQuantityAdjusted>true</d2p1:MemberTicketQuantityAdjusted> <d2p1:MemberTicketValidationFailureAdjustment>3</d2p1:MemberTicketValidationFailureAdjustment> <d2p1:NumberOfTicketsAdded>1</d2p1:NumberOfTicketsAdded> </Data> </ApiSuccessOfAddTicketToCartResult5BBiySHU>