• Last edited on: 02 June 2020

Sample Punchout Setup Request

This topic provides code samples for Punchout Setup and Response.

Setup Request

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
<cXML xml:lang="en-US" payloadID="1591126611.9325364@stg1302app4.int.coupahost.com" timestamp="2020-06-02T14:36:51-05:00">
	<Header>
		<From>
			<Credential domain="DUNS">
				<Identity>COUPA1</Identity>
			</Credential>
		</From>
		<To>
			<Credential domain="DUNS">
				<Identity>079928354</Identity>
			</Credential>
		</To>
		<Sender>
			<Credential domain="DUNS">
				<Identity>COUPA1</Identity>
				<SharedSecret>ALD</SharedSecret>
			</Credential>
			<UserAgent>Coupa Procurement 1.0</UserAgent>
		</Sender>
	</Header>
	<Request>
		<PunchOutSetupRequest operation="create">
			<BuyerCookie>99ea3c4c8cf9f6dc905a6b6772daa0d1</BuyerCookie>
			<Extrinsic name="FirstName">Mary Anne</Extrinsic>
			<Extrinsic name="LastName">Krzeminski</Extrinsic>
			<Extrinsic name="UniqueName">maryanne.krzeminski@coupa.com</Extrinsic>
			<Extrinsic name="UserEmail">maryanne.krzeminski@coupa.com</Extrinsic>
			<Extrinsic name="User">maryanne.krzeminski@coupa.com</Extrinsic>
			<Extrinsic name="BusinessUnit">COUPA</Extrinsic>
			<BrowserFormPost>
				<URL>https://mwilczek-demo.coupacloud.com/punchout/checkout?id=2</URL>
			</BrowserFormPost>
			<Contact role="endUser">
				<Name xml:lang="en-US">maryanne.krzeminski@coupa.com</Name>
				<Email>maryanne.krzeminski@coupa.com</Email>
			</Contact>
			<SupplierSetup>
				<URL>https://uttest.free.beeceptor.com</URL>
			</SupplierSetup>
		</PunchOutSetupRequest>
	</Request>
</cXML>

Setup Response

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.1.010/cXML.dtd">
<cXML version="1.1.007" xml:lang="en-US" payloadID="200303450803006749@b2b.euro.com" timestamp="2020-06-02T14:36:53-05:00">
	<Response>
		<Status code="200" text="OK" />
		<PunchOutSetupResponse>
			<StartPage>
				<URL>https://mygreatpunchoutsite.com/punchoutLogin.asp</URL>
			</StartPage>
		</PunchOutSetupResponse>
	</Response>
</cXML>