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.

Version information

Version : 1.8

Contact information

Contact Email : apiteam@mygp.global

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

URI scheme

BasePath : /v1
Schemes : HTTPS

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

Description

Returns paginated collection of account records.

Parameters

Type Name Description Schema

Query

modified_since
optional

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)

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

Produces

  • application/json

Tags

  • accounts

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
optional

Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100.

integer

20

Query

offset
optional

Starting point of the first result to be returned by the operation. Zero based.

integer

0

Responses

HTTP Code Description Schema

200

successful operation

404

target resource does not exist

Produces

  • application/json

Tags

  • catalog

Security

Type Name Scopes

oauth2

manage_targeted_offers

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
required

Slug or id of target product-offer specification

string

Responses

HTTP Code Description Schema

200

successful operation

Produces

  • application/json

Tags

  • catalog

Security

Type Name Scopes

oauth2

manage_targeted_offers

List companies

GET /companies

Description

Returns paginated collection of company records.

Parameters

Type Name Description Schema

Query

modified_since
optional

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)

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

Produces

  • application/json

Tags

  • companies

Get details about specific company.

GET /companies/{business_id}

Description

Returns detailed information about specific merchant company.

Parameters

Type Name Description Schema

Path

business_id
required

Company business ID

string

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target merchant company cannot be located/retrieved

Produces

  • application/json

Tags

  • companies

Get list of active locations for selected company

GET /companies/{business_id}/locations

Description

Returns list of active locations for selected merchant company.

Parameters

Type Name Description Schema

Path

business_id
required

Company business ID

string

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target merchant company cannot be located/retrieved

Produces

  • application/json

Tags

  • companies

Get list of active persons for selected company

GET /companies/{business_id}/persons

Description

Returns list of active persons for selected merchant company.

Parameters

Type Name Description Schema

Path

business_id
required

Company business ID

string

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target merchant company cannot be located/retrieved

Produces

  • application/json

Tags

  • companies

Get list of active VAS subscriptions for selected company

GET /companies/{business_id}/subscriptions

Description

Returns list of active subscriptions for selected merchant company.

Parameters

Type Name Description Schema

Path

business_id
required

Company business ID

string

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target merchant company cannot be located/retrieved

Produces

  • application/json

Tags

  • companies

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
optional

Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100.

integer

20

Query

offset
optional

Starting point of the first result to be returned by the operation. Zero based.

integer

0

Responses

HTTP Code Description Schema

200

successful operation

Produces

  • application/json

Tags

  • kpi sets

Security

Type Name Scopes

oauth2

read_kpi_sets

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
required

Identifier of the target KPI data set. Must have the form of YYYY-MM.

string

Query

limit
optional

Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100.

integer

20

Query

offset
optional

Starting point of the first result to be returned by the operation. Zero based.

integer

0

Responses

HTTP Code Description Schema

200

successful operation

400

Bad request

Produces

  • application/json

Tags

  • kpi sets

Security

Type Name Scopes

oauth2

read_kpi_sets

List companies

GET /locations

Description

Returns paginated collection of location records.

Parameters

Type Name Description Schema

Query

modified_since
optional

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)

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

Produces

  • application/json

Tags

  • locations

Get details about specific location.

GET /locations/{mid}

Description

Returns detailed information about specific merchant location (outlet or e-commerce).

Parameters

Type Name Description Schema

Path

mid
required

Location number

string

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

Produces

  • application/json

Tags

  • locations

Get list of active terminals for selected location

GET /locations/{mid}/terminals

Description

Returns list of active terminals for selected merchant location (outlet or ecommerce).

Parameters

Type Name Description Schema

Path

mid
required

Location number

string

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target merchant location cannot be located/retrieved

Produces

  • application/json

Tags

  • locations

List persons

GET /persons

Description

Returns paginated collection of company records.

Parameters

Type Name Description Schema

Query

modified_since
optional

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)

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

Produces

  • application/json

Tags

  • persons

Get details about specific person.

GET /persons/{person_id}

Description

Returns detailed information about specific person.

Parameters

Type Name Description Schema

Path

person_id
required

ID of the target person record

string

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target person record could not be located/retrieved

Produces

  • application/json

Tags

  • persons

Update marketing consents for specific person.

