# Get Detail
source: https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/purchaserequest/getpurchaserequestdetail/index.md

> Get the details of a purchase request using its ID.

## Parameters {#parameters}

|              Names              |                                                                                                                                                                                 Description                                                                                                                                                                                  | Required for ICCP | Required for ICMP |     Type      |
|---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|-------------------|---------------|
| `purchaseRequestId`             | * ID of an active purchase request. Get details of a cancelled purchase request. * Maximum length: 22 digits                                                                                                                                                                                                                                                                 | Yes               | Yes               | Integer, long |
| `requestStatus`                 | * **Approved**: The purchase request is approved and the VCN is ready to use. * **Canceled**: The purchase request and the VCN are no longer in use. * **Pending Approval**: Not applicable to purchase requests created through API. * **Declined**: Not applicable to purchase requests created through API. * **Draft**: The purchase request has not yet been submitted. | N                 | N                 | Alphanumeric  |
| `PurchaseRequestDetailRequest2` | The request includes the purchaseRequestID only.                                                                                                                                                                                                                                                                                                                             | Yes               | Yes               | Integer, long |
| `disableCardImage`              | Set **Y** to disable card image in the Purchase Request Creation API response. Specify **N** to include the card image. Where the *disableCardImage* parameter is included in API requests and a valid value is passed, this value will override any settings configured in the user interface at Purchase Template, Company Settings, or Program Options level.             | No                | No                | Boolean       |

### Sample request {#sample-request}

```xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://mastercard.com/sd/pc2/service">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getPurchaseRequestDetailRequest2>
         <ser:purchaseRequestId>2187360</ser:purchaseRequestId>
      </ser:getPurchaseRequestDetailRequest2>
   </soapenv:Body>
</soapenv:Envelope>
```

## Response {#response}

Same as [submitPurchaseRequestResponse](https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/purchaserequest/submitpurchaserequest/index.md#response).

### Sample response without ICMP enabled {#sample-response-without-icmp-enabled}

```xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ns2:getPurchaseRequestDetail xmlns="http://mastercard.com/sd/pc/service" xmlns:ns2="http://mastercard.com/sd/pc2/service">
         <ns2:purchaseRequestId>1243255</ns2:purchaseRequestId>
         <ns2:requestStatus>Approved</ns2:requestStatus>
         <ns2:PurchaseRequestTemplateDetails>
            <ns2:templateId>55024</ns2:templateId>
            <ns2:fullTemplateRuleDetails>
               <ns2:ruleName>B</ns2:ruleName>
               <ns2:ruleType>A</ns2:ruleType>
               <ns2:templateControl xsi:type="ns2:VelocityControlType2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <ns2:maxTrans>4567</ns2:maxTrans>
                  <ns2:cumulativeLimit>567.0</ns2:cumulativeLimit>
                  <ns2:period>D</ns2:period>
                  <ns2:currencyType>B</ns2:currencyType>
               </ns2:templateControl>
            </ns2:fullTemplateRuleDetails>
            <ns2:templateCustomField>
               <ns2:templateCustomField>
                  <customFieldName>Purchase Type</customFieldName>
                  <customFieldValue>1</customFieldValue>
               </ns2:templateCustomField>
               <ns2:templateCustomField>
                  <customFieldName>Big5_123</customFieldName>
                  <customFieldValue/>
               </ns2:templateCustomField>
            </ns2:templateCustomField>
         </ns2:PurchaseRequestTemplateDetails>
         <ns2:vcnInformation>
            <ns2:Id>1124960</ns2:Id>
            <ns2:Pan>541275XXXXXX9999</ns2:Pan>
            <ns2:Expiry>2111</ns2:Expiry>
            <ns2:Avv>435</ns2:Avv>
            <ns2:Status>S</ns2:Status>
            <ns2:EVCNIndicator>false</ns2:EVCNIndicator>
         </ns2:vcnInformation>
         <ns2:addenda>
            <tripLeg/>
            <railDetail/>
            <travelAgency/>
         </ns2:addenda>
         <ns2:cardImage>
            Card Image in HTML code
         </ns2:cardImage>
         <ns2:supplierDetails>
            <ns2:supplierId>227613</ns2:supplierId>
            <ns2:notifySupplier>false</ns2:notifySupplier>
         </ns2:supplierDetails>
         <ser:disablecardImage>N</ser:disablecardImage>
      </ns2:getPurchaseRequestDetail>
   </soapenv:Body>
</soapenv:Envelope>
```

### Sample response with ICMP enabled {#sample-response-with-icmp-enabled}

```xml
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:getPurchaseRequestDetail xmlns="http://mastercard.com/sd/pc/service" xmlns:ns2="http://mastercard.com/sd/pc2/service">
         <ns2:purchaseRequestId>90309</ns2:purchaseRequestId>
         <ns2:requestStatus>Canceled</ns2:requestStatus>
         <ns2:PurchaseRequestTemplateDetails>
            <ns2:templateId>108291</ns2:templateId>
            <ns2:fullTemplateRuleDetails>
               <ns2:ruleName>Approval Workflow Rule</ns2:ruleName>
               <ns2:ruleType>A</ns2:ruleType>
               <ns2:templateControl xsi:type="ns2:VelocityControlType2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <ns2:maxTrans>7</ns2:maxTrans>
                  <ns2:cumulativeLimit>1002.0</ns2:cumulativeLimit>
                  <ns2:period>C</ns2:period>
                  <ns2:currencyType>B</ns2:currencyType>
               </ns2:templateControl>
            </ns2:fullTemplateRuleDetails>
            <ns2:templateCustomField>
               <ns2:templateCustomField>
                  <customFieldName>Purchase Type</customFieldName>
                  <customFieldValue>Rail</customFieldValue>
               </ns2:templateCustomField>
            </ns2:templateCustomField>
         </ns2:PurchaseRequestTemplateDetails>
         <ns2:vcnInformation>
            <ns2:Id>26900800</ns2:Id>
            <ns2:digitizationGuid>85431d11-15d5-4796-bccc-3c234213bca2</ns2:digitizationGuid>
            <ns2:Pan>5995020021256254</ns2:Pan>
            <ns2:Expiry>2604</ns2:Expiry>
            <ns2:Avv>781</ns2:Avv>
            <ns2:Status>S</ns2:Status>
            <ns2:EVCNIndicator>false</ns2:EVCNIndicator>
         </ns2:vcnInformation>
         <ns2:addenda>
            <tripLeg/>
            <railDetail/>
            <travelAgency/>
         </ns2:addenda>
         <ns2:userDetails>
            <ns2:firstName>TempFirstName</ns2:firstName>
            <ns2:lastName>TempLastName</ns2:lastName>
            <ns2:email>TempEmail@email.com</ns2:email>
            <ns2:mobileCountryCode>+40</ns2:mobileCountryCode>
            <ns2:mobileNumber>454545</ns2:mobileNumber>
         </ns2:userDetails>
         <ns2:vcnDelivery>EMAIL</ns2:vcnDelivery>
      </ns2:getPurchaseRequestDetail>
   </S:Body>
</S:Envelope>
```

