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
-
account_id string Required
ID of the Account
Body
Create a Temporary Promotion for an Account
-
temp_promo_inclusive_start string(date-time)
The
Date-Time
as of which this temporary promo starts for the account. -
temp_promo_exclusive_end string(date-time)
The
Date-Time
as of which this temporary promo ends for the account. -
interest_rate_percent number
The percentage interest applied to the account during the temporary promotional period (i.e. 6.2%).
Default value is
0
. -
late_fee_cents integer
The late fee to be charged for late payments during the promotional period.
Default value is
0
.
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"
}