POST /persons/{person_id}/consents

Description

Updates makreting consent decisions for specific person.

Parameters

Type Name Description Schema

Path

person_id
required

ID of the target person record

string

Body

offer
required

Responses

HTTP Code Description Schema

200

successful operation

400

bad request

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

404

target person record could not be located/retrieved

Produces

  • application/json

Tags

  • consent management

Get details about specific subscription.

GET /subscriptions/{subscription_id}

Description

Returns detailed information about specific subscription to a partner product.

Parameters

Type Name Description Schema

Path

subscription_id
required

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

Produces

  • application/json

Tags

  • subscriptions

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
required

Id of the target subscription

string

Body

info
required

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

Produces

  • application/json

Tags

  • subscriptions

Create new targeted offer for company.

POST /targeted-offers/{company_key}

Description

New targeted offer record is created for the company. Existing offersare not affected.

Parameters

Type Name Description Schema

Path

company_key
required

Company key provided as part of anonymised data set.

string

Body

offer
required

Responses

HTTP Code Description Schema

200

successful operation

400

bad request

404

target resource does not exist

Produces

  • application/json

Tags

  • targeted offers

Security

Type Name Scopes

oauth2

manage_targeted_offers

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
required

Company key provided as part of anonymised data set.

string

Query

limit
optional

Maximum number of results to be returned by the operation. Must be greater than 1 and less or equal to 100.

integer

20

Query

offset
optional

Starting point of the first result to be returned by the operation. Zero based.

integer

0

Responses

HTTP Code Description Schema

200

successful operation

400

bad request

404

target resource does not exist

Produces

  • application/json

Tags

  • targeted offers

Security

Type Name Scopes

oauth2

manage_targeted_offers

Get details on specific targeted offer for company.

GET /targeted-offers/{company_key}/{offer_id}

Description

Returns complete details about specific targeted offer.

Parameters

Type Name Description Schema

Path

company_key
required

Company key provided as part of anonymised data set.

string

Path

offer_id
required

Offer ID provided and assigned at the time of creation.

string

Responses

HTTP Code Description Schema

200

successful operation

404

target resource does not exist

Produces

  • application/json

Tags

  • targeted offers

Security

Type Name Scopes

oauth2

manage_targeted_offers

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
required

Company key provided as part of anonymised data set.

string

Path

offer_id
required

Offer ID provided and assigned at the time of creation.

string

Body

offer
required

Responses

HTTP Code Description Schema

200

successful operation

400

bad request

404

target resource does not exist

Produces

  • application/json

Tags

  • targeted offers

Security

Type Name Scopes

oauth2

manage_targeted_offers

Revokes existing targeted offer with immediate effect.

DELETE /targeted-offers/{company_key}/{offer_id}

Parameters

Type Name Description Schema

Path

company_key
required

Anonymised ID of the company.

string

Path

offer_id
required

Unique ID of the targeted offer.

string

Responses

HTTP Code Description Schema

200

successful operation

404

target resource does not exist

Produces

  • application/json

Tags

  • targeted offers

Security

Type Name Scopes

oauth2

manage_targeted_offers

List terminals

GET /terminals

Description

Returns paginated collection of terminal records.

Parameters

Type Name Description Schema

Query

modified_since
optional

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)

Responses

HTTP Code Description Schema

200

successful operation

401

authentication credentials (JWT token) were missing or could not be validated

403

authentication credentials do not carry required authorisation

Produces

  • application/json

Tags

  • terminals

Get details about specific payment terminal.

GET /terminals/{terminal_number}

Description

Returns detailed information about specific payment terminal.

Parameters

Type Name Description Schema

Path

terminal_number
required

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

Produces

  • application/json

Tags

  • terminals

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

Produces

  • application/json

Tags

  • user profiles

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
optional

Example : "Praha"

string

country_code
optional

Example : "CZ"

string

house
optional

Example : "626/80"

string

street
optional

Example : "V Olšinách"

string

zip_code
optional

Example : "10 100 00"

string

AnonymisedKpiSnapshot

An object describing a point-in-time KPI snapshot for specific company.

Name Description Schema

acquirer_code
optional

