CN110517061A - A kind of generation method of discount coupon, device and server - Google Patents

A kind of generation method of discount coupon, device and server Download PDF

Info

Publication number
CN110517061A
CN110517061A CN201910616762.7A CN201910616762A CN110517061A CN 110517061 A CN110517061 A CN 110517061A CN 201910616762 A CN201910616762 A CN 201910616762A CN 110517061 A CN110517061 A CN 110517061A
Authority
CN
China
Prior art keywords
coupon
external
merchant
internal
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910616762.7A
Other languages
Chinese (zh)
Inventor
余昌俊
鲜丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weifutong Technology Co Ltd
Original Assignee
Weifutong Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weifutong Technology Co Ltd filed Critical Weifutong Technology Co Ltd
Priority to CN201910616762.7A priority Critical patent/CN110517061A/en
Publication of CN110517061A publication Critical patent/CN110517061A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present embodiments relate to technical field of data processing, disclose generation method, device and the server of a kind of discount coupon.The described method includes: obtaining the inside discount coupon that internal user is sent by internal applications interface generates instruction;Instruction is generated according to the internal discount coupon, generates internal discount coupon;Obtain the access request that the terminal device of at least one external trade company is sent;According to the access request, the identity information of the external trade company is obtained;According to the identity information of the external trade company, corresponding external application interface is matched;The external discount coupon that external trade company sends, which is obtained, by the corresponding external application interface issues instruction;According to the external discount coupon publication instruction, external discount coupon is published on the discount coupon platform.By the above-mentioned means, the present invention solves the technical problem of the compatibility deficiency of internal, the external certificate of current discount coupon platform, the compatibility of discount coupon platform is improved.

Description

