{
"openapi": "3.0.1",
"info": {
"title": "AMCS Pay External API",
"version": "external",
"description": "# Getting Started\n\n## Document Purpose and Scope\n\nThe AMCS Pay REST API endpoints are technically described in this document. This document's goal is to instruct readers on how to interface with the AMCS Pay REST API.\n\n## About AMCS Pay\n\nAMCS Pay offers waste & recycling operators feature-rich payment services that broaden their ability to compete in a rapidly evolving marketplace. The services include card payments, ACH payments, Google Pay, Apple Pay, and many alternative payment methods. AMCS Pay supports multiple recognized industry partners such as Global Payments, ACI Worldwide etc.\n\n## Communicating to AMCS Pay API\n\nA calling application must first sign up as a Tenant. A private key is created after successful registration and will be used as the Personal Access Token (PAT).\n\nThe Tenant Private Key is then supplied during authentication and authorization through the (\"/authTokens\") endpoint. This creates a cookie, which needs to be tracked in a cookie container. Subsequent calls to the REST API will then use this cookie to authenticate and authorize requests.\n\n
"
},
"security": [
{
"cookieAuth": []
}
],
"servers": [
{
"url": "https://eu1-pay-dev.amcsplatform.com/",
"description": "AMCSPay Developer Environment"
}
],
"paths": {
"/authTokens": {
"post": {
"tags": [
"Auth"
],
"summary": "Auth by Private Key",
"description": "This endpoint is used for authentication and authorisation of a calling application by supplying the Tenant Private Key in the privateKey property. When successful, Platform.PAY.SessionToken is added to the cookie. \n\n## Request\n\n| **Property** | **Description** |\n| --- | --- |\n| PrivateKey | This is a Personal Access Token (PAT), generated during Tenant Registration. |\n\n## Response\nAdditional fields from the response, other from the one below, can be disregarded.\n\n| **Property** | **Description** |\n| --- | --- |\n| AuthResult | The authentication and authorization result. Returns \"ok\" if successful otherwise returns \"invalidCredentials\".",
"security": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayUserCredentials"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"headers": {
"Set-Cookie": {
"schema": {
"type": "string",
"example": "Platform.PAY.SessionToken=abcde12345; Path=/; HttpOnly",
"description": "Subsequent calls to the REST API will use this cookie to authenticate and authorize requests."
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayLoginResponse"
}
}
}
}
}
}
},
"/tenants/feature-flag/{flag}": {
"get": {
"tags": [
"FeatureFlag"
],
"summary": "Check Feature Flag (Own Tenant)",
"description": "Checks whether a named feature flag is currently enabled for the calling tenant — resolved from your session token, no `tenantGuid` needed. Use this to confirm which provider-resolution behavior applies to your tenant before relying on it:\n\n- **ExternalApiOmittedProviderTypeResolution** — when enabled, an omitted `providerType` on `AMCSPayInitiatePaymentRequest`/`AMCSPayImmediatePaymentRequest`/`AMCSPayRefundRequest`/`AMCSPayVaultRequest` resolves automatically to the tenant's first configured provider (and, in that case, any supplied `configurationId` is ignored).\n- **MigrateProviderFromErpToPay** — when enabled, a supplied `configurationId` is used to resolve the provider (only when `providerType` is also supplied — see the `providerType` field description on the request schemas above).",
"parameters": [
{
"name": "flag",
"in": "path",
"required": true,
"schema": {
"type": "string",
"example": "ExternalApiOmittedProviderTypeResolution",
"description": "The feature flag name to check. Relevant to provider resolution on the endpoints above: `ExternalApiOmittedProviderTypeResolution`, `MigrateProviderFromErpToPay`."
}
}
],
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayFeatureFlagResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
}
}
},
"/tenants/{tenantGuid}/feature-flag/{flag}": {
"get": {
"tags": [
"FeatureFlag"
],
"summary": "Check Feature Flag (By Tenant Id)",
"description": "Checks whether a named feature flag is currently enabled for the given tenant. Equivalent to `GET /tenants/feature-flag/{flag}`, but takes an explicit `tenantGuid` instead of resolving it from your session token — useful if you manage more than one AMCS Pay tenant and want to check a specific one.",
"parameters": [
{
"name": "tenantGuid",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid",
"example": "827b7e68-2c52-43aa-9820-b02f006fa971",
"description": "The tenant GUID to check the flag for."
}
},
{
"name": "flag",
"in": "path",
"required": true,
"schema": {
"type": "string",
"example": "ExternalApiOmittedProviderTypeResolution",
"description": "The feature flag name to check. Relevant to provider resolution: `ExternalApiOmittedProviderTypeResolution`, `MigrateProviderFromErpToPay`."
}
}
],
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayFeatureFlagResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
}
}
},
"/disbursement/AddSupplier": {
"post": {
"tags": [
"Disbursements"
],
"summary": "Add Supplier",
"description": "This endpoint is used to add supplier of disbursements.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDisbursementAddSupplierRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDisbursementAddSupplierResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/disbursement/GetSupplier": {
"post": {
"tags": [
"Disbursements"
],
"summary": "Get Supplier",
"description": "This endpoint is used to get supplier of disbursements.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDisbursementGetSupplierRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDisbursementGetSupplierResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/disbursement/AddDisbursement": {
"post": {
"tags": [
"Disbursements"
],
"summary": "Add Disbursement",
"description": "This endpoint is used add disbursement to an account using ACH, CARD, or CHEQUE.",
"security": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDisbursementAddDisbursementRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDisbursementAddDisbursementResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/pay/AptPay/GetIdentity": {
"post": {
"tags": [
"Disbursements"
],
"summary": "Get Identity",
"description": "This endpoint is used to get identity of a supplier.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSAptPayGetIdentityRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSAptPayGetIdentityResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"415": {
"description": "Unsupported Media Type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorContentResponse"
}
}
}
}
}
}
},
"/pay/AptPay/GetTransactionStatus": {
"post": {
"tags": [
"Disbursements"
],
"summary": "Get Transaction Status",
"description": "This endpoint is used to get transaction status of an disbursements.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSAptPayGetTranStatusRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSAptPayGetTranStatusResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"415": {
"description": "Unsupported Media Type",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorContentResponse"
}
}
}
}
}
}
},
"/pay/AptPay/CheckAccount": {
"post": {
"tags": [
"Disbursements"
],
"summary": "Check Account",
"description": "This endpoint is used to check if a card is eligible to receive funds.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCheckAccountRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCheckAccountResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
}
}
},
"/ExternalTransaction/OneOff": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "OneOff Payment",
"description": "This endpoint is used to initiate a payment/tokenization request via the Provider's hosted payments page (HPP). See the request/response schema below for field-level guidance, including which values `providerType` and `transactionOrigin` accept and when to use each.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayInitiatePaymentRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayInitiatePaymentResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/ImmediateOneOff": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Immediate OneOff Payment",
"description": "This endpoint is used to make an immediate bank-transfer payment/tokenization request (ACH/EFT via EftCanada). See the request/response schema below for field-level guidance.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayImmediatePaymentRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayPollPaymentResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/Poll": {
"get": {
"tags": [
"ExternalTransaction"
],
"summary": "Poll Payment",
"description": "This endpoint is used to poll AmcsPay to ask for query transactions or to read the transaction response back to AmcsPay from the payment provider using CallerTransactionId or RequestId. See the response schema below for field-level guidance, including all `transactionStatus` values. Note: this endpoint is used by non-ERP external applications — ERP payment completion is instead delivered via a separate Platform postback endpoint.",
"parameters": [
{
"name": "callerTransactionId",
"in": "query",
"required": false,
"schema": {
"type": "string",
"format": "uuid",
"example": "827b7e68-2c52-43aa-9820-b02f006fa971",
"description": "Provide exactly one of `callerTransactionId` or `requestId` — not both. Either one is sufficient to poll any payment type; `requestId` is not restricted to terminal payments."
}
},
{
"name": "requestId",
"in": "query",
"required": false,
"schema": {
"type": "string",
"format": "uuid",
"example": "827b7e68-2c52-43aa-9820-b02f006fa971",
"description": "Provide exactly one of `callerTransactionId` or `requestId` — not both. Either one is sufficient to poll any payment type; this is not restricted to terminal payments."
}
}
],
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayPollPaymentResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/Poll/GetAll": {
"get": {
"tags": [
"ExternalTransaction"
],
"summary": "Get All Payment Response Details",
"description": "This endpoint is used to get the payment transaction details based on the set filter criteria.",
"parameters": [
{
"name": "DateFrom",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "dateTimeOffset",
"example": "2023-06-28T06:46:32.910Z",
"description": "Date From is the user input in W3C-DTF Date format [YYYY-MM-DDThh:mm:ss.sTZD]. It cannot be later than the current date."
}
},
{
"name": "DateTo",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "dateTimeOffset",
"example": "2023-06-28T07:00:00.000Z",
"description": "Date To is the user input in W3C-DTF Date format [YYYY-MM-DDThh:mm:ss.sTZD]. It cannot be later than the current date or the date from value."
}
},
{
"name": "CustomerId",
"in": "query",
"schema": {
"type": "string",
"description": "The customerId associated to the customer or the ARAccountCode account code used for Accounts Receivable."
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayPollGetAllPaymentResponse"
}
}
},
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayPollGetAllPaymentResponse"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayPollGetAllPaymentResponse"
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/Poll/Updated": {
"get": {
"tags": [
"ExternalTransaction"
],
"summary": "Get Updated Payment Response Details",
"description": "This endpoint retrieves payment transactions whose payment response was last modified between `DateFrom` and the optional `DateTo` values (both inclusive). If `DateTo` is not provided, it defaults to the current time.
The period between `DateFrom` and `DateTo` (or the current time when `DateTo` is omitted) must not exceed `48 hours`. Requests exceeding this limit will return a `400 Bad Request` response.
Transactions that have never been modified are not returned, except for transactions with a failed payment status.
Results include transactions from all payment channels, are ordered by `ModifiedTimestamp` then `TransactionId` in ascending order, and contain a single record per transaction.",
"parameters": [
{
"name": "DateFrom",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "dateTimeOffset",
"example": "2023-06-28T06:46:32.910Z",
"description": "Date From is the user input in W3C-DTF Date format [YYYY-MM-DDThh:mm:ss.sTZD]. It is the inclusive lower bound of the last modified time of the payment response."
}
},
{
"name": "DateTo",
"in": "query",
"schema": {
"type": "string",
"format": "dateTimeOffset",
"example": "2023-06-28T07:00:00.000Z",
"description": "Date To is the user input in W3C-DTF Date format [YYYY-MM-DDThh:mm:ss.sTZD]. It is the inclusive upper bound of the last modified time of the payment response and defaults to the current time. It cannot be earlier than the date from value, and the window between Date From and Date To (or the current time when omitted) cannot exceed 48 hours."
}
},
{
"name": "CustomerId",
"in": "query",
"schema": {
"type": "string",
"description": "The customerId associated to the customer or the ARAccountCode account code used for Accounts Receivable."
}
},
{
"name": "PaymentType",
"in": "query",
"schema": {
"enum": [
"CARD",
"ACH",
"GOOGLEPAY",
"APPLEPAY",
"EFT",
"BECS"
],
"type": "string",
"example": "CARD",
"description": "Only return payments of this payment type."
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayPollGetUpdatedPaymentResponse"
}
}
},
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayPollGetUpdatedPaymentResponse"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayPollGetUpdatedPaymentResponse"
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/Refund": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Refund Payment",
"description": "This endpoint is used to request a refund for a Card, ACH (US), or EFT/PAD (Canada) payment already processed via AmcsPay, including payments made via Stripe. Full and partial refunds are both supported — only the refund amount changes, the request shape is otherwise identical. See the request/response schema below for field-level guidance, including which values `providerType` and `transactionOrigin` accept and when to use each.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayRefundRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayRefundResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/Vault": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Vault Payment",
"description": "This endpoint is used to make an AutoPay/repeat payment using a previously saved profile (Card, ACH (US), or EFT/PAD (Canada)) via AmcsPay, including payments made via Stripe. See the request/response schema below for field-level guidance, including the ACH=USD/EFT=CAD currency pairing required for new Stripe payments.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayVaultRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayVaultResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/Terminal": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Terminal Payment",
"description": "This endpoint is used to make a card payment using a terminal device (TerminalPay, ElavonTerminalPay, or Stripe Terminal). See the request/response schema below for field-level guidance, including which values `providerType` accepts.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayTerminalRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayTerminalResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/TerminalAbort": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Terminal Payment Abort",
"description": "This endpoint is a signal used to abort a card payment requested using a terminal device (TerminalPay, ElavonTerminalPay, or Stripe Terminal). See the request schema below for field-level guidance, including which values `providerType` accepts.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayTerminalAbortRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayInfoResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/DeleteToken": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Delete Token",
"description": "This endpoint is used to delete Card Tokens from the vault for both AMCS Pay and Payment provider gateway. See the request schema below for field-level guidance, including which values `providerType` and `transactionOrigin` accept and when to use each.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDeleteProfileRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDeleteProfileRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDeleteProfileRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDeleteProfileResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDeleteProfileResponse"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayDeleteProfileResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/TokenVault": {
"get": {
"tags": [
"ExternalTransaction"
],
"summary": "Get Token Vault",
"description": "This endpoint is used to retrieve the active saved payment profiles (tokens) stored for a customer, including saved Card, SEPA, PayTo, BECS, ACH (US), and EFT/PAD (Canada) profiles. See `AMCSPayTokenVaultResponse` below for the `paymentTypeName`/`isDirectDebit`/`maskedAccountNumber` shape returned for each.",
"parameters": [
{
"name": "customerId",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "The customerId associated to the customer. Required — a 400 Bad Request is returned if omitted or blank."
}
}
],
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayTokenVaultResponse"
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/SetDefault": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Set Default Token",
"description": "This endpoint is used to mark a customer's saved payment profile (token) as their default for future Vault payments.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPaySetDefaultRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": true,
"description": "Indicates the default payment profile was updated successfully."
}
}
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/GetServiceFee": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Get ServiceFee",
"description": "This endpoint is used to get the service fee.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayGetServiceFeeRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayGetServiceFeeResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/RetryTransaction": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Retry Transaction",
"description": "This endpoint is used to retry a previously failed transaction via AmcsPay",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayRetryTransactionRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayRetryTransactionResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ExternalTransaction/CreateCustomer": {
"post": {
"tags": [
"ExternalTransaction"
],
"summary": "Create Customer",
"description": "This endpoint is used to create a new customer and optionally create a payment account for that customer with the specified payment provider.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCreateCustomerRequest"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCreateCustomerRequest"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCreateCustomerRequest"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCreateCustomerResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayCreateCustomerResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCS.Pay.Entity.Api.Payments.ExternalTransaction.ApiErrorResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AMCS.Pay.Entity.Api.Payments.ExternalTransaction.ApiErrorResponse"
}
}
}
},
"500": {
"description": "Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCS.Pay.Entity.Api.Payments.ExternalTransaction.ApiErrorResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/AMCS.Pay.Entity.Api.Payments.ExternalTransaction.ApiErrorResponse"
}
}
}
}
}
}
},
"/Mobills/Ivr/Pay/GetCustomerInvoiceDetails": {
"post": {
"tags": [
"Mobills IVR"
],
"summary": "Get Customer Invoice Details",
"description": "This endpoint creates a record in payment transaction table.\n\n## Request\n\n| Property | Description |\r\n| ------------------------- | ------------------------------------------------------------------------|\r\n| CustomerARCode | The account code used for Accounts Receivable. (AMCS will provide the account ARCode) |\r\n| Channel | Channel can be only MOBILL OR IVR | \n\n ## Response\n\n| Property | Description |\r\n| ------------------------- | ------------------------------------------------------------------------|\r\n| CustomerGuid | The GUID associated to the customer. |\r\n| CustomerName |The customer's name. |\r\n| CustomerBalance |The amount associated to the payment. |\r\n| CustomerCurrency | Customer Currency associated with the Customer account. |\r\n| InvoiceDetails |It will show all the invoices associated with the account |\r\n| InvoiceNumber |The invoice number associated to the invoice. Filterable. |\r\n| InvoiceGUID |The GUID associated to the invoice. |\r\n| InvoiceDate |The invoiceDate associated to the invoice in ISO format (YYYY-MM-DD). |\r\n| ZipCode |Zip code is associated with the account |\r\n| InvoiceDueDate |The dueDate associated to the invoice in ISO format (YYYY-MM-DD). |\r\n| UnallocatedAmount |The Unallocated Amount on the customers account. |\r\n| InvoiceCurrency |Invoice Currency asscoaited with the customer account |\r\n| TransactionReference |Transaction Reference associated with account |\r\n| ZipCode |ZipCode associated with the account address |\r\n| InvoiceDate |The invoiceDate associated to the invoice in ISO format (YYYY-MM-DD). |\r\n| LastPaymentDate |When the last payment was made |\r\n| MakePaymentLink |It shows the payment link (if any invoice available) |\r\n| IsActive |Whether the customer is active |\r\n| MobillsEnrollment |Whether the mobills enrollment is active. |\r\n| GUID |Guid associated with the account",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayMobillsIvrRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayMobillsIvrResponse"
}
}
}
},
"204": {
"description": "No Content",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorContentResponse"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/payACIInteractiveVoiceResponse": {
"post": {
"tags": [
"Mobills IVR"
],
"summary": "Post Back IVR Response",
"description": "This endpoint updates an existing record in the payment transaction table and creates a record in the Amcs-Pay Database.\n\n## Request\n\n| Property | Description |\r\n| ------------------------- | ------------------------------------------------------------------------|\r\n| TransactionReference | The Transaction Reference can get from the GetCustomerInvoce API. |\r\n| PaymentAmount | The payment amount associated to the payment request. |\r\n| Currency | Currency associated with the Customer account.|\r\n| Timestamp | The time stamp associated to the response payload. |\r\n| TransactionPaymentType | Transaction payment type can be any of \"CARD\", \"ACH\". |\r\n| IsIVR |IsIVR is a flag and should be set to true.. |\r\n| Code |The codes for successfully processed transactions. |\r\n| Description |Description associated with the Code. |\r\n| Bin |The first six digits of the card.number. |\r\n| Last4Digits |Last 4 digits of the \"Credit\", \"Debit\" Card. |\r\n| PaymentType |Payment Type DB, Debit: Debits the account of the end customer and credits the merchant account. |\r\n| Holder |Holder of the credit card account. |\r\n| ExpiryMonth | The expiry month of the card. |\r\n| ExpiryYear |The expiry year of the card. |\r\n| ConfirmationNumber |The Confirmation Number (payment reference) data sent by the provider associated to the original payment response.| \n\n ## Response\n\n| Property | Description |\r\n| ------------------------- | ------------------------------------------------------------------------|\r\n| |\r\n| Response |It returns the success response.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayPostBackIvrRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayIvrResponse"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
},
"/ivr/pay/getCustomerAccountDetail": {
"post": {
"tags": [
"Mobills IVR"
],
"summary": "Get Customer Account Detail",
"description": "If the credit balance flag is false, then this endpoint initiates a payment for the IVR and returns the customer's details. If it's true, then it returns the customer's name along with the available credit balance in the account.\n\n## Request\n\n| Property | Description |\r\n| ------------------------- | ------------------------------------------------------------------------|\r\n| CustomerARCode | The account code used for Accounts Receivable. (AMCS will provide the account ARCode) |\r\n| Channel | Channel can be only MOBILL OR IVR. |\r\n| Amount | Amount that customer wants to make a payment. |\r\n| CreditBalance | The credit balance flag can be true or false. | \n\n ## Response\n\n| Property | Description |\r\n| ------------------------- | ------------------------------------------------------------------------|\r\n| CustomerId | The account code used for Accounts Receivable. (AMCS will provide the account ARCode) |\r\n|CustomerGuid | The GUID associated to the customer. |\r\n| CustomerName |The customer's name. |\r\n| CustomerBalance |The amount associated to the payment.|\r\n| CustomerCurrency | Customer Currency associated with the Customer account.|\r\n| CreditBalance |The Credit Balance available balance.|\r\n| ZipCode |ZipCode associated with the account address |\r\n| LastPaymentAmount |what was the last payment amount. |\r\n| LastPaymentDate |When the last payment was made. |\r\n| TransactionReference |Transaction Reference associated with account.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayAccountDetailIvrRequest"
}
}
}
},
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayAccountDetailIvrResponse"
}
}
}
},
"204": {
"description": "No Content",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorContentResponse"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AMCSPayErrorResponse"
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"cookieAuth": {
"type": "apiKey",
"in": "cookie",
"name": "Platform.PAY.SessionToken"
}
},
"schemas": {
"AMCSPayUserCredentials": {
"type": "object",
"required": [
"privateKey"
],
"properties": {
"privateKey": {
"type": "string",
"nullable": false,
"example": "1zEFtwJQE0cmKUE3AvnzBbm5"
}
},
"additionalProperties": false
},
"AMCSPayLoginResponse": {
"type": "object",
"properties": {
"authResult": {
"type": "string",
"nullable": false,
"example": "ok"
},
"userName": {
"type": "string",
"nullable": true,
"example": "ADMIN01"
},
"userIdentity": {
"type": "string",
"nullable": true,
"example": "ADMIN"
},
"sysUserId": {
"type": "integer",
"format": "int32",
"nullable": true,
"example": 3
},
"userGuid": {
"type": "string",
"format": "uuid",
"nullable": true,
"example": "607e37cd-4f51-4148-af23-4459b74fc3b2"
},
"companyOutletId": {
"type": "integer",
"format": "int32",
"nullable": true,
"example": 10
},
"companyOutletGuid": {
"type": "string",
"format": "uuid",
"nullable": true,
"example": "5feaaae5-7733-4e45-ac39-87d46cf138e0"
},
"stayLoggedIn": {
"type": "boolean",
"example": false,
"nullable": true
}
}
},
"AMCSPayFeatureFlagResponse": {
"type": "object",
"properties": {
"tenantId": {
"type": "string",
"format": "uuid",
"example": "827b7e68-2c52-43aa-9820-b02f006fa971",
"description": "The tenant GUID this result applies to."
},
"featureFlag": {
"type": "string",
"example": "ExternalApiOmittedProviderTypeResolution",
"description": "The feature flag that was checked, echoed back by name."
},
"isEnabled": {
"type": "boolean",
"example": true,
"description": "Whether the flag is currently enabled for this tenant."
}
}
},
"AMCSPayMobillsIvrRequest": {
"type": "object",
"required": [
"customerARCode",
"channel",
"amount"
],
"properties": {
"customerARCode": {
"type": "string",
"example": "ACC1007",
"nullable": false
},
"channel": {
"type": "string",
"example": "MOBILL / IVR",
"nullable": false
}
},
"additionalProperties": false
},
"AMCSPayAccountDetailIvrRequest": {
"type": "object",
"required": [
"customerARCode",
"channel",
"amount"
],
"properties": {
"customerARCode": {
"type": "string",
"example": "ACC1007",
"nullable": false
},
"channel": {
"type": "string",
"example": "MOBILL / IVR",
"nullable": false
},
"amount": {
"type": "integer",
"example": 10,
"nullable": true
},
"creditBalance": {
"type": "boolean",
"example": true,
"nullable": true
}
},
"additionalProperties": false
},
"AMCSPayPostBackIvrRequest": {
"type": "object",
"required": [
"transactionReference",
"paymentAmount",
"currency",
"timestamp",
"transactionPaymentType",
"isIVR",
"code",
"description",
"bin",
"last4Digits",
"paymentType",
"holder",
"expiryMonth",
"expiryYear",
"confirmationNumber"
],
"properties": {
"transactionReference": {
"type": "string",
"format": "uuid",
"nullable": false,
"example": "c4521490-c0dd-40e5-94c6-afe90073aa1b"
},
"paymentAmount": {
"type": "integer",
"example": 10.20,
"nullable": false
},
"currency": {
"type": "string",
"example": "EUR",
"nullable": false
},
"timestamp": {
"type": "string",
"format": "datetime",
"example": "2021-10-21-17:20:30",
"nullable": false
},
"transactionPaymentType": {
"type": "string",
"example": "Credit Card",
"nullable": false
},
"isIVR": {
"type": "boolean",
"example": "true",
"nullable": false
},
"code": {
"type": "string",
"example": "000.100.112",
"nullable": false
},
"description": {
"type": "string",
"example": "Request successfully processed in 'Merchant In Connect",
"nullable": false
},
"bin": {
"type": "string",
"example": "545454",
"nullable": false
},
"last4Digits": {
"type": "string",
"example": "5454",
"nullable": false
},
"paymentType": {
"type": "string",
"example": "DB",
"nullable": false
},
"holder": {
"type": "string",
"example": "SK_Test",
"nullable": false
},
"expiryMonth": {
"type": "string",
"example": "06",
"nullable": false
},
"expiryYear": {
"type": "string",
"example": "2034",
"nullable": false
},
"confirmationNumber": {
"type": "string",
"format": "uuid",
"nullable": false,
"example": "c4521490-c0dd-40e5-94c6-afe90073aa1b"
}
},
"additionalProperties": false
},
"AMCSPayTerminalRequest": {
"type": "object",
"required": [
"requestId",
"providerType",
"callerIdentifier",
"terminalId",
"transactionAmount",
"cardEntryMode",
"requestType"
],
"properties": {
"requestType": {
"type": "string",
"enum": [
"OneOffPayment"
],
"nullable": false,
"description": "Request type for this endpoint. Always \"OneOffPayment\"."
},
"providerType": {
"type": "string",
"enum": [
"TerminalPay",
"ElavonTerminalPay",
"Stripe"
],
"nullable": false,
"example": "TerminalPay",
"description": "The terminal payment provider.\n\n- **TerminalPay** — Verifone terminal device payments.\n- **ElavonTerminalPay** — Elavon terminal device payments.\n- **Stripe** — Stripe Terminal (card-present) payments."
},
"callerIdentifier": {
"type": "string",
"example": "client-name",
"nullable": false,
"description": "The Caller Identification associated to the Payment request."
},
"requestId": {
"type": "string",
"format": "uuid",
"example": "0d920c06-b568-442b-94cc-afe60176708f",
"nullable": false,
"description": "The Caller supplied Request GUID associated to the Payment request."
},
"terminalId": {
"type": "string",
"example": "450-829-523",
"nullable": false,
"description": "The Terminal Id is the verifone terminal identity like a device serial number or a friendly name."
},
"transactionAmount": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayAmount",
"nullable": false,
"description": "The Amount associated to the payment request."
},
"cardEntryMode": {
"type": "string",
"enum": [
"Rfid",
"Keyed",
"Manual",
"File",
"Scanned",
"MagStripe",
"Icc",
"SynchronousIcc",
"Tapped",
"Contactless",
"Mobile"
],
"nullable": false,
"example": "Keyed",
"description": "The card entry mode of the payment instrument information (how the card details were captured on the terminal device)."
},
"emailAddress": {
"type": "string",
"nullable": true,
"example": "amcspayuser@email.com",
"description": "The e-mail address associated to the payment requestor. Optional."
}
},
"additionalProperties": false
},
"AMCSPayTerminalAbortRequest": {
"type": "object",
"required": [
"requestId",
"providerType",
"callerIdentifier",
"terminalId",
"requestType"
],
"properties": {
"requestType": {
"type": "string",
"enum": [
"Abort"
],
"nullable": false,
"description": "Request type for this endpoint. Always \"Abort\"."
},
"providerType": {
"type": "string",
"enum": [
"TerminalPay",
"ElavonTerminalPay",
"Stripe"
],
"nullable": false,
"example": "TerminalPay",
"description": "The terminal payment provider.\n\n- **TerminalPay** — Verifone terminal device payments.\n- **ElavonTerminalPay** — Elavon terminal device payments.\n- **Stripe** — Stripe Terminal (card-present) payments."
},
"callerIdentifier": {
"type": "string",
"example": "client-name",
"nullable": false,
"description": "The Caller Identification associated to the Payment request."
},
"requestId": {
"type": "string",
"format": "uuid",
"example": "0d920c06-b568-442b-94cc-afe60176708f",
"nullable": false,
"description": "The Caller supplied Request GUID associated to the Payment request."
},
"terminalId": {
"type": "string",
"example": "450-829-523",
"nullable": false,
"description": "The Terminal Id is the verifone terminal device serial number."
},
"emailAddress": {
"type": "string",
"nullable": true,
"example": "amcspayuser@email.com",
"description": "The e-mail address associated to the abort request. Optional."
},
"reason": {
"type": "string",
"example": "Cancelled By POS",
"nullable": true,
"description": "The reason associated to the abort request. Required when `providerType` is `TerminalPay`; optional for `ElavonTerminalPay` and `Stripe`."
},
"originalRequestId": {
"type": "string",
"nullable": true,
"description": "The Caller supplied Request GUID associated to the original terminal payment request being aborted."
}
},
"additionalProperties": false
},
"AMCSPayTerminalAbortResponse": {
"type": "object",
"properties": {
"callerTransactionId": {
"format": "uuid",
"example": "00000000-0000-0000-0000-000000000000",
"type": "string"
},
"amcsPayReferenceId": {
"type": "string",
"format": "uuid",
"nullable": true,
"example": "c4521490-c0dd-40e5-94c6-afe90073aa1b"
}
}
},
"AMCSPayCheckAccountRequest": {
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "number",
"nullable": false,
"example": 10,
"description": "Amount to be disbursed."
},
"currency": {
"type": "string",
"nullable": false,
"example": "CAD",
"description": "Currency to be used. This is expressed as a three-letter currency code (ie., CAD for Canadian dollars, USD for United States Dollars, etc.)"
},
"disbursementNumber": {
"type": "string",
"example": "5333619503715702",
"description": "Required if instrumentId is not defined. Card number or account number"
},
"instrumentId": {
"type": "string",
"example": "",
"description": "Required if disbursementNumber is not defined. The Instrument ID"
},
"program": {
"type": "string",
"enum": [
"B2B",
"B2C",
"G2C",
"PayrollAndPension",
"RapidMerchantSettlement"
],
"example": "",
"description": "Optional. Program ID. This is a code to denote the use case for product (B2B, B2C, G2C, PayrollAndPension, RapidMerchantSettlement)"
},
"expirationDate": {
"type": "string",
"example": null,
"description": "Optional. The card expiration date"
}
}
},
"AMCSPayCheckAccountResponseData": {
"type": "object",
"properties": {
"receiving": {
"type": "boolean",
"example": true,
"description": "This indicates if the card is eligible to receive funds. This will return a value of either true or false."
},
"sending": {
"type": "boolean",
"example": false,
"description": "This indicates if the card is eligible to send funds. This will return a value of either true or false."
},
"network": {
"type": "string",
"example": "MASTERCARD",
"description": "The network the transaction takes place over (example: MasterCard)"
},
"funds_availability": {
"type": "string",
"example": "IMMEDIATE",
"description": "The duration of time required to send funds to the Payee's account"
},
"type": {
"type": "string",
"example": "DEBIT",
"description": "Type of card used for disbursement (ie., debit, credit, etc.)"
},
"country": {
"type": "string",
"example": "CAN",
"description": "The country in which the card was issued"
},
"currency": {
"type": "string",
"example": "CAD",
"description": "The currency available on the card."
}
}
},
"AMCSPayCheckAccountResponse": {
"type": "object",
"properties": {
"Data": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayCheckAccountResponseData"
},
"Error": {
"type": "array",
"nullable": true,
"description": "Contains the error description of the response",
"items": {
"$ref": "#/components/schemas/AMCSAptPayErrorDataResponse"
}
},
"IsSuccess": {
"type": "boolean",
"nullable": false,
"description": "Returns true if it doesn't contains error; False if it contains error"
}
}
},
"AMCSPayGetServiceFeeRequest": {
"type": "object",
"required": [
"paymentType",
"currency",
"principalAmount"
],
"properties": {
"paymentType": {
"type": "string",
"enum": [
"CARD",
"ACH",
"EFT"
],
"nullable": false,
"description": "Payment Type can be any of \"CARD\", \"ACH\", \"EFT\".",
"example": "CARD"
},
"currency": {
"type": "string",
"example": "USD",
"nullable": false,
"description": "The currency associated to the payment request."
},
"principalAmount": {
"type": "integer",
"example": 10,
"nullable": false,
"description": "The base amount associated to the payment request (This field is optional for Tokenization)."
}
}
},
"AMCSPayInitiatePaymentRequest": {
"type": "object",
"required": [
"requestType",
"paymentType",
"transactionOrigin",
"transactionAmount",
"callerIdentifier",
"requestId"
],
"properties": {
"requestType": {
"type": "string",
"enum": [
"OneOffPayment",
"Tokenization"
],
"nullable": false,
"description": "Determines what kind of operation this request performs.\n\n- **OneOffPayment** — Process a single payment via the provider's hosted payment page (HPP), without saving payment details for future reuse.\n- **Tokenization** — Capture and store payment details via the HPP for future Vault payments, without processing a payment now."
},
"paymentType": {
"type": "string",
"enum": [
"CARD",
"ACH",
"EFT",
"PAYTO",
"BECS",
"CREDIT_TRANSFER"
],
"nullable": false,
"description": "The payment instrument type for this request.\n\n- **CARD** — Card payment (credit/debit).\n- **ACH** — US bank account transfer (Automated Clearing House). When `providerType` is `Stripe`, must be paired with `currency: USD`.\n- **EFT** — Canadian bank account transfer (Electronic Funds Transfer). When `providerType` is `Stripe`, must be paired with `currency: CAD`.\n- **PAYTO** — Australian PayTo direct debit. For a `OneOffPayment` request, `canStoreProfile` must also be `true`.\n- **BECS** — Australian/NZ BECS Direct Debit.\n- **CREDIT_TRANSFER** — A provider-generated bank transfer / virtual account payment (e.g. Stripe VBAN). Not supported for Stripe on this endpoint — for Stripe, `CREDIT_TRANSFER` is only accepted on `POST /ExternalTransaction/Refund`; VBAN/CREDIT_TRANSFER accounts are created via `POST /ExternalTransaction/CreateCustomer` instead."
},
"transactionOrigin": {
"type": "string",
"enum": [
"MOTO",
"ECOM"
],
"nullable": false,
"description": "Determines whether the payment was operator-initiated or customer-initiated — this affects card scheme compliance classification.\n\n- **MOTO** — Mail Order / Telephone Order. Use when an AMCS operator keys in the payment on the customer's behalf (e.g. a phone payment). This is a Merchant-Initiated Transaction (MIT).\n- **ECOM** — E-commerce. Use when the customer enters their own payment details through a self-service channel (e.g. an online portal). This is a Customer-Initiated Transaction (CIT).\n\nUsing the wrong value can misclassify liability under card network compliance rules. Required for Stripe — the APG/EFT Canada exemption from this requirement does not apply to Stripe."
},
"callerIdentifier": {
"type": "string",
"nullable": false,
"description": "The Caller Identification associated to the Payment request."
},
"requestId": {
"type": "string",
"format": "uuid",
"example": "00000000-0000-0000-0000-000000000000",
"nullable": false,
"description": "The Caller supplied GUID associated to the Payment request."
},
"providerType": {
"type": "string",
"enum": [
"ACICards",
"ACIElectronic",
"Heartland",
"MerchantPartners",
"PaymentExpress",
"Realex",
"EftCanada",
"Stripe"
],
"nullable": true,
"description": "The payment provider used to process this request. Optional — if omitted, AMCS Pay resolves it automatically from the tenant's configured payment provider(s), using the first configured provider; `configurationId` is ignored in that case, even if supplied. This is convenient for the common case of a tenant with exactly one enabled provider; for a tenant with more than one enabled provider (e.g. mid-migration between bank-transfer providers), which one gets picked depends on configuration order, not business intent — supply this field explicitly if you need a specific provider. You can check whether this automatic resolution is active for your tenant via `GET /tenants/feature-flag/ExternalApiOmittedProviderTypeResolution`.\n\n- **ACICards** — ACI Worldwide card processing.\n- **ACIElectronic** — ACI Worldwide ACH/electronic processing.\n- **Heartland** — Heartland Payment Systems.\n- **MerchantPartners** — Merchant Partners.\n- **PaymentExpress** — Payment Express (Windcave).\n- **Realex** — Realex/Global Payments.\n- **EftCanada** — EFT Canada bank transfers.\n- **Stripe** — Stripe card processing. `transactionOrigin` is required when using Stripe — the APG/EFT Canada exemption from that requirement does not apply."
},
"configurationId": {
"type": "string",
"format": "uuid",
"example": "928a3c6c-b80d-493d-a6aa-0fb8d2579860",
"nullable": true,
"description": "The configuration id associated to the Tenant. Optional — only takes effect when `providerType` is also explicitly supplied and the tenant's provider-configuration migration feature is enabled (flag `MigrateProviderFromErpToPay` — check via `GET /tenants/feature-flag/MigrateProviderFromErpToPay`); if `providerType` is omitted, this field is ignored and the request resolves via `providerType`'s automatic first-match behavior instead (flag `ExternalApiOmittedProviderTypeResolution`), regardless of whether `configurationId` was supplied."
},
"transactionAmount": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayAmount",
"nullable": false,
"description": "The amount associated to the payment request."
},
"canStoreProfile": {
"type": "boolean",
"example": false,
"nullable": true,
"description": "Whether to store the payment profile to the vault for future Vault payments. Optional — defaults to false (profile is not stored) if omitted. Must be `true` when `providerType` is `Stripe` and `paymentType` is `PAYTO` for a `OneOffPayment` request — omitting it or setting it to `false` is rejected in that case."
},
"completionURL": {
"type": "string",
"format": "url",
"example": "",
"nullable": true,
"description": "The Completion URL associated to the customer mandate for webhooks. Optional."
},
"redirectURL": {
"type": "string",
"format": "url",
"example": "",
"nullable": true,
"description": "The Redirect URL associated to the customer mandate for redirection. Optional."
},
"addresses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayAddress"
},
"nullable": true,
"description": "The list of addresses associated to the customer mandate for 3DS transactions. Optional unless 3DS is enabled, in which case a Billing address is mandatory."
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayContact"
},
"nullable": true,
"description": "The contacts associated to the customer mandate for 3DS transactions. Optional unless 3DS is enabled, in which case Email and Mobile contact types are both mandatory."
},
"customerInfo": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayCustomerInfo",
"nullable": true,
"description": "The details associated to the customer mandate for risk assessment. Conditionally required for making payments using ACI Cards; optional otherwise."
}
}
},
"AMCSPayImmediatePaymentRequest": {
"type": "object",
"required": [
"requestType",
"paymentType",
"transactionAmount",
"callerIdentifier",
"requestId",
"customerInfo",
"bankInfo"
],
"properties": {
"requestType": {
"type": "string",
"enum": [
"OneOffPayment",
"Tokenization"
],
"nullable": false,
"description": "Determines what kind of operation this request performs.\n\n- **OneOffPayment** — Process a single bank-transfer payment immediately.\n- **Tokenization** — Capture and store bank account details for future Vault payments, without processing a payment now."
},
"paymentType": {
"type": "string",
"enum": [
"ACH",
"EFT"
],
"nullable": false,
"description": "The payment instrument type for this request.\n\n- **ACH** — US bank account transfer (Automated Clearing House).\n- **EFT** — Canadian bank account transfer (Electronic Funds Transfer)."
},
"callerIdentifier": {
"type": "string",
"nullable": false,
"description": "The Caller Identification associated to the Payment request."
},
"requestId": {
"type": "string",
"format": "uuid",
"example": "00000000-0000-0000-0000-000000000000",
"nullable": false,
"description": "The Caller supplied GUID associated to the Payment request."
},
"providerType": {
"type": "string",
"enum": [
"EftCanada"
],
"nullable": true,
"description": "The payment provider used to process this request. This endpoint only supports \"EftCanada\". Optional — if omitted, AMCS Pay resolves it automatically from the tenant's configured payment provider(s), using the first configured provider; `configurationId` is ignored in that case, even if supplied. This is convenient for the common case of a tenant with exactly one enabled provider; for a tenant with more than one enabled provider (e.g. mid-migration between bank-transfer providers), which one gets picked depends on configuration order, not business intent — supply this field explicitly if you need a specific provider. You can check whether this automatic resolution is active for your tenant via `GET /tenants/feature-flag/ExternalApiOmittedProviderTypeResolution`."
},
"configurationId": {
"type": "string",
"format": "uuid",
"example": "928a3c6c-b80d-493d-a6aa-0fb8d2579860",
"nullable": true,
"description": "The configuration id associated to the Tenant. Optional — only takes effect when `providerType` is also explicitly supplied and the tenant's provider-configuration migration feature is enabled (flag `MigrateProviderFromErpToPay` — check via `GET /tenants/feature-flag/MigrateProviderFromErpToPay`); if `providerType` is omitted, this field is ignored and the request resolves via `providerType`'s automatic first-match behavior instead (flag `ExternalApiOmittedProviderTypeResolution`), regardless of whether `configurationId` was supplied."
},
"transactionAmount": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayAmount",
"nullable": false,
"description": "The amount associated to the payment request."
},
"addresses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayAddress"
},
"nullable": true,
"description": "The list of addresses associated to the customer mandate for 3DS transactions. Optional unless 3DS is enabled, in which case a Billing address is mandatory."
},
"contacts": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AMCSPayContact"
},
"nullable": true,
"description": "The contacts associated to the customer mandate for 3DS transactions. Optional unless 3DS is enabled, in which case Email and Mobile contact types are both mandatory."
},
"customerInfo": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayCustomerInfo",
"nullable": true,
"description": "The details associated to the customer mandate for risk assessment. Required for making payments using EftCanada — specifically, `customerName` must be non-empty."
},
"bankInfo": {
"type": "object",
"$ref": "#/components/schemas/AMCSPayBankInfo",
"nullable": true,
"description": "The bank account details for this request. Required — supply `ach` when paymentType is ACH, or `eft` when paymentType is EFT."
}
}
},
"AMCSAptPayAddIdentityRequest": {
"type": "object",
"required": [
"individual",
"email",
"clientId"
],
"properties": {
"individual": {
"type": "boolean",
"nullable": false,
"description": "If this is an individual, set this parameter to True. If this is a business entity, set this to False.\n Default = true",
"example": true
},
"name": {
"type": "string",
"nullable": true,
"description": "