Identifies the acquirer organisation using a permanent and unique code (combined from ISO-3166-1 numeric code for the country and a sequence number).

  • 00000 for unknown acquirer organisation (indicates data issue)

  • 20301 for JV Czech Republic

  • 70301 for JV Slovakia
    Example : "70301"

string

company_active_from
optional

Example : "2016-03-17"

string (date)

company_key
optional

Example : "F53CFC9E103659533996DDBE53F8E4E2"

string

company_legal_form
optional

Example : "sro"

string

company_ud
optional

Example : "COMP-140692"

string

country_code
optional

Example : "SK"

string

currency
optional

Example : "EUR"

string

mid
optional

Example : "MPLLOC000000000000057"

string

mid_active_from
optional

Example : "2016-03-17"

string (date)

mid_mcc_code
optional

Example : "7891"

string

mid_mcc_text
optional

Example : "Hotels"

string

number_of_lost_disputes
optional

Example : 1

integer

number_of_transactions
optional

Example : 665

integer

number_of_won_disputes
optional

Example : 7

integer

snapshot_date
optional

string (date)

turnover
optional

Example : "234525.26"

string (decimal)

value_of_lost_disputes
optional

Example : "268.90"

string (decimal)

value_of_won_disputes
optional

Example : "1355.70"

string (decimal)

ApiResponse

Name Schema

code
optional

integer (int32)

message
optional

string

type
optional

string

CatalogProductOfferRef

Name Description Schema

created
optional

Example : "2019-01-01T06:00:00.000Z"

string (date-time)

id
optional

Example : "79b63426-94e1-11e9-bb23-c3d8a01a3776"

string (uuid)

modified
optional

Example : "2019-03-15T09:30:00.000Z"

string (date-time)

slug
optional

Example : "flexible-financing-v1"

string

status
optional

Example : "PUBLISHED"

enum (PLANNED, PUBLISHED, RETIRED)

CatalogProductOfferResponse

Name Description Schema

created
optional

Example : "2019-01-01T06:00:00.000Z"

string (date-time)

id
optional

Example : "79b63426-94e1-11e9-bb23-c3d8a01a3776"

string (uuid)

modified
optional

Example : "2019-03-15T09:30:00.000Z"

string (date-time)

schema
optional

JSON schema describing expected structure of product-offer parameters.
Example : { "$schema" : "http://json-schema.org/draft-07/schema#", "$id" : "https://api.mygp.cz/v1/catalog/flexible-financing-v1/schema.json", "title" : "flexible-financing-v1 product-offer schema", "type" : "object", "properties" : { "offered_amount" : { "type" : "string" }, "maximum_amount" : { "type" : "string" }, "total_amount" : { "type" : "string" }, "currency" : { "type" : "string" }, "factor_rate" : { "type" : "string" }, "term" : { "type" : "string" } }, "required" : [ "offered_amount", "maximum_amount", "total_amount", "currency", "factor_rate", "term" ] }

object

slug
optional

Example : "flexible-financing-v1"

string

status
optional

Example : "PUBLISHED"

enum (PLANNED, PUBLISHED, RETIRED)

CompanyInfo

Name Description Schema

activated
optional

Example : "2018-05-12"

string (date)

active
optional

Example : true

boolean

business_id
optional

Example : "7587485784"

string

closed
optional

Example : ""

string (date)

company_id
optional

Example : "COMP-921533213"

string

company_name
optional

Example : "Global Payments s.r.o."

string

contact_address
optional

country_code
optional

Example : "CZ"

string

language_code
optional

Example : "CZ"

string

registered_address
optional

sales_name
optional

Example : "Felicity Decker"

string

services
optional

Example : [ { "code" : "EET", "status" : "ACTIVE" }, { "code" : "MyGP", "status" : "NOT_ACTIVE" } ]

< SimpleServiceInfo > array

status
optional

Example : "ACTIVE"

enum (NEW, ACTIVE, INACTIVE)

tax_id
optional

Example : "CZ1234567890"

string

updated
optional

Example : "2020-09-27T10:16:12"

string (date-time)

ConsentDecisionRepresentation

Name Description Schema

decision_status
optional

Example : "GRANTED"

enum (GRANTED, DECLINED)

name
required

Example : "general"

string

ConsentStatusRepresentation

