Retrieve a contract

Retrieves the object of an existing contract. You need to pass the unique contract Id value that was returned when listing contracts.

Parameters


No parameters.

Returns


Returns a contract object if a valid identifier is provided. Returns an error for invalid identifiers.

Example Request


curl 'https://api.impact.com/Mediapartners/<AccountSID>/Contracts/<Id>' \
  -X GET \
  -u '<AccountSID>:<AuthToken>' \
  -H 'Accept: application/json'

Example Response


{
  "Id": "S-1234567",
  "CampaignId": "8882",
  "Status": "ACTIVE",
  "StartDate": "2021-03-04T16:42:58-05:00",
  "EndDate": "",
  "BrandSignatory": "ACME Inc",
  "BrandSignatoryDate": "2021-03-04T16:37:01-05:00",
  "PartnerSignatory": "Wile E Coyote",
  "PartnerSignatoryDate": "2021-03-04T16:42:58-05:00",
  "DateCreated": "2021-03-04T16:42:58-05:00",
  "DateLastUpdated": "2021-03-04T16:42:58-05:00",
  "Terms": {
    "Currency": "USD",
    "EventPayouts": [
      {
        "EventTypeId": "16027",
        "EventTypeName": "Sale",
        "EventCategory": "SALE",
        "DefaultPayoutRate": "0",
        "PayoutLevel": "ITEM",
        "PayoutGroups": [
        {
          "Id": "66bb9761-2760-4c7f-afb9-1ff70c9c8850",
          "Rank": "1",
          "Rules": [
          {
            "Variable": "CUSTOMER_CITY",
            "Operator": "IS",
            "Values": [
            "Santa Barbara"
            ]
          }
        ],
        "PayoutRate": "1"
        }
      ],
      "PayoutAdjustments": [
        {
          "Id": "dd926935-2762-426a-910a-a3aabdc57ee4",
          "Rules": [
          {
            "Variable": "DERIVED_BROWSER",
            "Operator": "IS",
            "Values": [
            "FIREFOX"
            ]
            }
          ],
          "Direction": "INCREASE",
          "Rate": "1"
          }
        ],
        "PerformanceBonus": {
          "Type": "SUBSEQUENT_ACTIONS",
          "Basis": "ACTIONS",
          "Period": "CALENDAR_MONTH",
          "Tiers": [
            {
              "ActionThreshold": "2147483647",
              "PayoutRate": "0"
              }
            ]
            },
          "PayoutRestrictions": [
            {
              "Id": "08707ac6-ae02-4da2-b009-a0ebf3a38db6",
              "Rules": [
                {
                  "Variable": "CUSTOMER_CITY",
                  "Operator": "IS",
                  "Values": [
                  "Los Angeles"
                  ]
                  }
                ]
                }
              ],
            "Limits": [
              {
                "Type": "ACTION",
                "SubType": "SKU",
                "Value": "250.0",
                "LimitBy": "CUSTOMER",
                "Period": "DAY",
                "WeekendOverrideValue": "500"
                }
              ],
              "Locking": {
                "Basis": "TRACKED",
                "Period": "DAY",
                "DayOffset": "30"
                },
              "PayoutScheduling": {
                "Basis": "LOCKED",
                "Period": "END_OF_DAY",
                "DayOffset": "3"
                },
              "CreditPolicy": "LAST_REFERRER",
              "ValidReferrals": [
                {
                  "Type": "CLICKS",
                  "Window": "30",
                  "WindowUnit": "DAY"
                  }
                ]
              }   
            ], 
          "SpecialTermsList": [
            {
              "TermsName": "Special Terms",
              "TermsType": "CUSTOM",
              "TermsPdfUri": "/Mediapartners/<AccountSID>/Campaigns/8882/CustomTerms/10500/Download"
            }
          ],
        "ChangeNotificationPeriod": "0",
        "ReturnPolicy": "ALWAYS_OK",
        "MaxReturnPercentage": "100",
        "ActionLimit": "1000",
        "ActionLimitPeriod": "MONTH",
        "CustomCreativePayer": "ADVERTISER"
      },
   "PdfUri": "/Mediapartners/<AccountSID>/Campaigns/8882/Contracts/S-9558520/Download",
   "Uri": "/Mediapartners/<AccountSID>/Contracts/S-9558520"
 }