---
schema_version: "1"
id: af3a379a529dfd48b40ba5e90f993f345f99ade6fb516c4c6d5555c38e1d996b
title: Create an Attribute Pricing Procedure for the Billing Zip Code
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-create-an-attribute-pricing-procedure-for-the-billing-zip-code.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-create-an-attribute-pricing-procedure-for-the-billing-zip-code.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6cbfd2a2e2225d662bc2245ead0bfa1784509738ecab7e36f7e5ee5fb09a55ac
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Create an Attribute Pricing Procedure for the Billing Zip Code

In this task, Felix needs to create an attribute pricing procedure so that product pricing is calculated based on the Billing Zip Code attribute pricing matrix.

1.  Navigate to the **Vlocity Calculation Procedures** tab. You may need to click the **More** dropdown menu to expand for additional tabs.

2.  Click **New**.

3.  On the **New Vlocity Calculation Procedure** dialog box, select **Declarative** as the record type and click **Next**.

4.  Type `BillingZipCodeAttributePricingProcedure` for the **Calculation Procedure Name** and click **Save**.

5.  Click the **Related** tab, select **BillingZipCodeAttributePricingProcedure v1**.

6.  In the **Variables and Constants** section of the Pricing Calculation, click **Add Variable**.

7.  Enter the following:

    | Field     | Entry            |
    | --------- | ---------------- |
    | Name      | REC_MNTH_STD_PRC |
    | Data Type | **Currency**     |

8.  Click **Add Variable** to add the next variable.

    | Field     | Entry        |
    | --------- | ------------ |
    | Name      | OT_STD_PRC   |
    | Data Type | **Currency** |

    ![](https://developer.salesforce.com/docs/media/image86.png)

9.  Scroll to the **Calculation Steps** section of the Pricing Calculation.

10. Click **Add Step**.

11. Select the **Matrix Lookup** radio button.

12. In the **Matrix Name** field, type `Billing`.

13. Select **BillingZipCodeAttributePricingMatrix**.

14. Check the box **Include in Calculation Output**.

    ![](https://developer.salesforce.com/docs/media/image87.png)

15. Notice the variables added to the Variables and Constants section of the procedure.

16. Click **Add Step** to add another **Calculation Step**.

17. Select the **Calculation** radio button.

18. Type `MRC` in the first box and select **MRC (BillingZipCodeAttributePricingMatrix)**.

19. Type `REC` in the second box and select **REC_MNTH_STD_PRC**.

20. Check the box **Include in Calculation Output**.

21. Click **Add Step** to add another calculation step.

22. Select the **Calculation** radio button.

23. Type `NRC` in the first box and select **NRC (BillingZipCodeAttributePricingMatrix)**.

24. Type `OT` in the second box and select **OT_STD_PRC**.

25. Check the box **Include in Calculation Output**.

26. Click **Save Calculation Procedure**.

    ![](https://developer.salesforce.com/docs/media/image88.png)

27. Click **OK** to the message that the save was successful.

28. Scroll to the top of the page and click the **Edit** button in the header.

29. Check the **Enabled** box and **Save**.

See [Create a Custom Pricing Plan Step for the Billing Zip Code](https://developer.salesforce.com/docs/industries/cme/guide/comms-create-a-custom-pricing-plan-step-for-the-billing-zip-code.md).