Name Description Schema

decision_status
required

Example : "GRANTED"

enum (GRANTED, DECLINED)

name
required

Example : "general"

string

status_from
required

Example : "YYYY-MM-DD"

string (date)

valid_until
optional

Example : "YYYY-MM-DD"

string (date)

CreateTargetedOfferRequest

Name Description Schema

offer_id
optional

Arbitrary offer ID that can be used by the submitting partner to uniquely identify the offer.
Example : "O93730028"

string

parameters
optional

Container for offer-specific payload.
Example : { "offered_amount" : "700000.00", "maximum_amount" : "700000.00", "total_amount" : "763000.00", "currency" : "CZK", "factor_rate" : "1.09", "term" : "4" }

object

product_ref
optional

Identifies product-offer schema to be used for validation of parameters payload.
Example : "flexible-financing-offer#v1"

string

valid_from
optional

The earliest date when the offer can be accepted by the customer.
Example : "2019-06-01"

string (date)

valid_until
optional

The last date when offer can be accepted by the customer.
Example : "2019-06-30"

string (date)

GetAccountsResponse

Name Description Schema

count
optional

Example : 1

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/accounts?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "id" : "6573467568", "business_id" : "99999991", "account_type" : "P", "iban" : "CZ2720100000002609999888", "currency" : "CZK", "bank" : "FIOBCZPP", "status" : "ACTIVE", "active_since" : "2020-07-11", "active_until" : "" } ]

< ShortAccountInfo > array

GetCatalogProductOffersResponse

Name Description Schema

count
optional

Total number of results available to retrieve.
Example : 1

integer (int64)

next
optional

URL to retrieve next batch of results.

string (url)

previous
optional

URL to retrieve previous batch of results.

string (url)

results
optional

Collection of results retrieved with this batch.
Example : [ { "id" : "79b63426-94e1-11e9-bb23-c3d8a01a3776", "slug" : "flexible-financing-v1", "status" : "PUBLISHED", "created" : "2019-01-01T06:00:00.000Z", "modified" : "2019-03-15T09:30:00.000Z" } ]

GetCompaniesResponse

Name Description Schema

count
optional

Example : 2

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/companies?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "business_id" : "7587485784", "company_id" : "COMP-00042341", "tax_id" : "CZ12345678", "company_name" : "Happy Koala Ltd.", "country_code" : "CZ", "language_code" : "CZ", "registered_address" : { "street" : "V Olšinách", "house" : "626/80", "zip_code" : "10 100 00", "city" : "Praha", "country_code" : "CZ" }, "contact_address" : { "street" : "V Olšinách", "house" : "626/80", "zip_code" : "10 100 00", "city" : "Praha", "country_code" : "CZ" }, "eet" : "ACTIVE", "mygp" : "ACTIVE", "sales_name" : "John Doe", "status" : "ACTIVE", "active_since" : "2017-11-08", "active_until" : "", "kyc_status" : "COMPLETE", "updated" : "2019-07-01T01:00:00.000Z" } ]

< ShortCompanyInfo > array

GetLocationsForCompanyResponse

Name Description Schema

count
optional

Example : 2

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/companies/7587485784/locations?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "mid" : "7587485784", "location_name" : "Main Street Shop", "location_type" : "outlet", "created" : "2019-07-01T01:00:00.000Z", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/locations/7587485784" }, { "mid" : "6357485222", "location_name" : "www.mainstreetshop.com", "location_type" : "ecommerce", "created" : "2019-07-01T01:00:00.000Z", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/locations/6357485222" } ]

< ShortLocationInfo > array

GetLocationsResponse

Name Description Schema

count
optional

Example : 2

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/locations?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "mid" : "7587485784", "location_name" : "Main Street Shop", "location_type" : "outlet", "created" : "2019-07-01T01:00:00.000Z", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/locations/7587485784" }, { "mid" : "6357485222", "location_name" : "www.mainstreetshop.com", "location_type" : "ecommerce", "created" : "2019-07-01T01:00:00.000Z", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/locations/6357485222" } ]

< ShortLocationInfo > array

GetPersonDetailsResponse

Name Description Schema

active_since
optional

Example : "2014-10-07"

string (date)

active_until
optional

Example : "2019-08-19"

