Skip to main content

Paytently API Reference

Download OpenAPI specification:Download

Authentication

Generate token request

Request Body schema: application/x-www-form-urlencoded
required
client_id
required
string or null

The client id provided

client_secret
required
string or null

The client secret provided

grant_type
required
string or null

The value must always be set to 'client_credentials'

audience
required
string or null

The endpoint for the API you are integrating to. Refer to documentation for possible values.

Responses

Response samples

Content type
application/json
{
  • "token_type": "string",
  • "access_token": "string",
  • "expires_in": 0,
  • "scope": "string"
}

Payments

Create payment request

Request Body schema: application/json
amount
required
integer <int32> ( 0 .. 100000000 ]

The payment amount in minor units
Value must be greater than 0

reference
required
string [ 1 .. 64 ] characters [A-Za-z0-9_-]

A reference to the payment
Usually your internal order identifier

currency
required
string [ 0 .. 3 ] characters

Three-letter currency code - ISO 4217

device_ip_address
required
string [ 1 .. 39 ] characters

The IP address from where the payment is originated (for customer initiated payments)

object (Paytently.Payments.Gateway.Api.Contracts.Commands.Create.Route)

Route details to direct your traffic
Required unless your application is set up with our routing engine.

required
object (Paytently.Payments.Gateway.Api.Contracts.Common.Customer)

Customer details

object (Paytently.Payments.Gateway.Api.Contracts.Commands.Models.Method)

The method of the payment
type is required unless making a Hosted Forms payment, where method is omitted or only contains create_vault_instrument

object (Paytently.Payments.Gateway.Api.Contracts.Common.BillingAddress)

The billing address associated to the card

required
object (Paytently.Payments.Gateway.Api.Contracts.Common.PaymentUrls)

URLs for the payment

object or null

An object to store any metadata associated with this payment

object (Paytently.Payments.Gateway.Api.Contracts.Common.Aft)

The AFT information of the payment

language
string or null

The preferred language of the customer

object (Paytently.Payments.Gateway.Api.Contracts.Common.CredentialOnFile)
object (Paytently.Payments.Gateway.Api.Contracts.Common.Schedule)

Responses

Request samples

Content type
application/json
{
  • "amount": 120,
  • "reference": "ord123",
  • "currency": "EUR",
  • "device_ip_address": "192.0.2.0",
  • "route": {
    },
  • "customer": {
    },
  • "method": {
    },
  • "billing_address": {
    },
  • "urls": {},
  • "metadata": {
    },
  • "aft": {
    },
  • "language": "string",
  • "credential_on_file": {
    },
  • "schedule": {
    }
}

Response samples

Content type
application/json
{
  • "id": "pay_12345",
  • "status": "pending",
  • "_links": {
    }
}

Get payment

Responses

Response samples

Content type
application/json
{
  • "id": "pay_12345",
  • "status": "pending",
  • "_links": {
    },
  • "reference": "string",
  • "amount": 0,
  • "amount_details": {
    },
  • "currency": "string",
  • "customer": {
    },
  • "billing_address": {
    },
  • "device_ip_address": "string",
  • "application": {
    },
  • "method": {
    },
  • "urls": {},
  • "metadata": {
    },
  • "requested_on": "2019-08-24T14:15:22Z",
  • "completed_on": "2019-08-24T14:15:22Z",
  • "errors": [],
  • "route": {
    },
  • "refunds": [
    ],
  • "voids": [
    ],
  • "risk_rules": [
    ],
  • "language": "string",
  • "fraud_check": {
    },
  • "chargeback": {
    },
  • "aft": {
    },
  • "credential_on_file": {
    },
  • "schedule": {
    },
  • "external_scheme_id": "string"
}

Refund payment

Request Body schema: application/json
amount
integer or null <int32> ( 0 .. 100000000 ]

The refund amount in minor units.
If not specified then the full amount will be refunded.

reference
string [ 1 .. 32 ] characters [A-Za-z0-9_-]

A reference for the refund
Usually your internal refund identifier

Responses

Request samples

Content type
application/json
{
  • "amount": 15,
  • "reference": "refund123"
}

Response samples

