> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating an AutoBill with a Campaign discount

Subscribe allows you to create an `AutoBill` and apply a Campaign discount Code in a single operation, using `AutoBill.update`.

Create an AutoBill with an attached Campaign Code:

```

 $autobill = new AutoBill();
 $response = $autobill->update(
 'SucceedIgnore', // Duplicate Behavior
 false, // validate PaymentMethod?
 100, // min Chargeback Probability
 true, // ignore Avs Policy?
 true, // ignore Cvn Policy?
 'promoABC' // promoCode
 );
 
 // check $response
```

**Note:** This example neither validates the Payment Method, nor checks the chargeback probability or AVS and CVN returns. These parameters must be populated so that the `promoCode` is the 6th parameter.

**Parent topic:**[Working with Campaigns](../topics/ProgGuide_Campaigns)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.