string (date)

birth_number
optional

Example : "10040067328"

string

email
optional

Example : "mailbox@example.org"

string

first_name
optional

Example : "Alan"

string

id
optional

Example : "942387299"

string

id_number
optional

Example : "AB9992223"

string

id_type
optional

Example : "IDC"

string

is_owner
optional

Example : false

boolean

is_statutory
optional

Example : true

boolean

last_name
optional

Example : "Turing"

string

phone
optional

Example : "+4287878399"

string

position
optional

Example : "CEO"

string

salutation
optional

Example : "Mr"

string

status
optional

Example : "ACTIVE"

enum (NEW, ACTIVE, INACTIVE)

title_after
optional

Example : "PhD"

string

title_before
optional

Example : "RtH"

string

updated
optional

Example : "2019-07-02T01:00:00.000Z"

string (date-time)

GetPersonsForCompanyResponse

Name Description Schema

count
optional

Example : 12

integer (int64)

next
optional

resource URL for the next batch of persons
Example : "https://api.mygp.cz/v1/companies/NCC1701/persons?limit=10&offset=10"

string (url)

previous
optional

resource URL for the previous batch of persons

string (url)

results
optional

Example : [ { "id" : "6573467568", "salutation" : "Mr", "title_before" : "", "first_name" : "James", "last_name" : "Kirk", "title_after" : "", "phone" : "+42012341234", "email" : "test@example.com", "position" : "Captain", "birth_number" : "1234567", "id_number" : "P3546359", "id_type" : "IDC", "is_statutory" : true, "is_owner" : false, "status" : "ACTIVE", "active_since" : "2020-07-11", "active_until" : "", "invitation_url" : "https://mygp.cz/onboarding/invitation/xyz123abc456" } ]

< ShortPersonInfo > array

GetPersonsResponse

Name Description Schema

count
optional

Example : 1

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/persons?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "id" : "6573467568", "salutation" : "Mr", "title_before" : "", "first_name" : "James", "last_name" : "Kirk", "title_after" : "", "phone" : "+42012341234", "email" : "test@example.com", "position" : "Captain", "birth_number" : "1234567", "id_number" : "P3546359", "id_type" : "IDC", "is_statutory" : true, "is_owner" : false, "status" : "ACTIVE", "active_since" : "2020-07-11", "active_until" : "", "invitation_url" : "https://mygp.cz/onboarding/invitation/xyz123abc456" } ]

< ShortPersonInfo > array

GetSubscriptionsForCompanyResponse

Name Description Schema

count
optional

Example : 2

integer (int64)

next
optional

resource URL for the next batch of subscription records
Example : "https://api.mygp.cz/v1/companies/432809567206/subscriptions?limit=10&offset=10"

string (url)

previous
optional

resource URL for the previous batch of subscription records

string (url)

results
optional

Example : [ { "id" : "adcaac2d-26c0-4728-b2a9-4286bbd3e324", "status" : "ACTIVE", "created" : "2019-07-02T01:00:00.000Z", "modified" : "2019-07-02T01:00:00.000Z", "offer_id" : "6d5a1ef3-57fb-4739-abe7-fb1ecdac84af" }, { "id" : "fed2bd00-77f4-4346-a950-08d094c2a446", "status" : "ACTIVE", "created" : "2019-07-01T01:00:00.000Z", "modified" : "2019-07-01T01:00:00.000Z", "offer_id" : "645211e9-98db-48d7-a16c-768eb1d3db4a" } ]

GetTargetedOfferResult

Name Description Schema

created
optional

string (date-time)

modified
optional

string (date-time)

offer_id
optional

Arbitrary offer ID that can be used by the submitting partner to uniquely identify the offer.
Example : "O93730028"

string

parameters
optional

Container for product-specific offer payload.
Example : { "offered_amount" : "700000.00", "maximum_amount" : "700000.00", "total_amount" : "763000.00", "currency" : "CZK", "factor_rate" : "1.09", "term" : "4" }

object

product_ref
optional

Identifies product specification to be used for validation of parameters payload.
Example : "flexible-financing#v1"

string

status
optional

enum (OPEN, ACCEPTED, LAPSED, REVOKED)

valid_from
optional

