View GitHub

Simple API Integration [Examples]


Example Credit Sale Request

POST https://pay.monetary.co/v1/credit/sale

Authorization: secretKEYGOESHERE
User-Agent: AwesomePOS/1.2.3
Content-Type: application/json
Accept: application/json

{
  "Amount": "1.00",
  "Account": "4242424242424242",
  "Expiration": "1220"
}

Example Credit Sale Response

200 OK

{
  "Status": "Approved",
  "Message": "APPROVAL",
  "Account": "XXXXXXXXXXXX4242",
  "Expiration": "XXXX",
  "Brand": "VISA",
  "AuthCode": "ABC123",
  "RefNo": "123",
  "Amount": "1.00",
  "Authorized": "1.00",
  "Token": "card1ABCDEFG2"
}

Example Credit Void Request with Token

POST https://pay.monetary.co/v1/credit/sale/123/void

Authorization: secretKEYGOESHERE
User-Agent: AwesomePOS/1.2.3
Content-Type: application/json
Accept: application/json

{
  "Token": "card1ABCDEFG2"
}

Example Credit Void Response with Token

200 OK

{
  "Status": "Approved",
  "Message": "APPROVAL",
  "Account": "XXXXXXXXXXXX4242",
  "Expiration": "XXXX",
  "Brand": "VISA",
  "RefNo": "124",
  "Amount": "1.00",
  "Authorized": "1.00",
  "Token": "card1ABCDEFG2"
}
View GitHub

Simple API Integration [Examples]



Example Customer Registration Request:

{
  "CustomerID": 123,
  "ExternalID": "GGBilbo",
  "Phone": "5551231234",
  "Email": "bbaggens@fictionalEmail.com",
  "FirstName": "Bob",
  "LastName": "Baggens",
  "Address": "123 Fake Street",
  "City": "Durango",
  "State": "CO",
  "Zipcode": "81303",
  "Birthday": "2017-04-20",
  "AcceptsSMS": true,
  "AcceptsEmail": true
 }

Example Receipt Request:

{
 "CustomerID": 123,
 "Skus": [
   {
     "SKU": "SOCKS",
     "Description": "AWESOME 80s Socks!",
     "Amount": 10.50,
     "Quantity": 2
   }
 ],
 "Discounts": [],
 "SubTotal": 21.00,
 "Taxes": 1.58,
 "Total": 22.58
}

Example Response

{
 "ReceiptID": "0383b1c2438e4f82b516543de3522a4b",
 "CustomerID": 123,
 "Skus": [
   {
     "SKU": "SOCKS",
     "Description": "AWESOME 80s Socks!",
     "Amount": 10.50,
     "Quantity": 2
   }
 ],
 "Discounts": [],
 "SubTotal": 21,
 "Taxes": 0.075,
 "Tip": 0,
 "Shipping": 0,
 "Total": 22.58
}
View Swagger

Create a service example:

{

  "Name": "Shoe Shine",
  "Description": "5 minute shoe shine!",
  "Duration": 5,
  "Price": 10.99,
  "IsActive": true,
  "ResourceTypes": [
    "room",
    "employee"
  ]

}
View GitHub

Simple API Integration [Examples]


Example Gift Sale Request

POST https://pay.monetary.co/v1/storedvalue/sale

Authorization: secretKEYGOESHERE
User-Agent: AwesomePOS/1.2.3
Content-Type: application/json
Accept: application/json

{
"Account": "8282828282828282",
"Amount": "1.00"
}

Example Gift Sale Response

200 OK

{
"Status": "Approved",
"Message": "Approved",
"RefNo": "123",
"Account": "8282828282828282",
"Amount": "1.00",
"Balance": "99.00"
}
View GitHub

Simple API Integration [Token Request Examples]


On Success

{ 
  Token: "otuABCDEFGHIJ", 
  Brand: "Visa", 
  ExpirationMonth: "12", 
  ExpirationYear: "2020", 
  Last4: "1111" 
}

On Failure

{
  Error: "Failed to create token"
}
View GitHub

Simple API Integration [Token Request Examples]


On Success