Method and device for generating discount coupons and server
Technical Field
The invention relates to the technical field of data processing, in particular to a coupon generation method, a coupon generation device and a server.
Background
The coupons are divided into a plurality of types, the most common types are internal coupons and external coupons, the internal coupons are famous and generally are coupons built in the coupon, the rules of an internal platform of the coupon are followed, the external coupons are coupons built by other platforms and are put into the internal platform of the coupon to be sold, and the competitive power is improved through the two ways.
Currently, an internal coupon is a coupon created by a merchant on a coupon platform, and follows the coupon creating rules defined by the coupon platform, while an external coupon is a coupon created by the merchant on an erp system or other platforms. When a coupon is established, there are two situations: calling interfaces of the coupon platforms while establishing coupons so that the coupons exist on the platforms on both sides; and the established coupon is directly imported into a coupon platform system on a coupon platform through excel or other modes.
For the internal coupon, sometimes, the requirements of most merchants cannot be met, and appropriate adjustment is performed according to the requirements of the merchants, while for the external coupon, the rules of the coupon system of the opposite party need to be known, and adjustment and access are performed to the coupon platform according to the rules of the opposite party.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device and a server for generating a coupon, which solve the technical problem that the compatibility of the conventional coupon platform for internal and external coupons is insufficient, and improve the compatibility of the coupon platform.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for generating a coupon, which is applied to a coupon platform, where the coupon platform interfaces with terminal equipment of at least one external merchant, and the method includes:
acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface;
generating an internal coupon according to the internal coupon generation instruction;
acquiring an access request sent by terminal equipment of at least one external merchant;
acquiring the identity information of the external merchant according to the access request;
matching a corresponding external application program interface according to the identity information of the external merchant;
acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface;
and issuing the external coupon to the coupon platform according to the external coupon issuing instruction.
In some embodiments, after the generating of the internal coupon according to the internal coupon generation instruction, the method further comprises:
monitoring a real-time status of the interior coupons.
In some embodiments, after the matching of the corresponding external application program interface according to the identity information of the external merchant, the method further includes:
receiving an external coupon generation instruction sent by an external merchant;
and generating the external coupon according to the external coupon generation instruction.
In some embodiments, the external merchant opens a merchant interface to the coupon platform, the method further comprising:
and acquiring the user information of the external merchant through the merchant interface.
In some embodiments, the method further comprises:
acquiring a timing task sent by an internal user;
and calling the merchant interface according to the timing task to acquire the user information of the external merchant at regular time.
In some embodiments, the method further comprises:
and sending the internal coupon to the external merchant through a merchant interface provided by the external merchant.
In some embodiments, the sending the internal coupon to the external merchant through a merchant interface provided by the external merchant includes:
acquiring a coupon rule of an external merchant;
and according to the coupon rule, generating an internal coupon matched with the coupon rule through a coupon platform, and sending the internal coupon to the external merchant.
In some embodiments, before the sending the internal coupon to the external merchant, the method further comprises:
and generating an identification code of the internal coupon, and packaging the identification code and the internal coupon so as to enable the external merchant to display the identification code.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a coupon, where the apparatus includes:
the internal coupon generation instruction unit is used for acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface;
an internal coupon generation unit for generating an internal coupon according to the internal coupon generation instruction;
an access request unit, configured to obtain an access request sent by terminal equipment of at least one external merchant;
the identity information unit is used for acquiring the identity information of the external commercial tenant according to the access request;
the matching unit is used for matching a corresponding external application program interface according to the identity information of the external merchant;
the external coupon issuing instruction unit is used for acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface;
and the external coupon issuing unit is used for issuing the external coupon to the coupon platform according to the external coupon issuing instruction.
In some embodiments, the apparatus further comprises:
and the real-time state unit is used for monitoring the real-time state of the internal coupon.
In some embodiments, the apparatus further comprises:
the external coupon generating unit is used for receiving an external coupon generating instruction sent by an external merchant;
and generating the external coupon according to the external coupon generation instruction.
In some embodiments, the apparatus further comprises:
and the external merchant user information unit is used for acquiring the user information of the external merchant through the merchant interface.
In some embodiments, the apparatus further comprises:
the timing task unit is used for acquiring a timing task sent by an internal user;
and calling the merchant interface according to the timing task to acquire the user information of the external merchant at regular time.
In some embodiments, the apparatus further comprises:
and the internal coupon unit is used for sending the internal coupon to the external merchant through a merchant interface provided by the external merchant.
In some embodiments, the internal coupon unit is specifically configured to:
acquiring a coupon rule of an external merchant;
and according to the coupon rule, generating an internal coupon matched with the coupon rule through a coupon platform, and sending the internal coupon to the external merchant.
In a third aspect, an embodiment of the present invention provides a server, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of coupon generation as described above.
In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions for enabling a server to execute the coupon generation method described above.
The embodiment of the invention has the beneficial effects that: different from the prior art, an embodiment of the present invention provides a method for generating a coupon, which is applied to a coupon platform, where the coupon platform interfaces with terminal equipment of at least one external merchant, and the method includes: acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface; generating an internal coupon according to the internal coupon generation instruction; acquiring an access request sent by terminal equipment of at least one external merchant; acquiring the identity information of the external merchant according to the access request; matching a corresponding external application program interface according to the identity information of the external merchant; acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface; and issuing the external coupon to the coupon platform according to the external coupon issuing instruction. Through the mode, the technical problem that the compatibility of the conventional coupon platform for internal and external coupons is insufficient is solved, and the compatibility of the coupon platform is improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the invention;
FIG. 2 is a schematic view of an underlying structure provided by an embodiment of the invention;
FIG. 3 is a flowchart illustrating a method for generating a coupon according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a coupon generation apparatus provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Referring to fig. 1, fig. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention;
as shown in fig. 1, the coupon platform opens two application program interfaces, namely an external application program interface and an internal application program interface, respectively, where the external application program interface is used to interface with an external merchant, and the external merchant can issue an external coupon to the coupon platform through the external application program interface, for example: the external merchant 1, the external merchant 2, … and the external merchant N are all connected with the coupon platform through external application program interfaces, the internal application program interfaces are used for connecting internal users, the internal users can be connected with the coupon platform through the internal application program interfaces, internal coupons are generated through the coupon platform, and the internal coupons are issued to the coupon platform.
In the embodiment of the present invention, the external merchants are connected to the external application program interface through an intelligent terminal, the intelligent terminal may be an electronic device such as a smart phone, a Personal Digital Assistant (PDA), a tablet computer, an intelligent watch, and a Personal computer, and the coupon platform includes at least one server, for example: servers such as tower servers, rack servers, blade servers, cloud servers, and the like. Specifically, the embodiment of the present invention is specifically described below by taking a cloud server as an example.
Referring to fig. 2 again, fig. 2 is a schematic view of a bottom layer structure according to an embodiment of the invention;
as shown in fig. 2, an internal user connects to a control layer through an internal API gateway, the control layer is used for controlling a specific service module, the control layer is used for calling a service layer interface to control a service flow, the service layer is used for designing a logic structure of the service module, the data persistence layer is used for docking a database to implement data addition, deletion, check and modification, wherein an external merchant connects to the API control layer through an external API gateway, the API control layer directly calls the interface of the service layer, the service layer is used for designing a logic structure of the service module, the service layer docks the data persistence layer, and the data persistence layer is responsible for contacting the database to implement data addition, deletion, check and modification. The API control layer calls an interface of the service layer through direct call or through a timing task, so that the service layer obtains data provided by the data persistence layer, and feeds the data back to the API control layer, and then feeds the data back to an external merchant, and the timing task is set to execute a certain service in a specific time period, for example: at 23: 59 calls an interface provided by some external merchant to obtain the (member) user information of the merchant.
Example one
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for generating a coupon according to an embodiment of the present invention. As shown in fig. 3, the method is applied to a server, such as a cloud server, and includes:
step S10: acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface;
specifically, the internal user sends an internal coupon generation instruction to a coupon platform through an internal application program interface, where the internal coupon generation instruction includes: coupon information, such as: the coupon platform obtains an internal coupon generation instruction sent by an internal user through the internal application program interface, wherein the internal application program interface is an API interface.
Step S20: generating an internal coupon according to the internal coupon generation instruction;
specifically, the coupon platform obtains an internal coupon generation instruction sent by the internal user, analyzes the internal coupon generation instruction according to the internal coupon generation instruction sent by the internal user, and obtains internal coupon information included in the internal coupon generation instruction, for example: and generating the internal coupon according to the internal coupon information by using the information such as the coupon type, the coupon rule, the coupon starting time, the coupon ending time and the like.
Specifically, the generating an internal coupon according to the internal coupon information includes:
verifying the internal coupon information, if the verification is successful, generating an internal coupon, if the verification is unsuccessful, refusing to generate the internal coupon, and returning generation failure information to an internal user, wherein the verification of the internal coupon information comprises: and verifying whether the coupon rule in the internal coupon information is legal or not, or verifying whether the coupon starting time and the coupon ending time in the internal coupon information are reasonable or not, verifying whether the coupon rule in the internal coupon information meets the issuing condition of a coupon platform or not, and the like.
In an embodiment of the present invention, after the generating an internal coupon according to the internal coupon generation instruction, the method further includes:
monitoring a real-time status of the interior coupons.
Specifically, the real-time status of the internal coupon includes: and the coupon platform determines whether the user receives or purchases the internal coupon or not by monitoring the real-time state of the internal coupon, and then uses or verifies the internal coupon.
Step S30: acquiring an access request sent by terminal equipment of at least one external merchant;
specifically, the coupon platform opens an external application program interface, so that the terminal device of an external merchant is in butt joint with the coupon platform through the external application program interface to issue an external coupon to the coupon platform. And the external merchants send access requests to the coupon platform through the external application program interfaces, wherein the terminal equipment of each external merchant corresponds to a unique external application program interface. In the embodiment of the present invention, the terminal device may be a computer terminal, a mobile terminal, or the like.
Step S40: acquiring the identity information of the external merchant according to the access request;
specifically, the coupon platform receives an access request sent by an external merchant, wherein the access request includes information such as identity information and IP address information of the external merchant, and the identity information of the external merchant is obtained according to the access request, and the identity information includes information such as merchant authority and merchant name.
Step S50: matching a corresponding external application program interface according to the identity information of the external merchant;
specifically, the coupon platform opens a plurality of external application program interfaces, the identity information includes merchant permissions, each merchant permission corresponds to one external application program interface, the coupon platform matches the corresponding external application program interface according to the identity information of the external merchant, specifically, the coupon platform matches the corresponding external application program interface according to the merchant permissions of the external merchant, and the merchant permissions include: the system comprises a coupon platform, a coupon quarantine authority, a coupon issue authority and a coupon creation authority, wherein the coupon quarantine authority indicates that a merchant is not allowed to issue coupons or create coupons on the coupon platform but can pick up coupons on the coupon platform, the coupon issue authority indicates that the merchant is allowed to pick up coupons and issue coupons on the coupon platform, and the coupon creation authority indicates that the merchant is allowed to pick up coupons, issue coupons and create coupons on the coupon platform.
For example: the isolated coupon authority corresponds to a first external application program interface, the issued coupon authority corresponds to a second external application program interface, the created coupon authority corresponds to a third external application program interface, and the coupon platform matches the external application program interface corresponding to the merchant authority by identifying the merchant authority of the merchant and limits the authority of the merchant through the corresponding external application program interface.
In this embodiment of the present invention, after the matching of the corresponding external application program interface according to the identity information of the external merchant, the method further includes:
and receiving an external coupon generation instruction sent by an external merchant, and generating an external coupon according to the external coupon generation instruction.
Specifically, the coupon platform obtains an external coupon generation instruction sent by the external merchant, analyzes the external coupon generation instruction according to the external coupon generation instruction sent by the external merchant, and obtains external coupon information included in the external coupon generation instruction, for example: and generating the external coupon according to the external coupon information by using the information such as the coupon type, the coupon rule, the coupon starting time, the coupon ending time and the like.
Specifically, the generating an external coupon according to the external coupon information includes:
verifying the external coupon information, if the verification is successful, generating an external coupon, if the verification is unsuccessful, refusing to generate the external coupon, and returning generation failure information to an external merchant, wherein the verification of the external coupon information comprises the following steps: and verifying whether the coupon rule in the external coupon information is legal or not, or verifying whether the coupon starting time and the coupon ending time in the external coupon information are reasonable or not, verifying whether the coupon rule in the external coupon information meets the issuing condition of a coupon platform or not, and the like.
Step S60: acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface;
specifically, the coupon platform obtains an external coupon issuing instruction sent by an external merchant through a corresponding external application program interface, for example: the method comprises the steps that the coupon authority is isolated and corresponds to a first external application program interface, the coupon authority is issued and corresponds to a second external application program interface, the coupon authority is created and corresponds to a third external application program interface, the coupon platform determines the external application program interface corresponding to the merchant authority according to the merchant authority of the external merchant, and an external coupon issuing instruction sent by the external merchant is obtained through the corresponding external application program interface.
Step S70: and issuing the external coupon to the coupon platform according to the external coupon issuing instruction.
Specifically, the external coupon issue instruction includes external coupon information, for example: the coupon platform obtains information such as the type of the external coupon, a coupon rule, coupon start time, coupon stop time, and the like, analyzes the external coupon issuing instruction according to the external coupon issuing instruction sent by the external merchant by obtaining the external coupon issuing instruction sent by the external merchant, and obtains external coupon information included in the external coupon issuing instruction, for example: and issuing the external coupon to the coupon platform according to the external coupon information, or importing the external coupon generated by the merchant in the platform of the merchant or other institutions in the coupon platform for verification and sale by using the information such as the coupon type, the coupon rule, the coupon starting time and the coupon ending time.
In an embodiment of the present invention, the external merchant opens a merchant interface to the coupon platform, and the method further includes: and acquiring the user information of the external merchant through the merchant interface.
Specifically, the external merchant corresponds to an external merchant platform, and the external merchant issues an external coupon to the external merchant platform, for example: each external merchant corresponds to an external merchant platform, the external merchant platform issues the external coupon thereof to the external merchant platform so as to enable a user of the external merchant to take or purchase the external coupon thereof, the external merchant opens a merchant interface to the coupon platform, and specifically, the coupon platform can enter the external merchant platform of the external merchant through the merchant interface so as to acquire user information of the external merchant. By acquiring the user information or member information of the external merchant, the manager of the coupon platform can determine the issuing information, the issuing type and the like of the coupon, and issues the coupon related to the user information or member information of the external merchant in a targeted manner.
In an embodiment of the present invention, the method further comprises:
acquiring a timing task sent by an internal user;
and calling the merchant interface according to the timing task to acquire the user information of the external merchant at regular time.
Specifically, the timed task is provided to an internal user of the coupon platform, such as an administrator of the coupon platform, to obtain user information of an external merchant, for example: setting a certain service to be performed at a specific time. For example, at a fixed time, for example: at 23: 59 calls a merchant interface provided by some external merchant to acquire user information or member information of the external merchant.
In an embodiment of the present invention, the method further comprises:
and sending the internal coupon to the external merchant through a merchant interface provided by the external merchant.
Specifically, the coupon platform may interface with an external merchant platform corresponding to the external merchant through a merchant interface provided by the external merchant, and send the internal coupon of the coupon platform to the external merchant platform.
Specifically, the sending an internal coupon to the external merchant through a merchant interface provided by the external merchant includes:
acquiring a coupon rule of an external merchant;
and according to the coupon rule, generating an internal coupon matched with the coupon rule through a coupon platform, and sending the internal coupon to the external merchant.
It can be understood that the external merchant platform of each external merchant corresponds to a corresponding coupon rule, and the coupon platform may generate an internal coupon matching the coupon rule of the external merchant, and send the internal coupon to the external merchant platform of the external merchant through the merchant interface, so that the external merchant issues the internal coupon generated by the coupon platform to the external merchant platform corresponding to the external merchant, thereby implementing cross-platform generation between coupons, and facilitating the exertion of the integrated function of the coupon platform.
In an embodiment of the present invention, before sending the internal coupon to the external merchant, the method further includes:
and generating an identification code of the internal coupon, and packaging the identification code and the internal coupon so as to enable the external merchant to display the identification code.
Specifically, the identification code of the internal coupon is generated, so that the user or member of the external merchant can receive or purchase the internal coupon through the identification code of the internal coupon. Through with the identification code with inside coupon packing, so that outside merchant demonstrates the identification code, can make outside merchant demonstrate better the identification code, wherein, the identification code is two-dimensional code, bar code or coupon code.
In an embodiment of the present invention, the method further comprises: the method includes the steps that a coupon platform directly generates a corresponding coupon in an external merchant platform of an external merchant, specifically, a merchant interface provided by the external merchant platform is accessed to the external merchant platform, and an internal user of the coupon platform can directly generate the coupon of the external merchant platform on the external merchant platform through the merchant interface and issue the coupon to the external merchant platform or the coupon platform.
In an embodiment of the present invention, the method further comprises: the method comprises the steps that a first external merchant generates a first external merchant coupon through a coupon platform, and the first external merchant coupon is issued to a second external merchant platform of a second external merchant, so that the coupon can be processed in a centralized mode through the coupon platform, and user management is facilitated.
In an embodiment of the present invention, a method for generating a coupon is provided, and is applied to a coupon platform, where the coupon platform interfaces with terminal equipment of at least one external merchant, and the method includes: acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface; generating an internal coupon according to the internal coupon generation instruction; acquiring an access request sent by terminal equipment of at least one external merchant; acquiring the identity information of the external merchant according to the access request; matching a corresponding external application program interface according to the identity information of the external merchant; acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface; and issuing the external coupon to the coupon platform according to the external coupon issuing instruction. Through the mode, the technical problem that the compatibility of the conventional coupon platform for internal and external coupons is insufficient is solved, and the compatibility of the coupon platform is improved.
Example two
Referring to fig. 4, fig. 4 is a schematic diagram of a coupon generating apparatus according to an embodiment of the present invention; the coupon generation device can be applied to a server, such as a cloud server.
As shown in fig. 4, the coupon generation apparatus 40 includes:
an internal coupon generation instruction unit 41 for acquiring an internal coupon generation instruction transmitted by an internal user through an internal application program interface;
specifically, the internal user sends an internal coupon generation instruction to a coupon platform through an internal application program interface, where the internal coupon generation instruction includes: coupon information, such as: the coupon platform obtains an internal coupon generation instruction sent by an internal user through the internal application program interface, wherein the internal application program interface is an API interface.
An internal coupon generation unit 42 for generating an internal coupon according to the internal coupon generation instruction;
specifically, the coupon platform obtains an internal coupon generation instruction sent by the internal user, analyzes the internal coupon generation instruction according to the internal coupon generation instruction sent by the internal user, and obtains internal coupon information included in the internal coupon generation instruction, for example: and generating the internal coupon according to the internal coupon information by using the information such as the coupon type, the coupon rule, the coupon starting time, the coupon ending time and the like.
Specifically, the generating an internal coupon according to the internal coupon information includes:
verifying the internal coupon information, if the verification is successful, generating an internal coupon, if the verification is unsuccessful, refusing to generate the internal coupon, and returning generation failure information to an internal user, wherein the verification of the internal coupon information comprises: and verifying whether the coupon rule in the internal coupon information is legal or not, or verifying whether the coupon starting time and the coupon ending time in the internal coupon information are reasonable or not, verifying whether the coupon rule in the internal coupon information meets the issuing condition of a coupon platform or not, and the like.
An access request unit 43, configured to obtain an access request sent by a terminal device of at least one external merchant;
specifically, the coupon platform opens an external application program interface, so that an external merchant can interface with the coupon platform through the external application program interface to issue an external coupon to the coupon platform. And the external merchants send access requests to the coupon platform through the external application program interfaces, wherein each external merchant corresponds to a unique external application program interface.
An identity information unit 44, configured to obtain identity information of the external merchant according to the access request;
specifically, the coupon platform receives an access request sent by an external merchant, wherein the access request includes information such as identity information and IP address information of the external merchant, and the identity information of the external merchant is obtained according to the access request, and the identity information includes information such as merchant authority and merchant name.
A matching unit 45, configured to match a corresponding external application program interface according to the identity information of the external merchant;
specifically, the coupon platform opens a plurality of external application program interfaces, the identity information includes merchant permissions, each merchant permission corresponds to one external application program interface, the coupon platform matches the corresponding external application program interface according to the identity information of the external merchant, specifically, the coupon platform matches the corresponding external application program interface according to the merchant permissions of the external merchant, and the merchant permissions include: the system comprises a coupon platform, a coupon quarantine authority, a coupon issue authority and a coupon creation authority, wherein the coupon quarantine authority indicates that a merchant is not allowed to issue coupons or create coupons on the coupon platform but can pick up coupons on the coupon platform, the coupon issue authority indicates that the merchant is allowed to pick up coupons and issue coupons on the coupon platform, and the coupon creation authority indicates that the merchant is allowed to pick up coupons, issue coupons and create coupons on the coupon platform.
For example: the isolated coupon authority corresponds to a first external application program interface, the issued coupon authority corresponds to a second external application program interface, the created coupon authority corresponds to a third external application program interface, and the coupon platform matches the external application program interface corresponding to the merchant authority by identifying the merchant authority of the merchant and limits the authority of the merchant through the corresponding external application program interface.
An external coupon issuing instruction unit 46, configured to obtain an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface;
specifically, the coupon platform obtains an external coupon issuing instruction sent by an external merchant through a corresponding external application program interface, for example: the method comprises the steps that the coupon authority is isolated and corresponds to a first external application program interface, the coupon authority is issued and corresponds to a second external application program interface, the coupon authority is created and corresponds to a third external application program interface, the coupon platform determines the external application program interface corresponding to the merchant authority according to the merchant authority of the external merchant, and an external coupon issuing instruction sent by the external merchant is obtained through the corresponding external application program interface.
And an external coupon issuing unit 47, configured to issue an external coupon to the coupon platform according to the external coupon issuing instruction.
Specifically, the external coupon issue instruction includes external coupon information, for example: the coupon platform obtains information such as the type of the external coupon, a coupon rule, coupon start time, coupon stop time, and the like, analyzes the external coupon issuing instruction according to the external coupon issuing instruction sent by the external merchant by obtaining the external coupon issuing instruction sent by the external merchant, and obtains external coupon information included in the external coupon issuing instruction, for example: and issuing the external coupon to the coupon platform according to the external coupon information, or importing the external coupon generated by the merchant in the platform of the merchant or other institutions in the coupon platform for verification and sale by using the information such as the coupon type, the coupon rule, the coupon starting time and the coupon ending time.
Since the apparatus embodiment and the method embodiment are based on the same concept, the contents of the apparatus embodiment may refer to the method embodiment on the premise that the contents do not conflict with each other, and are not described herein again.
In an embodiment of the present invention, there is provided an apparatus for generating a coupon, the apparatus including: the internal coupon generation instruction unit is used for acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface; an internal coupon generation unit for generating an internal coupon according to the internal coupon generation instruction; an access request unit, configured to obtain an access request sent by terminal equipment of at least one external merchant; the identity information unit is used for acquiring the identity information of the external commercial tenant according to the access request; the matching unit is used for matching a corresponding external application program interface according to the identity information of the external merchant; the external coupon issuing instruction unit is used for acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface; and the external coupon issuing unit is used for issuing the external coupon to the coupon platform according to the external coupon issuing instruction. Through the mode, the technical problem that the compatibility of the conventional coupon platform for internal and external coupons is insufficient is solved, and the compatibility of the coupon platform is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention. The server may be a tower server, a rack server, a blade server, or a cloud server.
As shown in fig. 5, the server 50 includes one or more processors 51 and a memory 52. In fig. 5, one processor 51 is taken as an example.
The processor 51 and the memory 52 may be connected by a bus or other means, such as the bus connection in fig. 5.
The memory 52 is a non-volatile computer-readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as units corresponding to a coupon generation method in the embodiment of the present invention (for example, the units described in fig. 4). The processor 51 executes various functional applications of the coupon generation method and data processing, i.e., functions of the various modules and units of the above method embodiment coupon generation method and the above apparatus embodiment, by executing the nonvolatile software program, instructions and modules stored in the memory 52.
The memory 52 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The modules are stored in the memory 52 and, when executed by the one or more processors 51, perform the coupon generation method of any of the above-described method embodiments, e.g., performing the various steps illustrated in fig. 3 described above; the functions of the individual modules or units described in fig. 4 may also be implemented.
The server 50 of embodiments of the present invention exists in a variety of forms, performing the various steps described above and shown in FIG. 3; when the functions of the respective units described in fig. 4 can also be implemented, the server 50 includes, but is not limited to:
(1) tower server
The general tower server chassis is almost as large as the commonly used PC chassis, while the large tower chassis is much larger, and the overall dimension is not a fixed standard.
(2) Rack-mounted server
Rack-mounted servers are a type of server that has a standard width of 19 inch racks, with a height of from 1U to several U, due to the dense deployment of the enterprise. Placing servers on racks not only facilitates routine maintenance and management, but also may avoid unexpected failures. First, placing the server does not take up too much space. The rack servers are arranged in the rack in order, and no space is wasted. Secondly, the connecting wires and the like can be neatly stored in the rack. The power line, the LAN line and the like can be distributed in the cabinet, so that the connection lines accumulated on the ground can be reduced, and the accidents such as the electric wire kicking off by feet can be prevented. The specified dimensions are the width (48.26cm ═ 19 inches) and height (multiples of 4.445 cm) of the server. Because of its 19 inch width, a rack that meets this specification is sometimes referred to as a "19 inch rack".
(3) Blade server
A blade server is a HAHD (High Availability High Density) low cost server platform designed specifically for the application specific industry and High Density computer environment, where each "blade" is actually a system motherboard, similar to an individual server. In this mode, each motherboard runs its own system, serving a designated group of different users, without any relationship to each other. Although system software may be used to group these motherboards into a server cluster. In the cluster mode, all motherboards can be connected to provide a high-speed network environment, and resources can be shared to serve the same user group.
(4) Cloud server
The cloud server (ECS) is a computing Service with simplicity, high efficiency, safety, reliability, and flexible processing capability. The management mode is simpler and more efficient than that of a physical server, and a user can quickly create or release any plurality of cloud servers without purchasing hardware in advance. The distributed storage of the cloud server is used for integrating a large number of servers into a super computer, and a large number of data storage and processing services are provided. The distributed file system and the distributed database allow access to common storage resources, and IO sharing of application data files is achieved. The virtual machine can break through the limitation of a single physical machine, dynamically adjust and allocate resources to eliminate single-point faults of the server and the storage equipment, and realize high availability.
Embodiments of the present invention also provide a non-transitory computer storage medium storing computer-executable instructions, which are executed by one or more processors, such as the one processor 51 in fig. 5, to enable the one or more processors to perform the method for generating a coupon in any of the above-mentioned method embodiments, such as the method for generating a coupon in any of the above-mentioned method embodiments, for example, the steps shown in fig. 3 described above; the functions of the various units described in figure 4 may also be implemented.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the technical solutions mentioned above may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the method according to each embodiment or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A coupon generation method is applied to a coupon platform, the coupon platform is connected with terminal equipment of at least one external merchant, and the method comprises the following steps:
acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface;
generating an internal coupon according to the internal coupon generation instruction;
acquiring an access request sent by terminal equipment of at least one external merchant;
acquiring the identity information of the external merchant according to the access request;
matching a corresponding external application program interface according to the identity information of the external merchant;
acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface;
and issuing the external coupon to the coupon platform according to the external coupon issuing instruction.
2. The method of claim 1, wherein after generating an internal coupon according to the internal coupon generation instruction, the method further comprises:
monitoring a real-time status of the interior coupons.
3. The method according to claim 1, wherein after matching the corresponding external application program interface according to the identity information of the external merchant, the method further comprises:
receiving an external coupon generation instruction sent by an external merchant;
and generating the external coupon according to the external coupon generation instruction.
4. The method of claim 1, wherein the external merchant opens a merchant interface to the coupon platform, the method further comprising:
and acquiring the user information of the external merchant through the merchant interface.
5. The method of claim 4, further comprising:
acquiring a timing task sent by an internal user;
and calling the merchant interface according to the timing task to acquire the user information of the external merchant at regular time.
6. The method of claim 4, further comprising:
and sending the internal coupon to the external merchant through a merchant interface provided by the external merchant.
7. The method of claim 6, wherein sending the internal coupon to the external merchant through a merchant interface provided by the external merchant comprises:
acquiring a coupon rule of an external merchant;
and according to the coupon rule, generating an internal coupon matched with the coupon rule through a coupon platform, and sending the internal coupon to the external merchant.
8. The method of claim 7, wherein prior to said sending the internal coupon to the external merchant, the method further comprises:
and generating an identification code of the internal coupon, and packaging the identification code and the internal coupon so as to enable the external merchant to display the identification code.
9. An apparatus for generating a coupon, the apparatus comprising:
the internal coupon generation instruction unit is used for acquiring an internal coupon generation instruction sent by an internal user through an internal application program interface;
an internal coupon generation unit for generating an internal coupon according to the internal coupon generation instruction;
an access request unit, configured to obtain an access request sent by terminal equipment of at least one external merchant;
the identity information unit is used for acquiring the identity information of the external commercial tenant according to the access request;
the matching unit is used for matching a corresponding external application program interface according to the identity information of the external merchant;
the external coupon issuing instruction unit is used for acquiring an external coupon issuing instruction sent by an external merchant through the corresponding external application program interface;
and the external coupon issuing unit is used for issuing the external coupon to the coupon platform according to the external coupon issuing instruction.
10. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
CN201910616762.7A 2019-07-09 2019-07-09 A kind of generation method of discount coupon, device and server Pending CN110517061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910616762.7A CN110517061A (en) 2019-07-09 2019-07-09 A kind of generation method of discount coupon, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910616762.7A CN110517061A (en) 2019-07-09 2019-07-09 A kind of generation method of discount coupon, device and server

