{ "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": "
This is required if individual is set to false
\n\nThe business entity name", "example": "TestStevenK" }, "firstName": { "type": "string", "nullable": true, "description": "
This is required if individual is set to true
\n\nThe individual's first name (max 50 characters)", "example": "Steven" }, "middleName": { "type": "string", "nullable": true, "description": "The individual's middle name.", "example": "Oliver" }, "lastName": { "type": "string", "nullable": true, "description": "
This is required if individual is set to true
\n\nThe individual's last name.", "example": "Kyamko" }, "dateOfBirth": { "type": "string", "nullable": true, "description": "
This is required if individual is set to true
\n\nThe individual’s date of birth. This is represented as YYYY-MM-DD.", "example": "2000-01-01" }, "phone": { "type": "string", "nullable": true, "description": "The contact's phone number.", "example": "+639201001111" }, "occupation": { "type": "string", "nullable": true, "description": "The occupation of the person or individual", "example": "Janitor" }, "street": { "type": "string", "nullable": true, "description": "The street address of the person or individual", "example": "Street 1" }, "streetLine2": { "type": "string", "nullable": true, "description": "The street line address of the person or individual", "example": "Street 2" }, "city": { "type": "string", "nullable": true, "description": "The city address of the person or individual", "example": "Toronto" }, "zip": { "type": "string", "nullable": true, "description": "The zip code or address of the person or individual", "example": "L4K 0J7" }, "country": { "type": "string", "nullable": false, "description": "
This is required if individual is set to false
\n\nThe country address of the person or individual", "example": "CA" }, "province": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe province of the person or address", "example": "ON" }, "email": { "type": "string", "nullable": false, "description": "The email address of the person or individual", "example": "jametests@gmail.com" }, "dbaName": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe dba name", "example": "Steven" }, "url": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe Website Address/URL, if applicable", "example": "sampleurl.com" }, "typeOfBusiness": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe type of business this is. This will be defined as one of the following below:\n- Corporation\n- LLC\n- Sole Proprietorship\n- Medical or legal corporation\n- Association/Estate/Trust\n- Partnership\n- Tax Exempt Organization (501c)\n- Charity\n- International organization\n- Government/Municipality\n- Not for Profit\n- Trust\n- Professional Association", "example": "Corporation" }, "dateOfIncorporation": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe date of incorporation", "example": "2000-01-01" }, "countryOfRegistration": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe country of registration of the person or individual", "example": "CA" }, "provinceOfRegistration": { "type": "string", "nullable": true, "description": "
This is required if individual is set to false
\n\nThe province of the person or individual", "example": "ON" }, "businessTaxId": { "type": "string", "nullable": true, "description": "The business Tax ID", "example": "12312" }, "clientId": { "type": "string", "nullable": false, "description": "The client ID", "example": "12312" } } }, "AMCSAptPayAddIdentityResponse": { "type": "object", "properties": { "Data": { "type": "object", "nullable": true, "$ref": "#/components/schemas/AMCSAptPayBasicDataResponse" }, "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" } } }, "AMCSAptPayGetIdentityRequest": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "number", "nullable": false, "description": "The identity id of the request", "example": "123" } } }, "AMCSAptPayGetIdentityResponse": { "type": "object", "properties": { "Data": { "type": "object", "nullable": true, "$ref": "#/components/schemas/AMCSAptPayGetIdentityDataResponse" }, "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" } } }, "AMCSAptPayGetTranStatusRequest": { "type": "object", "required": [ "transactionId" ], "properties": { "transactionId": { "type": "string", "nullable": false, "description": "The transaction id of the request", "example": "mi5gkghovd-0119-qgdgtosuxd7ehxbe5h2oiwae" } } }, "AMCSPayMobillsIvrRequestDetail": { "required": [ "CustomerId", "ExternalChannel" ], "type": "object", "properties": { "CustomerId": { "maxLength": 7, "type": "string", "nullable": false }, "ExternalChannel": { "type": "string", "nullable": false } } }, "AMCSPayAccountDetailIvrResponse": { "type": "object", "properties": { "creditBalanceAsTrue": { "type": "array", "items": { "$ref": "#/components/schemas/AMCSPayAccountDetailIvrResponseCreditBalanceResponse" }, "nullable": true }, "creditBalanceAsFalse": { "type": "array", "items": { "$ref": "#/components/schemas/AMCSPayAccountDetailIvrResponseCreditBalanceAsFalse" }, "nullable": true } } }, "AMCSPayAccountDetailIvrResponseCreditBalanceResponse": { "type": "object", "properties": { "customerid": { "format": "string", "type": "string", "example": "ACC1001", "nullable": false }, "customerName": { "type": "string", "example": "Mark Smith", "nullable": false }, "creditBalance": { "type": "integer", "example": "200.00", "nullable": true } } }, "AMCSPayAccountDetailIvrResponseCreditBalanceAsFalse": { "type": "object", "properties": { "customerid": { "format": "uuid", "type": "string", "example": "ACC1001", "nullable": false }, "customerGuid": { "format": "uuid", "type": "string", "example": "00000000-0000-0000-0000-000000000000", "nullable": false }, "customerName": { "type": "string", "example": "Mark Smith", "nullable": false }, "customerBalance": { "type": "integer", "example": "120.95", "nullable": true }, "customerCurrency": { "type": "string", "example": "EUR" }, "creditBalance": { "type": "integer", "example": "200.00", "nullable": true }, "zipCode": { "type": "string", "example": "00501", "nullable": true }, "lastPaymentAmount": { "type": "string", "example": "155.50", "nullable": true }, "lastPaymentDate": { "type": "string", "example": "YYYY-MM-DD", "nullable": true }, "transactionReference": { "type": "string", "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "nullable": true } } }, "AMCSPayMobillsIvrResponse": { "type": "object", "properties": { "customerGuid": { "format": "uuid", "type": "string", "example": "00000000-0000-0000-0000-000000000000", "nullable": false }, "customerName": { "type": "string", "example": "Mark Smith", "nullable": false }, "customerBalance": { "type": "integer", "example": "120.95", "nullable": true }, "customerCurrency": { "type": "string", "example": "EUR" }, "invoiceDetails": { "type": "object", "$ref": "#/components/schemas/AMCSPayInvoiceDetails" }, "transactionReference": { "type": "string", "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "nullable": true }, "zipCode": { "type": "string", "example": "00501", "nullable": true }, "dueDate": { "type": "string", "example": "YYYY-MM-DD", "nullable": true }, "invoiceDate": { "type": "string", "example": "YYYY-MM-DD", "nullable": true }, "lastPaymentDate": { "type": "string", "example": "YYYY-MM-DD", "nullable": true }, "lastPaymentAmount": { "type": "string", "example": "155.50", "nullable": true }, "makePaymentLink": { "format": "url", "type": "string", "example": "https://localhost/paybylink?key=092159d8-9e57-41a5-af6c-745bd45ff2f7", "nullable": true }, "isActive": { "type": "boolean", "example": "true" }, "mobillsEnrollment": { "type": "boolean", "example": "true" }, "guid": { "format": "uuid", "type": "string", "example": "00000000-0000-0000-0000-000000000000", "nullable": true } } }, "AMCSPayIvrResponse": { "type": "object", "example": "Success" }, "AMCSPayTerminalResponse": { "type": "object", "properties": { "transactionStatus": { "type": "string", "enum": [ "Success", "Failure", "Partial" ], "example": "Success", "nullable": false, "description": "The Transaction Status associated to the payment.\n\n- **Success** — The payment completed successfully.\n- **Failure** — The payment did not complete; check `notes`/`result` for details.\n- **Partial** — The terminal did not confirm the outcome. Check the device to see if the payment was processed, or poll for the final status using GET /ExternalTransaction/Poll." }, "amcsPayReferenceId": { "type": "string", "format": "uuid", "nullable": true, "example": "c4521490-c0dd-40e5-94c6-afe90073aa1b", "description": "The AMCS generated response GUID associated to the Payment request." }, "providerReference": { "type": "string", "nullable": true, "example": "710718500049", "description": "The reference number associated to the payment provider." }, "providerResponseCode": { "type": "string", "nullable": true, "example": "Success", "description": "The response code associated to the payment provider." }, "providerAuthCode": { "type": "string", "nullable": true, "example": "DEMO684", "description": "The authorization code associated to the payment provider." }, "tokenValue": { "type": "string", "nullable": true, "example": "iLGOd76VSiaAQBcZswQf", "description": "The Token value associated to the payment." }, "responseTimeStamp": { "type": "string", "format": "datetime", "example": "2022-07-27 18:54:18.6767965 +08:00", "nullable": true, "description": "The Timestamp of the payment response payload." }, "notes": { "type": "string", "nullable": true, "description": "More information associated to the payment transaction." }, "callerTransactionId": { "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "type": "string", "description": "The AMCS generated Request GUID associated to the hosted payments page." }, "transactionAmount": { "type": "object", "$ref": "#/components/schemas/AMCSPayAmount", "nullable": false, "description": "The Amount associated to the payment response." }, "maskedProfileNumber": { "type": "string", "nullable": true, "example": "XXXXX", "description": "The Profile/Card Number sent by the provider associated to the original payment." }, "profileExpiryDate": { "type": "string", "nullable": true, "format": "datetime", "example": "MM/YY", "description": "The Profile/Card expiry date sent by the provider associated to the original payment, in (MM/YY) format." }, "profileHolder": { "type": "string", "nullable": true, "example": "Roofus Summers", "description": "The Profile/Card Holder Name sent by the provider associated to the original payment." }, "errorCondition": { "type": "string", "enum": [ "ABORTED", "BUSY", "CANCEL", "DEVICEOUT", "INSERTEDCARD", "INPROGRESS", "LOGGEDOUT", "MESSAGEFORMAT", "NOTALLOWED", "NOTFOUND", "PAYMENTRESTRICTION", "REFUSAL", "UNAVAILABLEDEVICE", "UNAVAILABLESERVICE", "INVALIDCARD", "UNREACHABLEHOST", "WRONGPIN" ], "example": "CANCEL", "nullable": true, "description": "The error condition returned by the payment provider or terminal device when a transaction does not complete." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." } } }, "AMCSPayErrorContentResponse": { "type": "string", "nullable": true }, "AMCSPayErrorResponse": { "type": "object", "properties": { "message": { "type": "string", "example": "error message", "nullable": true, "description": "The exception message." }, "type": { "type": "string", "example": "error message", "nullable": true, "description": "The type of exception thrown." }, "stackTrace": { "type": "string", "example": "error message", "nullable": true, "description": "The stack trace of the error encountered." } } }, "AMCSPayInfoResponse": { "type": "object", "properties": { "message": { "type": "string", "example": "info message", "nullable": true, "description": "A human-readable message describing the result of the request." } } }, "AMCSPayInvoiceDetails": { "type": "object", "properties": { "invoiceNumber": { "type": "string", "example": "INV001", "nullable": false }, "invoiceGUID": { "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "type": "string", "nullable": false }, "invoiceDate": { "type": "string", "example": "YYYY-MM-DD", "nullable": false }, "zipCode": { "type": "string", "example": "00501", "nullable": true }, "invoiceDueDate": { "type": "string", "example": "YYYY-MM-DD", "nullable": false }, "unallocatedAmount": { "type": "integer", "example": "120.95", "nullable": true }, "invoiceCurrency": { "type": "string", "example": "EUR", "nullable": false } }, "additionalProperties": false }, "AMCSPayGetServiceFeeResponse": { "type": "object", "properties": { "serviceFee": { "type": "number", "format": "double", "example": "0.2", "description": "The service fee associated to the response." }, "percentage": { "type": "number", "format": "double", "example": "2", "description": "The percentage associated to the response." }, "principalAmount": { "type": "number", "format": "double", "example": "10", "description": "The base amount associated to the payment request (This field is optional for Tokenization)." }, "total": { "type": "number", "format": "double", "example": "10.2", "description": "The total associated to the response." }, "termsAndConditions": { "type": "object", "$ref": "#/components/schemas/TermsAndConditions", "nullable": false, "description": "The terms and conditions associated to the response." } } }, "AMCSPayInitiatePaymentResponse": { "type": "object", "properties": { "hppUrl": { "format": "url", "type": "string", "example": "https://localhost/paybylink?key=092159d8-9e57-41a5-af6c-745bd45ff2f7", "description": "The Hosted Payment Page Url to load in a frame/browser." }, "callerTransactionId": { "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "type": "string", "description": "The AMCS generated Request GUID associated to the Payment request." }, "transactionAmount": { "type": "object", "$ref": "#/components/schemas/AMCSPayAmount", "nullable": false, "description": "The amount associated to the payment request." }, "transactionStatus": { "type": "string", "enum": [ "Initiated" ], "example": "Initiated", "description": "The Transaction Status associated to the Payment request. Always \"Initiated\" for this endpoint — poll for the final outcome using GET /ExternalTransaction/Poll with the returned `callerTransactionId`." } } }, "AMCSAptPayAddDisbursementRequest": { "type": "object", "required": [ "amount", "currency", "transactionType", "referenceId" ], "properties": { "amount": { "type": "number", "example": 12.01, "description": "Provide the amount to be disbursed" }, "currency": { "type": "string", "example": "USD", "description": "The currency being used for the transaction.\nThis is expressed as a three-letter currency code (ie., CAD for Canadian dollars, USD for United States dollars, etc.)." }, "transactionType": { "type": "string", "example": "CARD", "description": "Provides a descriptor that expresses what kind of payment type is being processed. (ACH, CARD, or CHEQUE)" }, "program": { "type": "string", "enum": [ "B2B", "B2C", "G2C", "PayrollAndPension", "RapidMerchantSettlement" ], "example": "B2B", "description": "Program ID. This is a code to denote the use case for product, ie., why are you using AptPay? The use case will determine what additional information will be needed in order to process the transaction." }, "disbursementNumber": { "type": "string", "example": "5454545454545454", "description": "Information inputted should be a Card or Personal Account Number (PAN) and must be 15-19 digits in length.
This is required if: This is a push to card disbursement or if instrumentId is not defined." }, "chequeNumber": { "type": "integer", "example": 12345678, "description": "The cheque number, this is required for Transaction Type CHEQUE." }, "bankNumber": { "type": "string", "example": "123", "description": "Provide the bank number, this is a 3-digit number.
This is required for EFT transfers." }, "branchTransitNumber": { "type": "string", "example": "123456789", "description": "ABA routing number\nACH transfers: 9-digit number
This is required for:- ACH transfers." }, "accountNumber": { "type": "string", "example": "123456789", "description": "Account number\nACH transfers: 9 or 10 digit number
This is required for:- ACH transfers" }, "instrumentId": { "type": "string", "example": "12345", "description": "Provide the instrument ID. This is the ISIN and/or Common Code of the security that is the subject of the associated instruction.
This is required if transactionNumber is not defined." }, "expirationDate": { "type": "string", "example": "2026-11", "description": "Provide card expiration date. (Format: YYYY-MM)" }, "identityId": { "type": "string", "example": "762780560211", "description": "Optional for transaction type CHEQUE if First Name and Last Name is provided for Individual Identities or BusinessName for Business Entities.
This is required for other transaction types. Identity Id must be greater than 0." }, "referenceId": { "type": "string", "example": "AMCSPAYREF-a4121922-e796-4de0-9058-b0fb00e3a46e", "description": "Reference transaction ID" }, "firstName": { "type": "string", "example": "Jane", "description": "Provide the first name for the individual (max 50 characters).
This is required for EFT/CHEQUE if identityId is not specified.
This is a required field for individual identities.
" }, "lastName": { "type": "string", "example": "Doe", "description": "Provide the last name for the individual (max 50 characters).
This is required for EFT/CHEQUE if identityId is not specified.
This is a required field for individual identities.
" }, "businessName": { "type": "string", "example": "JD Inc.", "description": "Provide the business entity name.
This is required for EFT/CHEQUE if identityId is not specified.
This is required for business entities.
" }, "supplierId": { "type": "integer", "example": 123, "description": "The id of the supplier that you are making the invoice payment for." }, "supplierBills": { "type": "string", "example": "[{\"financialDocumentId\":2496,\"companyOutletId\":1,\"customerId\":135,\"ticketNumber\":\"CI1027\",\"transactionDate\":\"2023-10-11T16:00:00.000Z\",\"financialDocumentStatusId\":1,\"numberOfTickets\":1,\"customerName\":\"Testing supplier\",\"amountDue\":37,\"currency\":\"$\",\"maxCashPaymentAmount\":null,\"maxChequePaymentAmount\":null,\"tickets\":[{\"financialDocumentId\":2496,\"weighingId\":75,\"ticketNumber\":\"SWPS1039\",\"transactionDate\":\"2023-10-11T16:00:00.000Z\",\"materials\":\"Wood Packaging\",\"taxAmount\":6.17,\"amountDue\":37,\"amountPaidByCash\":null,\"amountPaidByCheque\":null,\"currency\":\"$\",\"exceptions\":\"\",\"defaultImmediatePayablePaymentTypeId\":2}]}]", "description": "List of supplier invoice tickets." } }, "additionalProperties": false }, "AMCSAptPayBasicDataResponse": { "type": "object", "properties": { "id": { "type": "string", "nullable": false, "description": "Generated ID from the API", "example": "183867559356" }, "status": { "type": "string", "nullable": false, "description": "Contains the status of the request", "example": "AML check in progress" } } }, "AMCSAptPayDisbursementGetSupplierDataResponse": { "type": "object", "properties": { "id": { "type": "number", "example": "183867559356" }, "firstName": { "type": "string", "example": "Steven" }, "middleName": { "type": "string", "example": "Oliver" }, "lastName": { "type": "string", "example": "Kyamko" }, "country": { "type": "string", "example": "CA" }, "dateOfBirth": { "type": "string", "example": "2000-01-01" }, "phone": { "type": "string", "example": "+639201001111" }, "occupation": { "type": "string", "example": "Janitor" }, "individual": { "type": "boolean", "example": true }, "clientId": { "type": "string", "example": "12312" }, "name": { "type": "string", "example": "TestStevenK" }, "email": { "type": "string", "example": "jametests@gmail.com" }, "status": { "type": "string", "example": "ACTIVE" }, "amlStatus": { "type": "string", "example": "PASSED" }, "businessTaxId": { "type": "string", "example": "12312" }, "street": { "type": "string", "example": "Street 1" }, "streetLine2": { "type": "string", "example": "Street 2" }, "city": { "type": "string", "example": "Toronto" }, "province": { "type": "string", "example": "ON" }, "zip": { "type": "string", "example": "L4K 0J7" }, "dbaName": { "type": "string", "example": "Steven" }, "url": { "type": "string", "example": "sampleurl.com" }, "typeOfBusiness": { "type": "string", "example": "Corporation" }, "dateOfIncorporation": { "type": "string", "example": "2000-01-01" }, "countryOfRegistration": { "type": "string", "example": "CA" }, "provinceOfRegistration": { "type": "string", "example": "ON" }, "selfVerify": { "type": "boolean", "example": true }, "nationalIdentityNumber": { "type": "string", "example": "" } } }, "AMCSAptPayAddDisbursementResponse": { "type": "object", "properties": { "Data": { "type": "object", "$ref": "#/components/schemas/AMCSAptPayAddDisbursementDataResponse" }, "Error": { "type": "array", "nullable": true, "description": "Contains the error description of the response", "items": { "$ref": "#/components/schemas/AMCSAptPayErrorDataResponse" } }, "IsSuccess": { "type": "boolean", "description": "Returns true if the request is successful; False, if the request is unsuccessful", "example": true } }, "additionalProperties": false }, "AMCSAptPayAddDisbursementDataResponse": { "type": "object", "properties": { "id": { "type": "string", "example": "6xxpsbbxjj-0119-hclhajwncvxejiefxgjatcen", "description": "This is the transaction ID of the transaction" }, "status": { "type": "string", "example": "ACCEPTED", "description": "This provides a message that describes the status of the transaction" }, "referenceId": { "type": "string", "example": "23232131554", "description": "Reference transaction ID" } } }, "AMCSAptPayGetIdentityDataResponse": { "properties": { "id": { "type": "integer", "nullable": false }, "individual": { "type": "boolean", "nullable": false }, "name": { "type": "string", "nullable": true }, "firstName": { "type": "string", "nullable": true }, "middleName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true }, "dateOfBirth": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "occupation": { "type": "string", "nullable": true }, "street": { "type": "string", "nullable": true }, "streetLine2": { "type": "string", "nullable": true }, "city": { "type": "string", "nullable": true }, "zip": { "type": "string", "nullable": true }, "country": { "type": "string", "nullable": true }, "province": { "type": "string", "nullable": true }, "email": { "minLength": 1, "type": "string" }, "dbaName": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true }, "typeOfBusiness": { "type": "string", "nullable": true }, "dateOfIncorporation": { "type": "string", "nullable": true }, "countryOfRegistration": { "type": "string", "nullable": true }, "provinceOfRegistration": { "type": "string", "nullable": true }, "businessTaxId": { "type": "string", "nullable": true }, "clientId": { "minLength": 1, "type": "string" }, "selfVerify": { "type": "boolean", "nullable": true }, "nationalIdentityNumber": { "type": "string", "nullable": true } } }, "AMCSAptPayGetTranStatusBasicDataResponse": { "type": "object", "properties": { "status": { "type": "string", "nullable": false, "description": "Contains the status of the response", "example": "SETTLED" }, "message": { "type": "string", "nullable": false, "description": "Contains the detailed description of the response", "example": "" } } }, "AMCSAptPayErrorDataResponse": { "type": "object", "properties": { "ErrorKey": { "type": "string", "nullable": false, "description": "Contains error key", "example": "" }, "ErrorMessage": { "type": "string", "nullable": false, "description": "Contains the detailed error message", "example": "" } } }, "AMCSAptPayGetTranStatusResponse": { "type": "object", "properties": { "Data": { "type": "object", "nullable": true, "$ref": "#/components/schemas/AMCSAptPayGetTranStatusBasicDataResponse" }, "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" } } }, "AMCSPayContact": { "type": "object", "properties": { "contactType": { "type": "string", "enum": [ "Email", "Mobile" ], "example": "Email", "nullable": false, "description": "The Contact Type associated to the contact.\n\n- **Email** — An email address.\n- **Mobile** — A mobile phone number." }, "contactValue": { "type": "string", "example": "089748588788", "nullable": false, "description": "The Contact Value associated to the contact type." } } }, "AMCSPayCustomerInfo": { "type": "object", "properties": { "customerName": { "type": "string", "example": "", "nullable": true, "description": "The Customer Name associated to the customer." }, "customerId": { "type": "string", "example": "ACC1007", "nullable": false, "description": "The Customer Id associated to the customer." }, "customerIP": { "type": "string", "example": "000.000.0.000", "nullable": true, "description": "The Customer Ip associated to the customer." }, "customerStatus": { "type": "string", "enum": [ "NEW", "EXISTING" ], "example": "NEW", "nullable": false, "description": "The Customer Status associated to the customer.\n\n- **NEW** — The customer has no stored payment profile yet.\n- **EXISTING** — The customer is a returning customer with a previously stored payment profile." }, "websiteUrl": { "type": "string", "example": "", "nullable": true, "description": "The Website Url associated to the customer." } }, "additionalProperties": false }, "AMCSPayBankInfo": { "type": "object", "properties": { "eft": { "type": "object", "$ref": "#/components/schemas/AMCSPayEftBankInfo", "nullable": true, "description": "The Eft Bank Info associated to the customer. Required when paymentType is EFT." }, "ach": { "type": "object", "$ref": "#/components/schemas/AMCSPayAchBankInfo", "nullable": true, "description": "The Ach Bank Info associated to the customer. Required when paymentType is ACH." } }, "additionalProperties": false }, "AMCSPayEftBankInfo": { "type": "object", "description": "Required in full (all three fields) whenever `bankInfo.eft` is supplied.", "properties": { "accountNumber": { "type": "string", "nullable": true, "description": "EFT Account Number. Required when `eft` is supplied." }, "transitNumber": { "type": "string", "nullable": true, "description": "EFT Transit Number. Required when `eft` is supplied." }, "institutionNumber": { "type": "string", "nullable": true, "description": "EFT Institution Number. Required when `eft` is supplied." } }, "additionalProperties": false }, "AMCSPayAchBankInfo": { "type": "object", "description": "Required in full (all three fields) whenever `bankInfo.ach` is supplied.", "properties": { "accountNumber": { "type": "string", "nullable": true, "description": "ACH Account Number. Required when `ach` is supplied." }, "accountType": { "type": "string", "enum": [ "PersonalSavings", "BusinessSavings", "PersonalCheckings", "BusinessCheckings" ], "nullable": true, "description": "ACH Account Type. Required when `ach` is supplied." }, "routingNumber": { "type": "string", "nullable": true, "description": "ACH Routing Number. Required when `ach` is supplied." } }, "additionalProperties": false }, "AMCSAptPayBaseDetailRequest": { "type": "object", "properties": { "url": { "type": "string", "nullable": true, "description": "The URL" }, "apikey": { "type": "string", "nullable": true, "description": "The api key" }, "secretKey": { "type": "string", "nullable": true, "description": "The secret key" }, "apiToken": { "type": "string", "nullable": true, "description": "The api token" } } }, "AMCSPayVaultCustomerInfo": { "type": "object", "required": [ "customerName", "customerId", "customerIP", "customerStatus" ], "properties": { "customerName": { "type": "string", "example": "", "nullable": true, "description": "The Customer Name associated to the customer." }, "customerId": { "type": "string", "example": "ACC1007", "nullable": false, "description": "The Customer Id associated to the customer." }, "customerIP": { "type": "string", "example": "000.000.0.000", "nullable": true, "description": "The Customer Ip associated to the customer." }, "customerStatus": { "type": "string", "enum": [ "NEW", "EXISTING" ], "example": "NEW", "nullable": false, "description": "The Customer Status associated to the customer." }, "websiteUrl": { "type": "string", "example": "", "nullable": true, "description": "The Website Url associated to the customer." } }, "additionalProperties": false }, "AMCSPayAmount": { "type": "object", "required": [ "principalAmount", "currency" ], "description": "The amount associated to the payment.", "properties": { "principalAmount": { "type": "number", "format": "decimal", "example": 40.10, "nullable": true, "description": "The base amount associated to the payment request (This field is optional for Tokenization)." }, "currency": { "type": "string", "example": "EUR", "nullable": false, "description": "The currency associated to the payment request." }, "mandateLimit": { "type": "number", "format": "decimal", "example": 100.00, "nullable": true, "description": "The maximum amount that can be debited under the mandate. Required for Stripe PayTo payments, where it must be greater than 0 and greater than or equal to the principalAmount; not applicable to other payment types." } } }, "TermsAndConditions": { "type": "object", "required": [ "TermsAndConditionsContent", "TermsAndConditionsId", "TermsAndConditionsContentId" ], "description": "The terms and conditions.", "properties": { "termsAndConditionsId": { "type": "integer", "example": 1, "nullable": true, "description": "The conditions Id associated to the terms and conditions." }, "termsAndConditionsContentId": { "type": "integer", "example": 1, "nullable": true, "description": "The terms and conditions ContentId associated to the terms and conditions content." }, "termsAndConditionsUrl": { "type": "string", "example": "https://na1-pay-dev.amcsplatform.com/TermsAndConditionsView/TermsAndConditions/54090c88-6451-485f-8e35-8037b9ae5ea0?termsAndConditionsContentId=3af76595-bf9d-4505-bef9-6e603dfc7ea8", "nullable": true, "description": "The terms and conditions associated to the service fee." } } }, "AMCSPayAddress": { "type": "object", "properties": { "addressType": { "type": "string", "enum": [ "Billing", "Shipping" ], "example": "Billing", "nullable": false, "description": "The address type.\n\n- **Billing** — The billing address. Mandatory for 3DS-enabled transactions.\n- **Shipping** — The shipping address." }, "streetAddress1": { "type": "string", "example": "27, Longwood Avenue", "nullable": false, "description": "Street address line 1." }, "streetAddress2": { "type": "string", "example": "South Circular", "nullable": false, "description": "Street address line 2." }, "streetAddress3": { "type": "string", "example": "Road Dublin-08", "nullable": true, "description": "Street address line 3. Conditionally required." }, "city": { "type": "string", "example": "Dublin", "nullable": false, "description": "The city associated to the address." }, "state": { "type": "string", "example": "Munster", "nullable": false, "description": "The state/region associated to the address." }, "postCode": { "type": "string", "example": "12345", "nullable": false, "description": "The postal/zip code associated to the address." }, "country": { "type": "string", "example": "Ireland", "nullable": false, "description": "The country associated to the address." }, "iSO3166Numeric": { "type": "string", "example": "372", "nullable": false, "description": "The ISO 3166-1 numeric country code associated to the address. Conditionally required." } } }, "AMCSPayPollPaymentResponse": { "type": "object", "properties": { "callerTransactionId": { "type": "string", "nullable": true, "example": "d0c645e2-4e7b-4dd8-b304-b02600e6179a", "description": "The AMCS generated Request GUID associated to the payments." }, "amcsPayReferenceId": { "type": "string", "nullable": true, "example": "f9a50643-05e3-45f9-9bc0-87be0d5ae0e2", "description": "The AMCS generated Response GUID associated to the Payment request." }, "providerReference": { "type": "string", "nullable": true, "example": "8ac7a4a28749242d01874c7e648327b7", "description": "The reference number associated to the payment provider." }, "providerResponseCode": { "type": "string", "nullable": true, "example": "OK", "description": "The response code associated to the payment provider." }, "providerAuthCode": { "type": "string", "nullable": true, "example": "", "description": "The authorization code associated to the payment provider." }, "transactionAmount": { "type": "object", "$ref": "#/components/schemas/AMCSPayAmount", "nullable": true, "description": "The amount associated to the payment request." }, "responseTimeStamp": { "type": "string", "format": "datetime", "nullable": true, "example": "2022-07-27 18:54:18.6767965 +08:00", "description": "The Timestamp of the payment response payload." }, "notes": { "type": "string", "nullable": true, "example": "", "description": "More information associated to the payment." }, "transactionStatus": { "type": "string", "enum": [ "Initiated", "Success", "Failure", "Timeout", "Cancelled", "InvalidCardInformation", "Exception", "Partial", "Processing" ], "example": "Success", "nullable": false, "description": "The Transaction Status associated to the payment.\n\n- **Initiated** — The request has been accepted and is awaiting a result from the provider.\n- **Success** — The payment completed successfully.\n- **Failure** — The payment did not complete; check `notes`/`result` for details.\n- **Timeout** — No response was received from the provider/device within the expected time.\n- **Cancelled** — The payment was cancelled before completion.\n- **InvalidCardInformation** — The payment failed due to invalid card details.\n- **Exception** — An unexpected error occurred while processing the payment.\n- **Partial** — The provider/device response was incomplete; check the device or poll again to confirm the outcome.\n- **Processing** — The payment is still being processed by the provider." }, "tokenReference": { "type": "string", "nullable": true, "example": "58af616d8b112af873be57bb627a7677bdffdc6a306ffdff26c6f6b59d917fe7", "description": "The Token Reference sent by the provider associated to the original payment (Tokenisation Response)." }, "historyReference": { "type": "string", "nullable": true, "example": "123456789012345", "description": "The history reference data sent by the provider associated to the original payment (Tokenisation Response)." }, "maskedProfileNumber": { "type": "string", "nullable": true, "example": "XXXXX", "description": "The Profile/Card Number sent by the provider associated to the original payment (Tokenisation Response) (Conditionally required)." }, "profileExpiryDate": { "type": "string", "nullable": true, "format": "datetime", "example": "MM/YY", "description": "The Profile/Card expiry date sent by the provider associated to the original payment, in (MM/YY) format." }, "profileType": { "type": "string", "nullable": true, "example": "VISA", "description": "The Profile/Card Type sent by the provider associated to the original payment (Tokenisation Response)." }, "profileHolder": { "type": "string", "nullable": true, "example": "Roofus Summers", "description": "The Profile/Card Holder Name sent by the provider associated to the original payment (Tokenisation Response)." }, "errorCondition": { "type": "string", "enum": [ "ABORTED", "BUSY", "CANCEL", "DEVICEOUT", "INSERTEDCARD", "INPROGRESS", "LOGGEDOUT", "MESSAGEFORMAT", "NOTALLOWED", "NOTFOUND", "PAYMENTRESTRICTION", "REFUSAL", "UNAVAILABLEDEVICE", "UNAVAILABLESERVICE", "INVALIDCARD", "UNREACHABLEHOST", "WRONGPIN" ], "example": "CANCEL", "nullable": true, "description": "The error condition returned by the payment provider or terminal device when a transaction does not complete; only present for terminal-based payment errors." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." } }, "additionalProperties": false }, "AMCSPayPollGetAllPaymentResponse": { "type": "object", "properties": { "callerTransactionId": { "type": "string", "format": "uuid", "nullable": true, "example": "5b1e280c-ba76-4f90-982a-b028006721f4", "description": "The AMCS generated Request GUID associated to the Payment request." }, "amcsPayReferenceId": { "type": "string", "format": "uuid", "nullable": true, "example": "026b03bc-af5e-4615-8779-afe400ce9fdd", "description": "The AMCS generated Response GUID associated to the Payment request." }, "providerReference": { "type": "string", "nullable": true, "example": "8ac7a4a1877ca1eb01877fc082da054f", "description": "The reference number associated to the payment provider." }, "providerResponseCode": { "type": "string", "nullable": true, "example": "Success", "description": "The response code associated to the payment provider." }, "providerAuthCode": { "type": "string", "nullable": true, "example": "12345", "description": "The authorization code associated to the payment provider." }, "responseTimestamp": { "type": "string", "format": "dateTime", "nullable": true, "example": "2023-04-14T20:32:35.1965037+08:00", "description": "The Timestamp of the payment response payload." }, "notes": { "type": "string", "nullable": true, "example": "ACI Cards Transaction Id 8ac7a4a1877ca1eb01877fc082da054f\r\n\r\n Transaction Date 2023-04-14 12:32:15+0000\r\n\r\n Result code 000.100.110\r\n\r\n ResultDescription: Request successfully processed in 'Merchant in Integrator Test Mode'\r\n\r\n Payment Type DB\r\n\r\n Card Holder jessah\r\n\r\n Card Expiry 01/2025\r\n\r\n", "description": "More information associated to the payment." }, "transactionStatus": { "enum": [ "Initiated", "Success", "Failure", "Timeout", "Cancelled", "InvalidCardInformation", "Exception" ], "type": "string", "nullable": true, "example": "Success", "description": "The Transaction Status associated to the payment." }, "transactionAmount": { "$ref": "#/components/schemas/AMCSPayAmount" }, "requestType": { "enum": [ "OneOffPayment", "Tokenization", "VaultOrAutoPayment", "Refund", "DeleteToken" ], "type": "string", "nullable": true, "example": "Tokenization", "description": "The payment transaction request type." }, "paymentType": { "enum": [ "CARD", "ACH", "GOOGLEPAY", "APPLEPAY", "EFT", "BECS" ], "type": "string", "nullable": true, "example": "CARD", "description": "The payment transaction payment type." }, "transactionOrigin": { "enum": [ "MOTO", "ECOM" ], "type": "string", "nullable": true, "example": "MOTO", "description": "Whether the payment was operator-initiated or customer-initiated.\n\n- **MOTO** — Mail Order / Telephone Order (Merchant-Initiated Transaction).\n- **ECOM** — E-commerce (Customer-Initiated Transaction)." }, "callerIdentifier": { "type": "string", "nullable": true, "example": "Tenant Name", "description": "The Caller Identification associated to the Payment request." }, "requestId": { "type": "string", "format": "uuid", "nullable": true, "example": "3e14bdf6-5b17-44aa-bf5b-2f7fb113daf9", "description": "The Caller supplied GUID associated to the payment request." }, "providerType": { "enum": [ "Test", "Realex", "Heartland", "MerchantPartners", "ACICards", "ACIElectronic", "AptPay", "PaymentExpress", "EftCanada", "APG", "TerminalPay", "ElavonTerminalPay", "Stripe" ], "type": "string", "nullable": true, "example": "ACICards", "description": "The payment provider type. Payments submitted with `EftCanada` are returned as `APG`." }, "customerInfo": { "$ref": "#/components/schemas/AMCSPayCustomerInfo" }, "createdTimestamp": { "type": "string", "format": "dateTimeOffset", "nullable": true, "example": "2000-01-01T00:00:00.0000000+01:00", "description": "The timestamp when the payment transaction is initiated." }, "tokenReference": { "type": "string", "nullable": true, "example": "72573620", "description": "The Token Reference sent by the provider associated to the original payment (Tokenisation Response)." }, "historyReference": { "type": "string", "nullable": true, "example": "1234567", "description": "The history reference data sent by the provider associated to the original payment (Tokenisation Response)." }, "profileExpiryDate": { "type": "string", "nullable": true, "example": "08/24", "description": "The Profile/Card expiry date sent by the provider associated to the original payment (Tokenisation Response) in (MM/YY) format." }, "maskedProfileNumber": { "type": "string", "nullable": true, "example": "************1234", "description": "The masked Profile/Card Number sent by the provider associated to the original payment (Tokenisation Response) (Conditionally required)." }, "profileType": { "type": "string", "nullable": true, "example": "MasterCard", "description": "The Profile/Card Type sent by the provider associated to the original payment (Tokenisation Response)." }, "profileHolder": { "type": "string", "nullable": true, "example": "Joe Bloggs", "description": "The Profile/Card Holder Name sent by the provider associated to the original payment (Tokenisation Response)." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." } }, "additionalProperties": false }, "AMCSPayPollGetUpdatedPaymentResponse": { "type": "object", "properties": { "transactionOrigin": { "enum": [ "MOTO", "ECOM" ], "type": "string", "nullable": true, "example": "MOTO", "description": "Whether the payment was operator-initiated or customer-initiated.\n\n- **MOTO** — Mail Order / Telephone Order (Merchant-Initiated Transaction).\n- **ECOM** — E-commerce (Customer-Initiated Transaction)." }, "providerType": { "enum": [ "Test", "Realex", "Heartland", "MerchantPartners", "ACICards", "ACIElectronic", "AptPay", "PaymentExpress", "EftCanada", "APG", "TerminalPay", "ElavonTerminalPay", "Stripe" ], "type": "string", "nullable": true, "example": "ACICards", "description": "The payment provider type. Payments submitted with `EftCanada` are returned as `APG`." }, "requestType": { "enum": [ "OneOffPayment", "Tokenization", "VaultOrAutoPayment", "Refund", "DeleteToken" ], "type": "string", "nullable": true, "example": "OneOffPayment", "description": "The payment transaction request type." }, "paymentType": { "enum": [ "CARD", "ACH", "GOOGLEPAY", "APPLEPAY", "EFT", "BECS" ], "type": "string", "nullable": true, "example": "CARD", "description": "The payment transaction payment type." }, "requestId": { "type": "string", "format": "uuid", "nullable": true, "example": "3e14bdf6-5b17-44aa-bf5b-2f7fb113daf9", "description": "The Caller supplied GUID associated to the payment request." }, "callerIdentifier": { "type": "string", "nullable": true, "example": "Tenant Name", "description": "The Caller Identification associated to the Payment request." }, "providerReference": { "type": "string", "nullable": true, "example": "8ac7a4a1877ca1eb01877fc082da054f", "description": "The reference number associated to the payment provider." }, "providerResponseCode": { "type": "string", "nullable": true, "example": "Success", "description": "The response code associated to the payment provider." }, "providerAuthCode": { "type": "string", "nullable": true, "example": "12345", "description": "The authorization code associated to the payment provider." }, "callerTransactionId": { "type": "string", "format": "uuid", "nullable": true, "example": "5b1e280c-ba76-4f90-982a-b028006721f4", "description": "The AMCS generated Request GUID associated to the Payment request." }, "amcsPayReferenceId": { "type": "string", "format": "uuid", "nullable": true, "example": "026b03bc-af5e-4615-8779-afe400ce9fdd", "description": "The AMCS generated Response GUID associated to the Payment request." }, "createdTimestamp": { "type": "string", "format": "dateTimeOffset", "nullable": true, "example": "2000-01-01T00:00:00.0000000+01:00", "description": "The timestamp when the payment transaction is initiated." }, "responseTimestamp": { "type": "string", "format": "dateTimeOffset", "nullable": true, "example": "2023-04-14T20:32:35.1965037+08:00", "description": "The Timestamp of the payment response payload." }, "modifiedTimestamp": { "type": "string", "format": "dateTimeOffset", "nullable": true, "example": "2023-04-14T20:32:35.1965037+08:00", "description": "Last modified time of the transaction's payment response; usable as the next DateFrom checkpoint." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." }, "transactionStatus": { "enum": [ "Initiated", "Success", "Failure", "Timeout", "Cancelled", "InvalidCardInformation", "Exception" ], "type": "string", "nullable": true, "example": "Success", "description": "The Transaction Status associated to the payment." }, "transactionAmount": { "$ref": "#/components/schemas/AMCSPayAmount" }, "internalTransactionReference": { "type": "integer", "nullable": true, "example": 3776677, "description": "The AMCS Pay internal reference of the payment transaction." }, "customerId": { "type": "string", "nullable": true, "example": "CUST-1", "description": "The customerId associated to the customer or the ARAccountCode account code used for Accounts Receivable." } }, "additionalProperties": false }, "AMCSPayGetAllPaymentResponseDetails": { "type": "object", "properties": { "customerId": { "type": "integer", "nullable": true, "example": 1 }, "customerName": { "type": "string", "nullable": true, "example": "TestUser" }, "ARAccountCode": { "type": "string", "nullable": true, "example": "ACC1001" }, "currency": { "type": "string", "nullable": true, "example": "EUR" }, "amount": { "type": "number", "format": "decimal", "nullable": true, "example": 10.02 }, "paymentType": { "type": "string", "example": "Credit Card", "nullable": false }, "paymentTransactionId": { "type": "integer", "nullable": true, "example": 1 }, "paymentTransactionGuid": { "type": "string", "format": "uuid", "nullable": false, "example": "17071E01-E9DF-498A-AD9F-AFDB00A203F0" }, "transactionStatus": { "type": "string", "example": "Success", "nullable": false }, "paymentId": { "type": "integer", "nullable": true, "example": 1 }, "paymentProvider": { "type": "string", "nullable": true, "example": "ACICards" }, "notes": { "type": "string", "example": "", "nullable": true }, "reference": { "type": "string", "format": "GUID", "nullable": true, "example": "0ef495fb-ac5a-4443-93df-aff700ee2b9b" }, "paymentReference": { "type": "string", "format": "GUID", "nullable": true, "example": "0ef495fb-ac5a-4443-93df-aff700ee2b9b" }, "dateInput": { "type": "string", "format": "datetime", "example": "2022-07-27 18:54:18.6767965 +08:00" } }, "additionalProperties": false }, "AMCSPayDeleteProfileRequest": { "required": [ "requestType", "paymentType", "transactionOrigin", "callerIdentifier", "requestId", "referenceId", "providerType" ], "type": "object", "properties": { "requestType": { "enum": [ "OneOffPayment", "Tokenization", "VaultOrAutoPayment", "Refund", "DeleteToken" ], "type": "string", "description": "The request type for this endpoint is \"DeleteToken\"." }, "paymentType": { "enum": [ "CARD", "ACH", "GOOGLEPAY", "APPLEPAY", "EFT", "PAYTO", "BECS", "CREDIT_TRANSFER" ], "type": "string", "description": "The payment instrument type of the saved profile being deleted.\n\n- **CARD** — Card payment (credit/debit).\n- **ACH** — US bank account transfer (Automated Clearing House). (The Stripe USD-only restriction on new payments does not apply when deleting a saved profile.)\n- **GOOGLEPAY** — Google Pay wallet.\n- **APPLEPAY** — Apple Pay wallet.\n- **EFT** — Canadian bank account transfer (Electronic Funds Transfer). (The Stripe CAD-only restriction on new payments does not apply when deleting a saved profile.)\n- **PAYTO** — Australian PayTo direct debit.\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": { "enum": [ "MOTO", "ECOM" ], "type": "string", "description": "Determines whether the request was operator-initiated or customer-initiated — this affects card scheme compliance classification.\n\n- **MOTO** — Mail Order / Telephone Order. Use when an AMCS operator initiates this on the customer's behalf. This is a Merchant-Initiated Transaction (MIT).\n- **ECOM** — E-commerce. Use when the customer initiates this themselves through a self-service channel. 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": { "minLength": 1, "type": "string", "example": "Elemos", "description": "The identification associated to the calling application." }, "requestId": { "type": "string", "format": "uuid", "example": "3e14bdf6-5b17-44aa-bf5b-2f7fb113daf9", "description": "The Caller supplied GUID associated to the payment request." }, "requestTimestamp": { "type": "string", "format": "dateTime", "nullable": true, "readOnly": true, "example": "2023-06-08T21:29:51.915166+08:00", "description": "The request time stamp when this endpoint was called." }, "providerType": { "enum": [ "Test", "Realex", "Heartland", "MerchantPartners", "ACICards", "ACIElectronic", "AptPay", "PaymentExpress", "EftCanada", "TerminalPay", "Stripe" ], "type": "string", "example": "ACICards", "description": "The payment provider that holds the saved payment profile being deleted.\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- **AptPay** — AptPay.\n- **TerminalPay** — Verifone terminal device payments.\n- **Test** — Internal test provider.\n- **Stripe** — Stripe card processing. `transactionOrigin` is required when using Stripe — the APG/EFT Canada exemption from that requirement does not apply." }, "referenceId": { "type": "string", "nullable": true, "example": "8ac7a49f8898f2af018899c2fb6d22b0", "description": "The reference number associated to the payment provider upon Card Tokenization." } }, "additionalProperties": false }, "AMCSPayDeleteProfileResponse": { "type": "object", "properties": { "amcsPayReferenceId": { "type": "string", "nullable": true, "format": "uuid", "example": "f15da253-d85b-4e7d-99eb-b01b00de6dce", "description": "The AMCS Pay generated Response GUID associated to the Payment request." }, "providerReference": { "type": "string", "nullable": true, "example": "8ac7a49f8898f2af01889b33033902d1", "description": "The reference number associated to the payment provider." }, "providerResponseCode": { "type": "string", "nullable": true, "example": "Success", "description": "The response code associated to the payment provider." }, "providerAuthCode": { "type": "string", "nullable": true, "example": null, "description": "The authorization code associated to the payment provider." }, "responseTimestamp": { "type": "string", "format": "dateTime", "nullable": true, "example": "2023-06-08T21:29:51.915166+08:00", "description": "The Timestamp of the payment response payload." }, "notes": { "type": "string", "nullable": true, "example": " ACI Vault Transaction Id 8ac7a49f8898f2af01889b33033902d1\r\n\r\n Transaction Date 2023-06-08 13:29:51+0000\r\n\r\n Result code 000.100.110\r\n\r\n ResultDescription: Request successfully processed in 'Merchant in Integrator Test Mode'\r\n\r\n Payment Type \r\n\r\n ", "description": "More information associated to the AMCS Pay transaction." }, "transactionStatus": { "enum": [ "Success", "Failure", "Partial" ], "type": "string", "description": "The Transaction Status associated to the AMCS Pay transaction." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." } }, "additionalProperties": false }, "AMCSPayTokenVaultResponse": { "type": "object", "properties": { "payTokenReference": { "type": "string", "format": "uuid", "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "nullable": true, "description": "The AMCS Pay generated reference for this saved payment profile (token)." }, "providerTokenReference": { "type": "string", "nullable": true, "description": "The token reference sent by the payment provider for this saved payment profile." }, "accountHolder": { "type": "string", "nullable": true, "description": "The name of the account/card holder associated with this saved payment profile." }, "maskedAccountNumber": { "type": "string", "nullable": true, "example": "XXXXXXXXXXXX1234", "description": "The masked card/account number associated with this saved payment profile. For ACH/EFT saved bank accounts, this is formatted as `XXXXXXXXXXXX` — 12 `X` characters followed by the last 4 digits of the bank account number." }, "expiryDate": { "type": "string", "format": "dateTimeOffset", "example": "2000-01-01T00:00:00.0000000+01:00", "nullable": true, "description": "The expiry date of the saved payment profile, where applicable (e.g. card expiry)." }, "isDirectDebit": { "type": "boolean", "example": true, "description": "Whether this saved payment profile is a direct debit mandate rather than a card profile. `true` for SEPA, PayTo, BECS, ACH (US), and EFT/PAD (Canada) saved profiles; `false` for CARD." }, "paymentTypeId": { "type": "integer", "example": 0, "nullable": true, "description": "The internal identifier of the payment type for this saved payment profile." }, "paymentTypeName": { "type": "string", "nullable": true, "example": "ACH", "description": "The name of the payment type for this saved payment profile (e.g. \"CARD\", \"ACH\", \"EFT\"). For a Stripe-saved bank account, this is \"ACH\" (US) or \"EFT\" (Canadian PAD/`acss_debit`), with `isDirectDebit: true`." }, "paymentProviderId": { "type": "integer", "example": 0, "nullable": true, "description": "The internal identifier of the payment provider that holds this saved payment profile." }, "paymentProviderName": { "type": "string", "nullable": true, "description": "The name of the payment provider that holds this saved payment profile (e.g. \"Stripe\")." }, "profileType": { "type": "string", "nullable": true, "description": "The card/profile brand or type associated with this saved payment profile (e.g. \"VISA\")." }, "isDefault": { "type": "boolean", "example": true, "description": "Whether this is the customer's default saved payment profile for future Vault payments." } } }, "AMCSPaySetDefaultRequest": { "type": "object", "properties": { "customerId": { "type": "string", "nullable": true, "description": "The customerId associated to the customer whose default payment profile is being changed." }, "providerTokenReference": { "type": "string", "nullable": true, "description": "The provider token reference (as returned by GET /ExternalTransaction/TokenVault) of the saved payment profile to set as default." } } }, "AMCSPayRefundRequest": { "required": [ "requestType", "paymentType", "transactionOrigin", "callerIdentifier", "requestId", "transactionAmount", "originalPaymentReference", "originalAmount" ], "type": "object", "properties": { "requestType": { "type": "string", "enum": [ "Refund" ], "example": "Refund", "nullable": false, "description": "Request type for this endpoint. Always \"Refund\"." }, "paymentType": { "type": "string", "enum": [ "CARD", "ACH", "EFT", "TERMINAL", "PAYTO", "BECS", "CREDIT_TRANSFER" ], "example": "CARD", "nullable": false, "description": "The payment instrument type of the original payment being refunded.\n\n- **CARD** — Card payment (credit/debit).\n- **ACH** — US bank account transfer (Automated Clearing House). (The Stripe USD-only restriction on new payments does not apply when refunding an existing payment.)\n- **EFT** — Canadian bank account transfer (Electronic Funds Transfer). (The Stripe CAD-only restriction on new payments does not apply when refunding an existing payment.)\n- **TERMINAL** — A card-present payment taken on a physical terminal device.\n- **PAYTO** — Australian PayTo direct debit.\n- **BECS** — Australian/NZ BECS Direct Debit.\n- **CREDIT_TRANSFER** — A provider-generated bank transfer / virtual account payment (e.g. Stripe VBAN). For Stripe, this is the only endpoint `CREDIT_TRANSFER` is supported on — `OneOff`, `Vault`, and `DeleteToken` reject it; VBAN/CREDIT_TRANSFER accounts are created via `POST /ExternalTransaction/CreateCustomer` instead." }, "transactionOrigin": { "type": "string", "enum": [ "MOTO", "ECOM" ], "example": "MOTO", "nullable": false, "description": "Determines whether the original 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", "example": "Elemos", "nullable": false, "description": "The identification associated to the calling application." }, "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", "TerminalPay", "EftCanada", "ElavonTerminalPay", "Stripe" ], "example": "ACICards", "nullable": true, "description": "The payment provider that processed the original payment. Stripe card refunds are fully supported through this endpoint. 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- **TerminalPay** — Verifone terminal device payments.\n- **ElavonTerminalPay** — Elavon terminal device payments.\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", "example": "24.00", "$ref": "#/components/schemas/AMCSPayAmount", "nullable": false, "description": "The amount subjected for refund." }, "originalPaymentReference": { "type": "string", "example": "8ac7a4a28749242d01874c7e648327b7", "nullable": false, "description": "The reference ID sent by the provider associated to the original payment being refunded. Required." }, "originalAmount": { "type": "number", "format": "decimal", "example": 40.10, "nullable": true, "description": "The original amount sent by the provider associated to the original payment being refunded. Required." }, "tokenValue": { "type": "string", "nullable": true, "example": "iLGOd76VSiaAQBcZswQf", "description": "The token value associated to the payment. Required if paymentType is TERMINAL and the provider is Elavon TerminalPay or Verifone TerminalPay; optional otherwise." }, "profileExpiryDate": { "type": "string", "nullable": true, "format": "datetime", "example": "MM/YY", "description": "The Profile/Card expiry date associated to the original payment, in (MM/YY) format. Required if paymentType is TERMINAL and the provider is Elavon TerminalPay; optional otherwise." }, "customerInfo": { "type": "object", "$ref": "#/components/schemas/AMCSPayCustomerInfo", "nullable": true, "description": "The customer details associated to the refund request. Optional." } } }, "AMCSPayVaultRequest": { "required": [ "requestType", "paymentType", "transactionOrigin", "callerIdentifier", "requestId", "tokenReference" ], "type": "object", "properties": { "requestType": { "type": "string", "enum": [ "VaultOrAutoPayment" ], "example": "VaultOrAutoPayment", "nullable": false, "description": "Request type for this endpoint. Always \"VaultOrAutoPayment\" — this endpoint charges a previously stored payment profile (from a prior Tokenization request via OneOff)." }, "paymentType": { "type": "string", "enum": [ "CARD", "ACH", "EFT", "PAYTO", "BECS", "CREDIT_TRANSFER" ], "example": "CARD", "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.\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" ], "example": "MOTO", "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", "example": "Elemos", "nullable": false, "description": "The identification associated to the calling application." }, "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" ], "example": "ACICards", "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 subjected for vault." }, "customerInfo": { "type": "object", "$ref": "#/components/schemas/AMCSPayVaultCustomerInfo", "nullable": true, "description": "The Details associated to the customer mandate for risk assessment (Conditionally required for making payments using ACI Cards)." }, "tokenReference": { "type": "string", "example": "58af616d8b112af873be57bb627a7677bdffdc6a306ffdff26c6f6b59d917fe7", "nullable": false, "description": "The Token Reference sent by the provider associated to the original payment." }, "historyReference": { "type": "string", "example": "123456789012345", "nullable": true, "description": "The history reference data sent by the provider associated to the original payment (Conditionally required)." }, "maskedProfileNumber": { "type": "string", "example": "5454XXXXXXXX5454", "nullable": true, "description": "The Masked Profile/Card Number sent by the provider associated to the original payment. Required when `providerType` is `MerchantPartners`; optional otherwise." } } }, "AMCSPayRefundResponse": { "type": "object", "properties": { "amcsPayReferenceId": { "type": "string", "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "nullable": false, "description": "The AMCS generated Response GUID associated to the Payment request." }, "providerReference": { "type": "string", "example": "8ac7a4a28749242d01874c7e648327b7", "nullable": true, "description": "The reference number associated to the payment provider response." }, "providerResponseCode": { "type": "string", "example": "Success", "nullable": false, "description": "The status code associated to the payment provider response." }, "providerAuthCode": { "type": "string", "example": "", "nullable": true, "description": "The authorization code associated to the payment provider." }, "transactionAmount": { "type": "object", "$ref": "#/components/schemas/AMCSPayAmount", "nullable": false, "description": "The amount associated to the payment request." }, "responseTimeStamp": { "type": "string", "format": "datetime", "example": "2022-07-27 18:54:18.6767965 +08:00", "nullable": false, "description": "The time stamp associated to the response payload." }, "notes": { "type": "string", "example": "", "nullable": true, "description": "More information associated to the payment." }, "transactionStatus": { "type": "string", "enum": [ "Success", "Failure" ], "example": "Success", "nullable": false, "description": "The Transaction Status associated to the refund response.\n\n- **Success** — The refund was accepted by the provider.\n- **Failure** — The refund was not processed; check `notes`/`result` for details." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." }, "customerInfo": { "type": "object", "$ref": "#/components/schemas/AMCSPayCustomerInfo", "nullable": true, "description": "The customer details associated to the refund response." } }, "additionalProperties": false }, "AMCSPayVaultResponse": { "type": "object", "properties": { "callerTransactionId": { "type": "string", "format": "uuid", "example": "16a56160-557b-4457-8f0f-b038006d0a8d", "nullable": true, "description": "The AMCS generated Request GUID associated to the hosted payments page." }, "amcsPayReferenceId": { "type": "string", "format": "uuid", "example": "f8026905-9ec9-4bbb-aa42-b038006d0d3b", "nullable": false, "description": "The AMCS generated Response GUID associated to the Payment request." }, "providerReference": { "type": "string", "example": "8ac7a4a28749242d01874c7e648327b7", "nullable": true, "description": "The reference number associated to the payment provider response." }, "providerResponseCode": { "type": "string", "example": "Success", "nullable": true, "description": "The status code associated to the payment response." }, "providerAuthCode": { "type": "string", "example": "", "nullable": true, "description": "The authorization code associated to the payment provider." }, "transactionAmount": { "type": "object", "$ref": "#/components/schemas/AMCSPayAmount", "nullable": false, "description": "The amount associated to the payment request." }, "responseTimeStamp": { "type": "string", "format": "datetime", "example": "2022-07-27 18:54:18.6767965 +08:00", "nullable": false, "description": "The time stamp associated to the response payload." }, "notes": { "type": "string", "example": " ACI Auto Pay Transaction Id 8ac7a4a2892d433501892f117c3a3173\r\n\r\n Transaction Date 2023-07-07 06:37:02+0000\r\n\r\n Result code 000.100.110\r\n\r\n ResultDescription: Request successfully processed in 'Merchant in Integrator Test Mode'\r\n\r\n Payment Type DB\r\n\r\n ", "nullable": true, "description": "More information associated to the payment." }, "transactionStatus": { "type": "string", "enum": [ "Success", "Failure" ], "example": "Success", "nullable": false, "description": "The Transaction Status associated to the refund response." }, "result": { "$ref": "#/components/schemas/AMCSPayResult", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider." } }, "additionalProperties": false }, "AMCSPayResult": { "type": "object", "nullable": true, "description": "AMCS Pay standardised result code and message returned by the payment provider.\n\n**Success example:**\n```json\n{\n \"code\": \"000.000.000\",\n \"message\": \"Transaction succeeded\"\n}\n```\n\n**Error example:**\n```json\n{\n \"code\": \"200.300.404\",\n \"message\": \"invalid or missing parameter\"\n}\n```", "properties": { "code": { "type": "string", "nullable": true, "description": "Provider result code.", "example": "000.000.000" }, "message": { "type": "string", "nullable": true, "description": "Human-readable description of the payment outcome.", "example": "Transaction succeeded" } } }, "AMCSPayDisbursementAddSupplierRequest": { "type": "object", "required": [ "provider", "data" ], "properties": { "provider": { "type": "string", "nullable": false, "description": "Provider to use to add supplier for disbursement.\n\n- AptPay", "example": "AptPay" }, "data": { "type": "object", "nullable": false, "description": "Holds the request object depends on the provider.", "$ref": "#/components/schemas/AMCSAptPayAddIdentityRequest" } } }, "AMCSPayDisbursementAddSupplierResponse": { "type": "object", "properties": { "result": { "type": "object", "description": "Holds the response object depends on the provider.", "$ref": "#/components/schemas/AMCSAptPayBasicDataResponse" } } }, "AMCSPayDisbursementGetSupplierRequest": { "type": "object", "required": [ "provider", "data" ], "properties": { "provider": { "type": "string", "nullable": false, "description": "Provider to use to get supplier for disbursement.\n\n- AptPay", "example": "AptPay" }, "data": { "type": "object", "nullable": false, "description": "Holds the request object depends on the provider.", "$ref": "#/components/schemas/AMCSAptPayGetIdentityRequest" } } }, "AMCSPayDisbursementGetSupplierResponse": { "type": "object", "properties": { "result": { "type": "object", "description": "Holds the response object depends on the provider.", "$ref": "#/components/schemas/AMCSAptPayDisbursementGetSupplierDataResponse" } } }, "AMCSPayDisbursementAddDisbursementRequest": { "type": "object", "required": [ "provider", "data" ], "properties": { "provider": { "type": "string", "nullable": false, "description": "Provider to use to add disbursement.\n\n- AptPay", "example": "AptPay" }, "data": { "type": "object", "nullable": false, "description": "Holds the request object depends on the provider.", "$ref": "#/components/schemas/AMCSAptPayAddDisbursementRequest" } } }, "AMCSPayDisbursementAddDisbursementResponse": { "type": "object", "properties": { "result": { "type": "object", "description": "Holds the response object depends on the provider.", "$ref": "#/components/schemas/AMCSAptPayAddDisbursementDataResponse" } } }, "AMCSPayCreateCustomerRequest": { "required": [ "customerInfo", "isCreatePaymentAccount", "providerType" ], "type": "object", "properties": { "providerType": { "enum": [ "Stripe" ], "type": "string", "example": "Stripe", "description": "The payment provider to be used. For example, \"Stripe\" indicates that Stripe will handle the customer account creation." }, "customerInfo": { "$ref": "#/components/schemas/AMCSPayCreateCustomerDetail" }, "isCreatePaymentAccount": { "type": "boolean", "nullable": false, "example": true, "description": "Flag to indicate if a payment account should be created immediately for the new customer. true to create, otherwise false." }, "paymentAccount": { "$ref": "#/components/schemas/AMCSPayPaymentAccount" } }, "additionalProperties": false }, "AMCSPayCreateCustomerResponse": { "type": "object", "properties": { "providerCustomerAccount": { "type": "string", "nullable": true, "example": "cus_N6mXoX2aG2e4eH", "description": "The unique identifier for the customer account created by the payment provider. For example, \"cus_N6mXoX2aG2e4eH\" is a Stripe customer ID." }, "paymentAccount": { "$ref": "#/components/schemas/AMCSPayCreatePaymentAccountResponse" }, "amcsPayCustomerMappingId": { "type": "string", "nullable": true, "example": "669c9d3d-0dff-4ad2-9ec9-b48d0089b8ef", "description": "The unique identifier in AMCS Pay for this create customer account request." }, "customerInfo": { "$ref": "#/components/schemas/AMCSPayCreateCustomerDetail" } }, "additionalProperties": false }, "AMCSPayCreatePaymentAccountResponse": { "type": "object", "description": "Details of the customer account and payment account created if isCreatePaymentAccount is set to true in the request.", "properties": { "accountHolderName": { "type": "string", "nullable": true, "example": "Waste Management Ltd", "description": "The name of the account holder for the payment account." }, "bankName": { "type": "string", "nullable": true, "example": "HSBC", "description": "The name of the bank where the payment account is held." }, "bankCode": { "type": "string", "nullable": true, "example": "341-000", "description": "The bank code for the payment account." }, "accountNumber": { "type": "string", "nullable": true, "example": "IE531653294928618999391", "description": "The account number for the payment account." }, "swiftCode": { "type": "string", "nullable": true, "example": "HSBCAUTTXXX", "description": "The SWIFT code for the payment account." }, "currency": { "enum": [ "AUD", "EUR" ], "type": "string", "example": "AUD", "description": "The three-letter ISO currency code associated with the payment account. For example, \"AUD\" indicates that the account will operate in Australian Dollars." }, "paymentType": { "enum": [ "CREDIT_TRANSFER" ], "type": "string", "example": "CREDIT_TRANSFER", "description": "The type of payment account created. For example, \"CREDIT_TRANSFER\" indicates that a credit transfer account has been created." }, "country": { "enum": [ "AU", "DE", "FR", "IE", "NL" ], "type": "string", "example": "AU", "description": "The two-letter ISO country code representing the country where the payment account is held. For example, \"AU\" indicates Australia." } }, "additionalProperties": false }, "AMCSPayPaymentAccount": { "required": [ "paymentType", "currency", "country" ], "type": "object", "description": "Details of the payment account to create if isCreatePaymentAccount is set to true. Only supported for providerType: Stripe. country and currency must be paired correctly: AU with AUD; DE, FR, IE, or NL with EUR. Any other country/currency combination, or any other provider, is rejected.", "properties": { "paymentType": { "enum": [ "CREDIT_TRANSFER" ], "type": "string", "example": "CREDIT_TRANSFER", "description": "The type of payment account to create. \"CREDIT_TRANSFER\" is the only supported value." }, "currency": { "enum": [ "AUD", "EUR" ], "type": "string", "example": "AUD", "description": "The currency code for the payment account. Must be paired with a matching country: AUD with AU; EUR with DE, FR, IE, or NL." }, "country": { "enum": [ "AU", "DE", "FR", "IE", "NL" ], "type": "string", "example": "AU", "description": "The two-letter ISO country code representing the country where the payment account is held. Must be paired with a matching currency: AU with AUD; DE, FR, IE, or NL with EUR." } }, "additionalProperties": false }, "AMCSPayCreateCustomerDetail": { "required": [ "customerId", "customerName" ], "type": "object", "description": "Contains details about the customer to be created.", "properties": { "customerId": { "type": "string", "nullable": false, "example": "8114533e-7968-4b67-a600-832d29a0e1c8", "description": "A unique identifier or external reference for the customer (could be from your system or an external system)." }, "customerName": { "type": "string", "nullable": false, "example": "Jane Doe", "description": "The full name of the customer being created." }, "customerAccountCode": { "type": "string", "nullable": false, "example": "ACC000123", "description": "The account code of the customer being created." } }, "additionalProperties": false }, "AMCSPayRetryTransactionRequest": { "required": [ "callerTransactionIdentifier", "paymentChannelId" ], "type": "object", "properties": { "callerTransactionIdentifier": { "type": "string", "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "nullable": false, "description": "The RequestId when making One Off Payment or Refund" }, "paymentChannelId": { "type": "string", "enum": [ "ACICards" ], "example": "ACICards", "nullable": false, "description": "The payment channel/provider to use for the retry." } } }, "AMCSPayRetryTransactionResponse": { "type": "object", "properties": { "callerTransactionGuid": { "type": "string", "format": "uuid", "example": "00000000-0000-0000-0000-000000000000", "nullable": true, "description": "The RequestId when making One Off Payment or Refund" }, "message": { "type": "string", "nullable": true, "example": "Transaction retried successfully.", "description": "The message associated to the response." }, "dateCreated": { "type": "string", "format": "date-time", "example": "2025-01-15T10:30:00Z", "nullable": true, "description": "The date and time when the retried transaction was created." }, "statusCode": { "type": "string", "enum": [ "Initiated", "Success", "Failure", "InvalidCardInformation", "Exception", "Cancelled", "Processing" ], "example": "Success", "nullable": true, "description": "The status of the retry response." }, "payPortalResponseMessage": { "type": "string", "nullable": true, "description": "The parsed provider specific response associated to the retried transaction." }, "payPortalCreditCardVaultResponseMessage": { "type": "string", "nullable": true, "description": "The parsed provider specific credit card vault response (optional)." }, "requestType": { "type": "string", "enum": [ "Payment", "Refund", "AutoPay" ], "example": "Payment", "nullable": true, "description": "The request type associated to the retried transaction." }, "serviceFeeResponse": { "$ref": "#/components/schemas/AMCSPayServiceFeePaymentDetails" } } }, "AMCSPayServiceFeePaymentDetails": { "type": "object", "description": "The service fee details associated to the transaction.", "properties": { "principalAmount": { "type": "number", "format": "double", "example": 10, "nullable": true, "description": "The base amount associated to the payment request." }, "serviceFeeAmount": { "type": "number", "format": "double", "example": 0.2, "nullable": true, "description": "The service fee amount associated to the payment request." }, "total": { "type": "number", "format": "double", "example": 10.2, "nullable": true, "description": "The total amount associated to the payment request." }, "termsAndConditions": { "$ref": "#/components/schemas/TermsAndConditions" } } }, "AMCS.Pay.Entity.Api.Payments.ExternalTransaction.ApiErrorResponse": { "type": "object", "properties": { "message": { "type": "string", "nullable": true, "description": "The exception message.", "example": "Payment Provider APG is not supported." }, "type": { "type": "string", "nullable": true, "description": "The exception type.", "example": "System.Exception" }, "stackTrace": { "type": "string", "nullable": true, "description": "The stack trace of the exception.", "example": " at AMCS.Pay.Api.Controllers.PaymentsController.CreateCustomer(CreateCustomerRequest request) in /src/swaggerpay/AMCS.Pay.Api/Controllers/PaymentsController.cs:line 123" } }, "additionalProperties": false } } } }