The earliest date when the offer can be accepted by the customer.
Example : "2019-06-01"

string (date)

valid_until
optional

The last date when offer can be accepted by the customer.
Example : "2019-06-30"

string (date)

GetTargetedOffersResponse

Name Description Schema

count
optional

Total number of results available to retrieve.
Example : 6

integer (int64)

next
optional

URL to retrieve next batch of results.

string (url)

previous
optional

URL to retrieve previous batch of results.
Example : "null"

string (url)

results
optional

Example : [ { "id" : "O93730028", "status" : "OPEN", "valid_from" : "2019-06-22", "valid_until" : "2019-06-30", "created" : "2019-06-21T09:55:32.113Z", "modified" : "2019-06-21T09:55:32.113Z" }, { "id" : "O93730016", "status" : "REVOKED", "valid_from" : "2019-06-01", "valid_until" : "2019-06-30", "created" : "2019-05-30T08:20:25.567Z", "modified" : "2019-06-21T09:55:31.348Z" }, { "id" : "O93730003", "status" : "LAPSED", "valid_from" : "2019-05-01", "valid_until" : "2019-05-31", "created" : "2019-04-29T08:16:55.138Z", "modified" : "2019-04-29T08:16:55.138Z" }, { "id" : "O93729971", "status" : "LAPSED", "valid_from" : "2019-04-01", "valid_until" : "2019-04-30", "created" : "2019-03-30T09:55:12.231Z", "modified" : "2019-03-30T09:55:12.231Z" }, { "id" : "O93729964", "status" : "LAPSED", "valid_from" : "2019-03-01", "valid_until" : "2019-03-30", "created" : "2019-02-27T09:23:27.831Z", "modified" : "2019-02-27T09:23:27.831Z" }, { "id" : "O93729950" } ]

< TargetedOfferInfo > array

GetTerminalsForLocationResponse

Name Description Schema

count
optional

Example : 2

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/locations/88587548578/terminals?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "terminal_number" : "1234567891", "terminal_type" : "ICT220DTINTCL_ETH", "created" : "2019-07-01", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/terminals/1234567891" }, { "terminal_number" : "1234567892", "terminal_type" : "ICT220DTINTCL_ETH", "created" : "2019-10-12", "modified" : "2019-11-03T08:35:13.000Z", "self" : "https://api.mygp.cz/v1/terminals/1234567892" } ]

< ShortTerminalInfo > array

GetTerminalsResponse

Name Description Schema

count
optional

Example : 2

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/terminals?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "terminal_number" : "1234567891", "terminal_type" : "ICT220DTINTCL_ETH", "created" : "2019-07-01", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/terminals/1234567891" }, { "terminal_number" : "1234567892", "terminal_type" : "ICT220DTINTCL_ETH", "created" : "2019-10-12", "modified" : "2019-11-03T08:35:13.000Z", "self" : "https://api.mygp.cz/v1/terminals/1234567892" } ]

< ShortTerminalInfo > array

KpiSet

Name Description Schema

count
optional

Example : 11

integer (int64)

next
optional

string (url)

previous
optional

Example : "https://api.mygp.cz/v1/kpi-sets/2019-06?limit=10&offset=0"

string (url)

results
optional

KpiSetIndex

Name Schema

created
optional

string (date-time)

id
optional

string

modified
optional

string (date-time)

KpiSetIndices

Name Description Schema

count
optional

Example : 15

integer (int64)

next
optional

Example : "https://api.mygp.cz/v1/kpi-sets?limit=10&offset=10"

string (url)

previous
optional

string (url)

results
optional