{ 
  Token: "otuABCDEFGHIJ", 
  Brand: "Visa", 
  ExpirationMonth: "12", 
  ExpirationYear: "2020", 
  Last4: "1111" 
}

On Failure

{
  Error: "Failed to create token"
}

TRANSACT API

View GitHub

Simple API Integration [Examples]



Example Credit Void Request with Token

POST https://pay.monetary.co/v1/credit/sale/123/void

Authorization: secretKEYGOESHERE
User-Agent: AwesomePOS/1.2.3
Content-Type: application/json
Accept: application/json

{
  "Token": "card1ABCDEFG2"
}

Example Credit Void Response with Token

200 OK

{
  "Status": "Approved",
  "Message": "APPROVAL",
  "Account": "XXXXXXXXXXXX4242",
  "Expiration": "XXXX",
  "Brand": "VISA",
  "RefNo": "124",
  "Amount": "1.00",
  "Authorized": "1.00",
  "Token": "card1ABCDEFG2"
}

ENGAGE API

View GitHub

Simple API Integration [Examples]



Example Customer Registration Request:

{
  "CustomerID": 123,
  "ExternalID": "GGBilbo",
  "Phone": "5551231234",
  "Email": "bbaggens@fictionalEmail.com",
  "FirstName": "Bob",
  "LastName": "Baggens",
  "Address": "123 Fake Street",
  "City": "Durango",
  "State": "CO",
  "Zipcode": "81303",
  "Birthday": "2017-04-20",
  "AcceptsSMS": true,
  "AcceptsEmail": true
 }

Example Receipt Request:

{
 "CustomerID": 123,
 "Skus": [
   {
     "SKU": "SOCKS",
     "Description": "AWESOME 80s Socks!",
     "Amount": 10.50,
     "Quantity": 2
   }
 ],
 "Discounts": [],
 "SubTotal": 21.00,
 "Taxes": 1.58,
 "Total": 22.58
}

Example Response

{
 "ReceiptID": "0383b1c2438e4f82b516543de3522a4b",
 "CustomerID": 123,
 "Skus": [
   {
     "SKU": "SOCKS",
     "Description": "AWESOME 80s Socks!",
     "Amount": 10.50,
     "Quantity": 2
   }
 ],
 "Discounts": [],
 "SubTotal": 21,
 "Taxes": 0.075,
 "Tip": 0,
 "Shipping": 0,
 "Total": 22.58
}

SYNC OPENING API

View Swagger

Create a service example:

{

  "Name": "Shoe Shine",
  "Description": "5 minute shoe shine!",
  "Duration": 5,
  "Price": 10.99,
  "IsActive": true,
  "ResourceTypes": [
    "room",
    "employee"
  ]

}

GIFT API

View GitHub

Simple API Integration [Examples]



Example Gift Sale Request

POST https://pay.monetary.co/v1/storedvalue/sale

Authorization: secretKEYGOESHERE
User-Agent: AwesomePOS/1.2.3
Content-Type: application/json
Accept: application/json

{
"Account": "8282828282828282",
"Amount": "1.00"
}

Example Gift Sale Response

200 OK

{
"Status": "Approved",
"Message": "Approved",
"RefNo": "123",
"Account": "8282828282828282",
"Amount": "1.00",
"Balance": "99.00"
}

HOSTED WEBTOKEN CLIENT

View GitHub

Simple API Integration [Token Request Examples]


On Success

{ 
  Token: "otuABCDEFGHIJ", 
  Brand: "Visa", 
  ExpirationMonth: "12", 
  ExpirationYear: "2020", 
  Last4: "1111" 
}

On Failure

{
  Error: "Failed to create token"
}

WEBTOKEN CLIENT

View GitHub

Simple API Integration [Token Request Examples]


On Success

{ 
  Token: "otuABCDEFGHIJ", 
  Brand: "Visa", 
  ExpirationMonth: "12", 
  ExpirationYear: "2020", 
  Last4: "1111" 
}

On Failure

{
  Error: "Failed to create token"
}

MobileToken iOS Library

View GitHub

MobileToken Andriod Library

View GitHub