ANSWERED

Create Subscription API Failed

While calling the subscription endpoint https://public.billsby.com/api/v1/rest/core/companyDomain/subscriptions I am getting this error "errors":[ 0:{ "code":"MODEL_VALIDATION" "name":"couponCodes.planId.couponCodes" "description":"Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Billsby.Controllers.Subscriptions.InputModels.CouponCodeInputModel]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path 'couponCodes.planId', line 1, position 416." } It's when I pass the planId. Can you guide me why this is happening?
ANSWERED

Updating add-ons in a subscription using the API

I am trying to update the add-on counts in an existing subscription using the API. I am using this API enpoint PUT: https://public.billsby.com/api/v1/rest/core/{{companyDomain}}/subscriptions/{{subscriptionUniqueId}}/plan and this payload: { "planChangeType": 1, "planId": {{planId}}, "cycleId": {{cycleId}}, "addOns": [ { "addOnId": {{addonId}}, "quantity": 12 } ], "issueRefund": false } I get a 400 'Bad Request' response with this message: { "errorCode": "Subscription_Change_Subscription_Plan_Billing_Error", "errorMessage": "Subscription_Not_Found" } I have double checked the subscriptionUniqueId is correct, and also tried using the subscriptionId instead, but still get the same error. Some advice on updating add-on quantities via the API would be appreciated. Thanks
ANSWERED

Sub-domain and languages

Hi, i need to ask user for a sub-domain to install their products, just like you to with Billsby, can i set this up in Billsby or should i implement it on my website? Free text custom field doesn't not fit, as user can enter anything that is not URL sub-domain compatible (like spaces or special chars). Also, i need pages and emails in the language requested by user (at least French and English), can Billsby manage this? Thanks.
ANSWERED

Product ID

I created a Product, Plan, and Cycle. Now I want to add the embed code for a button on my site. How do I find the Product ID and Plan ID to include them in the embed code for a button on my site? Is the ID the name that I gave the product and plan when I created them?
ANSWERED

Email Relaying Denied

We are testing email flows. Among that, we also test if the "reply to this email" function works, that is embedded in all outgoing customer emails. Answers are going to [email protected] - are however returned, with the following error: Remote server returned not permitted to relay -> 550 5.7.1 Relaying denied Any help on this? Thank you!
ANSWERED

Problem with testing Trial period plans

Hi, I have an embed on Wix for checkout, it works fine for a normal plans. However, when I add a trial period to the cycle I get this message: There was a problem processing your payment Please try again later or using a different card This is using the sandbox test card provided.
ANSWERED

How do I get Stripe payment identifier from a Subscription?

Hi, given a customerID and a subscriptionID, I want to get the Stripe payment identifier that I can use to lookup using Stripe's API. (Preferably "card_...")
ANSWERED

Failed Payments Text Message Automation

Is there a way using Zapier to create an automation that texts the customer when a payment fails? I see there are automation that can be done for successful payments but nothing for failed payments.
ANSWERED

Webhooks & Allowances

I expected the Subscription changed webhook to come with allowances data inside but it does not. Changing allowance also doesnt trigger this event. Can we can a webhook that covers when allowances are changed?
ANSWERED

CORS issue.

When I use any "core" API I am successful (example): https://public.billsby.com/api/v1/rest/core/... When I try to use the api from "billing" (as shown here) https://public.billsby.com/api/v1/rest/billing/... I get the CORS error (shown below) : Access to fetch at 'https://public.billsby.com/api/v1/rest/billing/[companyName]/subscriptions/[subscriptionId]/addons' from origin 'http://localhost:65508' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. I used the APIs "Try It" function, which works on the billsby site. However, copying it directly into my scripting area, still produces the same error shown above. Please advise.