Overview
This API specification is describing partner APIs provided by Global Payments Marketplace. It is available in different formats including as Open API YAML specification.
License information
License : Global Payments Marketplace Partner Agreement 1.0
License URL : https://mygp.cz/agreements/marketplace-partner-agreement-1.0
Terms of service : null
Tags
-
accounts : Part of Acquiring API, providing access to data about active bank accounts.
-
catalog : Access to product and offer specifications.
-
companies : Part of Acquiring API, providing access to data about onboarded companies.
-
consent management
-
kpi sets : Access to anonymised KPI data sets.
-
locations : Part of Acquiring API, providing access to data about active locations (outlets and gateways).
-
persons : Part of Acquiring API, providing access to data about persons.
-
subscriptions : Management of subscription information for partner products.
-
targeted offers : Management of targeted offers submitted by the partner.
-
terminals : Part of Acquiring API, providing access to data about active terminals.
-
user profiles : Access to user profile information.
Paths
List accounts
GET /accounts
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
modified_since |
ISO 8061 formatted date time value ('2021-09-20 13:15:20'); response will only include records that were modified after given point in time |
string (datetime) |
Get list of available product-offer specifications.
GET /catalog
Description
Returns list of product-offer specifications that are available to the partner. Results are paginated.
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Query |
limit |
Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100. |
integer |
|
Query |
offset |
Starting point of the first result to be returned by the operation. Zero based. |
integer |
|
Get details about available product-offer specification.
GET /catalog/{specification_id}
Description
Returns detailed information about specific product-offer specifications that is available to the partner.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
specification_id |
Slug or id of target product-offer specification |
string |
List companies
GET /companies
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
modified_since |
ISO 8061 formatted date time value ('2021-09-20 13:15:20'); response will only include records that were modified after given point in time |
string (datetime) |
Get details about specific company.
GET /companies/{business_id}
Get list of active locations for selected company
GET /companies/{business_id}/locations
Get list of active persons for selected company
GET /companies/{business_id}/persons
Get list of active VAS subscriptions for selected company
GET /companies/{business_id}/subscriptions
Retrieve list of available KPI data set identifiers.
GET /kpi-sets
Description
This endpoint provides access to the collection of available KPI set identifiers - where each KPI set is uniquely identified with a year-month (e.g. 2019-06 for June 2019) combination.
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Query |
limit |
Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100. |
integer |
|
Query |
offset |
Starting point of the first result to be returned by the operation. Zero based. |
integer |
|
Get data points for the selected KPI data set.
GET /kpi-sets/{kpi_set_id}
Description
KPI data sets are collections of data that describe business performance of companies in specific month. A KPI set consists of all available data points for the particular month. The API uses pagination to allow for incremental retrieval of KPI set items. Maximum number of items returned in a single response is restricted to 100. The client however can adjust this to any value between 1 and 100.
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
kpi_set_id |
Identifier of the target KPI data set. Must have the form of YYYY-MM. |
string |
|
Query |
limit |
Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100. |
integer |
|
Query |
offset |
Starting point of the first result to be returned by the operation. Zero based. |
integer |
|
List companies
GET /locations
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
modified_since |
ISO 8061 formatted date time value ('2021-09-20 13:15:20'); response will only include records that were modified after given point in time |
string (datetime) |
Get details about specific location.
GET /locations/{mid}
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
target merchant location number has multiple locations |
|
401 |
authentication credentials (JWT token) were missing or could not be validated |
|
403 |
authentication credentials do not carry required authorisation |
|
404 |
target merchant location could not be located/retrieved |
Get list of active terminals for selected location
GET /locations/{mid}/terminals
List persons
GET /persons
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
modified_since |
ISO 8061 formatted date time value ('2021-09-20 13:15:20'); response will only include records that were modified after given point in time |
string (datetime) |
Get details about specific person.
GET /persons/{person_id}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
person_id |
ID of the target person record |
string |
Update marketing consents for specific person.
POST /persons/{person_id}/consents
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
person_id |
ID of the target person record |
string |
Body |
offer |
Get details about specific subscription.
GET /subscriptions/{subscription_id}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
subscription_id |
Id of the target subscription |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
request did not pass validation |
|
401 |
authentication credentials (JWT token) were missing or could not be validated |
|
403 |
authentication credentials do not carry required authorisation |
|
404 |
target subscription record could not be located/retrieved by the GPM system |
Update details for selected subscription
PUT /subscriptions/{subscription_id}
Description
Updates details for specific subscription with information provided by the partner system.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
subscription_id |
Id of the target subscription |
string |
Body |
info |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
request did not pass validation |
|
401 |
authentication credentials (JWT token) were missing or could not be validated |
|
403 |
authentication credentials do not carry required authorisation |
|
404 |
target subscription record could not be located/retrieved by the GPM system |
|
422 |
request is valid but cannot be accepted due to a conflict on the GPM system |
Create new targeted offer for company.
POST /targeted-offers/{company_key}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
company_key |
Company key provided as part of anonymised data set. |
string |
Body |
offer |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
bad request |
|
404 |
target resource does not exist |
Get list of targeted offers created for the company.
GET /targeted-offers/{company_key}
Description
The list includes OPEN, ACCEPTED, LAPSED and REVOKED offers. The order of results is from the most recent offer to the oldest offer on record. Results are paginated.
Parameters
| Type | Name | Description | Schema | Default |
|---|---|---|---|---|
Path |
company_key |
Company key provided as part of anonymised data set. |
string |
|
Query |
limit |
Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100. |
integer |
|
Query |
offset |
Starting point of the first result to be returned by the operation. Zero based. |
integer |
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
bad request |
|
404 |
target resource does not exist |
Get details on specific targeted offer for company.
GET /targeted-offers/{company_key}/{offer_id}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
company_key |
Company key provided as part of anonymised data set. |
string |
Path |
offer_id |
Offer ID provided and assigned at the time of creation. |
string |
Update existing targeted offer for company.
PUT /targeted-offers/{company_key}/{offer_id}
Description
Some updates may be prevented by the server if they would create a violation of business rules. Update can only be performed for targeted offers with status OPEN. Start of valid period cannot be changed if the validFrom date has already passed. End of valid period cannot be moved closer if the validFrom date has already passed. Offering schema (productRef) cannot be changed with this operation, but properties inside of offer parameters payload can be modified.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
company_key |
Company key provided as part of anonymised data set. |
string |
Path |
offer_id |
Offer ID provided and assigned at the time of creation. |
string |
Body |
offer |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
bad request |
|
404 |
target resource does not exist |
Revokes existing targeted offer with immediate effect.
DELETE /targeted-offers/{company_key}/{offer_id}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
company_key |
Anonymised ID of the company. |
string |
Path |
offer_id |
Unique ID of the targeted offer. |
string |
List terminals
GET /terminals
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
modified_since |
ISO 8061 formatted date time value ('2021-09-20 13:15:20'); response will only include records that were modified after given point in time |
string (datetime) |
Get details about specific payment terminal.
GET /terminals/{terminal_number}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
terminal_number |
Number of the target payment terminal |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
target payment terminal number has multiple terminals |
|
401 |
authentication credentials (JWT token) were missing or could not be validated |
|
403 |
authentication credentials do not carry required authorisation |
|
404 |
target payment terminal record could not be located/retrieved |
Get details user profile for current user.
GET /user-profiles/self
Description
Returns user profile information for current user, authenticated through the acess token.
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
no business was selected by the user |
|
401 |
authentication credentials (JWT token) were missing or could not be validated |
|
403 |
authentication credentials do not carry required authorisation |
|
404 |
user profile could not be located/retrieved |
Security
mygp_auth
Type : oauth2
Flow : application
Token URL : https://mygp.global/auth/realms/gpe/protocol/openid-connect/token
| Name | Description |
|---|---|
read_kpi_sets |
read KPI sets |
manage_targeted_offers |
manage targeted offers |
Definitions
Address
| Name | Description | Schema |
|---|---|---|
city |
Example : |
string |
country_code |
Example : |
string |
house |
Example : |
string |
street |
Example : |
string |
zip_code |
Example : |
string |
AnonymisedKpiSnapshot
An object describing a point-in-time KPI snapshot for specific company.
| Name | Description | Schema |
|---|---|---|
acquirer_code |
Identifies the acquirer organisation using a permanent and unique code (combined from ISO-3166-1 numeric code for the country and a sequence number).
|
string |
company_active_from |
Example : |
string (date) |
company_key |
Example : |
string |
company_legal_form |
Example : |
string |
company_ud |
Example : |
string |
country_code |
Example : |
string |
currency |
Example : |
string |
mid |
Example : |
string |
mid_active_from |
Example : |
string (date) |
mid_mcc_code |
Example : |
string |
mid_mcc_text |
Example : |
string |
number_of_lost_disputes |
Example : |
integer |
number_of_transactions |
Example : |
integer |
number_of_won_disputes |
Example : |
integer |
snapshot_date |
string (date) |
|
turnover |
Example : |
string (decimal) |
value_of_lost_disputes |
Example : |
string (decimal) |
value_of_won_disputes |
Example : |
string (decimal) |
CatalogProductOfferRef
| Name | Description | Schema |
|---|---|---|
created |
Example : |
string (date-time) |
id |
Example : |
string (uuid) |
modified |
Example : |
string (date-time) |
slug |
Example : |
string |
status |
Example : |
enum (PLANNED, PUBLISHED, RETIRED) |
CatalogProductOfferResponse
| Name | Description | Schema |
|---|---|---|
created |
Example : |
string (date-time) |
id |
Example : |
string (uuid) |
modified |
Example : |
string (date-time) |
schema |
JSON schema describing expected structure of product-offer parameters. |
object |
slug |
Example : |
string |
status |
Example : |
enum (PLANNED, PUBLISHED, RETIRED) |
CompanyInfo
| Name | Description | Schema |
|---|---|---|
activated |
Example : |
string (date) |
active |
Example : |
boolean |
business_id |
Example : |
string |
closed |
Example : |
string (date) |
company_id |
Example : |
string |
company_name |
Example : |
string |
contact_address |
||
country_code |
Example : |
string |
language_code |
Example : |
string |
registered_address |
||
sales_name |
Example : |
string |
services |
Example : |
< SimpleServiceInfo > array |
status |
Example : |
enum (NEW, ACTIVE, INACTIVE) |
tax_id |
Example : |
string |
updated |
Example : |
string (date-time) |
ConsentDecisionRepresentation
| Name | Description | Schema |
|---|---|---|
decision_status |
Example : |
enum (GRANTED, DECLINED) |
name |
Example : |
string |
ConsentStatusRepresentation
| Name | Description | Schema |
|---|---|---|
decision_status |
Example : |
enum (GRANTED, DECLINED) |
name |
Example : |
string |
status_from |
Example : |
string (date) |
valid_until |
Example : |
string (date) |
CreateTargetedOfferRequest
| Name | Description | Schema |
|---|---|---|
offer_id |
Arbitrary offer ID that can be used by the submitting partner to uniquely identify the offer. |
string |
parameters |
Container for offer-specific payload. |
object |
product_ref |
Identifies product-offer schema to be used for validation of parameters payload. |
string |
valid_from |
The earliest date when the offer can be accepted by the customer. |
string (date) |
valid_until |
The last date when offer can be accepted by the customer. |
string (date) |
GetAccountsResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortAccountInfo > array |
GetCatalogProductOffersResponse
| Name | Description | Schema |
|---|---|---|
count |
Total number of results available to retrieve. |
integer (int64) |
next |
URL to retrieve next batch of results. |
string (url) |
previous |
URL to retrieve previous batch of results. |
string (url) |
results |
Collection of results retrieved with this batch. |
< CatalogProductOfferRef > array |
GetCompaniesResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortCompanyInfo > array |
GetLocationsForCompanyResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortLocationInfo > array |
GetLocationsResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortLocationInfo > array |
GetPersonDetailsResponse
| Name | Description | Schema |
|---|---|---|
active_since |
Example : |
string (date) |
active_until |
Example : |
string (date) |
birth_number |
Example : |
string |
email |
Example : |
string |
first_name |
Example : |
string |
id |
Example : |
string |
id_number |
Example : |
string |
id_type |
Example : |
string |
is_owner |
Example : |
boolean |
is_statutory |
Example : |
boolean |
last_name |
Example : |
string |
phone |
Example : |
string |
position |
Example : |
string |
salutation |
Example : |
string |
status |
Example : |
enum (NEW, ACTIVE, INACTIVE) |
title_after |
Example : |
string |
title_before |
Example : |
string |
updated |
Example : |
string (date-time) |
GetPersonsForCompanyResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
resource URL for the next batch of persons |
string (url) |
previous |
resource URL for the previous batch of persons |
string (url) |
results |
Example : |
< ShortPersonInfo > array |
GetPersonsResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortPersonInfo > array |
GetSubscriptionsForCompanyResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
resource URL for the next batch of subscription records |
string (url) |
previous |
resource URL for the previous batch of subscription records |
string (url) |
results |
Example : |
< ShortSubscriptionInfo > array |
GetTargetedOfferResult
| Name | Description | Schema |
|---|---|---|
created |
string (date-time) |
|
modified |
string (date-time) |
|
offer_id |
Arbitrary offer ID that can be used by the submitting partner to uniquely identify the offer. |
string |
parameters |
Container for product-specific offer payload. |
object |
product_ref |
Identifies product specification to be used for validation of parameters payload. |
string |
status |
enum (OPEN, ACCEPTED, LAPSED, REVOKED) |
|
valid_from |
The earliest date when the offer can be accepted by the customer. |
string (date) |
valid_until |
The last date when offer can be accepted by the customer. |
string (date) |
GetTargetedOffersResponse
| Name | Description | Schema |
|---|---|---|
count |
Total number of results available to retrieve. |
integer (int64) |
next |
URL to retrieve next batch of results. |
string (url) |
previous |
URL to retrieve previous batch of results. |
string (url) |
results |
Example : |
< TargetedOfferInfo > array |
GetTerminalsForLocationResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortTerminalInfo > array |
GetTerminalsResponse
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< ShortTerminalInfo > array |
KpiSet
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
string (url) |
|
previous |
Example : |
string (url) |
results |
< AnonymisedKpiSnapshot > array |
KpiSetIndex
| Name | Schema |
|---|---|
created |
string (date-time) |
id |
string |
modified |
string (date-time) |
KpiSetIndices
| Name | Description | Schema |
|---|---|---|
count |
Example : |
integer (int64) |
next |
Example : |
string (url) |
previous |
string (url) |
|
results |
Example : |
< KpiSetIndex > array |
LocationInfo
| Name | Description | Schema |
|---|---|---|
activated |
Example : |
string (date) |
address |
||
business_id |
Example : |
string |
is_seasonal |
Example : |
boolean |
location_name |
Example : |
string |
location_type |
Example : |
enum (outlet, ecommerce) |
mcc |
Example : |
string |
mid |
Example : |
string |
services |
Example : |
< SimpleServiceInfo > array |
updated |
Example : |
string (date-time) |
variable_symbol_code |
Example : |
string |
ShortAccountInfo
| Name | Description | Schema |
|---|---|---|
account_type |
Example : |
string |
active_since |
Example : |
string (date) |
active_until |
Example : |
string (date) |
bank |
Example : |
string |
business_id |
Example : |
string |
currency |
Example : |
string |
iban |
Example : |
string |
id |
Example : |
string |
status |
Example : |
enum (NEW, ACTIVE, INACTIVE) |
ShortCompanyInfo
| Name | Description | Schema |
|---|---|---|
active_since |
Example : |
string (date) |
active_until |
Example : |
string |
business_id |
Example : |
string |
company_id |
Example : |
string |
company_name |
Example : |
string |
contact_address |
||
country_code |
Example : |
string |
eet |
Example : |
enum (ACTIVE, NOT_INACTIVE) |
kyc_status |
Example : |
enum (COMPLETE, INCOMPLETE) |
language_code |
Example : |
string |
mygp |
Example : |
enum (ACTIVE, NOT_INACTIVE) |
registered_address |
||
sales_name |
Example : |
string |
status |
Example : |
enum (ACTIVE, NOT_INACTIVE) |
tax_id |
Example : |
string |
updated |
Example : |
string (date-time) |
ShortLocationInfo
| Name | Description | Schema |
|---|---|---|
activated |
Example : |
string (date) |
location_name |
Example : |
string |
location_type |
Example : |
enum (outlet, ecommerce) |
mid |
Example : |
string |
self |
Example : |
string (url) |
updated |
Example : |
string (date-time) |
ShortPersonInfo
| Name | Description | Schema |
|---|---|---|
active_since |
Example : |
string (date) |
active_until |
Example : |
string (date) |
birth_number |
Example : |
string |
business_id |
Example : |
string |
email |
Example : |
string |
first_name |
Example : |
string |
id |
Example : |
string |
id_number |
Example : |
string |
id_type |
Example : |
string |
invitation_url |
Example : |
string |
is_owner |
Example : |
boolean |
is_statutory |
Example : |
boolean |
last_name |
Example : |
string |
phone |
Example : |
string |
position |
Example : |
string |
salutation |
Example : |
string |
status |
Example : |
enum (NEW, ACTIVE, INACTIVE) |
title_after |
Example : |
string |
title_before |
Example : |
string |
ShortSubscriptionInfo
| Name | Description | Schema |
|---|---|---|
created |
Example : |
string (date-time) |
id |
Example : |
string |
modified |
Example : |
string (date-time) |
offer_id |
Example : |
string |
status |
Example : |
string |
ShortTerminalInfo
| Name | Description | Schema |
|---|---|---|
activated |
Example : |
string (date) |
self |
Example : |
string (url) |
terminal_number |
Example : |
string |
terminal_type |
Example : |
string |
updated |
Example : |
string (date-time) |
SimpleServiceInfo
| Name | Description | Schema |
|---|---|---|
code |
Example : |
string |
status |
Example : |
enum (ACTIVE, NOT_ACTIVE) |
SubscriptionInfo
| Name | Description | Schema |
|---|---|---|
capabilities |
Collection of assigned capabilities |
< string > array |
created |
string (date-time) |
|
id |
Example : |
string |
market |
Example : |
string |
modified |
string (date-time) |
|
offer_id |
Example : |
string |
status |
SubscriptionUpdateRequest
| Name | Description | Schema |
|---|---|---|
attributes |
A JSON object with additional subscription properties submitted by the partner system. An empty object ( {} ) can be passed if no additional information is necessary or available. |
object |
status |
Status of the subscription as it is currently tracked in the partner system. |
TargetedOfferInfo
| Name | Description | Schema |
|---|---|---|
created |
string (date-time) |
|
id |
Example : |
string |
modified |
string (date-time) |
|
status |
||
valid_from |
Example : |
string (date) |
valid_until |
Example : |
string (date) |
TerminalInfo
| Name | Description | Schema |
|---|---|---|
activated |
Example : |
string (date) |
business_id |
Example : |
string |
mid |
Example : |
string |
receipt_rows |
Example : |
< string > array |
terminal_number |
Example : |
string |
terminal_type |
Example : |
string |
updated |
Example : |
string (date-time) |
UpdateConsentsRequest
| Name | Schema |
|---|---|
data |
< ConsentDecisionRepresentation > array |
UpdateConsentsResponse
| Name | Schema |
|---|---|
data |
< ConsentStatusRepresentation > array |
UpdateTargetedOfferRequest
| Name | Description | Schema |
|---|---|---|
parameters |
Container for offer-specific payload. |
object |
valid_from |
The earliest date when the offer can be accepted by the customer. |
string (date) |
valid_until |
The last date when offer can be accepted by the customer. |
string (date) |
UserProfileInfo
| Name | Description | Schema |
|---|---|---|
business_id |
Example : |
string |
email |
Example : |
string |
first_name |
Example : |
string |
last_name |
Example : |
string |