Publications (1)

Publication Number Publication Date
CN110517061A true CN110517061A (en) 2019-11-29

Family

ID=68622295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910616762.7A Pending CN110517061A (en) 2019-07-09 2019-07-09 A kind of generation method of discount coupon, device and server

Country Status (1)

Country Link
CN (1) CN110517061A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465553A (en) * 2020-11-30 2021-03-09 北京嘀嘀无限科技发展有限公司 Travel coupon using method, device and system
CN114119109A (en) * 2022-01-21 2022-03-01 浙江口碑网络技术有限公司 Preferential resource processing method and device
CN114119112A (en) * 2022-01-10 2022-03-01 浙江口碑网络技术有限公司 Preferential resource processing method and device, electronic equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980272A (en) * 2010-10-18 2011-02-23 广东益民旅游休闲服务有限公司 Method and device for pushing and using consumption coupon
CN105122286A (en) * 2013-03-19 2015-12-02 李光浩 Coupon issuing method and coupon issuing system
CN105608606A (en) * 2016-01-29 2016-05-25 英联(厦门)智能数据有限公司 System and method for intelligent matched application of electronic coupons
CN109741087A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The management method and device of electronic coupons

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980272A (en) * 2010-10-18 2011-02-23 广东益民旅游休闲服务有限公司 Method and device for pushing and using consumption coupon
CN105122286A (en) * 2013-03-19 2015-12-02 李光浩 Coupon issuing method and coupon issuing system
CN105608606A (en) * 2016-01-29 2016-05-25 英联(厦门)智能数据有限公司 System and method for intelligent matched application of electronic coupons
CN109741087A (en) * 2018-12-11 2019-05-10 中国联合网络通信集团有限公司 The management method and device of electronic coupons

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465553A (en) * 2020-11-30 2021-03-09 北京嘀嘀无限科技发展有限公司 Travel coupon using method, device and system
CN114119112A (en) * 2022-01-10 2022-03-01 浙江口碑网络技术有限公司 Preferential resource processing method and device, electronic equipment and computer storage medium
CN114119109A (en) * 2022-01-21 2022-03-01 浙江口碑网络技术有限公司 Preferential resource processing method and device

