Overview
This API specification is describing sandbox 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
Paths
createSandboxCustomer
POST /customers
addGatewaysToCustomer
POST /customers/{customer_key}/add-gateways
Description
Appends new payment gateway records to an existing customer record. New gateway IDs must be unique and must not exist on the system.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
customer_key |
string |
|
Body |
request |
Only gateways property (array) of the request object must be populated. |
addOutletsToCustomer
POST /customers/{customer_key}/add-outlets
Description
Appends new outlet (brick & mortar shop) records to an existing customer record. New outlet IDs must be unique and must not exist on the system.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
customer_key |
string |
|
Body |
request |
Only outlets property (array) of the request object must be populated. |
removeGatewaysFromCustomer
POST /customers/{customer_key}/remove-gateways
Description
Removes payment gateway records from an existing customer record. Gateway IDs must be linked to the customer record in order for the operation to have the desired effect.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
customer_key |
string |
|
Body |
request |
Only gateways property (array) of the request object must be populated. |
removeOutletsFromCustomer
POST /customers/{customer_key}/remove-outlets
Description
Removes outlet (brick & mortar shop) records from an existing customer record. Outlet IDs must be linked to the customer record in order for the operation to have the desired effect.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
customer_key |
string |
|
Body |
request |
Only outlets property (array) of the request object must be populated. |
getCustomerSubscriptions
GET /customers/{customer_key}/subscriptions
createSandboxOrder
POST /orders
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
successful operation |
|
400 |
bad request |
|
404 |
customer record not found |
Security
mygp_auth
Type : oauth2
Flow : application
Token URL : https://mygp.global/auth/realms/mygp-global/protocol/openid-connect/token
| Name | Description |
|---|---|
manage_sandbox_data |
manage sandbox data |
Definitions
AddGatewaysToCustomerResponse
Polymorphism : Composition
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
description |
Example : |
string |
message |
Example : |
string |
outlets |
Example : |
< object > array |
AddOutletsToCustomerResponse
Polymorphism : Composition
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
description |
Example : |
string |
message |
Example : |
string |
outlets |
Example : |
< object > array |
ApiResponse
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
description |
Example : |
string |
message |
Example : |
string |
CreateSandboxCustomerRequest
| Name | Description | Schema |
|---|---|---|
gateways |
Example : |
< string > array |
outlets |
Example : |
< string > array |
CreateSandboxCustomerResponse
Polymorphism : Composition
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
customer_key |
Example : |
string |
description |
Example : |
string |
message |
Example : |
string |
CreateSandboxOrderRequest
| Name | Description | Schema |
|---|---|---|
customer_key |
Example : |
string |
offer_id |
Example : |
string (uuid) |
operation |
Example : |
enum (ADD, MODIFY, REMOVE) |
subscription_id |
Example : |
string (uuid) |
CreateSandboxOrderResponse
Polymorphism : Composition
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
description |
Example : |
string |
message |
Example : |
string |
order_id |
Example : |
string (uuid) |
CreateSandboxUserRequest
| Name | Description | Schema |
|---|---|---|
customer_key |
Example : |
string |
CreateSandboxUserResponse
Polymorphism : Composition
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
customer_key |
Example : |
string |
description |
Example : |
string |
message |
Example : |
string |
CustomerSubscriptionInfo
| Name | Description | Schema |
|---|---|---|
created |
Example : |
string (date-time) |
modifed |
Example : |
string (date-time) |
offer_id |
Example : |
string (uuid) |
origin_id |
identifier assigned to this subscription instance on provider platform |
string (uuid) |
status |
Example : |
string |
subsciption_id |
Example : |
string (uuid) |
GetCustomerSubscriptionsResponse
Polymorphism : Composition
| Name | Description | Schema |
|---|---|---|
code |
Example : |
integer (int32) |
count |
Example : |
integer |
description |
Example : |
string |
items |
< CustomerSubscriptionInfo > array |
|
message |
Example : |
string |