Follow

POS Sales

Accepts sales data from the Point Of Sale

 

Attributes 

Attribute

Value

HTTP Codes

·        202 - Accepted

·        400 - Bad Request. 

·        500 - Internal Server Error. 

Path

/v3/organisations/{id}/sales

Support Formats

JSON, XML

Rate Limited

No

HTTP Method

PUT

Cache Timeout

TBC

Secure

Yes

 

Request

The following table contains the details of a typical HTTP request for this service:

Type

Value

Header

PUT /v3/organisations/{id}/sales HTTP/1.1

Host: merchant.api.vmob.co

Content-Type: application/jsonAccept-Language: en-US

Authorization: Bearer ZDFkNDliNTktN2FmZC00YmRjLWFjNjgtYjBkMjMzNGE3MmU0

x-vmob-authorization: dm1vYi53aW5kb3dzLjE6 
Body

{
"saleId": "POS0001:1234567890",
"totalAmount": 6.00,
"verificationToken": 123456,
"offerIds": [],
"dateCreated": "2015-01-01T10:00:00.000",
"externalVenueId": "6851498",
"IdentifiedSaleItems": [{
"ProductCode": 5,
"Quantity": 2,
"offerId": null,
"UnitPrice": 6.00
}]
},

{
"saleId": "POS0002:1234567890",
"totalAmount": 5.00,
"verificationToken": 123,
"offerIds": [],
"dateCreated": "2015-02-01T10:00:00.000",
"externalVenueId": "6851498",
"IdentifiedSaleItems": [{
"ProductCode": 2,
"Quantity": 1,
"offerId": null,
"UnitPrice": 5.00
}]
}

]

Required Fields

none

 

Response

Successful Response

This service return no body upon success.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.