API | Payments

Contains functionality related to payments.

Payment

Makes a payment for the event, division or team. Can only be used for non-redirect payment providers.

Endpoint

POST https://basketball.exposureevents.com/api/v1/payments

Parameters

Name Type Default Required Description
teamid integer The team id to be tied to the payment. Only required if division and event id is missing
divisionid integer The division id to be tied to the payment. Only required if team and event id is missing
eventid integer The event id to be tied to the payment. Only required if team and division id is missing
markaspaid boolean true Marks the team as paid. Only used when team id is supplied
enablecreditcard boolean true Creates a payment and charges a credit card. Payment provider must be setup first and assigned to the event.
enablepaymentconfirmation boolean true Sends a email confirmation after a successful payment is made.
payment object Can only be used for non-redirect payment providers
payment.priceid integer The payment price id. Only required if amount isn't supplied.
payment.amount decimal The payment amount. Only required if price id isn't supplied.
payment.title string (100) The payment title. Only required if price id isn't supplied.
payment.description string The payment description. Only required if price ID isn't supplied.
payment.firstname string (100) The billing contact first name.
payment.lastname string (100) The billing contact last name.
payment.email string (100) The billing contact email. Must be a valid email.
payment.phone string (100) The billing contact phone number.
payment.creditcardtype string (100) The credit card type (Visa, Mastercard, Discover, American Express). Only required if enabled credit card is enabled.
payment.creditcardnumber string (100) The credit card number. Only required if enabled credit card is enabled.
payment.creditcardexpireyear integer The credit card two digit expiration year. Only required if enabled credit card is enabled.
payment.creditcardexpiremonth integer The credit card two digit expiration month. Only required if enabled credit card is enabled.
payment.creditcardcvv2 string (100) The credit card security code. Only required if enabled credit card is enabled.
payment.address object The billing contact address. Only required if enabled credit card is enabled.
payment.address.streetaddress string (100) Only required if enabled credit card is enabled.
payment.address.extendedaddress string (100) Only required if enabled credit card is enabled.
payment.address.city string (100) Only required if enabled credit card is enabled.
payment.address.stateregion string (100) Only required if enabled credit card is enabled.
payment.address.postalcode string (10) Only required if enabled credit card is enabled.

Request


{
  "TeamId": 0,
  "EventId": 0,
  "DivisionId": 20,
  "EnableCreditCard": true,
  "MarkAsPaid": false,
  "EnablePaymentConfirmation": true,
  "Payment": {
    "PriceId": 20,
    "Amount": 150.0,
    "CreditCardType": "Visa",
    "CreditCardNumber": "4444444444444444",
    "CreditCardExpireYear": "14",
    "CreditCardExpireMonth": "10",
    "CreditCardCvv2": "438",
    "FirstName": "Bob",
    "LastName": "Smith",
    "Organization": "Exposure Events, LLC",
    "StreetAddress": "22 Exposure Lane",
    "ExtendedAddress": "Suite 22",
    "City": "Gilbert",
    "StateRegion": "AZ",
    "PostalCode": "55555",
    "Email": "noreply@exposureevents.com",
    "Phone": "555-555-5555",
    "Title": "Tournament Fee",
    "Description": "Team Exposure (adidas Super 64 - 17)"
  },
  "CollegeCoachId": 0
}


<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CollegeCoachId>0</CollegeCoachId>
  <DivisionId>20</DivisionId>
  <EnableCreditCard>true</EnableCreditCard>
  <EnablePaymentConfirmation>true</EnablePaymentConfirmation>
  <EventId>0</EventId>
  <MarkAsPaid>false</MarkAsPaid>
  <Payment xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tournaments.Models.Payments">
    <Amount>150</Amount>
    <City>Gilbert</City>
    <Country i:nil="true" />
    <CreditCardCvv2>438</CreditCardCvv2>
    <CreditCardExpireMonth>10</CreditCardExpireMonth>
    <CreditCardExpireYear>14</CreditCardExpireYear>
    <CreditCardNumber>4444444444444444</CreditCardNumber>
    <CreditCardType>Visa</CreditCardType>
    <Description>Team Exposure (adidas Super 64 - 17)</Description>
    <Email>noreply@exposureevents.com</Email>
    <ExtendedAddress>Suite 22</ExtendedAddress>
    <FirstName>Bob</FirstName>
    <LastName>Smith</LastName>
    <Organization>Exposure Events, LLC</Organization>
    <Phone>555-555-5555</Phone>
    <PostalCode>55555</PostalCode>
    <StateRegion>AZ</StateRegion>
    <StreetAddress>22 Exposure Lane</StreetAddress>
    <Title>Tournament Fee</Title>
    <d2p1:DiscountCode i:nil="true" />
    <d2p1:PriceId>20</d2p1:PriceId>
  </Payment>
  <PriceType i:nil="true" />
  <TeamId>0</TeamId>
</Request>

Response


{
  "TransactionId": "5555555555555555"
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <TransactionId>5555555555555555</TransactionId>
</Response>

YOUTH BASKETBALL EVENT, TOURNAMENT AND LEAGUE DIRECTORY Market your event by submitting it to our directory. Submit Event