Code Monkey home page Code Monkey logo

scoop-order's Introduction

scoop-order

Order Service

Deployment

To deploy this project need some environment

DB_HOST
DB_USER
DB_PORT
DB_PASS
DB_NAME
REDIS_ADDR
REDIS_PASS
JWT_SECRET
AUTH_SCOOP_PAYMENT
URL_SCOOP_PAYMENT

API Reference

Get Final Price

  GET /v1/finalPrice
Parameter Type Description
user_id Integer Required.user's ID
offer_id Integer Required.Offer's ID
offer_id Integer Required.Offer's ID
payment_gateway_id Integer Required
platform_id Integer
currency_code String
discount_code String
country_code String

example:

  GET /v1/finalPricefinalPrice?user_id=2217630&offer_id=3,1,2&payment_gateway_id=1
  &platform_id=1&currency_code=IDR&discount_code=ALLOWALL5K&country_code=ID

Checkout

  GET /v1/checkout
Header Type Description
Client-ID integer Required. Id of Client
Authorization integer Required. JWT Token
Signature integer Required. Secret Key from each transaction

Example JSON Body:

{
	"offer_id" : [43103],
	"currency_code": "IDR",
	"discount_code" : "",
	"platform_id":4,
	"payment_gateway_id": 29,
	"geo_info":{
		"latitude":12.20,
		"longitude":23.23,
		"country_code" :"IN",
		"country_name":"indonesia"
	}
}

Complete

  GET /v1/complete
Header Type Description
Client-ID integer Required. Id of Client
Authorization integer Required. JWT Token

Example JSON Body:

{
	"order_id" : 32021612217630
}

scoop-order's People

Contributors

nandapromadhona avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.