Get started

    API Examples
                

The 1Epin.com API provides programmatic access to 1epin.com services.

To use this API, you need an STATIC IP. Please email to info@1epin.com your STATIC IP.

Test Api Endpoint: http://www.1epin.com/api/test/
emailAddress test@1epin.com
password test1234
Live Api Endpoint: http://www.1epin.com/api/live/
emailAddress Your 1epin.com user emailAddress
password Your 1epin.com user password

checkBalance


# Post Example
curl --location --request POST 'http://www.1epin.com/api/test/checkBalance/' \
--header 'Content-Type: application/json' \
--data-raw '{"emailAddress":"test@1epin.com","password":"test1234"}'
                

Post Api Url:
http://www.1epin.com/api/test/checkBalance/



Result example :
{"ResultCode":"00","ResultMessage":"Success","Balance":9999927.99}
                

Post Parameters

Field Type Description
emailAddress String Your 1epin.com user emailAddress
password String Your 1epin.com user password

Return Fields

Field Type Description
ResultCode String Result status code
ResultMessage String Result status description
Balance Decimal 1epin.com users balance.

categories


# Post Example
curl --location --request POST 'http://www.1epin.com/api/test/categories/' \
--header 'Content-Type: application/json' \
--data-raw '{"emailAddress":"test@1epin.com","password":"test1234"}'
                

Post Api Url:
http://www.1epin.com/api/test/categories/



Result example :
{"ResultCode":"00","ResultMessage":"Success","Categories":[{"CategoryId":130,"CategoryName":"PUBG
Lite","CategoryType":"epin"},{"CategoryId":131,"CategoryName":"PUBG
Mobile","CategoryType":"epin"},{"CategoryId":132,"CategoryName":"PUBG New
State","CategoryType":"epin"}]}
                

Post Parameters

Field Type Description
emailAddress String Your 1epin.com user emailAddress
password String Your 1epin.com user password

Return Fields

Field Type Description
ResultCode String Result status code
ResultMessage String Result status description
Categories List CategoryId (integer),CategoryName (string), CategoryType (string)

products


# Post Example
curl --location --request POST 'http://www.1epin.com/api/test/products/' \
--header 'Content-Type: application/json' \
--data-raw '{"emailAddress":"test@1epin.com","password":"test1234","category":131}'
                

Post Api Url:
http://www.1epin.com/api/test/products/



Result example :
{"ResultCode":"00","ResultMessage":"Success","Products":[{"ProductId":28,"ProductName":"PUBG Mobile 28
UC","ProductPrice":6.00},{"ProductId":29,"ProductName":"PUBG Mobile 55
UC","ProductPrice":10.00},{"ProductId":30,"ProductName":"PUBG Mobile 143
UC","ProductPrice":24.00}]}
                

Post Parameters

Field Type Description
emailAddress String Your 1epin.com user emailAddress
password String Your 1epin.com user password
category Integer Category Id

Return Fields

Field Type Description
ResultCode String Result status code
ResultMessage String Result status description
Products List ProductId (integer),ProductName (string), ProductPrice (decimal)

products


# Post Example
curl --location --request POST 'http://www.1epin.com/api/test/allproducts/' \
--header 'Content-Type: application/json' \
--data-raw '{"emailAddress":"test@1epin.com","password":"test1234"}'
                

Post Api Url:
http://www.1epin.com/api/test/allproducts/



Result example :
{"ResultCode":"00","ResultMessage":"Success","Products":[{"CategoryId":131,"CategoryName":"PUBG Mobile","CategoryType":"epin","ProductId":28,"ProductName":"PUBG Mobile 28
UC","ProductPrice":6.00},{"CategoryId":131,"CategoryName":"PUBG Mobile","CategoryType":"epin","ProductId":29,"ProductName":"PUBG Mobile 55
UC","ProductPrice":10.00},{"CategoryId":131,"CategoryName":"PUBG Mobile","CategoryType":"epin","ProductId":30,"ProductName":"PUBG Mobile 143
UC","ProductPrice":24.00}]}
                

Post Parameters

Field Type Description
emailAddress String Your 1epin.com user emailAddress
password String Your 1epin.com user password

Return Fields

Field Type Description
ResultCode String Result status code
ResultMessage String Result status description
Products List CategoryId (integer),CategoryName (string), CategoryType (string), ProductId (integer),ProductName (string), ProductPrice (decimal)

addOrder


# Post Example
curl --location --request POST 'http://www.1epin.com/api/test/addOrder/' \
--header 'Content-Type: application/json' \
--data-raw '{"emailAddress":"test@1epin.com","password":"test1234","product":28,"user":"test","quantity":1,"orderNumber":"test123456"}'
                

Post Api Url:
http://www.1epin.com/api/test/addOrder/



Result example :
{"ResultCode":"00","ResultMessage":"Success","Balance":9999867.99}
                

Post Parameters

Field Type Description
emailAddress String Your 1epin.com user emailAddress
password String Your 1epin.com user password
product Integer Product Id
user string For type "popup" (example:pubg mobile player id)
quantity Integer For type "epin" (example:razer gold pin)
orderNumber string Your unique order number

Return Fields

Field Type Description
ResultCode String Result status code
ResultMessage String Result status description
Balance Decimal Your balance after order

checkOrder


# Post Example
curl --location --request POST 'http://www.1epin.com/api/test/checkOrder/' \
--header 'Content-Type: application/json' \
--data-raw '{"emailAddress":"test@1epin.com","password":"test1234","orderNumber":"test123456"}'
                

Post Api Url:
http://www.1epin.com/api/test/checkOrder/



Result example :
{"ResultCode":"00","ResultMessage":"Success",
"OrderStatusCode":1,"OrderStatusMessage":"Completed",
"PinCodes":["ASDASDASDSD464645","44894412312312312","KASDADALDKASD55","56C99765-1717-4990-A9FD-215F1293E855"]}
                

Post Parameters

Field Type Description
emailAddress String Your 1epin.com user emailAddress
password String Your 1epin.com user password
orderNumber string Your order number

Return Fields

Field Type Description
ResultCode String Result status code
ResultMessage String Result status description
OrderStatusCode Integer Order status code
OrderStatusMessage String Order status description
PinCodes List PinCode List of order

Callback Services


# Post Example
curl --location --request POST 'http://www.[yoursiteaddress].com/[yourcallbackurl]/' \
--header 'Content-Type: application/json' \
--data-raw '{"OrderNumber":"test123456","OrderStatusCode":1,"OrderStatusMessage":"Completed",
"PinCodes":["ASDASDASDSD464645","44894412312312312","KASDADALDKASD55","56C99765-1717-4990-A9FD-215F1293E855"]}'
                

Post Api Url:
http://www.[yoursiteaddress].com/[yourcallbackurl]/

Please email to info@1epin.com your callback url.



Result example : 
OK
                

Post Parameters

Field Type Description
OrderNumber string Your order number
OrderStatusCode Integer Order status code
OrderStatusMessage String Order status description
PinCodes List PinCode List of order

Return Message

OK

Error Codes

The 1Epin.com API uses the following error codes:

Error Code Meaning
00 Succes
01 Missing Parameter
02 Unauthorized Ip Address
03 Unknown or unvalid user
04 No Balance
04 Category Not Found
04 Product Not Found
04 Registered OrderNumber