• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

  • Due to Holi celebrations, our team will have limited availability. While we’ll continue to monitor threads, responses may be slightly delayed.

Update Custom Field Values while updating Subscription

rjawaisbutt

Member
Hi, I am trying to update the customer subscription. when I upgrade a customer subscription through the web portal of pabbly the Custom Field's values remain ok. but when I update the subscription through API, the pabbly sets the custom field values to the empty string.

Please accept an optional custom_fields field in the request object, so that if I send that field, the custom_fields value has to be updated. If I didn't send it, the previous values have to stick.

eg.
{
"product_id": "akfjaksjfdjasfdksasjfasdf",
"plan_id": "faskdasdfasjksajkdlf;sak",
"customer_id": "kjasfdjkjaskdfaksdfjka",
"price": 100.10,
"setup_fee": "10",
"payment_mode": "offline",
"payment_term": "net0",
"activated_at_val": "immediately",
"custom_fields": [
{
"field_name": "ignite_id",
"field_value": "1135"
},
{
"field_name": "business_name",
"field_value": "Coca Cola"
}]
}
 

Attachments

  • WhatsApp Image 2023-02-21 at 1.24.45 PM.jpeg
    WhatsApp Image 2023-02-21 at 1.24.45 PM.jpeg
    50.5 KB · Views: 153
Top