# 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>28739738</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>28739738</ns2:purchaseRequestId>
				<ns2:requestStatus>Approved</ns2:requestStatus>
				<ns2:PurchaseRequestTemplateDetails>
					<ns2:templateId>20165522</ns2:templateId>
					<ns2:fullTemplateRuleDetails>
						<ns2:ruleName>a</ns2:ruleName>
						<ns2:ruleType>A</ns2:ruleType>
						<ns2:templateControl xsi:type="ns2:VelocityControlType2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
							<ns2:maxTrans>4</ns2:maxTrans>
							<ns2:cumulativeLimit>80.0</ns2:cumulativeLimit>
							<ns2:period>C</ns2:period>
							<ns2:availableBalance>80.0</ns2:availableBalance>
							<ns2:currencyType>M</ns2:currencyType>
							<ns2:currencyCode>826</ns2:currencyCode>
						</ns2:templateControl>
						<ns2:templateControl xsi:type="ns2:merchantIdControl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
							<ns2:merchantIds>
								<ns2:merchantId>123456789123456</ns2:merchantId>
								<ns2:acquirerId>123456</ns2:acquirerId>
							</ns2:merchantIds>
						<ns2:negate>true</ns2:negate>
					</ns2:templateControl>
				</ns2:fullTemplateRuleDetails>
				<ns2:templateCustomField>
					<ns2:templateCustomField>
						<customFieldName>Purchase Type</customFieldName>
						<customFieldValue>1</customFieldValue>
					</ns2:templateCustomField>
				</ns2:templateCustomField>
			</ns2:PurchaseRequestTemplateDetails>
			<ns2:vcnInformation>
				<ns2:Id>27476418</ns2:Id>
				<ns2:digitizationGuid>c025d892-3496-4e58-9ce5-f942c384a06e</ns2:digitizationGuid>
				<ns2:Pan>5995020125226088</ns2:Pan>
				<ns2:Expiry>2606</ns2:Expiry>
				<ns2:Avv>762</ns2:Avv>
				<ns2:Status>S</ns2:Status>
				<ns2:EVCNIndicator>false</ns2:EVCNIndicator>
			</ns2:vcnInformation>
			<ns2:addenda>
				<tripLeg/>
				<railDetail/>
				<travelAgency/>
			</ns2:addenda>
			<ns2:cardImage></ns2:cardImage>
			<ns2:supplierDetails>
				<ns2:supplierId>20679588</ns2:supplierId>
			</ns2:supplierDetails>
				<ns2:userDetails>
					<ns2:firstName>NewIcmpMidFirstName</ns2:firstName>
					<ns2:lastName>NewIcmpMidLastName</ns2:lastName>
					<ns2:email>abcd@xyz.com</ns2:email>
					<ns2:mobileCountryCode>+91</ns2:mobileCountryCode>
					<ns2:mobileNumber>88888888888</ns2:mobileNumber>
				</ns2:userDetails>
				<ns2:vcnDelivery>APP</ns2:vcnDelivery>
			</ns2:getPurchaseRequestDetail>
		</S:Body>
</S:Envelope>
```