Content type
application/json
{
  • "id": "ref_12345",
  • "status": "pending",
  • "_links": {
    },
  • "amount": 0,
  • "currency": "string",
  • "requested_on": "2019-08-24T14:15:22Z",
  • "completed_on": "2019-08-24T14:15:22Z",
  • "external_transaction_id": "string",
  • "external_error_code": "string",
  • "external_error_message": "string",
  • "errors": []
}

Get refund

path Parameters
id
required
string

The id of the payment

refund_id
required
string

The id of the refund

Responses

Response samples

Content type
application/json
{
  • "id": "ref_12345",
  • "status": "pending",
  • "_links": {
    },
  • "amount": 0,
  • "currency": "string",
  • "requested_on": "2019-08-24T14:15:22Z",
  • "completed_on": "2019-08-24T14:15:22Z",
  • "external_transaction_id": "string",
  • "external_error_code": "string",
  • "external_error_message": "string",
  • "errors": []
}

Void payment

Request Body schema: application/json
reference
required
string [ 1 .. 32 ] characters [A-Za-z0-9_-]

A reference for the void
Usually your internal void identifier

Responses

Request samples

Content type
application/json
{
  • "reference": "void123"
}

Response samples

Content type
application/json
{
  • "id": "voi_123",
  • "status": "pending",
  • "_links": {
    }
}

Vault

Create instrument

Authorizations:
Bearer
header Parameters
x-api-version
string (System.String)
Request Body schema: application/json
required
type
required
any (Paytently.Vault.Api.Features.Common.Models.InstrumentType)
Enum: "card" "network_token"
object or null (Paytently.Vault.Api.Features.Create.Models.Card)
instrument_id
string or null (System.String)
object or null (Paytently.Vault.Api.Features.Create.Models.Customer)
object or null (Paytently.Vault.Api.Features.Common.Models.Urls)
object or null (Paytently.Vault.Api.Features.Common.Models.Initiator)
entity_id
string or null (System.String)

Responses

Request samples

Content type
application/json
{
  • "type": "card",
  • "card": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "status": "pending"
}

Update instrument

Authorizations:
Bearer
path Parameters
id
required
string (System.String)
header Parameters
x-api-version
string (System.String)
Request Body schema: application/json
required
required
object (Paytently.Vault.Api.Features.Update.Models.Card)
expiry_month
required
string or null (System.String)
expiry_year
required
string or null (System.String)

Responses

Request samples

Content type
application/json
{
  • "card": {
    }
}

Response samples

Content type
application/json
{
  • "trace_id": "string",
  • "errors": [
    ]
}

Delete instrument

Authorizations:
Bearer
path Parameters
id
required
string (System.String)
header Parameters
x-api-version
string (System.String)

Responses

Response samples

Content type
application/json
{
  • "trace_id": "string",
  • "errors": [
    ]
}

Get instrument

Authorizations:
Bearer
path Parameters
id
required
string (System.String)
header Parameters
x-api-version
string (System.String)

Responses

Response samples

Content type
application/json
{
  • "id": "ins_4qz3nc8mfa4b8721zatgm910m1",
  • "type": "card",
  • "status": "active",
  • "card": {
    },
  • "created_at": "2026-03-20T13:32:28.4538927+00:00",
  • "updated_at": "2026-03-22T13:32:28.4538927+00:00",
  • "updated_by": "kp_4vh46hvbmnh9w2q58kcqe06jc1"
}

Suspend instrument

Authorizations:
Bearer
path Parameters
id
required
string (System.String)
header Parameters
x-api-version
string (System.String)

Responses

Response samples

Content type
application/json
{
  • "trace_id": "string",
  • "errors": [
    ]
}

Expire instrument

Authorizations:
Bearer
path Parameters
id
required
string (System.String)
header Parameters
x-api-version
string (System.String)

Responses

Response samples

Content type
application/json
{
  • "trace_id": "string",
  • "errors": [
    ]
}

Reactivate instrument

Authorizations:
Bearer
path Parameters
id
required
string (System.String)
header Parameters
x-api-version
string (System.String)

Responses

Response samples

Content type
application/json
{
  • "trace_id": "string",
  • "errors": [
    ]
}