Example : [ { "id" : "2019-06", "created" : "2019-07-01T01:00:00.000Z", "modified" : "2019-07-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2019-06" }, { "id" : "2019-05", "created" : "2019-06-01T01:00:00.000Z", "modified" : "2019-06-05T08:33:22.111Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2019-05" }, { "id" : "2019-04", "created" : "2019-05-01T01:00:00.000Z", "modified" : "2019-05-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2019-04" }, { "id" : "2019-03", "created" : "2019-04-01T01:00:00.000Z", "modified" : "2019-04-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2019-03" }, { "id" : "2019-02", "created" : "2019-03-01T01:00:00.000Z", "modified" : "2019-03-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2019-02" }, { "id" : "2019-01", "created" : "2019-02-01T01:00:00.000Z", "modified" : "2019-02-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2019-01" }, { "id" : "2018-12", "created" : "2019-01-01T01:00:00.000Z", "modified" : "2019-01-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2018-12" }, { "id" : "2018-11", "created" : "2018-12-01T01:00:00.000Z", "modified" : "2018-12-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2018-11" }, { "id" : "2018-10", "created" : "2018-11-01T01:00:00.000Z", "modified" : "2018-11-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2018-10" }, { "id" : "2018-09", "created" : "2018-10-01T01:00:00.000Z", "modified" : "2018-10-01T01:00:00.000Z", "self" : "https://api.mygp.cz/v1/kpi-sets/2018-09" } ]

< KpiSetIndex > array

LocationInfo

Name Description Schema

activated
optional

Example : "2018-05-12"

string (date)

address
optional

business_id
optional

Example : "7587485784"

string

is_seasonal
optional

Example : false

boolean

location_name
optional

Example : "Main Street Shop"

string

location_type
optional

Example : "outlet"

enum (outlet, ecommerce)

mcc
optional

Example : "8012"

string

mid
optional

Example : "88587548578"

string

services
optional

Example : [ { "code" : "eCommerce", "status" : "ACTIVE" }, { "code" : "easy2sell", "status" : "NOT_ACTIVE" }, { "code" : "DCC", "status" : "NOT_ACTIVE" }, { "code" : "gptom", "status" : "NOT_ACTIVE" } ]

< SimpleServiceInfo > array

updated
optional

Example : "2020-09-27T10:16:12"

string (date-time)

variable_symbol_code
optional

Example : "IVB"

string

ShortAccountInfo

Name Description Schema

account_type
optional

Example : "P"

string

active_since
optional

Example : "2020-07-11"

string (date)

active_until
optional

Example : ""

string (date)

bank
optional

Example : "FIOBCZPP"

string

business_id
optional

Example : "12345678"

string

currency
optional

Example : "CZK"

string

iban
optional

Example : "CZ2720100000002609999888"

string

id
optional

Example : "GPEACC000000009999888"

string

status
optional

Example : "ACTIVE"

enum (NEW, ACTIVE, INACTIVE)

ShortCompanyInfo

Name Description Schema

active_since
optional

Example : "2018-05-12"

string (date)

active_until
optional

Example : ""

string

business_id
optional

Example : "7587485784"

string

company_id
optional

Example : "COMP-00042341"

string

company_name
optional

Example : "Global Payments s.r.o."

string

contact_address
optional

country_code
optional

Example : "CZ"

string

eet
optional

Example : "ACTIVE"

enum (ACTIVE, NOT_INACTIVE)

kyc_status
optional

Example : "COMPLETE"

enum (COMPLETE, INCOMPLETE)

language_code
optional

Example : "CZ"

string

mygp
optional

Example : "ACTIVE"

enum (ACTIVE, NOT_INACTIVE)

registered_address
optional

sales_name
optional

Example : "John Doe"

string

status
optional

Example : "ACTIVE"

enum (ACTIVE, NOT_INACTIVE)

tax_id
optional

Example : "CZ12345678"

string

updated
optional

Example : "2020-09-27T10:16:12"

string (date-time)

ShortLocationInfo

Name Description Schema

activated
optional

Example : "2018-05-12"

string (date)

location_name
optional

Example : "Main Street Shop"

string

location_type
optional

Example : "outlet"

enum (outlet, ecommerce)

mid
optional

Example : "558848578"

string

self
optional

Example : "https://api.mygp.cz/v1/locations/558848578"

string (url)

updated
optional

Example : "2020-09-27T10:16:12"

string (date-time)

ShortPersonInfo

Name Description Schema

active_since
optional

Example : "2020-07-11"

string (date)

active_until
optional

Example : ""

string (date)

birth_number
optional

Example : "1234567"

string

business_id
optional

Example : "12345678"

string

email
optional

Example : "test@example.com"

string

first_name
optional

Example : "Alan"

string

id
optional

Example : "942387299"

string

id_number
optional

Example : "P3546359"

string

id_type
optional

Example : "IDC"

string

