/Purchases

Exemplo de requisição para criação de uma operação de compra:

Request:
POST /pos/v1/purchases
{
	"locator": "10",
	"storeCode": "MATRIZ",
	"deviceCode": "41",
	"purchaseDate": "2017-08-16T19:39:43.564Z",
	"shopperIdentification": "43574989881",
	"employeeIdentification": "43574989881",
	"calculatePoints": false,
	"offerCode": "GDkqlEVZREMw0pj",
	"points": 10,
	"items": [{
		"sku": "132312312",
		"ean": "0768421222301",
		"quantity": 2,
		"unitPrice": 8.0,
		"itemPrice": 16.0,
		"supplierIdentification": "43824418000126",
		"name": "ARROZ INTEGRAL",
		"discount": 0.0,
		"offerCode": "GDkqlEVZREMw0pj",
		"points": 1
        
    }],
	"purchaseValue": 16.0,
	"payments": [
        {
        	"paymentType": 1,
        	"bin": "",
        	"amount": 16.00
        }
    ]
}
        
Response:
{
    "locator": "10",
    "transactionId": "43J4VEVK5MZXSXR6XGQLBMAHA4JB7JWC",
    "memberIdentification": "43574989881",
    "description": "Parabéns! Você ganhou Dotz em sua compra.",
    "points": 4,
    "bonusPoints": 10,
    "totalPoints": 14,
    "purchaseValue": 199.99
}
Language
Click Try It! to start a request and see the response here!