PULL Method

Process flow

The Pull method allows you to send a request via PCI Proxy to a Channel API endpoint to receive a response where the payload is filtered for credit card data and automatically tokenized. Just add the specified header parameters to your request and redirect your request to the /v1/pull endpoint. All the other headers, your payload and the HTTP method will be kept and routed through PCI Proxy without modification.
Process Flow with PCI Proxy
post
https://sandbox.pci-proxy.com
/v1/pull
PULL method - API request
The masked card number will be returned in the response as a header
pci-proxy-masked-aliases: AAABcHxr-sDssdexyrAAAfyXWIgaAF40=424242xxxxxx4242
In test mode, only test credit cards are allowed.

Example

Once a PULL Channel is added to your project, simply redirect the requests to it via PCI Proxy:
Pull reservations from Booking.com
Response
1
curl https://sandbox.pci-proxy.com/v1/pull \
2
-H 'x-cc-merchant-id: merchantId' \
3
-H 'pci-proxy-api-key: MfJag98oHh0rCiSXc8g3mCsqP8wrSer7' \
4
-H 'x-cc-url: https://secure-supply-xml.booking.com/hotels/xml/reservations' \
5
-d '<?xml version="1.0" encoding="UTF-8"?>
6
<request>
7
<username>providermachinelogin</username>
8
<password>********</password>
9
</request>'
Copied!
1
<?xml version="1.0" encoding="UTF-8"?>
2
<reservations>
3
<reservation>
4
<booked_at>2016-06-01T11:57:22+00:00</booked_at>
5
<commissionamount>21.09</commissionamount>
6
<currencycode>EUR</currencycode>
7
<customer>
8
<address>Vista 2, 3º izq</address>
9
<cc_cvc>xC80dmLNReahfVnMNeW6DHt_</cc_cvc>
10
<cc_expiration_date>07/2018</cc_expiration_date>
11
<cc_name>John Doe</cc_name>
12
<cc_number>AAABcHxr-sDssdexyrAAAfyXWIgaAF40</cc_number>
13
<cc_type>Visa</cc_type>
14
<city>Madrid</city>
15
<company />
16
<countrycode>es</countrycode>
17
<dc_issue_number />
18
<dc_start_date />
19
<email>[email protected]</email>
20
<first_name>Juan</first_name>
21
<last_name>Valdez</last_name>
22
<remarks>Booker is travelling for business...</remarks>
23
<telephone>666 428 664</telephone>
24
<zip>28004</zip>
25
</customer>
26
<!-- the remaining response has been truncated for better visibility -->
27
</reservation>
28
</reservations>
Copied!
The response from Booking.com is automatically filtered for credit card data. Located card data is now stored in our vaults in Switzerland while card tokens have been inserted into the payload.
Last modified 28d ago