invitation_url
optional

Example : "https://mygp.cz/onboarding/invitation/xyz123abc456"

string

is_owner
optional

Example : false

boolean

is_statutory
optional

Example : true

boolean

last_name
optional

Example : "Turing"

string

phone
optional

Example : "+42012341234"

string

position
optional

Example : "CEO"

string

salutation
optional

Example : "Mr"

string

status
optional

Example : "ACTIVE"

enum (NEW, ACTIVE, INACTIVE)

title_after
optional

Example : ""

string

title_before
optional

Example : ""

string

ShortSubscriptionInfo

Name Description Schema

created
optional

Example : "2019-07-02T01:00:00.000Z"

string (date-time)

id
optional

Example : "adcaac2d-26c0-4728-b2a9-4286bbd3e324"

string

modified
optional

Example : "2019-07-02T01:00:00.000Z"

string (date-time)

offer_id
optional

Example : "6d5a1ef3-57fb-4739-abe7-fb1ecdac84af"

string

status
optional

Example : "ACTIVE"

string

ShortTerminalInfo

Name Description Schema

activated
optional

Example : "2018-05-12"

string (date)

self
optional

Example : "https://api.mygp.cz/v1/terminals/558848578"

string (url)

terminal_number
optional

Example : "12345678"

string

terminal_type
optional

Example : "ICT220DTINTCL_ETH"

string

updated
optional

Example : "2020-09-27T10:16:12"

string (date-time)

SimpleServiceInfo

Name Description Schema

code
optional

Example : "EET"

string

status
optional

Example : "ACTIVE"

enum (ACTIVE, NOT_ACTIVE)

SubscriptionInfo

Name Description Schema

capabilities
optional

Collection of assigned capabilities

< string > array

created
optional

string (date-time)

id
optional

Example : "1CAC7410-744B-44F2-B02E-5C15710D3F0D"

string

market
optional

Example : "cz"

string

modified
optional

string (date-time)

offer_id
optional

Example : "3BE2B9E5-4C5C-4ED3-9F93-925DD77C0214"

string

status
optional

SubscriptionStatus

Type : enum (ACTIVATING, ACTIVE, MODIFYING, CEASING, SUSPENDED, CEASED, PAUSED)

SubscriptionUpdateRequest

Name Description Schema

attributes
optional

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.
Example : { "propertyA" : "newValueA", "propertyB" : "newValueB" }

object

status
optional

Status of the subscription as it is currently tracked in the partner system.

TargetedOfferInfo

Name Description Schema

created
optional

string (date-time)

id
optional

Example : "O93730028"

string

modified
optional

string (date-time)

status
optional

valid_from
optional

Example : "2019-06-01"

string (date)

valid_until
optional

Example : "2019-06-30"

string (date)

TargetedOfferStatus

Type : enum (OPEN, ACCEPTED, LAPSED, REVOKED)

TerminalInfo

Name Description Schema

activated
optional

Example : "2018-05-12"

string (date)

business_id
optional

Example : "7587485784"

string

mid
optional

Example : "88587548578"

string

receipt_rows
optional

Example : [ "receipt row #1", "receipt row #2", "receipt row #3" ]

< string > array

terminal_number
optional

Example : "12345678"

string

terminal_type
optional

Example : "ICT220DTINTCL_ETH"

string

updated
optional

Example : "2020-09-27T10:16:12"

string (date-time)

UpdateConsentsRequest

Name Schema

data
required

UpdateConsentsResponse

Name Schema

data
required

UpdateTargetedOfferRequest

Name Description Schema

parameters
optional

Container for offer-specific payload.
Example : { "offered_amount" : "700000.00", "maximum_amount" : "700000.00", "total_amount" : "763000.00", "currency" : "CZK", "factor_rate" : "1.09", "term" : "4" }

object

valid_from
optional

The earliest date when the offer can be accepted by the customer.
Example : "2019-06-01"

string (date)

valid_until
optional

The last date when offer can be accepted by the customer.
Example : "2019-06-30"

string (date)

UserProfileInfo

Name Description Schema

business_id
optional

Example : "7587485784"

string

email
optional

string

first_name
optional

Example : "Joe"

string

last_name
optional

Example : "Grizzly"

string