{
    "swagger": "2.0",
    "info": {
        "title": "Telephony API",
        "version": "1.0"
    },
    "host": "core-api-mgmt-demodata.azure-api.net",
    "basePath": "/telephony-api",
    "schemes": [
        "https"
    ],
    "securityDefinitions": {
        "apiKeyHeader": {
            "type": "apiKey",
            "name": "Ocp-Apim-Subscription-Key",
            "in": "header"
        },
        "apiKeyQuery": {
            "type": "apiKey",
            "name": "subscription-key",
            "in": "query"
        }
    },
    "security": [
        {
            "apiKeyHeader": []
        },
        {
            "apiKeyQuery": []
        }
    ],
    "paths": {
        "/telephony/callback": {
            "post": {
                "description": "Update payment status with pci-pal call back response",
                "operationId": "callback",
                "summary": "pci-pal call back ",
                "parameters": [
                    {
                        "name": "orderCurrency",
                        "in": "formData",
                        "description": "Order currency type (Example: GBP)",
                        "type": "string"
                    },
                    {
                        "name": "orderAmount",
                        "in": "formData",
                        "description": "Amount that was transacted in base units",
                        "type": "string"
                    },
                    {
                        "name": "orderReference",
                        "in": "formData",
                        "description": "A unique reference number for the transaction from the request ",
                        "type": "string"
                    },
                    {
                        "name": "ppAccountID",
                        "in": "formData",
                        "description": "The PCI Pal account ID the transaction was performed on",
                        "type": "string"
                    },
                    {
                        "name": "transactionResult",
                        "in": "formData",
                        "description": "The outcome of the transaction (Example: SUCCESS) Note: (Values can be: SUCCESS,DECLINE,ERROR,CANCELLED)",
                        "type": "string"
                    },
                    {
                        "name": "transactionID",
                        "in": "formData",
                        "description": "The transaction ID from the payment gateway",
                        "type": "string"
                    },
                    {
                        "name": "transactionResponseMsg",
                        "in": "formData",
                        "description": "The response from the gateway (Example: Insufficient Funds) Note: Usually only passed back for declines or errors",
                        "type": "string"
                    },
                    {
                        "name": "cardExpiry",
                        "in": "formData",
                        "description": "The expiry date for the card used (Example: 0419)",
                        "type": "string"
                    },
                    {
                        "name": "cardType",
                        "in": "formData",
                        "description": "The card type detected from the bin check (Example: VISA)",
                        "type": "string"
                    },
                    {
                        "name": "ppCallID",
                        "in": "formData",
                        "description": "The unique PCI Pal call id used for debugging purposes",
                        "type": "string"
                    },
                    {
                        "name": "customData1",
                        "in": "formData",
                        "description": "Any custom values sent in the request",
                        "type": "string"
                    },
                    {
                        "name": "customData2",
                        "in": "formData",
                        "description": "Any custom values sent in the request",
                        "type": "string"
                    },
                    {
                        "name": "customData3",
                        "in": "formData",
                        "description": "Any custom values sent in the request",
                        "type": "string"
                    }
                ],
                "consumes": [
                    "application/x-www-form-urlencoded"
                ],
                "responses": {
                    "204": {
                        "description": "successful operation"
                    },
                    "403": {
                        "description": "Invalid subscription-key"
                    },
                    "415": {
                        "description": "Unsupported media-type should be application/x-www-form-urlencoded"
                    }
                }
            }
        }
    },
    "tags": []
}
