Skip to content

Instantly share code, notes, and snippets.

View jon-by's full-sized avatar

Jonas Yure Souza jon-by

  • Pedro Leopoldo - MG
View GitHub Profile
@jon-by
jon-by / customDataVtex.md
Last active September 9, 2023 14:11
How to send customData to vtex orderform

First you need to make a new app in your orderform configuration. To do that:

Send a GET request here: https://{{vendor}}.vtexcommercestable.com.br/api/checkout/pvt/configuration/orderForm

Copy the response and change the apps section. Add a new object there

"apps": [
{
"products": [
{
"id": 9,
"title": "WD 2TB Elements Portable External Hard Drive - USB 3.0 ",
"listPrice": 78,
"sellingPrice": 64,
"image": "https://live.staticflickr.com/65535/52855615276_23a6126a9b_m.jpg",
"installmentsOptions": {
"fowardprice": 64,
@jon-by
jon-by / abaixo-10-reais.json
Created April 9, 2021 19:53
Desafio codeby
{
"value": 657,
"items": [
{
"uniqueId": "6EA48CF66F6349648018C322C5560FA8",
"id": "16701615",
"productId": "317",
"productRefId": null,
"refId": null,
"ean": "223311",