Exemple de demande de configuration de punchout
Cette rubrique fournit des exemples de code pour la configuration et la réponse de punchout.
Demande de configuration
<?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="[email protected]" 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">[email protected]</Extrinsic>
<Extrinsic name="UserEmail">[email protected]</Extrinsic>
<Extrinsic name="User">[email protected]</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">[email protected]</Name>
<Email>[email protected]</Email>
</Contact>
<SupplierSetup>
<URL>https://uttest.free.beeceptor.com</URL>
</SupplierSetup>
</PunchOutSetupRequest>
</Request>
</cXML>
Réponse de la configuration
<?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="[email protected]" 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>