# Get Purchase Templates
source: https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/configuration-details/getcompanypurchasetemplates/index.md

> Gets a list of the purchase templates available to use to create a purchase request.

## Parameter {#parameter}

|   Name    |                   Description                   | Required |     Type      |
|-----------|-------------------------------------------------|----------|---------------|
| companyId | ID of your company, up to 22 character maximum. | Yes      | Integer, long |

### Sample request {#sample-request}

```xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://mastercard.com/sd/pc/service">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getCompanyPurchaseTemplatesRequest>
         <ser:companyId>427521</ser:companyId>
      </ser:getCompanyPurchaseTemplatesRequest>
   </soapenv:Body>
</soapenv:Envelope>
```

## Response {#response}

|        Name         |             Description             | Required |     Type     |
|---------------------|-------------------------------------|----------|--------------|
| templateId          | ID of a purchase template.          | Yes      | Numeric      |
| templateName        | Name of the template.               | Yes      | Alphanumeric |
| templateDescription | Additional details on the template. | Yes      | Alphanumeric |

## Sample response {#sample-response}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <getCompanyPurchaseTemplatesResponse
      xmlns="http://mastercard.com/sd/pc/service"
      xmlns:ns2="http://mastercard.com/sd/pc2/service">
      <templates>
        <templateId>21680</templateId>
        <templateName>Sandbox Purchase Template</templateName>
        <templateDescription>Used in Sandbox Environment, with Velocity and Validity Period controls, with addenda data allowed</templateDescription>
      </templates>
      <errorMessage
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
      </getCompanyPurchaseTemplatesResponse>
    </soapenv:Body>
  </soapenv:Envelope>
```

