Payment mode

Retrieving a list of payment modes

get

Retrieves a list of configured payment modes for a given tenant.

Required scopes
This endpoint requires the following scopes:
  • : Needed for reading payment modes by a tenant employee.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Responses
get
/payment-gateway/{tenant}/paymentmodes/config

Creating a single payment mode entity

post

Creates a new payment mode for a given tenant. Currently the service supports the following payment methods:

  • Payment methods supported by Spreedly: https://docs.spreedly.com/reference/supported-gateways/

  • Saferpay: https://docs.saferpay.com/home/interfaces/payment-api

  • Unzer Invoice: https://docs.unzer.com/payment-methods/unzer-invoice-upl/

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage payment modes by a tenant employee.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
codestringRequired

Indicates a code of a given method.

activebooleanOptional

Indicates whether a give mode is active.

providerall ofRequired

Indicates which provider should be used.

string · enumOptionalPossible values:
Responses
post
/payment-gateway/{tenant}/paymentmodes/config

Retrieving a single payment mode

get

Retrieves a single payment mode configuration for a given tenant based on a payment mode identifier.

Required scopes
This endpoint requires the following scopes:
  • : Needed for reading payment modes by a tenant employee.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
idstringRequired

Unique identifier of a payment mode.

Responses
get
/payment-gateway/{tenant}/paymentmodes/config/{id}

Updating a single payment mode

put

Updates a single payment mode for a given tenant based on a unique mode identifier.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage payment modes by a tenant employee.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
idstringRequired

Unique identifier of a payment mode.

Body
activebooleanOptional

Indicates whether a give mode is active.

Responses
put
/payment-gateway/{tenant}/paymentmodes/config/{id}

Deleting a single payment mode

delete

Deletes a single payment mode for a given tenant based on a unique mode identifier.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage payment modes by a tenant employee.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
idstringRequired

Unique identifier of a payment mode.

Responses
delete
/payment-gateway/{tenant}/paymentmodes/config/{id}

No content

Last updated

Was this helpful?