Similar Documents

Publication Publication Date Title
US11128437B1 (en) Distributed ledger for peer-to-peer cloud resource sharing
CN107547595B (en) Cloud resource scheduling system, method and device
CN110517061A (en) A kind of generation method of discount coupon, device and server
CN110415042A (en) A kind of discount coupon generates system, method and coupon server
US9589122B2 (en) Operation processing method and device
US20240095082A1 (en) Method and system for multiple services to share same gpu, and device and medium
US20140089023A1 (en) Method and system for distributing data stream
CN114327803A (en) Method, apparatus, device and medium for accessing machine learning model by block chain
CN110020043B (en) Page crawling method, device, storage medium and processor
CN110601896A (en) Data processing method and equipment based on block chain nodes
CN108242014A (en) Sale processing method, apparatus, storage medium and the terminal of insurance products
CN105357239A (en) Method and device for providing service, and method and device for acquiring service
CN104537284A (en) Software protecting system and method based on remote service
CN111079095A (en) ID generation method and system
CN102664894A (en) System and method for software provision based on cloud computing
CN104967515B (en) A kind of identity identifying method and server
CN107295052A (en) A kind of method for processing business and device
WO2018068655A1 (en) License management method and system
CN102710742A (en) Offline file synchronous processing mechanism based on cloud computing virtual application
CN105335362B (en) The processing method and system of real time data, instant disposal system for treating
CN105262796A (en) Cloud platform storage resource management system and disposition framework thereof
CN115619486A (en) Order processing method and device, electronic equipment and storage medium
US20130191265A1 (en) Cloud-based system for performing online trading
CN109450770A (en) Service executing apparatus, device, computer equipment and storage medium
CN104539450A (en) Website operation activity processing system, method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191129