Create a temporary promotion for an account.

POST /accounts/{account_id}/temp_promos

Create a temporary promotion that will override the usual configuration for the account for a given time window.

Path parameters

Body

Create a Temporary Promotion for an Account

Responses

  • 401

    Unauthorized.

  • 403

    Forbidden.

  • 422

    Invalid input

  • 429

    Too many requests.

  • Unexpected Error.

  • 200 object

    Payment Processor Configuration Updated

    • Credit processing configuration.

      • payment_processor_name string Required

        Indicates the active payment processor whose configuration will be used for Credit card payments made from the account.

        Values are NONE or CHECKOUT. Default value is NONE.

      • checkout_config object | null
        • A Checkout.com payment source id or customer id.

        • The tokenized card number.

        • last_four string | null

          The last 4 digits of the card number.

        • expires_on string | null

          Expiration time for the card token.

    • Indicates whether autopay is enabled for this account. Currently, autopay is triggered 1 day prior to a payment due date. If default_payment_processor is set to NONE, autopay will not be triggered for account regardless of this field's value.

      Default value is false.

    • Governs the autopay policies to be applied

      • Defines the calculation method for autopay.

        Values are MIN_PAY, TOTAL_BALANCE, FIXED_AMOUNT, or REMAINING_STATEMENT_BALANCE. Default value is MIN_PAY.

      • If using FIXED_AMOUNT autopay method, autopay_fixed_amount_cents defines the fixed amount of each autopayment.

    • Configures the payment processor to be used for manual or autopay payments. This cannot be set to a value different from NONE if no valid ACH or Debit Card configs are provided.

      Values are ACH, DEBIT_CARD, CREDIT_CARD, or NONE. Default value is NONE.

    • ach object

      ACH processing configuration.

    • Debit processing configuration.

POST /accounts/{account_id}/temp_promos
curl \
 -X POST https://<your_environment_name>-uat-api.canopyservicing.com/accounts/can_52322/temp_promos \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"temp_promo_inclusive_start":"2016-11-27T13:19:56+00:00","temp_promo_exclusive_end":"2016-11-27T13:19:56+00:00","interest_rate_percent":6.2,"late_fee_cents":50000}'
Request example
{
  "temp_promo_inclusive_start": "2016-11-27T13:19:56+00:00",
  "temp_promo_exclusive_end": "2016-11-27T13:19:56+00:00",
  "interest_rate_percent": 6.2,
  "late_fee_cents": 50000
}
Response example (200)
{
  "ach": {
    "payment_processor_name": "REPAY",
    "repay_config": {
      "ach_token": "string",
      "last_four": "string"
    },
    "dwolla_config": {
      "ach_token": "string",
      "last_four": "string"
    },
    "modern_treasury_config": {
      "ach_token": "string",
      "last_four": "string"
    },
    "canopy_nacha_config": {
      "bank_routing_number": "999999992",
      "bank_account_number": "987654321",
      "bank_account_type": "CHECKING"
    },
    "stripe_config": {
      "customer_id": "cus_4QE4bx4C5BVSrC",
      "source_id": "string",
      "external_fields": {}
    },
    "galileo_config": {
      "plaid_processor_token": "processor-production-35cd43b-adfc-d8aa-b331-c9ba0fdha881"
    }
  },
  "debit_card": {
    "payment_processor_name": "REPAY",
    "repay_config": {
      "card_token": "string",
      "last_four": "string"
    },
    "authorize_net_config": {
      "customer_profile_id": "527262",
      "customer_payment_profile_ids": [
        "86"
      ]
    }
  },
  "credit_card": {
    "payment_processor_name": "CHECKOUT",
    "checkout_config": {
      "source_id": "cus_6artgoevd77u7ojah2wled32s",
      "card_token": "string",
      "last_four": "string",
      "expires_on": "string"
    }
  },
  "autopay_enabled": true,
  "autopay_configs": {
    "autopay_method": "TOTAL_BALANCE",
    "autopay_fixed_amount_cents": 2500
  },
  "default_payment_processor_method": "ACH"
}