-
Vendor request
|
Beta Was this translation helpful? Give feedback.
Answered by
r-brown
May 20, 2024
Replies: 1 comment
-
A permanent package token is generated when the Additionally, the shop requires two custom properties to prepare a predefined shopping cart:
Please find below a sample shop session showcasing creation of the permanent shop token. Request curl -X POST -H "Authorization: Basic ..." -H "Accept: application/xml" -H "Content-type: application/x-www-form-urlencoded" -d "tokenType=SHOP&productNumber=PF2G5GQY6&licenseTemplateNumber=EA3KGDDGC&predefinedShoppingItem=Custom%20Shop%20Item" https://go.netlicensing.io/core/v2/rest/token Response <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:netlicensing xmlns="http://www.w3.org/2000/09/xmldsig#"
xmlns:ns2="http://netlicensing.labs64.com/schema/context">
<ns2:infos />
<ns2:items>
<ns2:item type="Token">
<ns2:property name="number">089903a8-c67f-40c8-8c7e-cc15e298cd99</ns2:property>
<ns2:property name="active">true</ns2:property>
<ns2:property name="tokenType">SHOP</ns2:property>
<ns2:property name="shopURL">
https://go.netlicensing.io/shop/v2/?packagetoken=089903a8-c67f-40c8-8c7e-cc15e298cd99</ns2:property>
<ns2:property name="cancelURL">https://netlicensing.io/#cancel</ns2:property>
<ns2:property name="successURL">https://netlicensing.io/#success</ns2:property>
<ns2:property name="licenseTemplateNumber">EA3KGDDGC</ns2:property>
<ns2:property name="successURLTitle">Return to netlicensing.io</ns2:property>
<ns2:property name="productNumber">PF2G5GQY6</ns2:property>
<ns2:property name="predefinedShoppingItem">Test Shop Item</ns2:property>
<ns2:property name="cancelURLTitle">Cancel and return to netlicensing.io</ns2:property>
<ns2:property name="vendorNumber">VDEMO</ns2:property>
</ns2:item>
</ns2:items>
</ns2:netlicensing> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
r-brown
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A permanent package token is generated when the
licenseeNumber
is omitted and theproductNumber
is included in the token properties during creation.Additionally, the shop requires two custom properties to prepare a predefined shopping cart:
predefinedShoppingItem
to specify the name of the itemlicenseTemplateNumber_N
properties (where N is an incrementing index starting from "1")Please find below a sample shop session showcasing creation of the permanent shop token.
Request